summaryrefslogtreecommitdiff
path: root/japanese/sj3-server/pkg-install
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2008-02-24 03:11:57 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2008-02-24 03:11:57 +0000
commitfa4a943c17e47bf910596a414fd7287983350b9b (patch)
treedc76cec18a505befc330e612e0a56bf1caa5ca49 /japanese/sj3-server/pkg-install
parent- Fix manpage pointing to correct PREFIX for binary and conf (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_0_0'.release/7.0.0
Notes
Notes: svn path=/head/; revision=207820 svn path=/tags/RELEASE_7_0_0/; revision=207821; tag=release/7.0.0
Diffstat (limited to 'japanese/sj3-server/pkg-install')
-rw-r--r--japanese/sj3-server/pkg-install36
1 files changed, 0 insertions, 36 deletions
diff --git a/japanese/sj3-server/pkg-install b/japanese/sj3-server/pkg-install
deleted file mode 100644
index 800be546af56..000000000000
--- a/japanese/sj3-server/pkg-install
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/sbin
-
-case $2 in
- PRE-INSTALL)
- USER=_sj3
- GROUP=${USER}
- UID=912
- GID=${UID}
-
- 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 "SJ3 Daemon"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
- ;;
-esac