hal: Fix problems related to config, hopefully.

This commit is contained in:
Brett Goulder 2008-05-18 01:46:10 -04:00
parent 705c674329
commit d167ebc20b
3 changed files with 7 additions and 3 deletions

View File

@ -1,2 +1,3 @@
750cf074e88b6fb7012f26d99cd39b9b hal-0.5.11.tar.gz
7cb56ce5687fa8dcdc870821844240eb hal.conf
cc3d04e7ac09e15f33c530725f43e641 rc.hald

View File

@ -6,8 +6,9 @@
name=hal
version=0.5.11
release=2
release=3
source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \
hal.conf
rc.hald)
build() {
@ -30,10 +31,9 @@ build() {
install -D -o root -g root -m 0755 $SRC/rc.hald \
$PKG/etc/rc.d/hald
rm -rf $PKG/usr/share/{doc,locale}
# enable plugdev group policies in place of uid 0
sed -i 's/user="root"/group="pludev"/' $PKG/usr/etc/dbus-1/system.d/hal.conf
rm -rf $PKG/usr/share/gtk-doc
mv $PKG/usr/etc/udev $PKG/etc/
cp $SRC/hal.conf $PKG/usr/etc/dbus-1/system.d/
mkdir -p $PKG/var/lib/hal
chown haldaemon:haldaemon $PKG/var/lib/hal
}

View File

@ -3,6 +3,9 @@
# check for haldaemon group or add one
getent group haldaemon || /usr/sbin/groupadd -g 82 haldaemon
# check for plugdev group or add one
getent group plugdev || /usr/sbin/groupadd plugdev
# check for haldaemon user or add one
getent passwd haldaemon || /usr/sbin/useradd -g haldaemon -u 82 -d /var/empty -s /bin/false -c "HAL Daemon User" haldaemon