Annotation of /trunk/core/hal/hal-0.5.13-r2.smage2
Parent Directory | Revision Log
Revision 3886 -
(hide annotations)
(download)
Fri Nov 13 17:18:04 2009 UTC (14 years, 7 months ago) by niro
File size: 3847 byte(s)
Fri Nov 13 17:18:04 2009 UTC (14 years, 7 months ago) by niro
File size: 3847 byte(s)
-enabled policykit and consolekit support
1 | niro | 3885 | # $Id$ |
2 | |||
3 | PNAME="hal" | ||
4 | PVER="0.5.13" | ||
5 | PBUILD="r2" | ||
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 | niro | 3886 | >= app-misc/hal-info-2009 |
24 | >= sys-apps/polkit-0.94 | ||
25 | >= sys-apps/consolekit-0.3.1" | ||
26 | niro | 3885 | |
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 | ||
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 | niro | 3886 | mirror://${PNAME}/${PNAME}-${PVER}-use-at-console.patch |
49 | niro | 3885 | ) |
50 | |||
51 | UP2TARBALL="${PNAME}-[0-9]" | ||
52 | UP2DATE="updatecmd_freedesktop ${PNAME}" | ||
53 | |||
54 | src_prepare() | ||
55 | { | ||
56 | munpack ${SRCFILE} || die | ||
57 | cd ${SRCDIR} | ||
58 | |||
59 | # allow plugdev group people to mount | ||
60 | mpatch ${PNAME}-0.5.7.1-plugdev-allow-send.patch || die | ||
61 | |||
62 | # hide recovery partitions | ||
63 | mpatch ${PNAME}-0.5.10-hide-recovery-partitions.patch || die | ||
64 | |||
65 | # fix ntfs-3g options | ||
66 | mpatch ${PNAME}-0.5.12-ntfs3g-valid-options.patch || die | ||
67 | |||
68 | # fixes "TODO: have to rethink extra options" error message in KDE | ||
69 | mpatch ${PNAME}-0.5.11-ntfs3g-rethink-extra-options-fix.patch || die | ||
70 | niro | 3886 | |
71 | # allow root to access devices and on local console only | ||
72 | mpatch ${PNAME}-${PVER}-use-at-console.patch || die | ||
73 | niro | 3885 | } |
74 | |||
75 | src_compile() | ||
76 | { | ||
77 | cd ${SRCDIR} | ||
78 | |||
79 | mconfigure \ | ||
80 | --libexecdir=/usr/$(mlibdir)/hal \ | ||
81 | --with-pid-file=/var/run/hald/hald.pid \ | ||
82 | --with-hwdata=/usr/share/misc \ | ||
83 | --with-cpufreq \ | ||
84 | --with-usb-csr \ | ||
85 | --with-keymaps \ | ||
86 | --disable-verbose-mode \ | ||
87 | niro | 3886 | --disable-policy-kit \ |
88 | --disable-console-kit \ | ||
89 | niro | 3885 | --disable-acl-management \ |
90 | --enable-umount-helper \ | ||
91 | --enable-man-pages \ | ||
92 | --enable-pci \ | ||
93 | --enable-sonypic \ | ||
94 | --enable-hotplug-map \ | ||
95 | --enable-pcmcia-support \ | ||
96 | --enable-acpi-proc \ | ||
97 | --enable-acpi-toshiba \ | ||
98 | --enable-acpi-ibm \ | ||
99 | --disable-docbook-docs \ | ||
100 | --disable-doxygen-docs \ | ||
101 | || die | ||
102 | |||
103 | mmake || die | ||
104 | } | ||
105 | |||
106 | src_install() | ||
107 | { | ||
108 | cd ${SRCDIR} | ||
109 | |||
110 | # needed directories | ||
111 | minstalldir /lib/udev || die | ||
112 | |||
113 | mmake DESTDIR=${BINDIR} install || die | ||
114 | |||
115 | # hal umount for unclean unmounts | ||
116 | minstallexec -s hal-unmount.dev /lib/udev/hal_unmount || die | ||
117 | |||
118 | # init | ||
119 | minstallrc hald.rc-${RC_CVS_REV} hald || die | ||
120 | |||
121 | # mark some dirs undeletable | ||
122 | mkeepdir /etc/hal/fdi/information || die | ||
123 | mkeepdir /etc/hal/fdi/policy || die | ||
124 | mkeepdir /etc/hal/fdi/preprobe || die | ||
125 | mkeepdir /var/lib/cache/hald || die | ||
126 | mkeepdir /var/run/hald || die | ||
127 | |||
128 | # docs | ||
129 | minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die | ||
130 | } | ||
131 | |||
132 | preinstall() | ||
133 | { | ||
134 | # adds plugdev group | ||
135 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev | ||
136 | |||
137 | # adds haldaemon user | ||
138 | ${MLIBDIR}/mgroupadd -o "-g 301" haldaemon | ||
139 | ${MLIBDIR}/museradd -o "-u 301 -g haldaemon -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb -d /dev/null -s /bin/false" haldaemon | ||
140 | |||
141 | } | ||
142 | |||
143 | postinstall() | ||
144 | { | ||
145 | if [[ ! -d ${MROOT}/media ]] | ||
146 | then | ||
147 | install -d ${MROOT}/media | ||
148 | touch ${MROOT}/media/.keep | ||
149 | fi | ||
150 | |||
151 | # make sure that the haldaemon user is in the haldaemons groups | ||
152 | # if users have a problem with this, let them file a bug | ||
153 | usermod -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb haldaemon | ||
154 | |||
155 | # fix permissions | ||
156 | chown haldaemon:haldaemon ${MROOT}/var/run/hald | ||
157 | |||
158 | mstartservice hald | ||
159 | } | ||
160 | |||
161 | postremove() | ||
162 | { | ||
163 | if [ ! -f ${MROOT}/usr/sbin/hald ] | ||
164 | then | ||
165 | mstopservice hald | ||
166 | fi | ||
167 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |