1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/games/conquest/pkg-install
Mark Pulford 8e5dd3ee5e Update to 7.1.2.
PR:		45256
Submitted by:	Mark Linimon <linimon@lonesome.com>
2002-11-19 11:52:40 +00:00

22 lines
380 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)
install -d -o root -g conquest -m 770 /var/games/conquest
;;
*)
echo "Incorrect parameter"
exit 1
;;
esac