summaryrefslogtreecommitdiff
path: root/games/moria/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2010-06-25 22:12:31 +0000
committerjoerg <joerg>2010-06-25 22:12:31 +0000
commitb4fda757c67a9faa51a25238f6a93248e3c657c7 (patch)
tree319bbdb018a42e352e171d2f53b74470b299408d /games/moria/Makefile
parentfdfdec980e83ab71b5ac1acc234417a8451e18ca (diff)
downloadpkgsrc-b4fda757c67a9faa51a25238f6a93248e3c657c7.tar.gz
DESTDIR suport. SETGIDGAME. Bump revision.
Diffstat (limited to 'games/moria/Makefile')
-rw-r--r--games/moria/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/games/moria/Makefile b/games/moria/Makefile
index 299824ea80c..2fd55540a53 100644
--- a/games/moria/Makefile
+++ b/games/moria/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2007/03/24 19:21:24 joerg Exp $
+# $NetBSD: Makefile,v 1.12 2010/06/25 22:12:31 joerg Exp $
DISTNAME= um5.5.2
PKGNAME= moria-5.5.2
+PKGREVISION= 1
CATEGORIES= games
# The "offical" master site has lost the pub/Games directory.
#MASTER_SITES= ftp://ftp.cis.ksu.edu/pub/Games/Moria/source/
@@ -12,20 +13,21 @@ MAINTAINER= simonb@NetBSD.org
HOMEPAGE= http://www-math.bgsu.edu/~grabine/moria.html
COMMENT= Rogue-like game with a different sense of scale than Rogue
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/umoria
MAKE_FLAGS+= CURSES=-lncurses
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
+SETGIDGAME= yes
+CONF_FILES_PERMS+= /dev/null /var/games/moria.scores \
+ ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
+SPECIAL_PERMS= bin/moria ${SETGID_GAMES_PERMS}
+
do-configure:
@${RM} -f ${WRKSRC}/*.[ch] ${WRKSRC}/Makefile
@cd ${WRKSRC}; ${LN} -s source/* unix/* .
-post-install:
- @if [ ! -f /var/games/moria.scores ]; then \
- ${CP} -p ${PREFIX}/share/games/moria/scores.dist \
- /var/games/moria.scores ; \
- fi
-
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"