Magellan Linux

Annotation of /smage/trunk/core/xf86-input-vmmouse/xf86-input-vmmouse-12.6.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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