Contents of /trunk/core/hal/hal-0.5.13-r4.smage2
Parent Directory | Revision Log
Revision 4849 -
(show annotations)
(download)
Fri Feb 12 11:16:13 2010 UTC (14 years, 7 months ago) by niro
File size: 3812 byte(s)
Fri Feb 12 11:16:13 2010 UTC (14 years, 7 months ago) by niro
File size: 3812 byte(s)
-rebuild against polkit-0.96
1 | # $Id$ |
2 | |
3 | PNAME="hal" |
4 | PVER="0.5.13" |
5 | PBUILD="r4" |
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.22 |
14 | >= sys-apps/dbus-1.3 |
15 | >= dev-libs/dbus-glib-0.82 |
16 | >= dev-libs/expat-2 |
17 | >= sys-fs/udev-146 |
18 | >= sys-apps/dmidecode-2 |
19 | >= sys-apps/pciutils-3 |
20 | >= dev-libs/libusb-0.1.12 |
21 | >= sys-apps/eject-2.1.5 |
22 | >= sys-apps/util-linux-2.16 |
23 | >= app-misc/hal-info-2009 |
24 | >= sys-apps/polkit-0.96 |
25 | >= sys-apps/consolekit-0.4.1" |
26 | |
27 | SDEPEND=">= dev-util/pkgconfig-0.23 |
28 | >= dev-util/intltool-0.40 |
29 | >= dev-util/gperf-3.0.4" |
30 | |
31 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
32 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
33 | |
34 | # cvs revision of the initscript |
35 | RC_CVS_REV=1.3 |
36 | |
37 | sminclude mtools multilib |
38 | |
39 | SRC_URI=( |
40 | http://hal.freedesktop.org/releases/${SRCFILE} |
41 | mirror://${PNAME}/${SRCFILE} |
42 | mirror://${PNAME}/hald.rc-${RC_CVS_REV} |
43 | mirror://${PNAME}/hal-unmount.dev |
44 | mirror://${PNAME}/${PNAME}-0.5.7.1-plugdev-allow-send.patch |
45 | mirror://${PNAME}/${PNAME}-0.5.10-hide-recovery-partitions.patch |
46 | mirror://${PNAME}/${PNAME}-0.5.12-ntfs3g-valid-options.patch |
47 | mirror://${PNAME}/${PNAME}-0.5.11-ntfs3g-rethink-extra-options-fix.patch |
48 | mirror://${PNAME}/${PNAME}-${PVER}-use-at-console.patch |
49 | ) |
50 | |
51 | UP2TARBALL="${PNAME}-[0-9]" |
52 | UP2DATE="updatecmd_freedesktop ${PNAME}" |
53 | |
54 | src_prepare() |
55 | { |
56 | munpack ${SRCFILE} || die |
57 | |
58 | # allow plugdev group people to mount |
59 | mpatch ${PNAME}-0.5.7.1-plugdev-allow-send.patch || die |
60 | |
61 | # hide recovery partitions |
62 | mpatch ${PNAME}-0.5.10-hide-recovery-partitions.patch || die |
63 | |
64 | # fix ntfs-3g options |
65 | mpatch ${PNAME}-0.5.12-ntfs3g-valid-options.patch || die |
66 | |
67 | # fixes "TODO: have to rethink extra options" error message in KDE |
68 | mpatch ${PNAME}-0.5.11-ntfs3g-rethink-extra-options-fix.patch || die |
69 | |
70 | # allow root to access devices and on local console only |
71 | mpatch ${PNAME}-${PVER}-use-at-console.patch || die |
72 | } |
73 | |
74 | src_compile() |
75 | { |
76 | mconfigure \ |
77 | --libexecdir=/usr/$(mlibdir)/hal \ |
78 | --with-pid-file=/var/run/hald/hald.pid \ |
79 | --with-hwdata=/usr/share/misc \ |
80 | --with-cpufreq \ |
81 | --with-usb-csr \ |
82 | --with-keymaps \ |
83 | --disable-verbose-mode \ |
84 | --disable-policy-kit \ |
85 | --disable-console-kit \ |
86 | --disable-acl-management \ |
87 | --enable-umount-helper \ |
88 | --enable-man-pages \ |
89 | --enable-pci \ |
90 | --enable-sonypic \ |
91 | --enable-hotplug-map \ |
92 | --enable-pcmcia-support \ |
93 | --enable-acpi-proc \ |
94 | --enable-acpi-toshiba \ |
95 | --enable-acpi-ibm \ |
96 | --disable-docbook-docs \ |
97 | --disable-doxygen-docs \ |
98 | || die |
99 | |
100 | mmake || die |
101 | } |
102 | |
103 | src_install() |
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 |