From 5b6f32d96f22a8f43e66e68b1f062a01e5128996 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 8 Jul 2009 14:44:00 +0000 Subject: user-destdir support --- benchmarks/thrulay/Makefile | 3 ++- benchmarks/thrulay/patches/patch-aa | 19 +++++++++++++++++++ benchmarks/thrulay/patches/patch-ab | 15 +++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 benchmarks/thrulay/patches/patch-aa create mode 100644 benchmarks/thrulay/patches/patch-ab diff --git a/benchmarks/thrulay/Makefile b/benchmarks/thrulay/Makefile index e8f69659ba6..6cc0d27ec9c 100644 --- a/benchmarks/thrulay/Makefile +++ b/benchmarks/thrulay/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2009/06/30 00:07:10 joerg Exp $ +# $NetBSD: Makefile,v 1.7 2009/07/08 14:44:00 joerg Exp $ DISTNAME= thrulay-0.8 CATEGORIES= benchmarks net @@ -9,6 +9,7 @@ HOMEPAGE= http://shlang.com/thrulay/ COMMENT= TCP and UDP network capacity tester PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir MAKE_JOBS_SAFE= no diff --git a/benchmarks/thrulay/patches/patch-aa b/benchmarks/thrulay/patches/patch-aa new file mode 100644 index 00000000000..4b6a921ad40 --- /dev/null +++ b/benchmarks/thrulay/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.1 2009/07/08 14:44:00 joerg Exp $ + +--- doc/Makefile.in.orig 2009-07-08 16:30:54.000000000 +0200 ++++ doc/Makefile.in +@@ -18,10 +18,10 @@ distclean: + rm -f Makefile + + install-man: +- $(MKINSTALLDIRS) $(MANDIR1) +- $(MKINSTALLDIRS) $(MANDIR8) +- $(INSTALL) -c -m 0644 thrulay.1 $(MANDIR1) +- $(INSTALL) -c -m 0644 thrulayd.8 $(MANDIR8) ++ $(MKINSTALLDIRS) ${DESTDIR}$(MANDIR1) ++ $(MKINSTALLDIRS) ${DESTDIR}$(MANDIR8) ++ $(INSTALL) -c -m 0644 thrulay.1 ${DESTDIR}$(MANDIR1) ++ $(INSTALL) -c -m 0644 thrulayd.8 ${DESTDIR}$(MANDIR8) + + uninstall-man: + rm -f $(MANDIR1)/thrulay.1 diff --git a/benchmarks/thrulay/patches/patch-ab b/benchmarks/thrulay/patches/patch-ab new file mode 100644 index 00000000000..06d4ed5ce43 --- /dev/null +++ b/benchmarks/thrulay/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1 2009/07/08 14:44:00 joerg Exp $ + +--- src/Makefile.in.orig 2009-07-08 16:31:17.000000000 +0200 ++++ src/Makefile.in +@@ -43,8 +43,8 @@ distclean: clean + rm -f Makefile + + install: +- $(INSTALL) -c -m 0755 -s $(CLIENT) $(bindir)/$(CLIENT) +- $(INSTALL) -c -m 0755 -s $(SERVER) $(sbindir)/$(SERVER) ++ $(INSTALL) -c -m 0755 -s $(CLIENT) ${DESTDIR}$(bindir)/$(CLIENT) ++ $(INSTALL) -c -m 0755 -s $(SERVER) ${DESTDIR}$(sbindir)/$(SERVER) + + uninstall: + rm -f $(bindir)/$(CLIENT) -- cgit v1.2.3