summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-06-25 22:38:40 +0000
committerjoerg <joerg@pkgsrc.org>2010-06-25 22:38:40 +0000
commit9acbf5309e91a7ff00c5054cff5d3e6831ed4c14 (patch)
tree00f268d519f8bab0597255e5cfe0e8e8f1880aec /games
parent0d5c0fb1e3bd0726dba6edc6a9ee655087a59ade (diff)
downloadpkgsrc-9acbf5309e91a7ff00c5054cff5d3e6831ed4c14.tar.gz
Full DESTDIR support. Bump revision.
Diffstat (limited to 'games')
-rw-r--r--games/tanked/Makefile13
-rw-r--r--games/tanked/distinfo4
-rw-r--r--games/tanked/patches/patch-aa19
3 files changed, 22 insertions, 14 deletions
diff --git a/games/tanked/Makefile b/games/tanked/Makefile
index a1158361a80..61fd10c49dc 100644
--- a/games/tanked/Makefile
+++ b/games/tanked/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.17 2009/06/30 00:07:16 joerg Exp $
+# $NetBSD: Makefile,v 1.18 2010/06/25 22:38:40 joerg Exp $
#
DISTNAME= tanked-0.90
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= games x11
MASTER_SITES= # empty
@@ -10,10 +10,19 @@ MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://ogresoft.dyn.ml.org/tanked.html
COMMENT= Multiplayer internet tank game for X11
+PKG_DESTDIR_SUPPORT= user-destdir
MAKE_JOBS_SAFE= no
USE_TOOLS= imake
SETGIDGAME= yes
+INSTALLATION_DIRS+= bin
+
+SPECIAL_PERMS= bin/tanked ${SETGID_GAMES_PERMS}
+
+.for dir in maps logs
+OWN_DIRS_PERMS+= share/tanked/${dir} \
+ ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
+.endfor
post-patch:
@${TOUCH} ${WRKSRC}/client/tanked.man
diff --git a/games/tanked/distinfo b/games/tanked/distinfo
index c575b585122..a679d51c064 100644
--- a/games/tanked/distinfo
+++ b/games/tanked/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.7 2007/03/06 22:25:16 rillig Exp $
+$NetBSD: distinfo,v 1.8 2010/06/25 22:38:40 joerg Exp $
SHA1 (tanked-0.90.tar.gz) = 781e4d23e5b59bfff53e921e9b20d94a15609f23
RMD160 (tanked-0.90.tar.gz) = 5473310798a9cf4a7403bd90fe9a7c241920baa1
Size (tanked-0.90.tar.gz) = 151105 bytes
-SHA1 (patch-aa) = e4f3ce95a20b1bab3591aa2875244776dfe9e7c5
+SHA1 (patch-aa) = 29d6f519832103df13517ffe611f2d68b4a97553
SHA1 (patch-ab) = f25cd592b5571c4e35d9e3160a1f5bcfacee1ad7
SHA1 (patch-ac) = 097e1252deabeb2a6a9b9981bfb51b9c6c409672
SHA1 (patch-ad) = 09931ca419399dbcbcea690381f7b68916fb0efa
diff --git a/games/tanked/patches/patch-aa b/games/tanked/patches/patch-aa
index c232b45837b..b3e6b5af6ec 100644
--- a/games/tanked/patches/patch-aa
+++ b/games/tanked/patches/patch-aa
@@ -1,17 +1,16 @@
-$NetBSD: patch-aa,v 1.4 2006/04/12 21:30:56 joerg Exp $
+$NetBSD: patch-aa,v 1.5 2010/06/25 22:38:40 joerg Exp $
--- /dev/null Fri Jul 31 02:54:09 1998
+++ Makefile Fri Jul 31 04:12:51 1998
-@@ -0,0 +1,12 @@
+@@ -0,0 +1,11 @@
+all:
+ cd server && ${MAKE}
+ cd client && xmkmf -a && ${MAKE}
+install:
-+ ${BSD_INSTALL_PROGRAM} client/tanked $(PREFIX)/bin
-+ ${BSD_INSTALL_GAME} server/tankedserv $(PREFIX)/bin
-+ ${BSD_INSTALL_GAME_DIR} $(PREFIX)/share/tanked/logs
-+ ${BSD_INSTALL_GAME_DIR} $(PREFIX)/share/tanked/maps
-+ ${BSD_INSTALL_DATA} server/maps/* $(PREFIX)/share/tanked/maps
-+ ${BSD_INSTALL_DATA} server/maps.list $(PREFIX)/share/tanked
-+ ${BSD_INSTALL_DATA} server/.motd $(PREFIX)/share/tanked/motd
-+ ${BSD_INSTALL_DATA} server/.players $(PREFIX)/share/tanked/players
++ ${BSD_INSTALL_PROGRAM} client/tanked ${DESTDIR}$(PREFIX)/bin
++ ${BSD_INSTALL_GAME} server/tankedserv ${DESTDIR}$(PREFIX)/bin
++ ${BSD_INSTALL_GAME_DIR} ${DESTDIR}$(PREFIX)/share/tanked/maps
++ ${BSD_INSTALL_DATA} server/maps/* ${DESTDIR}$(PREFIX)/share/tanked/maps
++ ${BSD_INSTALL_DATA} server/maps.list ${DESTDIR}$(PREFIX)/share/tanked
++ ${BSD_INSTALL_DATA} server/.motd ${DESTDIR}$(PREFIX)/share/tanked/motd
++ ${BSD_INSTALL_DATA} server/.players ${DESTDIR}$(PREFIX)/share/tanked/players