diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-14 22:12:59 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-14 22:12:59 +0000 |
commit | 4363bc7b9afefda4d08406d98f52ec0b09ed2a3e (patch) | |
tree | 6ffaf22123105905c3dc28dd7bf9b5280a8c0079 /games | |
parent | 1ed5a0a12a030d9f25cc7059d50b7a66160621a9 (diff) | |
download | pkgsrc-4363bc7b9afefda4d08406d98f52ec0b09ed2a3e.tar.gz |
DESTDIR support. SETGIDGAME. Use ${VARBASE}. Bump revision.
Diffstat (limited to 'games')
-rw-r--r-- | games/xkobo/Makefile | 13 | ||||
-rw-r--r-- | games/xkobo/distinfo | 4 | ||||
-rw-r--r-- | games/xkobo/patches/patch-aa | 33 |
3 files changed, 28 insertions, 22 deletions
diff --git a/games/xkobo/Makefile b/games/xkobo/Makefile index 83c009204e3..0c05197debb 100644 --- a/games/xkobo/Makefile +++ b/games/xkobo/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.20 2007/12/02 00:02:42 wiz Exp $ +# $NetBSD: Makefile,v 1.21 2010/02/14 22:12:59 joerg Exp $ DISTNAME= xkobo-1.11 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_XCONTRIB:=games/} @@ -9,6 +9,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://seki.math.hokudai.ac.jp:20080/xkobo-current.html COMMENT= Multi-way scrolling shoot 'em up game for X. Strangely addictive +PKG_DESTDIR_SUPPORT= user-destdir + +SETGIDGAME= yes +SPECIAL_PERMS+= bin/xoko ${SETGID_GAMES_PERMS} +OWN_DIRS_PERMS+= ${VARBASE}/games/xkobo ${GAMES_USER} ${GAMES_GROUP} \ + ${GAMEDIRMODE} + +MAKE_ENV+= VARBASE=${VARBASE:Q} + USE_IMAKE= yes USE_LANGUAGES= c c++ BUILD_TARGET+= xkobo all diff --git a/games/xkobo/distinfo b/games/xkobo/distinfo index 02ac0210103..52ec5d18c1a 100644 --- a/games/xkobo/distinfo +++ b/games/xkobo/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.7 2005/03/16 20:19:58 rillig Exp $ +$NetBSD: distinfo,v 1.8 2010/02/14 22:12:59 joerg Exp $ SHA1 (xkobo-1.11.tar.gz) = 6ac1c0fe86b7fa524eb86f40b89e86ee6cbe3c5d RMD160 (xkobo-1.11.tar.gz) = 874ed89a6ed7da56f41b3867cf2cc45f0bcf9683 Size (xkobo-1.11.tar.gz) = 71804 bytes -SHA1 (patch-aa) = cef11d9aed457e7f378a995026be5a3c13e2cfce +SHA1 (patch-aa) = 33d9c2777613d97246879284c9308aca1fd71423 SHA1 (patch-ab) = 917df924b7bba819ff90859b3cac302aec055289 SHA1 (patch-ac) = 59794fcdf0b6af8076e0309fdfb0449b35441ea6 SHA1 (patch-ad) = 64f7bf27f5005fca02c0e0c5fc1c30210829750c diff --git a/games/xkobo/patches/patch-aa b/games/xkobo/patches/patch-aa index 134ac42406c..8441c6cfffa 100644 --- a/games/xkobo/patches/patch-aa +++ b/games/xkobo/patches/patch-aa @@ -1,35 +1,32 @@ -$NetBSD: patch-aa,v 1.4 2001/10/18 19:12:40 abs Exp $ +$NetBSD: patch-aa,v 1.5 2010/02/14 22:13:00 joerg Exp $ ---- Imakefile.orig Fri Jan 10 02:29:36 1997 +--- Imakefile.orig 1997-01-10 02:29:36.000000000 +0000 +++ Imakefile -@@ -6,7 +6,7 @@ +@@ -6,7 +6,7 @@ WAIT_MSEC = 30 SHIPS = 5 /* RECORDS */ -HSCORE_DIR = /usr/local/games/xkobo-scores -+HSCORE_DIR = $(LIBDIR)/xkobo-scores ++HSCORE_DIR = $(VARBASE)/games/xkobo-scores /* C++ COMPILER */ /* CXX = g++ */ -@@ -69,15 +69,15 @@ +@@ -67,18 +67,5 @@ xkp256.c: # xkp256.tif + hexdump -v -e '"\t" 8/1 "0x0%02x," "\n"' xkp256.tif >> xkp256.c + echo '};' >> xkp256.c - #ifdef SECURE_SCOREFILES - install:: +-#ifdef SECURE_SCOREFILES +-install:: - if [ -d $(HSCORE_DIR) ]; then chmod 755 $(HSCORE_DIR); \ - else mkdirhier $(HSCORE_DIR); chmod 755 $(HSCORE_DIR); fi - chown $(XKOBO_ADMINISTER) $(BINDIR)/xkobo - chown -R $(XKOBO_ADMINISTER) $(HSCORE_DIR) - chmod 4755 $(BINDIR)/xkobo -+ if [ -d $(HSCORE_DIR) ]; then chmod 775 $(HSCORE_DIR); \ -+ else $(MKDIRHIER) $(HSCORE_DIR); chmod 775 $(HSCORE_DIR); fi -+ chgrp $(XKOBO_ADMINISTER) $(BINDIR)/xkobo -+ chgrp -R $(XKOBO_ADMINISTER) $(HSCORE_DIR) -+ chmod 2755 $(BINDIR)/xkobo - #else /* SECURE_SCOREFILES */ - install:: - if [ -d $(HSCORE_DIR) ]; then chmod 777 $(HSCORE_DIR); \ +-#else /* SECURE_SCOREFILES */ +-install:: +- if [ -d $(HSCORE_DIR) ]; then chmod 777 $(HSCORE_DIR); \ - else mkdirhier $(HSCORE_DIR); chmod 777 $(HSCORE_DIR); fi -+ else $(MKDIRHIER) $(HSCORE_DIR); chmod 777 $(HSCORE_DIR); fi - #endif /* SECURE_SCOREFILES */ - +-#endif /* SECURE_SCOREFILES */ +- clean:: + $(RM) xkobo |