Contents of /trunk/core/hal/hal-0.5.11-r3.smage2
Parent Directory
|
Revision Log
Revision 298 -
(show annotations)
(download)
Thu Dec 18 23:42:03 2008 UTC (15 years, 6 months ago) by niro
File size: 3747 byte(s)
Thu Dec 18 23:42:03 2008 UTC (15 years, 6 months ago) by niro
File size: 3747 byte(s)
-fixed UP2DATE Uri
1 | # $Header: /magellan-cvs/smage/hal/hal-0.5.11-r3.smage2,v 1.1 2008/09/11 11:40:31 niro Exp $ |
2 | |
3 | PNAME="hal" |
4 | PVER="0.5.11" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="HAL - Hardware Abstraction Layer." |
11 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal" |
12 | |
13 | DEPEND=">= dev-libs/glib2-2.16 |
14 | >= sys-apps/dbus-1.1 |
15 | >= dev-libs/dbus-glib-0.74 |
16 | >= dev-libs/expat-2 |
17 | >= sys-fs/udev-118 |
18 | >= sys-apps/dmidecode-2 |
19 | >= sys-apps/pciutils-2.2.9 |
20 | >= dev-libs/libusb-0.1.12 |
21 | >= sys-apps/hotplug-20040923 |
22 | >= sys-apps/eject-2.1.5 |
23 | >= sys-apps/util-linux-2.13 |
24 | >= app-misc/hal-info-2008" |
25 | |
26 | SDEPEND=">= dev-util/pkgconfig-0.23 |
27 | >= dev-util/intltool-0.37 |
28 | >= dev-util/gperf-3.0.3" |
29 | |
30 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
31 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
32 | |
33 | # cvs revision of the initscript |
34 | RC_CVS_REV=1.2 |
35 | |
36 | sminclude mtools |
37 | |
38 | SRC_URI=( |
39 | http://hal.freedesktop.org/releases/${SRCFILE} |
40 | mirror://${PNAME}/${SRCFILE} |
41 | mirror://${PNAME}/hald.rc-${RC_CVS_REV} |
42 | mirror://${PNAME}/hal-unmount.dev |
43 | mirror://${PNAME}/${PNAME}-0.5.7.1-plugdev-allow-send.patch |
44 | mirror://${PNAME}/${PNAME}-0.5.10-hide-recovery-partitions.patch |
45 | mirror://${PNAME}/${PNAME}-${PVER}-ntfs3g-valid-options.patch |
46 | mirror://${PNAME}/${PNAME}-${PVER}-ntfs3g-rethink-extra-options-fix.patch |
47 | ) |
48 | |
49 | UP2TARBALL="${PNAME}-[0-9]" |
50 | UP2DATE="updatecmd_freedesktop ${PNAME}" |
51 | |
52 | src_prepare() |
53 | { |
54 | munpack ${SRCFILE} || die |
55 | cd ${SRCDIR} |
56 | |
57 | # allow plugdev group people to mount |
58 | mpatch ${PNAME}-0.5.7.1-plugdev-allow-send.patch || die |
59 | |
60 | # hide recovery partitions |
61 | mpatch ${PNAME}-0.5.10-hide-recovery-partitions.patch || die |
62 | |
63 | # fix ntfs-3g options |
64 | mpatch ${PNAME}-${PVER}-ntfs3g-valid-options.patch || die |
65 | |
66 | # fixes "TODO: have to rethink extra options" error message in KDE |
67 | mpatch ${PNAME}-${PVER}-ntfs3g-rethink-extra-options-fix.patch || die |
68 | } |
69 | |
70 | src_compile() |
71 | { |
72 | cd ${SRCDIR} |
73 | |
74 | mconfigure \ |
75 | --libexecdir=/usr/$(mlibdir)/hal \ |
76 | --with-pid-file=/var/run/hald/hald.pid \ |
77 | --with-hwdata=/usr/share/misc \ |
78 | --with-cpufreq \ |
79 | --with-usb-csr \ |
80 | --with-keymaps \ |
81 | --disable-verbose-mode \ |
82 | --disable-policy-kit \ |
83 | --disable-console-kit \ |
84 | --disable-acl-management \ |
85 | --enable-umount-helper \ |
86 | --enable-man-pages \ |
87 | --enable-pci \ |
88 | --enable-sonypic \ |
89 | --enable-hotplug-map \ |
90 | --enable-pcmcia-support \ |
91 | --enable-acpi-proc \ |
92 | --enable-acpi-toshiba \ |
93 | --enable-acpi-ibm \ |
94 | --disable-docbook-docs \ |
95 | --disable-doxygen-docs \ |
96 | || die |
97 | |
98 | mmake || die |
99 | } |
100 | |
101 | src_install() |
102 | { |
103 | cd ${SRCDIR} |
104 | |
105 | # needed directories |
106 | minstalldir /lib/udev || die |
107 | |
108 | mmake DESTDIR=${BINDIR} install || die |
109 | |
110 | # hal umount for unclean unmounts |
111 | minstallexec -s hal-unmount.dev /lib/udev/hal_unmount || die |
112 | |
113 | # init |
114 | minstallrc hald.rc-${RC_CVS_REV} hald || die |
115 | |
116 | # mark some dirs undeletable |
117 | mkeepdir /etc/hal/fdi/information || die |
118 | mkeepdir /etc/hal/fdi/policy || die |
119 | mkeepdir /etc/hal/fdi/preprobe || die |
120 | mkeepdir /var/lib/cache/hald || die |
121 | mkeepdir /var/run/hald || die |
122 | |
123 | # docs |
124 | minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die |
125 | } |
126 | |
127 | preinstall() |
128 | { |
129 | # adds plugdev group |
130 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev |
131 | |
132 | # adds haldaemon user |
133 | ${MLIBDIR}/mgroupadd -o "-g 301" haldaemon |
134 | ${MLIBDIR}/museradd -o "-u 301 -g haldaemon -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb -d /dev/null -s /bin/false" haldaemon |
135 | |
136 | } |
137 | |
138 | postinstall() |
139 | { |
140 | if [[ ! -d ${MROOT}/media ]] |
141 | then |
142 | install -d ${MROOT}/media |
143 | touch ${MROOT}/media/.keep |
144 | fi |
145 | |
146 | # make sure that the haldaemon user is in the haldaemons groups |
147 | # if users have a problem with this, let them file a bug |
148 | usermod -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb haldaemon |
149 | |
150 | # fix permissions |
151 | chown haldaemon:haldaemon ${MROOT}/var/run/hald |
152 | |
153 | mstartservice hald |
154 | } |
155 | |
156 | postremove() |
157 | { |
158 | if [ ! -f ${MROOT}/usr/sbin/hald ] |
159 | then |
160 | mstopservice hald |
161 | fi |
162 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |