/[alx-svn]/smage/branches/alx07x-stable/core/xf86-input-vmmouse/xf86-input-vmmouse-13.1.0-r10.smage2 |
Contents of /smage/branches/alx07x-stable/core/xf86-input-vmmouse/xf86-input-vmmouse-13.1.0-r10.smage2
Parent Directory | Revision Log
Revision 13503 -
(show annotations)
(download)
Fri Jul 12 11:54:33 2019 UTC (5 years, 2 months ago) by niro
File size: 1417 byte(s)
Fri Jul 12 11:54:33 2019 UTC (5 years, 2 months ago) by niro
File size: 1417 byte(s)
-release branches/alx07x-stable
1 | # $Id$ |
2 | |
3 | PNAME="xf86-input-vmmouse" |
4 | PVER="13.1.0" |
5 | PBUILD="r10" |
6 | |
7 | PCAT="x11-drivers" |
8 | |
9 | DESCRIPTION="Xorg input driver for ${PNAME/xf86-input-/} devices." |
10 | HOMEPAGE="http://xorg.freedesktop.org" |
11 | |
12 | DEPEND="== virtual/X-ABI-XINPUT-24.1" |
13 | |
14 | # the driver itself |
15 | ALX_PKG_KEEP="usr/$(mlibdir)/xorg/modules/input/vmmouse_drv.so" |
16 | # xorg config |
17 | ALX_PKG_KEEP+=" etc/X11/xorg.conf.d" |
18 | # udev rules (*/usr/lib/udev* also on multilib systems!!) |
19 | ALX_PKG_KEEP+=" usr/lib/udev/rules.d" |
20 | # vmmouse detection tool used by udev |
21 | ALX_PKG_KEEP+=" usr/bin/vmmouse_detect" |
22 | |
23 | sminclude xorg mtools udev alx-split |
24 | |
25 | src_compile() |
26 | { |
27 | cd ${SRCDIR} |
28 | |
29 | xorg_src_configure --with-udev-rules-dir=$(mget-udev-rules-dir) || die |
30 | mmake || die |
31 | } |
32 | |
33 | alx_generic_src_install() |
34 | { |
35 | cd ${SRCDIR} |
36 | xorg_src_install || die |
37 | |
38 | # remove obsolete hal stuff |
39 | mdelete -r /usr/$(mlibdir)/hal || die |
40 | mdelete -r /usr/share/hal || die |
41 | |
42 | # install xorg.conf.d for udev vmmouse driver |
43 | minstalldir /etc/X11/xorg.conf.d || die |
44 | minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die |
45 | } |
46 | |
47 | # reload udev to get the provided udev rules recognized |
48 | postinstall() |
49 | { |
50 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && |
51 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] |
52 | then |
53 | udevadm control --reload-rules |
54 | fi |
55 | } |
56 | |
57 | postremove() |
58 | { |
59 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && |
60 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] |
61 | then |
62 | udevadm control --reload-rules |
63 | fi |
64 | } |