42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Description: Hardware Abstraction Layer
|
|
# URL: http://www.freedesktop.org/wiki/Software/hal
|
|
# Packager: Matt Housh, jaeger at crux dot nu
|
|
# Maintainer: Brett Goulder, predatorfreak at dcaf-security dot org
|
|
# Depends on: dbus-glib
|
|
|
|
name=hal
|
|
version=0.5.11
|
|
release=1
|
|
source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \
|
|
rc.hald)
|
|
|
|
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 \
|
|
--mandir=/usr/man \
|
|
--libexecdir=/usr/lib/$name \
|
|
--localstatedir=/var \
|
|
--with-hal-user=haldaemon \
|
|
--with-hal-group=haldaemon \
|
|
--with-dbus-sys=/usr/etc/dbus-1/system.d \
|
|
--with-hwdata=/usr/share \
|
|
--disable-policy-kit \
|
|
--disable-console-kit
|
|
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}
|
|
# delete pam_console stuff, enable plugdev group
|
|
# policies in place of uid 0
|
|
sed -i -e '48,55d' -e 's/user="0"/group="plugdev"/' \
|
|
$PKG/usr/etc/dbus-1/system.d/hal.conf
|
|
rm -rf $PKG/usr/share/gtk-doc
|
|
mv $PKG/usr/etc/udev $PKG/etc/
|
|
mkdir -p $PKG/var/lib/hal
|
|
chown haldaemon:haldaemon $PKG/var/lib/hal
|
|
}
|