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