aboutsummaryrefslogtreecommitdiff
path: root/net/spread4
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2002-03-04 13:50:21 +0000
committerPete Fritchman <petef@FreeBSD.org>2002-03-04 13:50:21 +0000
commit83a78f4b3f15bd2ee0711761e1360a66417a24bb (patch)
tree814feea1a2f2b75bfbc2fff7e17be997f7837df0 /net/spread4
parent1afd4529c1b741e9742e75ad7bd3a1081b57f263 (diff)
downloadports-83a78f4b3f15bd2ee0711761e1360a66417a24bb.tar.gz
ports-83a78f4b3f15bd2ee0711761e1360a66417a24bb.zip
Notes
Diffstat (limited to 'net/spread4')
-rw-r--r--net/spread4/pkg-install51
-rw-r--r--net/spread4/scripts/createusergroup37
2 files changed, 0 insertions, 88 deletions
diff --git a/net/spread4/pkg-install b/net/spread4/pkg-install
index 52ce661bb46e..fbbf68fd7932 100644
--- a/net/spread4/pkg-install
+++ b/net/spread4/pkg-install
@@ -49,54 +49,3 @@ POST-INSTALL)
echo 'unexpect argument to pkg-install'
;;
esac
-#!/bin/sh
-
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
-USER=spread
-USER_HOMEDIR=/nonexistent
-GROUP=spread
-RUNDIR=/var/run/spread
-NOLOGIN=/sbin/nologin
-
-case $2 in
-PRE-INSTALL)
- 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}; 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."
- if pw usermod ${USER} -d ${USER_HOMEDIR}
- then
- echo "Changed home directory of \"${USER}\" to \"${USER_HOMEDIR}\"."
- else
- echo "Changing home directory of \"${USER}\" to \"${USER_HOMEDIR}\" failed."
- exit 1
- fi
- else
- if pw useradd ${USER} -g ${GROUP} -h - \
- -d ${USER_HOMEDIR} -s ${NOLOGIN} -c "Spread User"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
- ;;
-POST-INSTALL)
- if [ ! -d ${RUNDIR} ]; then
- install -d -o ${USER} -g ${GROUP} -m 0750 ${RUNDIR}
- fi
- ;;
-*)
- echo 'unexpect argument to pkg-install'
- ;;
-esac
diff --git a/net/spread4/scripts/createusergroup b/net/spread4/scripts/createusergroup
deleted file mode 100644
index a34b27d5de10..000000000000
--- a/net/spread4/scripts/createusergroup
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/sbin
-
-USER=spread
-USER_HOMEDIR=/nonexistent
-GROUP=spread
-
-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}; 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."
- if pw usermod ${USER} -d ${USER_HOMEDIR}
- then
- echo "Changed home directory of \"${USER}\" to \"${USER_HOMEDIR}\"."
- else
- echo "Changing home directory of \"${USER}\" to \"${USER_HOMEDIR}\" failed."
- exit 1
- fi
-else
- if pw useradd ${USER} -g ${GROUP} -h - \
- -d ${USER_HOMEDIR} -s /sbin/nologin -c "Spread User"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- fi
-fi