freebsd-ports/net/repeater/files/pkg-install.in
Yen-Ming Lee fd552b84d0 - update to 0.14
PR:		127002
Submitted by:	Rick Richard <rick@sloservers.com>
2008-08-31 16:40:00 +00:00

24 lines
434 B
Bash

#!/bin/sh
# $FreeBSD$
#
PW="/usr/sbin/pw"
CHOWN="/usr/sbin/chown"
CHMOD="/bin/chmod"
MKDIR="/bin/mkdir -p"
NOLOGIN="/usr/sbin/nologin"
REP_USER=%%REP_USER%%
REP_GROUP=%%REP_GROUP%%
case "$2" in
POST-INSTALL)
${PW} groupshow -n ${REP_GROUP} >/dev/null 2>&1 \
|| ${PW} groupadd -n ${REP_GROUP}
${PW} usershow -n ${REP_USER} >/dev/null 2>&1 \
|| ${PW} useradd ${REP_USER} -g ${REP_GROUP} -s ${NOLOGIN}
;;
esac
exit 0