summaryrefslogtreecommitdiff
path: root/games/nethack-lib
diff options
context:
space:
mode:
authorpooka <pooka>2003-10-14 13:42:18 +0000
committerpooka <pooka>2003-10-14 13:42:18 +0000
commit1cce1cd6e40089008212f1c0caa796a01e21bed1 (patch)
tree0501bab8df4c039677abe0170e978b45b37c55fa /games/nethack-lib
parent38d8348878d6a2f4e522c412d9dba7dc50ca186e (diff)
downloadpkgsrc-1cce1cd6e40089008212f1c0caa796a01e21bed1.tar.gz
Add handling for the nethack directories plus record and logfile to make
them have the correct permission bits set when using binary packages. Thanks go to Damian Sweeney for noticing the problem and at least grant, salo and wiz for beating me with a cluestick so that I could fix it. manually bump version to 3.4.2nb1
Diffstat (limited to 'games/nethack-lib')
-rw-r--r--games/nethack-lib/Makefile14
-rw-r--r--games/nethack-lib/Makefile.common4
2 files changed, 15 insertions, 3 deletions
diff --git a/games/nethack-lib/Makefile b/games/nethack-lib/Makefile
index c73b4b89147..4de8466b406 100644
--- a/games/nethack-lib/Makefile
+++ b/games/nethack-lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2003/07/21 16:49:57 martti Exp $
+# $NetBSD: Makefile,v 1.15 2003/10/14 13:42:18 pooka Exp $
#
.include "../nethack-lib/Makefile.common"
@@ -13,4 +13,16 @@ CONFIGURE_SCRIPT= ./sys/unix/setup.sh
ALL_TARGET= datastuff
INSTALL_TARGET= manpages install-dat
+USE_PKGINSTALL= yes
+
+SUPPORT_FILES_PERMS+= /dev/null ${PREFIX}/share/${NETHACK_DIR}/record \
+ ${ROOT_USER} games 664
+SUPPORT_FILES_PERMS+= /dev/null ${PREFIX}/share/${NETHACK_DIR}/logfile \
+ ${ROOT_USER} games 664
+
+MAKE_DIRS_PERMS+= ${PREFIX}/share/${NETHACK_DIR} \
+ ${ROOT_USER} games 775
+MAKE_DIRS_PERMS+= ${PREFIX}/share/${NETHACK_DIR}/save \
+ ${ROOT_USER} games 770
+
.include "../../mk/bsd.pkg.mk"
diff --git a/games/nethack-lib/Makefile.common b/games/nethack-lib/Makefile.common
index 9b0ca7db8cf..ce94aea6634 100644
--- a/games/nethack-lib/Makefile.common
+++ b/games/nethack-lib/Makefile.common
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile.common,v 1.13 2003/09/02 00:30:54 pooka Exp $
+# $NetBSD: Makefile.common,v 1.14 2003/10/14 13:42:18 pooka Exp $
#
NETHACK_BASEVER= 3.4.2
-NETHACK_VERSION= ${NETHACK_BASEVER}
+NETHACK_VERSION= ${NETHACK_BASEVER}nb1
NETHACK_DISTVER= 342
NETHACK_DIR= nethackdir340