diff options
author | joerg <joerg> | 2009-02-10 00:15:20 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-02-10 00:15:20 +0000 |
commit | 359a79f607564927f71cce228d1f67557dc005b6 (patch) | |
tree | 358f223f0d7371453e72bde739981a6f0c338518 | |
parent | bfe7a7a97fe90ccca20e30577c94b50f762e31ff (diff) | |
download | pkgsrc-359a79f607564927f71cce228d1f67557dc005b6.tar.gz |
DESTDIR support
-rw-r--r-- | pkgtools/pkg_filecheck/Makefile | 20 | ||||
-rw-r--r-- | pkgtools/pkg_rolling-replace/Makefile | 7 | ||||
-rw-r--r-- | pkgtools/pkgdep/Makefile | 6 | ||||
-rw-r--r-- | pkgtools/pkgdepgraph/Makefile | 11 | ||||
-rw-r--r-- | pkgtools/port2pkg/Makefile | 14 |
5 files changed, 33 insertions, 25 deletions
diff --git a/pkgtools/pkg_filecheck/Makefile b/pkgtools/pkg_filecheck/Makefile index 4702fe15c04..4c54b42db0d 100644 --- a/pkgtools/pkg_filecheck/Makefile +++ b/pkgtools/pkg_filecheck/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2008/05/25 13:16:11 dillo Exp $ +# $NetBSD: Makefile,v 1.30 2009/02/10 00:15:20 joerg Exp $ # DISTNAME= pkg_filecheck-0.4 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org #HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/ COMMENT= Check for files not owned by any package +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} USE_TOOLS+= perl:run USE_FEATURES= fts_open @@ -23,7 +25,8 @@ FILES_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q} CONF_FILES= ${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf \ ${PKG_SYSCONFDIR}/pkg_filecheck.conf -INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 +INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 \ + share/examples/pkg_filecheck SUBST_CLASSES+= paths SUBST_FILES.paths= builddb.pl builddb.1 pkg_filecheck.conf @@ -47,14 +50,13 @@ do-build: -o pkg_filecheck pkg_filecheck.c do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/builddb.pl ${PREFIX}/bin/builddb - ${INSTALL_PROGRAM} ${WRKSRC}/pkg_filecheck ${PREFIX}/bin/pkg_filecheck - ${INSTALL_MAN} ${WRKSRC}/builddb.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.1 ${PREFIX}/${PKGMANDIR}/man1 - ${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.conf.5 ${PREFIX}/${PKGMANDIR}/man5 - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pkg_filecheck + ${INSTALL_SCRIPT} ${WRKSRC}/builddb.pl ${DESTDIR}${PREFIX}/bin/builddb + ${INSTALL_PROGRAM} ${WRKSRC}/pkg_filecheck ${DESTDIR}${PREFIX}/bin/pkg_filecheck + ${INSTALL_MAN} ${WRKSRC}/builddb.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_MAN} ${WRKSRC}/pkg_filecheck.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5 ${INSTALL_DATA} ${WRKSRC}/pkg_filecheck.conf \ - ${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf + ${DESTDIR}${PREFIX}/share/examples/pkg_filecheck/pkg_filecheck.conf .include "../../mk/bdb.buildlink3.mk" diff --git a/pkgtools/pkg_rolling-replace/Makefile b/pkgtools/pkg_rolling-replace/Makefile index b4977731855..6639c563e04 100644 --- a/pkgtools/pkg_rolling-replace/Makefile +++ b/pkgtools/pkg_rolling-replace/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2008/06/22 12:49:53 gdt Exp $ +# $NetBSD: Makefile,v 1.22 2009/02/10 00:16:01 joerg Exp $ DISTNAME= pkg_rolling-replace-0.16 PKGREVISION= 2 @@ -13,6 +13,7 @@ DEPENDS+= pkg_chk>=1.76:../../pkgtools/pkg_chk DEPENDS+= pkg_tarup>=1.6.6:../../pkgtools/pkg_tarup PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir USE_TOOLS+= patch @@ -53,8 +54,8 @@ do-extract: do-install: ${INSTALL_SCRIPT} ${WRKSRC}/pkg_rolling-replace.sh \ - ${PREFIX}/sbin/pkg_rolling-replace + ${DESTDIR}${PREFIX}/sbin/pkg_rolling-replace ${INSTALL_MAN} ${WRKSRC}/pkg_rolling-replace.8 \ - ${PREFIX}/${PKGMANDIR}/man8/pkg_rolling-replace.8 + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/pkg_rolling-replace.8 .include "../../mk/bsd.pkg.mk" diff --git a/pkgtools/pkgdep/Makefile b/pkgtools/pkgdep/Makefile index e7f0c713893..bd0f043ffdc 100644 --- a/pkgtools/pkgdep/Makefile +++ b/pkgtools/pkgdep/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2006/09/03 00:56:30 wiz Exp $ +# $NetBSD: Makefile,v 1.13 2009/02/10 00:17:08 joerg Exp $ # DISTNAME= pkgdep-1.0 @@ -9,6 +9,8 @@ DISTFILES= # empty MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Script for displaying dependence information on software packages +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} USE_TOOLS+= perl:run @@ -24,6 +26,6 @@ do-build: # ${FILESDIR}/pkgdep.pl > ${WRKDIR}/pkgdep do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/pkgdep ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/pkgdep ${DESTDIR}${PREFIX}/bin .include "../../mk/bsd.pkg.mk" diff --git a/pkgtools/pkgdepgraph/Makefile b/pkgtools/pkgdepgraph/Makefile index e46789cc11b..75d4117dbba 100644 --- a/pkgtools/pkgdepgraph/Makefile +++ b/pkgtools/pkgdepgraph/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2007/01/07 09:14:09 rillig Exp $ +# $NetBSD: Makefile,v 1.24 2009/02/10 00:17:11 joerg Exp $ # DISTNAME= pkgdepgraph-2.8 @@ -10,6 +10,8 @@ MAINTAINER= atatat@NetBSD.org HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/doc/pkgsrc.html COMMENT= Visual representation of installed NetBSD packages +PKG_DESTDIR_SUPPORT= user-destdir + # removed so that pkgdepgraph can be used on "client" machines -- @@@ # DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz @@ -17,7 +19,6 @@ WRKSRC= ${WRKDIR} USE_TOOLS+= perl:run EXTRACT_ONLY= # empty -NO_CHECKSUM= yes NO_CONFIGURE= yes DISTVER= ${DISTNAME:S/pkgdepgraph-//} @@ -52,8 +53,8 @@ do-build: .endif do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/pkgdepgraph ${PREFIX}/bin/pkgdepgraph - ${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.0 ${PREFIX}/${PKGMANDIR}/cat1 - ${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_SCRIPT} ${WRKSRC}/pkgdepgraph ${DESTDIR}${PREFIX}/bin/pkgdepgraph + ${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1 + ${INSTALL_MAN} ${WRKSRC}/pkgdepgraph.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .include "../../mk/bsd.pkg.mk" diff --git a/pkgtools/port2pkg/Makefile b/pkgtools/port2pkg/Makefile index 4968bba6b96..2ed72d1ab22 100644 --- a/pkgtools/port2pkg/Makefile +++ b/pkgtools/port2pkg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2008/02/28 11:58:49 rillig Exp $ +# $NetBSD: Makefile,v 1.34 2009/02/10 00:19:50 joerg Exp $ # DISTNAME= port2pkg-1.11 @@ -10,13 +10,15 @@ DISTFILES= # empty MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Convert from a FreeBSD port to a NetBSD package +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= pkglint-[0-9]*:../../pkgtools/pkglint WRKSRC= ${WRKDIR} -NO_CHECKSUM= yes NO_BUILD= yes USE_TOOLS+= gtar perl:run -AUTO_MKDIRS= yes + +INSTALLATION_DIRS= bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1 do-extract: cd ${FILESDIR} && cp port2pkg.* ${WRKSRC} @@ -27,8 +29,8 @@ SUBST_FILES.gtar= port2pkg.pl SUBST_SED.gtar= -e 's|$${GTAR}|${GTAR}|g' do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/port2pkg.pl ${PREFIX}/bin/port2pkg - ${INSTALL_MAN} ${WRKSRC}/port2pkg.0 ${PREFIX}/${PKGMANDIR}/cat1 - ${INSTALL_MAN} ${WRKSRC}/port2pkg.1 ${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_SCRIPT} ${WRKSRC}/port2pkg.pl ${DESTDIR}${PREFIX}/bin/port2pkg + ${INSTALL_MAN} ${WRKSRC}/port2pkg.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1 + ${INSTALL_MAN} ${WRKSRC}/port2pkg.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 .include "../../mk/bsd.pkg.mk" |