Magellan Linux

Contents of /trunk/extras/xf86-input-vmmouse/xf86-input-vmmouse-13.1.0-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31150 - (show annotations) (download)
Mon Jun 11 09:02:54 2018 UTC (5 years, 10 months ago) by niro
File size: 1084 byte(s)
auto added: ver bump to 13.1.0-r4
1 # $Id$
2
3 PNAME="xf86-input-vmmouse"
4 PVER="13.1.0"
5 PBUILD="r4"
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 sminclude xorg mtools udev
15
16 src_compile()
17 {
18 cd ${SRCDIR}
19
20 xorg_src_configure --with-udev-rules-dir=$(mget-udev-rules-dir) || die
21 mmake || die
22 }
23
24 src_install()
25 {
26 cd ${SRCDIR}
27 xorg_src_install || die
28
29 # remove obsolete hal stuff
30 mdelete -r /usr/$(mlibdir)/hal || die
31 mdelete -r /usr/share/hal || die
32
33 # install xorg.conf.d for udev vmmouse driver
34 minstalldir /etc/X11/xorg.conf.d || die
35 minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die
36 }
37
38 # reload udev to get the provided udev rules recognized
39 postinstall()
40 {
41 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
42 [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
43 then
44 udevadm control --reload-rules
45 fi
46 }
47
48 postremove()
49 {
50 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
51 [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
52 then
53 udevadm control --reload-rules
54 fi
55 }