Annotation of /smage/trunk/core/xf86-input-vmmouse/xf86-input-vmmouse-12.7.0-r2.smage2
Parent Directory | Revision Log
Revision 1938 -
(hide annotations)
(download)
Wed Nov 9 15:53:20 2011 UTC (12 years, 6 months ago) by niro
File size: 1410 byte(s)
Wed Nov 9 15:53:20 2011 UTC (12 years, 6 months ago) by niro
File size: 1410 byte(s)
auto added: ver bump to 12.7.0-r2
1 | niro | 1938 | # $Id$ |
2 | |||
3 | PNAME="xf86-input-vmmouse" | ||
4 | PVER="12.7.0" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCATEGORIE="x11-drivers" | ||
8 | |||
9 | DESCRIPTION="Xorg input driver for ${PNAME/xf86-input-/} devices." | ||
10 | HOMEPAGE="http://xorg.freedesktop.org" | ||
11 | |||
12 | # the driver itself | ||
13 | MCORE_ONLY_KEEP="usr/$(mlibdir)/xorg/modules/input/vmmouse_drv.so" | ||
14 | # xorg config | ||
15 | MCORE_ONLY_KEEP+=" etc/X11/xorg.conf.d" | ||
16 | # udev rules (*/lib/udev* also on multilib systems!!) | ||
17 | MCORE_ONLY_KEEP+=" lib/udev/rules.d" | ||
18 | # vmmouse detection tool used by udev | ||
19 | MCORE_ONLY_KEEP+=" usr/bin/vmmouse_detect" | ||
20 | |||
21 | sminclude xorg mtools mcore-split | ||
22 | |||
23 | UP2DATE="updatecmd_xorg ${PNAME}" | ||
24 | |||
25 | src_compile() | ||
26 | { | ||
27 | cd ${SRCDIR} | ||
28 | |||
29 | # use /lib for udev dir on multilib systems too! | ||
30 | xorg_src_configure \ | ||
31 | --with-udev-rules-dir=/lib/udev/rules.d \ | ||
32 | --with-hal-callouts-dir=/usr/bin \ | ||
33 | || die | ||
34 | |||
35 | mmake || die | ||
36 | |||
37 | } | ||
38 | |||
39 | mcore_generic_src_install() | ||
40 | { | ||
41 | cd ${SRCDIR} | ||
42 | xorg_src_install || die | ||
43 | |||
44 | # install xorg.conf.d for udev vmmouse driver | ||
45 | minstalldir /etc/X11/xorg.conf.d || die | ||
46 | minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die | ||
47 | } | ||
48 | |||
49 | # reload udev to get the provided udev rules recognized | ||
50 | postinstall() | ||
51 | { | ||
52 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && | ||
53 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] | ||
54 | then | ||
55 | udevadm control --reload-rules | ||
56 | fi | ||
57 | } | ||
58 | |||
59 | postremove() | ||
60 | { | ||
61 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && | ||
62 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] | ||
63 | then | ||
64 | udevadm control --reload-rules | ||
65 | fi | ||
66 | } |