summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg>2006-05-11 14:04:16 +0000
committerjoerg <joerg>2006-05-11 14:04:16 +0000
commita88e11aa77271b6cca45a21ba543c8caf938afe5 (patch)
tree8e2aa27b1ce5c91e0b6b09d77b2cc96f16e7fd0a /games
parente3e99bf8ccdbdcf0383db819202e5c227a78a4c2 (diff)
downloadpkgsrc-a88e11aa77271b6cca45a21ba543c8caf938afe5.tar.gz
Use config file framework for score file, install it with 664.
I haven't changed the package to use setgid game and removed the other-writeable, since such files should not be created under ${LOCALBASE}. Bump revision.
Diffstat (limited to 'games')
-rw-r--r--games/xemeraldia/Makefile10
-rw-r--r--games/xemeraldia/PLIST6
2 files changed, 5 insertions, 11 deletions
diff --git a/games/xemeraldia/Makefile b/games/xemeraldia/Makefile
index f10446b0cac..bd45d4a34e0 100644
--- a/games/xemeraldia/Makefile
+++ b/games/xemeraldia/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2006/02/05 23:09:24 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2006/05/11 14:04:16 joerg Exp $
DISTNAME= xemeraldia-0.3
PKGNAME= xemeraldia-0.31
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= games
MASTER_SITES= ftp://ftp.lab.kdd.co.jp/Usenet/fj.sources/1995/mar/
@@ -20,9 +20,7 @@ GAMES_DIR= share/games
MAKE_ENV+= GAMES_DIR=${GAMES_DIR:Q}
PLIST_SUBST= GAMES_DIR=${GAMES_DIR:Q}
-post-install:
- @${INSTALL_DATA_DIR} ${PREFIX}/${GAMES_DIR}/xemeraldia
- @${TOUCH} ${PREFIX}/${GAMES_DIR}/xemeraldia/xemeraldia.scores
- @${CHMOD} 666 ${PREFIX}/${GAMES_DIR}/xemeraldia/xemeraldia.scores
+CONF_FILES_PERMS+= /dev/null ${PREFIX}/${GAMES_DIR}/xemeraldia/xemeraldia.scores \
+ ${ROOT_USER} games 664
.include "../../mk/bsd.pkg.mk"
diff --git a/games/xemeraldia/PLIST b/games/xemeraldia/PLIST
index 572a7c3368a..82d13ec46ad 100644
--- a/games/xemeraldia/PLIST
+++ b/games/xemeraldia/PLIST
@@ -1,8 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2005/12/05 20:50:18 rillig Exp $
+@comment $NetBSD: PLIST,v 1.6 2006/05/11 14:04:16 joerg Exp $
bin/xemeraldia
lib/X11/app-defaults/XEmeraldia
-@exec ${MKDIR} %D/${GAMES_DIR}/xemeraldia
-@exec touch -f %D/${GAMES_DIR}/xemeraldia/xemeraldia.scores
-@exec ${CHMOD} 666 %D/${GAMES_DIR}/xemeraldia/xemeraldia.scores
-@unexec ${RM} -f %D/${GAMES_DIR}/xemeraldia/xemeraldia.scores
@dirrm ${GAMES_DIR}/xemeraldia