Magellan Linux

Annotation of /branches/R11-stable/extras/xf86-input-vmmouse/xf86-input-vmmouse-13.0.0-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21883 - (hide annotations) (download)
Mon Jul 21 10:31:22 2014 UTC (9 years, 11 months ago) by niro
File size: 1105 byte(s)
-release branches/R11-stable
1 niro 20642 # $Id$
2    
3     PNAME="xf86-input-vmmouse"
4     PVER="13.0.0"
5     PBUILD="r3"
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-20"
13    
14     sminclude xorg mtools
15    
16     UP2DATE="updatecmd_xorg ${PNAME}"
17    
18     src_compile()
19     {
20     cd ${SRCDIR}
21    
22     # use /lib for udev dir on multilib systems too!
23     xorg_src_configure \
24     --with-udev-rules-dir=/usr/lib/udev/rules.d \
25     --with-hal-callouts-dir=/usr/bin \
26     || die
27    
28     mmake || die
29    
30     }
31    
32     src_install()
33     {
34     cd ${SRCDIR}
35     xorg_src_install || die
36    
37     # install xorg.conf.d for udev vmmouse driver
38     minstalldir /etc/X11/xorg.conf.d || die
39     minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die
40     }
41    
42     # reload udev to get the provided udev rules recognized
43     postinstall()
44     {
45     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
46     [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
47     then
48     udevadm control --reload-rules
49     fi
50     }
51    
52     postremove()
53     {
54     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
55     [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
56     then
57     udevadm control --reload-rules
58     fi
59     }