mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
3f55344195
a multi-player curses space warfare game similar to Netrek. PR: 26455 Reviewed by: will
23 lines
400 B
Bash
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
|