summaryrefslogblamecommitdiff
path: root/games/conquest/pkg-install
blob: 2df17c83720ddbd9534f0e342408e6f46d5bc589 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                             
                                                                         





                                          
#!/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