summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-29 23:23:21 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-29 23:23:21 +0000
commit7c7d7d658835b798a39d6613915438ccd868ee2c (patch)
tree20813a4ce816f45aa84f8e5b4541f95fa1b239bd /games
parent26ea797ff15ba518cfc8f0aeebe337aa37da66cf (diff)
downloadpkgsrc-7c7d7d658835b798a39d6613915438ccd868ee2c.tar.gz
DESTDIR support. SETGIDGAMES. Bump revision
Diffstat (limited to 'games')
-rw-r--r--games/jetpack/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/games/jetpack/Makefile b/games/jetpack/Makefile
index 0a3e3756779..f7d76e56c61 100644
--- a/games/jetpack/Makefile
+++ b/games/jetpack/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2008/01/19 09:16:21 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2010/01/29 23:23:21 joerg Exp $
DISTNAME= jetpack
PKGNAME= jetpack-1.0
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= games x11
MASTER_SITES= ftp://qiclab.scn.rain.com/pub/games/
EXTRACT_SUFX= .tar.Z
@@ -10,18 +10,22 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Arcade action game for X Windows
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_IMAKE= yes
NO_INSTALL_MANPAGES= yes
+SETGIDGAME= yes
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man6 share/jetpack
+
+SPECIAL_PERMS+= bin/jetpack ${SETGID_GAMES_PERMS}
-INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
+CONF_FILES_PERM+= /dev/null /var/games/jetpack.scores \
+ ${GAMES_USER} ${GAMES_GROUP} 0664
+OWN_DIRS_PERMS+= ${PREFIX}/share/jetpack ${GAMES_USER} ${GAMES_GROUP} 0775
post-install:
- @${CHOWN} bin:games ${PREFIX}/bin/jetpack
- @${CHOWN} bin:games ${PREFIX}/share/jetpack
- @${CHMOD} 2755 ${PREFIX}/bin/jetpack
- ${INSTALL} -o bin -g games -m 664 /dev/null /var/games/jetpack.scores
- @${CHMOD} 0775 ${PREFIX}/share/jetpack
- ${INSTALL_MAN} ${WRKSRC}/jetpack.man ${PREFIX}/${PKGMANDIR}/man6/jetpack.6
+ ${INSTALL_MAN} ${WRKSRC}/jetpack.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/jetpack.6
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"