summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authoragc <agc>2007-08-20 21:42:26 +0000
committeragc <agc>2007-08-20 21:42:26 +0000
commitef8ac4efbedfb41dfe17c9fbae3baf746a7ee042 (patch)
tree2059401e9300384f7362345071e501d2f5b877a1 /pkgtools
parent4a9524f80c3ddd91ce30f7e1b78a60d51d78d658 (diff)
downloadpkgsrc-ef8ac4efbedfb41dfe17c9fbae3baf746a7ee042.tar.gz
Add DESTDIR support
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkgsurvey/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgtools/pkgsurvey/Makefile b/pkgtools/pkgsurvey/Makefile
index af98e9190d5..223362d8608 100644
--- a/pkgtools/pkgsurvey/Makefile
+++ b/pkgtools/pkgsurvey/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2007/02/22 19:27:02 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2007/08/20 21:42:26 agc Exp $
#
DISTNAME= pkgsurvey-0.0
@@ -16,10 +16,13 @@ NO_BUILD= yes
INSTALLATION_DIRS= bin
+PKG_DESTDIR_SUPPORT= user-destdir
+
do-install:
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
${SED} -e 's|\$${PKG_INFO}|${PKG_INFO}|' \
-e 's|\$${UNAME}|${UNAME}|g' \
- ${FILESDIR}/pkgsurvey.sh > ${PREFIX}/bin/pkgsurvey
- ${CHMOD} 755 ${PREFIX}/bin/pkgsurvey
+ ${FILESDIR}/pkgsurvey.sh > ${DESTDIR}${PREFIX}/bin/pkgsurvey
+ ${CHMOD} 755 ${DESTDIR}${PREFIX}/bin/pkgsurvey
.include "../../mk/bsd.pkg.mk"