1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/irc/ptlink-services/pkg-install
Pav Lucistnik df9ca56f4d - Update to 3.4.1
PR:		ports/85974
Submitted by:	Dennis Cabooter <dennis@rootxs.org> (maintainer)
2005-09-18 15:21:38 +00:00

29 lines
552 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
case $2 in
POST-INSTALL)
USER=ircd
GROUP=ircd
UID=72
GID=72
if pw groupshow "${GROUP}" > /dev/null 2>&1; then
echo "===> Using existing group ${GROUP}"
else
echo "===> Adding group ${GROUP}"
pw groupadd ${GROUP} -g ${GID} || exit 1
fi
if pw usershow "${USER}" > /dev/null 2>&1; then
echo "===> Using existing user ${USER}"
else
echo "===> Adding user ${USER}"
pw adduser ${USER} -u ${UID} -g ${GROUP} -h - -d "/nonexistent" \
-s "/nonexistent" -c "IRC daemon" || exit 1
fi
;;
esac