summaryrefslogtreecommitdiff
path: root/games/xblockout
diff options
context:
space:
mode:
authordholland <dholland>2011-12-15 04:18:16 +0000
committerdholland <dholland>2011-12-15 04:18:16 +0000
commite900b67d2778d0028902d26c1a9dd0cdaec93a66 (patch)
treefb8d9b54253efacdd95da784ad2e5dfc62cd8c4e /games/xblockout
parent1a2de625075eeb3ea202ffd03f8ad5de7c000152 (diff)
downloadpkgsrc-e900b67d2778d0028902d26c1a9dd0cdaec93a66.tar.gz
Don't compile in the games group. PKGREVISION++
Diffstat (limited to 'games/xblockout')
-rw-r--r--games/xblockout/Makefile10
-rw-r--r--games/xblockout/distinfo3
-rw-r--r--games/xblockout/patches/patch-score_c18
3 files changed, 22 insertions, 9 deletions
diff --git a/games/xblockout/Makefile b/games/xblockout/Makefile
index 2ed21e37d3b..46b629a65fe 100644
--- a/games/xblockout/Makefile
+++ b/games/xblockout/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2011/06/25 11:32:09 obache Exp $
+# $NetBSD: Makefile,v 1.7 2011/12/15 04:18:16 dholland Exp $
#
DISTNAME= xbl-1.1.6
+PKGREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www710.univ-lyon1.fr/~exco/XBL/
@@ -20,13 +21,6 @@ USE_GAMESGROUP= yes
BUILDLINK_TRANSFORM+= rm:-lXext
INSTALLATION_DIRS= bin lib/X11/app-defaults
-USERGROUP_PHASE= configure
-
-SUBST_CLASSES+= gamegid
-SUBST_STAGE.gamegid= pre-configure
-SUBST_FILES.gamegid= Makefile.in
-SUBST_SED.gamegid= -e 's/@GROUP_GID@/GROUP_GID=${PKG_GID.${GAMES_GROUP}}/g'
-
SPECIAL_PERMS+= bin/xbl ${SETGID_GAMES_PERMS}
OWN_DIRS_PERMS+= ${PREFIX}/lib/X11/xbl ${GAMEDIR_PERMS}
diff --git a/games/xblockout/distinfo b/games/xblockout/distinfo
index b7615056cf8..6dafc3d8d7b 100644
--- a/games/xblockout/distinfo
+++ b/games/xblockout/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2011/06/25 11:32:10 obache Exp $
+$NetBSD: distinfo,v 1.5 2011/12/15 04:18:16 dholland Exp $
SHA1 (xbl-1.1.6.tar.gz) = 05b368c20fd16a99346540a5352a011b56926ef3
RMD160 (xbl-1.1.6.tar.gz) = 4e726544b0e9f2b9481e1e216658fc4412dfbd1c
@@ -6,3 +6,4 @@ Size (xbl-1.1.6.tar.gz) = 136504 bytes
SHA1 (patch-aa) = cc0984980d8a5a5baeac7442e8f9a54f6909b4d8
SHA1 (patch-ab) = c006a72d511f01011666e1caf5173ba1f03b3494
SHA1 (patch-ac) = 5ff43d789bec5d98dc88352c57ae0f40378b0427
+SHA1 (patch-score_c) = 3045e65c8fbc9938929e7b1d8e2822510afc43c7
diff --git a/games/xblockout/patches/patch-score_c b/games/xblockout/patches/patch-score_c
new file mode 100644
index 00000000000..1ca51da55ed
--- /dev/null
+++ b/games/xblockout/patches/patch-score_c
@@ -0,0 +1,18 @@
+$NetBSD: patch-score_c,v 1.1 2011/12/15 04:18:16 dholland Exp $
+
+Don't compile in the games gid.
+
+XXX: this game runs all the time with elevated privs; it should be
+XXX: taught toggle setgid only when needed.
+
+--- score.c~ 2003-08-30 21:23:11.000000000 +0000
++++ score.c
+@@ -306,7 +306,7 @@ int addscore(int x, int y, int z, int p,
+ fd = creat(buf,(mode_t)0644) ;
+ else
+ fd = creat(buf,(mode_t)0664) ;
+- chown( buf,0,GROUP_GID ) ;
++ chown( buf,0, getegid() ) ;
+ }
+ #else
+ {