pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_tarup Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a97a52a2ed1
branches:  trunk
changeset: 531971:2a97a52a2ed1
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 09 13:29:02 2007 +0000

description:
Add DESTDIR support.

diffstat:

 pkgtools/pkg_tarup/Makefile |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r df1c8064a7f5 -r 2a97a52a2ed1 pkgtools/pkg_tarup/Makefile
--- a/pkgtools/pkg_tarup/Makefile       Thu Aug 09 13:25:31 2007 +0000
+++ b/pkgtools/pkg_tarup/Makefile       Thu Aug 09 13:29:02 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2007/02/22 19:27:02 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2007/08/09 13:29:02 joerg Exp $
 
 DISTNAME=      pkg_tarup-1.6.6
 CATEGORIES=    pkgtools
@@ -8,6 +8,8 @@
 MAINTAINER=    hubertf%NetBSD.org@localhost
 COMMENT=       Generates binary package(s) from installed pkg(s)
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}
 EXTRACT_ONLY=  # empty
 NO_CHECKSUM=   yes
@@ -48,8 +50,8 @@
                        > ${WRKSRC}/pkg_tarup.1
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/pkg_tarup ${PREFIX}/bin
-       ${INSTALL_SCRIPT} ${WRKSRC}/pkg_tarup_all ${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/pkg_tarup.1 ${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_SCRIPT} ${WRKSRC}/pkg_tarup ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKSRC}/pkg_tarup_all ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/pkg_tarup.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index