Magellan Linux

Contents of /trunk/core/hal/hal-0.5.12-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2090 - (show annotations) (download)
Tue Jun 16 23:15:44 2009 UTC (14 years, 10 months ago) by niro
File size: 3817 byte(s)
-re-diffed mount patch to work with our hal
1 # $Id$
2
3 PNAME="hal"
4 PVER="0.5.12"
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.20
14 >= sys-apps/dbus-1.2
15 >= dev-libs/dbus-glib-0.80
16 >= dev-libs/expat-2
17 >= sys-fs/udev-141
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.15
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}-${PVER}-ntfs3g-valid-options.patch
45 mirror://${PNAME}/${PNAME}-0.5.11-ntfs3g-rethink-extra-options-fix.patch
46 mirror://${PNAME}/${PNAME}-${PVER}-storage-mount-fix-2.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}-0.5.11-ntfs3g-rethink-extra-options-fix.patch || die
68
69 # fixes segfaults on mount, see: http://bugs.frugalware.org/task/3783
70 mpatch ${PNAME}-${PVER}-storage-mount-fix-2.patch || die
71 }
72
73 src_compile()
74 {
75 cd ${SRCDIR}
76
77 mconfigure \
78 --libexecdir=/usr/$(mlibdir)/hal \
79 --with-pid-file=/var/run/hald/hald.pid \
80 --with-hwdata=/usr/share/misc \
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 cd ${SRCDIR}
107
108 # needed directories
109 minstalldir /lib/udev || die
110
111 mmake DESTDIR=${BINDIR} install || die
112
113 # hal umount for unclean unmounts
114 minstallexec -s hal-unmount.dev /lib/udev/hal_unmount || die
115
116 # init
117 minstallrc hald.rc-${RC_CVS_REV} hald || die
118
119 # mark some dirs undeletable
120 mkeepdir /etc/hal/fdi/information || die
121 mkeepdir /etc/hal/fdi/policy || die
122 mkeepdir /etc/hal/fdi/preprobe || die
123 mkeepdir /var/lib/cache/hald || die
124 mkeepdir /var/run/hald || die
125
126 # docs
127 minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die
128 }
129
130 preinstall()
131 {
132 # adds plugdev group
133 ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
134
135 # adds haldaemon user
136 ${MLIBDIR}/mgroupadd -o "-g 301" haldaemon
137 ${MLIBDIR}/museradd -o "-u 301 -g haldaemon -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb -d /dev/null -s /bin/false" haldaemon
138
139 }
140
141 postinstall()
142 {
143 if [[ ! -d ${MROOT}/media ]]
144 then
145 install -d ${MROOT}/media
146 touch ${MROOT}/media/.keep
147 fi
148
149 # make sure that the haldaemon user is in the haldaemons groups
150 # if users have a problem with this, let them file a bug
151 usermod -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb haldaemon
152
153 # fix permissions
154 chown haldaemon:haldaemon ${MROOT}/var/run/hald
155
156 mstartservice hald
157 }
158
159 postremove()
160 {
161 if [ ! -f ${MROOT}/usr/sbin/hald ]
162 then
163 mstopservice hald
164 fi
165 }

Properties

Name Value
svn:keywords Id