CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
hal: fixed issue when the group 'haldaemon' doesn't exists at host
authorJose V Beneyto <sepen@crux.nu>
Tue, 19 Jan 2010 12:08:06 +0000 (13:08 +0100)
committerJose V Beneyto <sepen@crux.nu>
Wed, 20 Jan 2010 07:19:02 +0000 (08:19 +0100)
hal/.footprint
hal/.md5sum
hal/Pkgfile
hal/rc.hald

index 7577eed233d2c95b6439c3f72760acf722681c6b..1ad32e3d27a2dde454974abe97de0dc0a34735d4 100644 (file)
@@ -158,10 +158,10 @@ drwxr-xr-x        root/root       usr/share/hal/fdi/preprobe/10osvendor/
 drwxr-xr-x     root/root       usr/share/hal/fdi/preprobe/20thirdparty/
 drwxr-xr-x     root/root       var/
 drwxr-xr-x     root/root       var/cache/
-drwxr-xr-x     haldaemon/haldaemon     var/cache/hald/
+drwxr-xr-x     root/root       var/cache/hald/
 drwxr-xr-x     root/root       var/lib/
-drwxr-xr-x     haldaemon/haldaemon     var/lib/hal/
+drwxr-xr-x     root/root       var/lib/hal/
 drwxr-xr-x     root/root       var/run/
-drwxr-xr-x     haldaemon/haldaemon     var/run/hald/
+drwxr-xr-x     root/root       var/run/hald/
 drwxr-xr-x     root/root       var/run/hald/hald-local/
 drwxr-xr-x     root/root       var/run/hald/hald-runner/
index 7f6ea3154deedbe04b794a5b3184977663bb596a..046691677a6bead09032f33b6e93f5cd2bb6d216 100644 (file)
@@ -1,3 +1,3 @@
 e9163df591a6f38f59fdbfe33e73bf20  hal-0.5.14.tar.gz
 d8ce27a76d7cb13ce142cdc33816c8bd  hal.conf
-cc3d04e7ac09e15f33c530725f43e641  rc.hald
+293f2b3363f6f564e34451710e608952  rc.hald
index bb0849e57a5296cdf347257d3ced1326974ac59d..f084455f82b477ab7d6cf0ba71b9c4c6fa76f6d9 100644 (file)
@@ -7,7 +7,7 @@
 
 name=hal
 version=0.5.14
-release=1
+release=2
 source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \
         hal.conf rc.hald)
 
@@ -48,6 +48,5 @@ build() {
   rm -rf $PKG/usr/share/gtk-doc
   cp $SRC/hal.conf $PKG/usr/etc/dbus-1/system.d/
   mkdir -p $PKG/var/lib/hal
-  chown haldaemon:haldaemon $PKG/var/lib/hal
 }
 
index 43629ddd1ce3ad2fa7398fdc376efd7b25c4c96f..f340aa3354a25963b6aae9ebcfda2449edc45006 100644 (file)
@@ -3,21 +3,26 @@
 # /etc/rc.d/hald: start/stop HAL daemon
 #
 
+# fix owner/group permisions
+if ! find /var/lib/hal -user haldaemon -group haldaemon 2>/dev/null; then
+  chown haldaemon:haldaemon $PKG/var/lib/hal
+fi
+
 case $1 in
-       start)
-               /usr/sbin/hald --daemon=yes --use-syslog
-               ;;
-       stop)
-               killall -q /usr/sbin/hald
-               ;;
-       restart)
-               $0 stop
-               sleep 2
-               $0 start
-               ;;
-       *)
-               echo "Usage: $0 [start|stop|restart]"
-               ;;
+  start)
+    /usr/sbin/hald --daemon=yes --use-syslog
+    ;;
+  stop)
+    killall -q /usr/sbin/hald
+    ;;
+  restart)
+    $0 stop
+    sleep 2
+    $0 start
+    ;;
+  *)
+    echo "Usage: $0 [start|stop|restart]"
+    ;;
 esac
 
 # End of file