diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-19 19:30:10 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-19 19:30:10 +0000 |
commit | b323fc0e92e271b155f4caad51ecb4ecf4c14b2a (patch) | |
tree | 7763b2a2a46aeff1439e762abfec539eb8742d26 /games/xpat2 | |
parent | 05824bcfb2945ee98db427e88f552de3c662f940 (diff) | |
download | pkgsrc-b323fc0e92e271b155f4caad51ecb4ecf4c14b2a.tar.gz |
DESTDIR support
Diffstat (limited to 'games/xpat2')
-rw-r--r-- | games/xpat2/Makefile | 11 | ||||
-rw-r--r-- | games/xpat2/distinfo | 4 | ||||
-rw-r--r-- | games/xpat2/patches/patch-aa | 40 |
3 files changed, 27 insertions, 28 deletions
diff --git a/games/xpat2/Makefile b/games/xpat2/Makefile index 7852ed773f0..d05394c831e 100644 --- a/games/xpat2/Makefile +++ b/games/xpat2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2009/04/17 08:21:18 wiz Exp $ +# $NetBSD: Makefile,v 1.25 2010/02/19 19:30:10 joerg Exp $ DISTNAME= xpat2-1.07 PKGREVISION= 3 @@ -11,17 +11,18 @@ COMMENT= X11 solitaire game with 14 variations MAKE_JOBS_SAFE= no PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir -USE_TOOLS+= imake +USE_TOOLS+= imake pax MAKE_ENV+= XPMDIR=${BUILDLINK_PREFIX.libXpm:Q} XMKMF=${XMKMF_CMD:Q} +SETGIDGAME= yes + CONF_FILES_PERMS= /dev/null /var/games/xpat.log ${GAMEOWN} ${GAMEGRP} ${GAMEMODE} MAKE_DIRS= /var/games -post-install: - ${CHOWN} ${GAMEOWN}.${GAMEGRP} ${PREFIX}/bin/xpat2 - ${CHMOD} ${GAMEMODE} ${PREFIX}/bin/xpat2 +SPECIAL_PERMS+= bin/xpat2 ${SETGID_GAMES_PERMS} .include "../../x11/libXaw/buildlink3.mk" .include "../../x11/libXpm/buildlink3.mk" diff --git a/games/xpat2/distinfo b/games/xpat2/distinfo index 8bc8ca74237..d9c43acb4a7 100644 --- a/games/xpat2/distinfo +++ b/games/xpat2/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.5 2007/03/07 01:54:04 rillig Exp $ +$NetBSD: distinfo,v 1.6 2010/02/19 19:30:10 joerg Exp $ SHA1 (xpat2-1.07-src.tar.gz) = a200c526e842bc6dfe5da67d4e49714c21403e9c RMD160 (xpat2-1.07-src.tar.gz) = 79658d1c8372768200ae42f225da0c7fcdcf187c Size (xpat2-1.07-src.tar.gz) = 519326 bytes -SHA1 (patch-aa) = 077dfbbf032e6bb9f05f7245946a1ca7896a359d +SHA1 (patch-aa) = eac6d498efa924cb0aed966a2f3924e7ac432261 SHA1 (patch-ab) = ab30f2db479dcfab41d4283af9fd07467a548f58 SHA1 (patch-ac) = c7bebfc930d2357fdb7c48aca1d2e8b39e9f1e43 diff --git a/games/xpat2/patches/patch-aa b/games/xpat2/patches/patch-aa index c14458ffe19..ba88be268c5 100644 --- a/games/xpat2/patches/patch-aa +++ b/games/xpat2/patches/patch-aa @@ -1,34 +1,32 @@ -$NetBSD: patch-aa,v 1.2 2004/12/03 13:28:22 wiz Exp $ +$NetBSD: patch-aa,v 1.3 2010/02/19 19:30:10 joerg Exp $ ---- src/Imakefile.orig 2000-11-05 20:05:10.000000000 +0100 -+++ src/Imakefile 2004-12-02 23:49:15.000000000 +0100 -@@ -207,12 +207,12 @@ +--- src/Imakefile.orig 2000-11-05 19:05:10.000000000 +0000 ++++ src/Imakefile +@@ -205,23 +205,10 @@ XCOMM X-widget.c additionally requires T + all:: $(MYPROG) + install:: $(MYPROGS) - mkdirhier $(XPATLIBDIR) - chmod 755 $(XPATLIBDIR) +- mkdirhier $(XPATLIBDIR) +- chmod 755 $(XPATLIBDIR) - for f in $(LANGUAGES); do \ - mkdirhier $(APPDEFSDIR)/$$f/app-defaults; \ - cp ../lib/$$f/XPat $(APPDEFSDIR)/$$f/app-defaults; \ - chmod 755 $(APPDEFSDIR)/$$f/app-defaults; \ - chmod 644 $(APPDEFSDIR)/$$f/app-defaults/XPat; \ - done -+# for f in $(LANGUAGES); do \ -+# mkdirhier $(APPDEFSDIR)/$$f/app-defaults; \ -+# cp ../lib/$$f/XPat $(APPDEFSDIR)/$$f/app-defaults; \ -+# chmod 755 $(APPDEFSDIR)/$$f/app-defaults; \ -+# chmod 644 $(APPDEFSDIR)/$$f/app-defaults/XPat; \ -+# done - (cd ../lib; tar cf - * | (cd $(XPATLIBDIR); tar xf -)) - chown -R root $(XPATLIBDIR) - chmod -R a+r $(XPATLIBDIR) -@@ -220,8 +220,8 @@ - chmod 755 $(XPATLIBDIR)/$$f; \ - done - mkdirhier $(XPATMANDIR) +- (cd ../lib; tar cf - * | (cd $(XPATLIBDIR); tar xf -)) +- chown -R root $(XPATLIBDIR) +- chmod -R a+r $(XPATLIBDIR) +- for f in $(LANGUAGES); do \ +- chmod 755 $(XPATLIBDIR)/$$f; \ +- done +- mkdirhier $(XPATMANDIR) - cp xpat2.man $(XPATMANDIR)/xpat2.6x - chmod 644 $(XPATMANDIR)/xpat2.6x -+ cp xpat2.man $(XPATMANDIR)/xpat2.6 -+ chmod 644 $(XPATMANDIR)/xpat2.6 ++ mkdirhier ${DESTDIR}$(XPATLIBDIR) ++ (cd ../lib; pax -rw -pp * ${DESTDIR}$(XPATLIBDIR)) ++ mkdirhier ${DESTDIR}$(XPATMANDIR) ++ ${BSD_INSTALL_MAN} xpat2.man ${DESTDIR}$(XPATMANDIR)/xpat2.6 ComplexProgramTarget($(MYPROG)) InstallAppDefaults(XPat) |