void-packages/srcpkgs/nethack/INSTALL
Artem Zhurikhin 7896369725 nethack: fix SYSCF_FILE, misc. improvements
- fix xlint
- move *-devel depends to makedepends
- stop overriding CFLAGS in template, patch sys/unix/hints/linux instead
- in particular, stop overriding the SECURE macro defined in hints to
  prevent unauthorized writes as :nethack. rely on build-time HACKDIR
  definition to make /var/games/nethack/ the default playground.
- remove post_extract() since this is already done in hints
- move /usr/lib/nethack/sysconf (SYSCF_FILE) to /etc/nethack/sysconf,
  add it conf_files. fix SYSCF_FILE permissions.
2020-12-15 22:26:47 -03:00

11 lines
463 B
Text

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