2006-09-03 18:44:39 +00:00
|
|
|
# Description: Hardware Abstraction Layer
|
|
|
|
# URL: http://freedesktop.org/wiki/Software_2fhal
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot nu
|
2006-09-07 22:10:27 +00:00
|
|
|
# Depends on: dbus, dbus-glib
|
2006-09-03 18:44:39 +00:00
|
|
|
|
|
|
|
name=hal
|
2006-09-07 16:03:04 +00:00
|
|
|
version=0.5.7.1
|
2006-09-12 19:38:24 +00:00
|
|
|
release=3
|
2006-09-03 18:44:39 +00:00
|
|
|
source=(http://freedesktop.org/~david/dist/$name-$version.tar.gz \
|
2006-09-13 04:17:51 +00:00
|
|
|
rc.hald $name-$version-dbus-close.patch)
|
2006-09-03 18:44:39 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2006-09-07 16:03:04 +00:00
|
|
|
patch -p1 -i $SRC/$name-$version-dbus-close.patch
|
2006-09-03 18:44:39 +00:00
|
|
|
sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
|
|
|
|
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--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}
|
2006-09-12 19:38:24 +00:00
|
|
|
install -D -m 0644 -o root -g root tools/linux/90-hal.rules \
|
|
|
|
$PKG/etc/udev/rules.d/90-hal.rules
|
2006-09-13 04:17:51 +00:00
|
|
|
sed -i -e '36,43d' -e 's/user="0"/group="plugdev"/' \
|
|
|
|
$PKG/usr/etc/dbus-1/system.d/hal.conf
|
2006-09-03 18:44:39 +00:00
|
|
|
}
|