1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/bin/sh
set -e
SCOREDIR=/var/games/nbsdgames
case "$1" in
configure)
for a in battleship checkers darrt fifteen fisher jewels memoblocks miketron mines muncher pipes rabbithole redsquare reversi snakeduel sos sudoku tugow nbsdgames; do
if ! dpkg-statoverride --list /usr/games/nb${a} >/dev/null; then
dpkg-statoverride --update --add root games 2755 /usr/games/nb${a}
fi
done
# Fix permissions
chown root:games ${SCOREDIR}
chmod 0664 ${SCOREDIR}
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
|