diff options
author | joerg <joerg@pkgsrc.org> | 2007-07-19 14:54:04 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-07-19 14:54:04 +0000 |
commit | ffafa4a9e66a7b4782414ad08b5ea96f04761e8d (patch) | |
tree | 1e42006429b49ab6955e133fbc395ed9b90bac32 /archivers | |
parent | 365602e4c72c49d69fd12906c39920060ace8e2d (diff) | |
download | pkgsrc-ffafa4a9e66a7b4782414ad08b5ea96f04761e8d.tar.gz |
Add DESTDIR support. From Blair Sadewitz by mail.
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/gtar-base/Makefile | 9 | ||||
-rw-r--r-- | archivers/gtar-info/Makefile | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/archivers/gtar-base/Makefile b/archivers/gtar-base/Makefile index e55cbd2c76c..5598bb968ee 100644 --- a/archivers/gtar-base/Makefile +++ b/archivers/gtar-base/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.56 2006/12/06 22:49:10 schwarz Exp $ +# $NetBSD: Makefile,v 1.57 2007/07/19 14:54:04 joerg Exp $ DISTNAME= tar-1.15.1 PKGNAME= gtar-base-1.15.1 @@ -13,6 +13,7 @@ COMMENT= The GNU tape archiver with remote magnetic tape support CONFLICTS= gcpio-[0-9]* +PKG_DESTDIR_SUPPORT= user-destdir PKG_INSTALLATION_TYPES= overwrite pkgviews USE_TOOLS+= msgfmt @@ -58,10 +59,10 @@ PLIST_SUBST+= IF_LIBEXEC_RMT="@comment " .endif post-install: - ${INSTALL_DATA} ${FILESDIR}/gtar.1 \ - ${PREFIX}/${PKGMANDIR}/man1/${GTAR_PROGRAM_PREFIX}tar.1 + ${INSTALL_MAN} ${FILESDIR}/gtar.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${GTAR_PROGRAM_PREFIX}tar.1 .if ${GTAR_PROGRAM_PREFIX} != "g" - ${LN} -sf ${GTAR_PROGRAM_PREFIX}tar ${PREFIX}/bin/"gtar" + ${LN} -sf ${DESTDIR}${GTAR_PROGRAM_PREFIX}tar ${DESTDIR}${PREFIX}/bin/"gtar" .endif .include "../../mk/bsd.prefs.mk" diff --git a/archivers/gtar-info/Makefile b/archivers/gtar-info/Makefile index 059e372da41..fb3f0c2151a 100644 --- a/archivers/gtar-info/Makefile +++ b/archivers/gtar-info/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2006/06/18 07:04:16 rillig Exp $ +# $NetBSD: Makefile,v 1.25 2007/07/19 14:54:04 joerg Exp $ # DISTNAME= tar-1.15.1 @@ -12,6 +12,7 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.gnu.org/software/tar/tar.html COMMENT= Info format documentation for the GNU tape archiver +PKG_DESTDIR_SUPPORT= user-destdir PKG_INSTALLATION_TYPES= overwrite pkgviews NO_CONFIGURE= yes @@ -21,6 +22,6 @@ INFO_FILES= yes INSTALLATION_DIRS= ${PKGINFODIR} do-install: - ${INSTALL_DATA} ${WRKSRC}/doc/tar.info ${PREFIX}/${PKGINFODIR} + ${INSTALL_DATA} ${WRKSRC}/doc/tar.info ${DESTDIR}${PREFIX}/${PKGINFODIR} .include "../../mk/bsd.pkg.mk" |