1 # $NetBSD: Makefile,v 1.26 2008/09/25 14:02:09 wiz Exp $
4 .include "../../games/nethack-lib/Makefile.common"
6 PKGNAME= nethack-lib-${NETHACK_VERSION}
9 COMMENT= Data files for Nethack
12 CONFIGURE_SCRIPT= ./sys/unix/setup.sh
13 BUILD_TARGET= datastuff
14 INSTALL_TARGET= manpages install-dat
15 INSTALLATION_DIRS= ${PKGMANDIR}/man6
17 # Special handling for the scorefiles: we do not want to delete
18 # them between package installations and deinstallations.
20 # These should eventually migrate to a better location, but keep them
21 # here for now until we lose backward compatibility because of changes
23 CONF_FILES_PERMS+= /dev/null ${VARDIR}/logfile \
24 ${NETHACK_USER} ${NETHACK_GROUP} 664
25 CONF_FILES_PERMS+= /dev/null ${VARDIR}/perm \
26 ${NETHACK_USER} ${NETHACK_GROUP} 664
27 CONF_FILES_PERMS+= /dev/null ${VARDIR}/record \
28 ${NETHACK_USER} ${NETHACK_GROUP} 664
30 REQD_DIRS_PERMS+= ${VARDIR} \
31 ${NETHACK_USER} ${NETHACK_GROUP} 775
32 REQD_DIRS_PERMS+= ${VARDIR}/save \
33 ${NETHACK_USER} ${NETHACK_GROUP} 770
35 CHECK_FILES_SKIP+= ${VARDIR}/logfile \
39 .include "../../mk/bsd.pkg.mk"