summaryrefslogtreecommitdiffstats
path: root/sysutils/hal/files/pkg-install.in
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-01-12 01:51:34 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-01-12 01:51:34 +0800
commit2f836c64a2940e1460834c4085ba6d418001bf17 (patch)
tree81909a3bce2caf57600151b32c8dcb1e7735c28c /sysutils/hal/files/pkg-install.in
parent262752d178a4a70c9cd941f23ee5052d0e8968d9 (diff)
downloadmarcuscom-ports-2f836c64a2940e1460834c4085ba6d418001bf17.tar
marcuscom-ports-2f836c64a2940e1460834c4085ba6d418001bf17.tar.gz
marcuscom-ports-2f836c64a2940e1460834c4085ba6d418001bf17.tar.bz2
marcuscom-ports-2f836c64a2940e1460834c4085ba6d418001bf17.tar.lz
marcuscom-ports-2f836c64a2940e1460834c4085ba6d418001bf17.tar.xz
marcuscom-ports-2f836c64a2940e1460834c4085ba6d418001bf17.tar.zst
marcuscom-ports-2f836c64a2940e1460834c4085ba6d418001bf17.zip
Remove these ports now that they have been merged into the FreeBSD ports
tree. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11869 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/hal/files/pkg-install.in')
-rw-r--r--sysutils/hal/files/pkg-install.in50
1 files changed, 0 insertions, 50 deletions
diff --git a/sysutils/hal/files/pkg-install.in b/sysutils/hal/files/pkg-install.in
deleted file mode 100644
index 0935c06e1..000000000
--- a/sysutils/hal/files/pkg-install.in
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-case $2 in
-POST-INSTALL)
- USER=haldaemon
- GROUP=${USER}
- UID=560
- GID=${UID}
- PW=/usr/sbin/pw
-
- if ${PW} group show "${GROUP}" 2>/dev/null; then
- echo "You already have a group \"${GROUP}\", so I will use it."
- else
- if ${PW} groupadd ${GROUP} -g ${GID}; then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- exit 1
- fi
- fi
-
- if ${PW} user show "${USER}" 2>/dev/null; then
- echo "You already have a user \"${USER}\", so I will use it."
- else
- if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -d "/nonexistent" -s /sbin/nologin -c "HAL Daemon User"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
-
- /usr/bin/install -d -o ${USER} -g ${GROUP} /var/run/hald
- /usr/bin/install -d -o ${USER} -g ${GROUP} /var/cache/hald
- /usr/bin/install -d -o ${USER} -g ${GROUP} /var/lib/hal
-
- for pair in %%RC_FILES%%; do
- file=`echo $pair | cut -f 1 -d :`
- destdir=`echo $pair | cut -f 2 -d :`
-
- if [ ! -f $destdir/$file ]; then
- mkdir -p $destdir
- cp -p %%DATADIR%%/dist/$file $destdir/$file
- fi
- done
- exit 0
- ;;
-esac