case "${ACTION}" in
post)
	chown nethack:nethack usr/lib/nethack/nethack
	chmod 02755 usr/lib/nethack/nethack
	chmod 0644 etc/nethack/sysconf
	touch var/games/nethack/logfile var/games/nethack/perm var/games/nethack/record var/games/nethack/xlogfile
	chown nethack:nethack var/games/nethack var/games/nethack/*
	chmod 0775 var/games/nethack
	chmod 0664 var/games/nethack/logfile var/games/nethack/perm var/games/nethack/record var/games/nethack/xlogfile
	;;
esac
