Contents of /branches/magellan-next/core/xf86-input-vmmouse/xf86-input-vmmouse-12.7.0-r1.smage2
Parent Directory | Revision Log
Revision 7790 -
(show annotations)
(download)
Wed Jun 1 17:23:17 2011 UTC (13 years, 3 months ago) by niro
File size: 1087 byte(s)
Wed Jun 1 17:23:17 2011 UTC (13 years, 3 months ago) by niro
File size: 1087 byte(s)
auto added: ver bump to 12.7.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="xf86-input-vmmouse" |
4 | PVER="12.7.0" |
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 | sminclude xorg mtools |
14 | |
15 | UP2DATE="updatecmd_xorg ${PNAME}" |
16 | |
17 | src_compile() |
18 | { |
19 | cd ${SRCDIR} |
20 | |
21 | # use /lib for udev dir on multilib systems too! |
22 | xorg_src_configure \ |
23 | --with-udev-rules-dir=/lib/udev/rules.d \ |
24 | --with-hal-callouts-dir=/usr/bin \ |
25 | || die |
26 | |
27 | mmake || die |
28 | |
29 | } |
30 | |
31 | src_install() |
32 | { |
33 | cd ${SRCDIR} |
34 | xorg_src_install || die |
35 | |
36 | # install xorg.conf.d for udev vmmouse driver |
37 | minstalldir /etc/X11/xorg.conf.d || die |
38 | minstallfile tools/50-vmmouse.conf /etc/X11/xorg.conf.d || die |
39 | } |
40 | |
41 | # reload udev to get the provided udev rules recognized |
42 | postinstall() |
43 | { |
44 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && |
45 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] |
46 | then |
47 | udevadm control --reload-rules |
48 | fi |
49 | } |
50 | |
51 | postremove() |
52 | { |
53 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] && |
54 | [[ -n $(pidof udevd) ]] && [[ ${MAGE_BOOTSTRAP} != true ]] |
55 | then |
56 | udevadm control --reload-rules |
57 | fi |
58 | } |