summaryrefslogtreecommitdiff
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
parentUpdate port. DISTFILE name did not change but includes the following (diff)
Somehow I managed to botch pkg-install so the script was in the file twice,
so remove the second instance. Also, scripts/createusergroup is replaced by pkg-install so GC that. Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=55521
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