Add DESTDIR support. From Blair Sadewitz by mail.

This commit is contained in:
joerg 2007-07-19 14:54:04 +00:00
parent 365602e4c7
commit ffafa4a9e6
2 changed files with 8 additions and 6 deletions

View file

@ -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"

View file

@ -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"