Merge from vendor branch TNF:
[pkgsrcv2.git] / games / nethack-lib / Makefile
1 # $NetBSD: Makefile,v 1.26 2008/09/25 14:02:09 wiz Exp $
2 #
3
4 .include                "../../games/nethack-lib/Makefile.common"
5
6 PKGNAME=                nethack-lib-${NETHACK_VERSION}
7 PKGREVISION=            3
8
9 COMMENT=                Data files for Nethack
10
11 HAS_CONFIGURE=          yes
12 CONFIGURE_SCRIPT=       ./sys/unix/setup.sh
13 BUILD_TARGET=           datastuff
14 INSTALL_TARGET=         manpages install-dat
15 INSTALLATION_DIRS=      ${PKGMANDIR}/man6
16
17 # Special handling for the scorefiles: we do not want to delete
18 # them between package installations and deinstallations.
19 #
20 # These should eventually migrate to a better location, but keep them
21 # here for now until we lose backward compatibility because of changes
22 # to the fileformat.
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
29
30 REQD_DIRS_PERMS+=       ${VARDIR}                                       \
31                         ${NETHACK_USER} ${NETHACK_GROUP} 775
32 REQD_DIRS_PERMS+=       ${VARDIR}/save                                  \
33                         ${NETHACK_USER} ${NETHACK_GROUP} 770
34
35 CHECK_FILES_SKIP+=      ${VARDIR}/logfile                               \
36                         ${VARDIR}/perm                                  \
37                         ${VARDIR}/record
38
39 .include "../../mk/bsd.pkg.mk"