summaryrefslogtreecommitdiff
path: root/benchmarks/nttcp
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 00:51:43 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 00:51:43 +0000
commit075003a60c727330726570ab7674a2ee12c5654f (patch)
treecdb67462b5541a6566af441ea620d49ad326d24e /benchmarks/nttcp
parentbd579f3497266e46fb3a16428bf69c529a427d58 (diff)
downloadpkgsrc-075003a60c727330726570ab7674a2ee12c5654f.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'benchmarks/nttcp')
-rw-r--r--benchmarks/nttcp/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/benchmarks/nttcp/Makefile b/benchmarks/nttcp/Makefile
index 498165d3c36..6511b427812 100644
--- a/benchmarks/nttcp/Makefile
+++ b/benchmarks/nttcp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2007/01/07 09:13:48 rillig Exp $
+# $NetBSD: Makefile,v 1.8 2008/03/03 00:51:44 jlam Exp $
DISTNAME= nttcp-1.47
PKGREVISION= 1
@@ -10,6 +10,7 @@ HOMEPAGE= http://home.leo.org/~elmar/nttcp/
COMMENT= New TCP testing and performance measuring tool
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
@@ -20,8 +21,9 @@ MAKE_ENV+= LIB="-lsocket -lnsl"
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- cd ${WRKSRC} ; \
- ${INSTALL_PROGRAM} nttcp ${PREFIX}/bin/nttcp ; \
- ${INSTALL_MAN} nttcp.1 ${PREFIX}/${PKGMANDIR}/man1/nttcp.1
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} nttcp \
+ ${DESTDIR}${PREFIX}/bin/nttcp
+ cd ${WRKSRC} && ${INSTALL_MAN} nttcp.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nttcp.1
.include "../../mk/bsd.pkg.mk"