Magellan Linux

Contents of /trunk/core/hal/hal-0.5.11-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id