From eb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4 Mon Sep 17 00:00:00 2001 From: tnut Date: Fri, 9 Apr 2010 18:08:12 +0200 Subject: hal, maj des dépendances et ajout du pre-install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extra/hal/Pkgfile | 2 +- extra/hal/pre-install | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 extra/hal/pre-install (limited to 'extra/hal') 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 + -- cgit v1.2.3-70-g09d2