From ba171a91fab519f587b027c1a2888cb6e3fce049 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 12 Jun 2008 02:14:13 +0000 Subject: Add DESTDIR support. --- benchmarks/blogbench/Makefile | 4 +++- benchmarks/bonnie/Makefile | 3 ++- benchmarks/postal/Makefile | 3 ++- benchmarks/postal/distinfo | 3 ++- benchmarks/postal/patches/patch-ac | 21 +++++++++++++++++++++ 5 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 benchmarks/postal/patches/patch-ac (limited to 'benchmarks') diff --git a/benchmarks/blogbench/Makefile b/benchmarks/blogbench/Makefile index 5e1aec4d311..a086e2efa85 100644 --- a/benchmarks/blogbench/Makefile +++ b/benchmarks/blogbench/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2006/10/15 12:53:04 xtraeme Exp $ +# $NetBSD: Makefile,v 1.5 2008/06/12 02:14:15 joerg Exp $ # DISTNAME= blogbench-1.0 @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://blogbench.pureftpd.org/ COMMENT= Portable filesystem benchmark +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= yes .include "../../mk/pthread.buildlink3.mk" diff --git a/benchmarks/bonnie/Makefile b/benchmarks/bonnie/Makefile index e0577d35762..ee0b1c4bab2 100644 --- a/benchmarks/bonnie/Makefile +++ b/benchmarks/bonnie/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2008/02/07 13:24:36 tnn Exp $ +# $NetBSD: Makefile,v 1.34 2008/06/12 02:14:15 joerg Exp $ DISTNAME= bonnie PKGNAME= bonnie-2.06 @@ -13,6 +13,7 @@ COMMENT= Performance Test of Sequential Filesystem I/O and STDIO NOT_FOR_PLATFORM= Interix-*-* # has only 32-bit off_t PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir NO_CONFIGURE= yes WRKSRC= ${WRKDIR} diff --git a/benchmarks/postal/Makefile b/benchmarks/postal/Makefile index 6cb406395f3..2a94d26dc26 100644 --- a/benchmarks/postal/Makefile +++ b/benchmarks/postal/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2008/01/18 05:06:22 tnn Exp $ +# $NetBSD: Makefile,v 1.14 2008/06/12 02:14:15 joerg Exp $ DISTNAME= postal-0.62 PKGREVISION= 4 @@ -11,6 +11,7 @@ HOMEPAGE= http://www.coker.com.au/postal/ COMMENT= Tool for benchmarking SMTP/POP servers PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= yes USE_LANGUAGES= c c++ diff --git a/benchmarks/postal/distinfo b/benchmarks/postal/distinfo index 8689f4abe07..bd1ac262602 100644 --- a/benchmarks/postal/distinfo +++ b/benchmarks/postal/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.3 2005/03/14 15:02:14 rillig Exp $ +$NetBSD: distinfo,v 1.4 2008/06/12 02:14:15 joerg Exp $ SHA1 (postal-0.62.tgz) = 6379ac223964921963389c8c600a1ba4b24a6ab3 RMD160 (postal-0.62.tgz) = 694800444ff33c7c64c5b7915ef5438fdb3605f3 Size (postal-0.62.tgz) = 84506 bytes SHA1 (patch-aa) = ec272095d02d2b8cde4e1f798ac8bfb3212d7874 SHA1 (patch-ab) = 3a14324d2203fc2f6e0e8028f937906c7d95e7e0 +SHA1 (patch-ac) = 7f888c21b98ffe648bc9d2b055166578cf975ef5 diff --git a/benchmarks/postal/patches/patch-ac b/benchmarks/postal/patches/patch-ac new file mode 100644 index 00000000000..e8b04311779 --- /dev/null +++ b/benchmarks/postal/patches/patch-ac @@ -0,0 +1,21 @@ +$NetBSD: patch-ac,v 1.1 2008/06/12 02:14:15 joerg Exp $ + +--- Makefile.in.orig 2008-06-11 09:51:31.000000000 +0000 ++++ Makefile.in +@@ -32,12 +32,12 @@ postal-list: postal-list.cpp expand.o + $(CXX) postal-list.cpp expand.o -o postal-list $(LFLAGS) + + install-bin: $(EXE) +- mkdir -p $(eprefix)/sbin +- @INSTALL_PROGRAM@ @stripping@ $(EXE) $(eprefix)/sbin ++ mkdir -p ${DESTDIR}$(eprefix)/sbin ++ @INSTALL_PROGRAM@ @stripping@ $(EXE) ${DESTDIR}$(eprefix)/sbin + + install: install-bin +- mkdir -p @mandir@/man8 +- @INSTALL_DATA@ $(MAN8) @mandir@/man8 ++ mkdir -p ${DESTDIR}@mandir@/man8 ++ @INSTALL_DATA@ $(MAN8) ${DESTDIR}@mandir@/man8 + + %.o: %.cpp %.h postal.h + $(CXX) -c $< -- cgit v1.2.3