Magellan Linux

Annotation of /branches/magellan-0_10_0/core/hal/hal-0.5.12-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3000 - (hide annotations) (download)
Mon Oct 5 18:47:41 2009 UTC (14 years, 8 months ago) by niro
File size: 4012 byte(s)
created branch 'magellan-0_10_0'
1 niro 2931 # $Id$
2    
3     PNAME="hal"
4     PVER="0.5.12"
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.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     mirror://${PNAME}/${PNAME}-${PVER}-set-property-direct.patch
48     )
49    
50     UP2TARBALL="${PNAME}-[0-9]"
51     UP2DATE="updatecmd_freedesktop ${PNAME}"
52    
53     src_prepare()
54     {
55     munpack ${SRCFILE} || die
56     cd ${SRCDIR}
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}-${PVER}-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     # fixes segfaults on mount, see: http://bugs.frugalware.org/task/3783
71     mpatch ${PNAME}-${PVER}-storage-mount-fix-2.patch || die
72    
73     # adds --direct option to hal-set-property, needed by xf86-input-vmmouse
74     mpatch ${PNAME}-${PVER}-set-property-direct.patch || die
75     }
76    
77     src_compile()
78     {
79     cd ${SRCDIR}
80    
81     mconfigure \
82     --libexecdir=/usr/$(mlibdir)/hal \
83     --with-pid-file=/var/run/hald/hald.pid \
84     --with-hwdata=/usr/share/misc \
85     --with-cpufreq \
86     --with-usb-csr \
87     --with-keymaps \
88     --disable-verbose-mode \
89     --disable-policy-kit \
90     --disable-console-kit \
91     --disable-acl-management \
92     --enable-umount-helper \
93     --enable-man-pages \
94     --enable-pci \
95     --enable-sonypic \
96     --enable-hotplug-map \
97     --enable-pcmcia-support \
98     --enable-acpi-proc \
99     --enable-acpi-toshiba \
100     --enable-acpi-ibm \
101     --disable-docbook-docs \
102     --disable-doxygen-docs \
103     || die
104    
105     mmake || die
106     }
107    
108     src_install()
109     {
110     cd ${SRCDIR}
111    
112     # needed directories
113     minstalldir /lib/udev || die
114    
115     mmake DESTDIR=${BINDIR} install || die
116    
117     # hal umount for unclean unmounts
118     minstallexec -s hal-unmount.dev /lib/udev/hal_unmount || die
119    
120     # init
121     minstallrc hald.rc-${RC_CVS_REV} hald || die
122    
123     # mark some dirs undeletable
124     mkeepdir /etc/hal/fdi/information || die
125     mkeepdir /etc/hal/fdi/policy || die
126     mkeepdir /etc/hal/fdi/preprobe || die
127     mkeepdir /var/lib/cache/hald || die
128     mkeepdir /var/run/hald || die
129    
130     # docs
131     minstalldocs AUTHORS COPYING ChangeLog HACKING NEWS README || die
132     }
133    
134     preinstall()
135     {
136     # adds plugdev group
137     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
138    
139     # adds haldaemon user
140     ${MLIBDIR}/mgroupadd -o "-g 301" haldaemon
141     ${MLIBDIR}/museradd -o "-u 301 -g haldaemon -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb -d /dev/null -s /bin/false" haldaemon
142    
143     }
144    
145     postinstall()
146     {
147     if [[ ! -d ${MROOT}/media ]]
148     then
149     install -d ${MROOT}/media
150     touch ${MROOT}/media/.keep
151     fi
152    
153     # make sure that the haldaemon user is in the haldaemons groups
154     # if users have a problem with this, let them file a bug
155     usermod -G haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb haldaemon
156    
157     # fix permissions
158     chown haldaemon:haldaemon ${MROOT}/var/run/hald
159    
160     mstartservice hald
161     }
162    
163     postremove()
164     {
165     if [ ! -f ${MROOT}/usr/sbin/hald ]
166     then
167     mstopservice hald
168     fi
169     }

Properties

Name Value
svn:keywords Id