Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 3609 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/hal/hal-0.5.11-r1.smage2,v 1.1 2008/08/01 07:29:57 niro Exp $
2
3 PNAME="hal"
4 PVER="0.5.11"
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.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.7.1-ntfs-policy-fix.patch
45 mirror://${PNAME}/${PNAME}-0.5.10-hide-recovery-partitions.patch
46 )
47
48 UP2DATE="updatecmd_freedesktop ${PNAME}"
49
50 src_prepare()
51 {
52 munpack ${SRCFILE} || die
53 cd ${SRCDIR}
54
55 # allow plugdev group people to mount
56 mpatch ${PNAME}-0.5.7.1-plugdev-allow-send.patch || die
57
58 # fixes mount issues with external ntfs/vfat volumes and kde-hal-backend
59 # now patching the policy directly not the mount helper script
60 mpatch ${PNAME}-0.5.7.1-ntfs-policy-fix.patch || die
61
62 # hide recovery partitions
63 mpatch ${PNAME}-0.5.10-hide-recovery-partitions.patch || die
64 }
65
66 src_compile()
67 {
68 cd ${SRCDIR}
69
70 mconfigure \
71 --libexecdir=/usr/$(mlibdir)/hal \
72 --with-pid-file=/var/run/hald/hald.pid \
73 --with-hwdata=/usr/share/misc \
74 --with-cpufreq \
75 --with-usb-csr \
76 --with-keymaps \
77 --disable-verbose-mode \
78 --disable-policy-kit \
79 --disable-console-kit \
80 --disable-acl-management \
81 --enable-umount-helper \
82 --enable-man-pages \
83 --enable-pci \
84 --enable-sonypic \
85 --enable-hotplug-map \
86 --enable-pcmcia-support \
87 --enable-acpi-proc \
88 --enable-acpi-toshiba \
89 --enable-acpi-ibm \
90 --disable-docbook-docs \
91 --disable-doxygen-docs \
92 || die
93
94 mmake || die
95 }
96
97 src_install()
98 {
99 cd ${SRCDIR}
100
101 # needed directories
102 minstalldir /lib/udev || die
103
104 mmake DESTDIR=${BINDIR} install || die
105
106 # hal umount for unclean unmounts
107 minstallexec -s hal-unmount.dev /lib/udev/hal_unmount || die
108
109 # init
110 minstallrc hald.rc-${RC_CVS_REV} hald || die
111
112 # mark some dirs undeletable
113 mkeepdir /etc/hal/fdi/information || die
114 mkeepdir /etc/hal/fdi/policy || die
115 mkeepdir /etc/hal/fdi/preprobe || die
116 mkeepdir /var/lib/cache/hald || die
117 mkeepdir /var/run/hald || die
118
119 # docs
120 minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die
121 }
122
123 preinstall()
124 {
125 # adds plugdev group
126 ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
127
128 # adds haldaemon user
129 ${MLIBDIR}/mgroupadd -o "-g 301" haldaemon
130 ${MLIBDIR}/museradd -o "-u 301 -g haldaemon -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb -d /dev/null -s /bin/false" haldaemon
131
132 }
133
134 postinstall()
135 {
136 if [[ ! -d ${MROOT}/media ]]
137 then
138 install -d ${MROOT}/media
139 touch ${MROOT}/media/.keep
140 fi
141
142 # make sure that the haldaemon user is in the haldaemons groups
143 # if users have a problem with this, let them file a bug
144 usermod -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb haldaemon
145
146 # fix permissions
147 chown haldaemon:haldaemon ${MROOT}/var/run/hald
148
149 mstartservice hald
150 }
151
152 postremove()
153 {
154 if [ ! -f ${MROOT}/usr/sbin/hald ]
155 then
156 mstopservice hald
157 fi
158 }

Properties

Name Value
svn:keywords Id