freebsd-ports/games/conquest/pkg-install
Mark Pulford 3f55344195 Add conquest 7.1,
a multi-player curses space warfare game similar
to Netrek.

PR:		26455
Reviewed by:	will
2001-06-10 04:14:04 +00:00

23 lines
400 B
Bash

#!/bin/sh
[ "${PKG_PREFIX}" ] && PREFIX="${PKG_PREFIX}"
[ "${PREFIX}" ] || PREFIX=/usr/local
case "$2" in
PRE-INSTALL)
if ! pw group show conquest >/dev/null 2>&1
then
echo "===> Creating group conquest"
pw add group conquest
fi
;;
POST-INSTALL)
chown root:conquest ${PREFIX}/etc/conquest
chmod 775 ${PREFIX}/etc/conquest
;;
*)
echo "Incorrect parameter"
exit 1
;;
esac