summaryrefslogtreecommitdiff
path: root/games/xpipeman
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 06:59:03 +0000
committerjlam <jlam>2008-03-04 06:59:03 +0000
commit769a84077c1badca9f84e031b0acccd322865a99 (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/xpipeman
parent7b123f326cdc00a4b734669b2ce16963198987ed (diff)
downloadpkgsrc-769a84077c1badca9f84e031b0acccd322865a99.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/xpipeman')
-rw-r--r--games/xpipeman/Makefile24
-rw-r--r--games/xpipeman/PLIST5
2 files changed, 18 insertions, 11 deletions
diff --git a/games/xpipeman/Makefile b/games/xpipeman/Makefile
index 2be821ae94a..fab2b06bed9 100644
--- a/games/xpipeman/Makefile
+++ b/games/xpipeman/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2008/01/19 09:16:23 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2008/03/04 06:59:06 jlam Exp $
#
DISTNAME= xpipeman-1.5
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= games x11
MASTER_SITES= ${MASTER_SITE_SUNSITE:=games/strategy/}
@@ -11,19 +11,25 @@ MAINTAINER= pkgsrc-users@NetBSD.org
# domain squatted, page last updated 1999
COMMENT= Connect the pipes to contain the water flow game for X11
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/xpipeman
USE_IMAKE= yes
+SETGIDGAME= yes
+CONF_FILES_PERMS= share/xpipeman/xpipescores /var/games/xpipescores \
+ ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
+SPECIAL_PERMS= bin/xpipeman ${SETGID_GAMES_PERMS}
+REQD_DIRS_PERMS= share/xpipeman ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
+
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
do-install:
- ${INSTALL} -o bin -g games -m 2755 ${WRKSRC}/xpipeman \
- ${PREFIX}/bin/xpipeman
- ${INSTALL_MAN} ${WRKSRC}/xpipeman.man ${PREFIX}/${PKGMANDIR}/man6/xpipeman.6
- ${INSTALL} -d -o bin -g games -m 0775 ${PREFIX}/share/xpipeman
- if [ ! -r /var/games/xpipescores ]; then \
- ${INSTALL} -o bin -g games -m 0664 ${WRKSRC}/xpipescores /var/games ; \
- fi
+ ${INSTALL_PROGRAM} ${WRKSRC}/xpipeman ${DESTDIR}${PREFIX}/bin/xpipeman
+ ${INSTALL_MAN} ${WRKSRC}/xpipeman.man \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xpipeman.6
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/xpipeman
+ ${INSTALL_DATA} ${WRKSRC}/xpipescores ${DESTDIR}${PREFIX}/share/xpipeman
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
diff --git a/games/xpipeman/PLIST b/games/xpipeman/PLIST
index 99328877568..b7f0cf67e1b 100644
--- a/games/xpipeman/PLIST
+++ b/games/xpipeman/PLIST
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 00:57:28 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2008/03/04 07:01:16 jlam Exp $
bin/xpipeman
man/man6/xpipeman.6
-@dirrm share/xpipeman
+share/examples/xpipeman/xpipescores
+@dirrm share/examples/xpipeman