summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-04-09 18:08:12 +0200
committertnut <thierryn1 at hispeed dot ch>2010-04-09 18:08:12 +0200
commiteb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4 (patch)
treefa8c332f419815020c90486d7c2fdded9415ff23
parent3e4686acf2b045f015b6265a3598c490a6ff3056 (diff)
downloadnutyx-pakxe-eb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4.tar.gz
nutyx-pakxe-eb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4.tar.bz2
nutyx-pakxe-eb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4.tar.xz
nutyx-pakxe-eb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4.zip
hal, maj des dépendances et ajout du pre-install
-rwxr-xr-xextra/hal/Pkgfile2
-rw-r--r--extra/hal/pre-install14
2 files changed, 15 insertions, 1 deletions
diff --git a/extra/hal/Pkgfile b/extra/hal/Pkgfile
index 350cd6c00..677eb6468 100755
--- a/extra/hal/Pkgfile
+++ b/extra/hal/Pkgfile
@@ -2,7 +2,7 @@
# URL: http://freedesktop.org/wiki/Software_2fhal
# Maintainer: NuTyX coreteam
# Packager: thierryn1 at hispeed dot ch
-# Depends on: dbus-glib, glib, usbutils, pciutils, libusb, eject, hal-info
+# Depends on: dbus-glib, glib, usbutils, pciutils, libusb, eject, hal-info, gperf
name=hal
version=0.5.13
diff --git a/extra/hal/pre-install b/extra/hal/pre-install
new file mode 100644
index 000000000..986157172
--- /dev/null
+++ b/extra/hal/pre-install
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# check for haldaemon group or add one
+getent group haldaemon || /usr/sbin/groupadd -g 19 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 19 -d /var/empty -s /bin/false -c "HAL Daemon User" haldaemon
+
+# lock the account
+/bin/passwd -l haldaemon
+