From 5c335de784b29aa693451332a4104b27380aa40f Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 14 Feb 2010 21:23:50 +0000 Subject: DESTDIR support. Make binary package friendly. Bump revision. --- games/svb/Makefile | 20 ++++++++++++++------ games/svb/distinfo | 4 ++-- games/svb/patches/patch-aa | 4 ++-- 3 files changed, 18 insertions(+), 10 deletions(-) (limited to 'games') diff --git a/games/svb/Makefile b/games/svb/Makefile index 145ecafad15..e646030b347 100644 --- a/games/svb/Makefile +++ b/games/svb/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.15 2009/05/21 10:58:05 zafer Exp $ +# $NetBSD: Makefile,v 1.16 2010/02/14 21:23:50 joerg Exp $ DISTNAME= svb PKGNAME= svb-1.0 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= games x11 MASTER_SITES= http://ring.nict.go.jp/archives/X/opengroup/R5contrib/ EXTRACT_SUFX= .shar.Z @@ -10,16 +10,24 @@ EXTRACT_SUFX= .shar.Z MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Spy Vs. Bob, the timeless classic +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} USE_IMAKE= yes NO_INSTALL_MANPAGES= yes INSTALLATION_DIRS= bin ${PKGMANDIR}/man6 +MAKE_ENV+= VARBASE=${VARBASE:Q} + +SETGIDGAME= yes + +SPECIAL_PERMS+= bin/svb ${SETGID_GAMES_PERMS} + +CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/svb.scorefile \ + ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} + post-install: - ${INSTALL_GAME_DATA} /dev/null /var/games/svb.scorefile - ${CHOWN} ${GAMEOWN}:${GAMEGRP} ${PREFIX}/bin/svb - ${CHMOD} ${GAMEMODE} ${PREFIX}/bin/svb - ${INSTALL_MAN} ${WRKSRC}/svb.man ${PREFIX}/${PKGMANDIR}/man6/svb.6 + ${INSTALL_MAN} ${WRKSRC}/svb.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/svb.6 .include "../../x11/libX11/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/games/svb/distinfo b/games/svb/distinfo index fe473125db7..872072a367d 100644 --- a/games/svb/distinfo +++ b/games/svb/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.4 2005/12/29 16:20:48 joerg Exp $ +$NetBSD: distinfo,v 1.5 2010/02/14 21:23:50 joerg Exp $ SHA1 (svb.shar.Z) = 9792ca79f49bf21cbe01b01f3fd0645872e646a9 RMD160 (svb.shar.Z) = db792b72e96a826099b9097ee5def2fce6830296 Size (svb.shar.Z) = 17403 bytes -SHA1 (patch-aa) = 0862fa445b83f39631460f9b367bb4337a69fd73 +SHA1 (patch-aa) = 901f65e1b8a4fc634b117064d2dd282dd1fd41a5 SHA1 (patch-ab) = f0c9dc81d9e060e7de06295cc3a6b07779d7f463 diff --git a/games/svb/patches/patch-aa b/games/svb/patches/patch-aa index 1face5fde2e..b50e588d835 100644 --- a/games/svb/patches/patch-aa +++ b/games/svb/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.1 1998/09/07 03:23:09 garbled Exp $ +$NetBSD: patch-aa,v 1.2 2010/02/14 21:23:50 joerg Exp $ --- Imakefile.orig Sun Sep 6 20:07:30 1998 +++ Imakefile Sun Sep 6 20:07:39 1998 @@ -1,7 +1,7 @@ @@ -6,7 +6,7 @@ $NetBSD: patch-aa,v 1.1 1998/09/07 03:23:09 garbled Exp $ OBJS = score.o svs.o LOCAL_LIBRARIES = -lX11 -DEFINES = -DSCOREFILE=\"/tmp/svb.scorefile\" -+DEFINES = -DSCOREFILE=\"/var/games/svb.scorefile\" ++DEFINES = -DSCOREFILE=\"${VARBASE}/games/svb.scorefile\" ComplexProgramTarget(svb) -- cgit v1.2.3