Contents of /branches/magellan-next/core/hal/hal-0.5.14-r1.smage2
Parent Directory | Revision Log
Revision 6195 -
(show annotations)
(download)
Thu Aug 19 20:06:57 2010 UTC (14 years, 1 month ago) by niro
File size: 3894 byte(s)
Thu Aug 19 20:06:57 2010 UTC (14 years, 1 month ago) by niro
File size: 3894 byte(s)
auto added: ver bump to 0.5.14-r1
1 | # $Id: hal-0.5.13-r4.smage2 4849 2010-02-12 11:16:13Z niro $ |
2 | |
3 | PNAME="hal" |
4 | PVER="0.5.14" |
5 | PBUILD="r1" |
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.24 |
14 | >= sys-apps/dbus-1.3 |
15 | >= dev-libs/dbus-glib-0.88 |
16 | >= dev-libs/expat-2 |
17 | >= sys-fs/udev-161 |
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.18 |
23 | >= app-misc/hal-info-200911 |
24 | >= sys-apps/polkit-0.96 |
25 | >= sys-apps/consolekit-0.4.1" |
26 | |
27 | SDEPEND=">= dev-util/pkgconfig-0.25 |
28 | >= dev-util/intltool-0.41 |
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}-0.5.13-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}-0.5.13-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-udev-prefix=/lib \ |
81 | --with-cpufreq \ |
82 | --with-usb-csr \ |
83 | --with-keymaps \ |
84 | --disable-verbose-mode \ |
85 | --disable-policy-kit \ |
86 | --disable-console-kit \ |
87 | --disable-acl-management \ |
88 | --enable-umount-helper \ |
89 | --enable-man-pages \ |
90 | --enable-pci \ |
91 | --enable-sonypic \ |
92 | --enable-hotplug-map \ |
93 | --enable-pcmcia-support \ |
94 | --enable-acpi-proc \ |
95 | --enable-acpi-toshiba \ |
96 | --enable-acpi-ibm \ |
97 | --disable-docbook-docs \ |
98 | --disable-doxygen-docs \ |
99 | || die |
100 | |
101 | mmake || die |
102 | } |
103 | |
104 | src_install() |
105 | { |
106 | # needed directories |
107 | minstalldir /lib/udev || die |
108 | |
109 | mmake DESTDIR=${BINDIR} install || die |
110 | |
111 | # hal umount for unclean unmounts |
112 | minstallexec -s hal-unmount.dev /lib/udev/hal_unmount || die |
113 | |
114 | # init |
115 | minstallrc hald.rc-${RC_CVS_REV} hald || die |
116 | |
117 | # mark some dirs undeletable |
118 | mkeepdir /etc/hal/fdi/information || die |
119 | mkeepdir /etc/hal/fdi/policy || die |
120 | mkeepdir /etc/hal/fdi/preprobe || die |
121 | mkeepdir /var/lib/cache/hald || die |
122 | mkeepdir /var/run/hald || die |
123 | |
124 | # docs |
125 | minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die |
126 | } |
127 | |
128 | preinstall() |
129 | { |
130 | # adds plugdev group |
131 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev |
132 | |
133 | # adds haldaemon user |
134 | ${MLIBDIR}/mgroupadd -o "-g 301" haldaemon |
135 | ${MLIBDIR}/museradd -o "-u 301 -g haldaemon -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb -d /dev/null -s /bin/false" haldaemon |
136 | |
137 | } |
138 | |
139 | postinstall() |
140 | { |
141 | if [[ ! -d ${MROOT}/media ]] |
142 | then |
143 | install -d ${MROOT}/media |
144 | touch ${MROOT}/media/.keep |
145 | fi |
146 | |
147 | # make sure that the haldaemon user is in the haldaemons groups |
148 | # if users have a problem with this, let them file a bug |
149 | usermod -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb haldaemon |
150 | |
151 | # fix permissions |
152 | chown haldaemon:haldaemon ${MROOT}/var/run/hald |
153 | |
154 | mstartservice hald |
155 | } |
156 | |
157 | postremove() |
158 | { |
159 | if [ ! -f ${MROOT}/usr/sbin/hald ] |
160 | then |
161 | mstopservice hald |
162 | fi |
163 | } |