Magellan Linux

Annotation of /branches/magellan-next/core/xf86-input-vmmouse/xf86-input-vmmouse-12.7.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9176 - (hide annotations) (download)
Tue Nov 8 17:48:57 2011 UTC (12 years, 7 months ago) by niro
File size: 1070 byte(s)
-rebuild against xorg-server-1.11
1 niro 9176 # $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     sminclude xorg mtools
13    
14     UP2DATE="updatecmd_xorg ${PNAME}"
15    
16     src_compile()
17     {
18     cd ${SRCDIR}
19    
20     # use /lib for udev dir on multilib systems too!
21     xorg_src_configure \
22     --with-udev-rules-dir=/lib/udev/rules.d \
23     --with-hal-callouts-dir=/usr/bin \
24     || die
25    
26     mmake || die
27    
28     }
29    
30     src_install()
31     {
32     cd ${SRCDIR}
33     xorg_src_install || die
34    
35     # install xorg.conf.d for udev vmmouse driver
36     minstalldir /etc/X11/xorg.conf.d || die
37     minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die
38     }
39    
40     # reload udev to get the provided udev rules recognized
41     postinstall()
42     {
43     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
44     [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
45     then
46     udevadm control --reload-rules
47     fi
48     }
49    
50     postremove()
51     {
52     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] &&
53     [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]]
54     then
55     udevadm control --reload-rules
56     fi
57     }