diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-14 21:52:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-14 21:52:53 +0000 |
commit | 9122de1350cc8f4a5b2edc59840047681d8ffe3e (patch) | |
tree | 1953785649486a21a38e3a05a57ea443c2c929da /games | |
parent | ede98aba58699685f026d38bc763fd1de15656d6 (diff) | |
download | pkgsrc-9122de1350cc8f4a5b2edc59840047681d8ffe3e.tar.gz |
DESTDIR support. SETGIDGAME.
Diffstat (limited to 'games')
-rw-r--r-- | games/xboing/Makefile | 18 | ||||
-rw-r--r-- | games/xboing/distinfo | 4 | ||||
-rw-r--r-- | games/xboing/patches/patch-aa | 8 |
3 files changed, 17 insertions, 13 deletions
diff --git a/games/xboing/Makefile b/games/xboing/Makefile index 38d2e8398e7..c89c838b613 100644 --- a/games/xboing/Makefile +++ b/games/xboing/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.26 2008/02/12 08:03:49 rillig Exp $ +# $NetBSD: Makefile,v 1.27 2010/02/14 21:52:53 joerg Exp $ # DISTNAME= xboing2.4 PKGNAME= xboing-2.4 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= games x11 MASTER_SITES= ${MASTER_SITE_XCONTRIB:=games/} @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.techrescue.org/xboing/ COMMENT= Breakout style game for X11 +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/xboing USE_IMAKE= YES @@ -19,12 +21,16 @@ AUTO_MKDIRS= yes MAKE_DIRS= ${VARBASE}/games MAKE_ENV+= VARBASE=${VARBASE} -BUILD_DEFS+= VARBASE GAMEMODE +BUILD_DEFS+= VARBASE + +SETGIDGAME= yes +SPECIAL_PERMS+= bin/xboing ${SETGID_GAMES_PERMS} + +CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/xboing.scr \ + ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} post-install: - ${CHOWN} ${GAMEOWN}:${GAMEGRP} ${PREFIX}/bin/xboing - ${CHMOD} ${GAMEMODE} ${PREFIX}/bin/xboing - ${INSTALL_MAN} ${WRKSRC}/xboing.man ${PREFIX}/${PKGMANDIR}/man6/xboing.6 + ${INSTALL_MAN} ${WRKSRC}/xboing.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xboing.6 .include "../../x11/libXext/buildlink3.mk" .include "../../x11/libXpm/buildlink3.mk" diff --git a/games/xboing/distinfo b/games/xboing/distinfo index fd77668dfff..f7d22457894 100644 --- a/games/xboing/distinfo +++ b/games/xboing/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.10 2006/01/12 23:49:45 joerg Exp $ +$NetBSD: distinfo,v 1.11 2010/02/14 21:52:53 joerg Exp $ SHA1 (xboing2.4.tar.gz) = 57fad37ab99e6a3ff87ff814d0de1baad3b93b91 RMD160 (xboing2.4.tar.gz) = 3aa027dd7a7abe9b4119362a1c8b5fb968971567 Size (xboing2.4.tar.gz) = 588811 bytes -SHA1 (patch-aa) = 6a4523f40fe2fb7c107773cddbaa8912a2137a71 +SHA1 (patch-aa) = d28a7f42480fba31f703ef1e4327142de3b7579b SHA1 (patch-ab) = 70d125ef4d34ad0dc92556b59cf6e4165d96004c SHA1 (patch-ac) = 97ac52a5f8095178f690a33df6ede70498c28fb7 SHA1 (patch-ad) = 444331ce4cbca8e291331bc3d5e698e9f01d8f6e diff --git a/games/xboing/patches/patch-aa b/games/xboing/patches/patch-aa index eecdbace692..e4166552271 100644 --- a/games/xboing/patches/patch-aa +++ b/games/xboing/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.9 2006/01/12 23:49:45 joerg Exp $ +$NetBSD: patch-aa,v 1.10 2010/02/14 21:52:53 joerg Exp $ --- Imakefile.orig 1996-11-22 01:28:46.000000000 +0000 +++ Imakefile @@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.9 2006/01/12 23:49:45 joerg Exp $ XCOMM placed. Default will be the current directory. - XBOING_DIR = . -+ XBOING_DIR = $(X11PREFIX)/share/xboing ++ XBOING_DIR = ${DESTDIR}$(X11PREFIX)/share/xboing XCOMM These are some defines that must be set. Some may be overwritten in the XCOMM machine arch section. @@ -65,14 +65,12 @@ $NetBSD: patch-aa,v 1.9 2006/01/12 23:49:45 joerg Exp $ XCOMM -DNEED_USLEEP=\"True\" \ XCOMM -DNO_LOCKING=\"True\" -@@ -204,8 +204,8 @@ install:: $(PROGRAMS) +@@ -204,8 +204,6 @@ install:: $(PROGRAMS) fi @: @echo "Creating a highscore file " $(HIGH_SCORE_FILE) - @touch $(HIGH_SCORE_FILE); - @chmod a+rw $(HIGH_SCORE_FILE); -+ @touch xboing.scr -+ @${BSD_INSTALL_GAME_DATA} xboing.scr $(HIGH_SCORE_FILE); XCOMM I use this for my daily backup of my code. |