2006-09-03 18:44:39 +00:00
|
|
|
# Description: Hardware Abstraction Layer
|
2007-12-07 19:11:54 -06:00
|
|
|
# URL: http://www.freedesktop.org/wiki/Software/hal
|
2008-02-03 16:21:04 -05:00
|
|
|
# Packager: Matt Housh, jaeger at crux dot nu
|
|
|
|
# Maintainer: Brett Goulder, predatorfreak at dcaf-security dot org
|
2008-02-06 10:53:37 -05:00
|
|
|
# Depends on: dbus-glib
|
2006-09-03 18:44:39 +00:00
|
|
|
|
|
|
|
name=hal
|
2007-12-07 19:11:54 -06:00
|
|
|
version=0.5.10
|
2007-05-02 13:14:04 -05:00
|
|
|
release=1
|
2007-12-07 19:11:54 -06:00
|
|
|
source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \
|
2007-05-02 13:14:04 -05:00
|
|
|
rc.hald)
|
2006-09-03 18:44:39 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
|
|
|
|
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
|
|
|
|
./configure --prefix=/usr \
|
2007-05-02 13:14:04 -05:00
|
|
|
--mandir=/usr/man \
|
2006-09-03 18:44:39 +00:00
|
|
|
--libexecdir=/usr/lib/$name \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-hal-user=haldaemon \
|
|
|
|
--with-hal-group=haldaemon \
|
2006-09-11 21:28:04 +00:00
|
|
|
--with-dbus-sys=/usr/etc/dbus-1/system.d \
|
|
|
|
--with-hwdata=/usr/share
|
2006-09-03 18:44:39 +00:00
|
|
|
sed -i -e '/device-manager/d' tools/Makefile
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
install -D -o root -g root -m 0755 $SRC/rc.hald \
|
|
|
|
$PKG/etc/rc.d/hald
|
|
|
|
rm -rf $PKG/usr/share/{doc,locale}
|
2007-12-07 19:11:54 -06:00
|
|
|
# delete pam_console stuff, enable plugdev group
|
|
|
|
# policies in place of uid 0
|
|
|
|
sed -i -e '48,55d' -e 's/user="0"/group="plugdev"/' \
|
2006-09-13 04:17:51 +00:00
|
|
|
$PKG/usr/etc/dbus-1/system.d/hal.conf
|
2007-05-02 13:14:04 -05:00
|
|
|
rm -rf $PKG/usr/share/gtk-doc
|
2007-12-07 19:11:54 -06:00
|
|
|
mv $PKG/usr/etc/udev $PKG/etc/
|
2006-09-03 18:44:39 +00:00
|
|
|
}
|