98c3768c3a
a) refer 'perl' in their Makefile, or b) have a directory name of p5-*, or c) have any dependency on any p5-* package Like last time, where this caused no complaints.
36 lines
1 KiB
Makefile
36 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.28 2013/05/31 12:39:38 wiz Exp $
|
|
#
|
|
|
|
DISTNAME= bonnie++-1.03e
|
|
PKGREVISION= 3
|
|
CATEGORIES= benchmarks
|
|
MASTER_SITES= http://www.coker.com.au/bonnie++/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.coker.com.au/bonnie++/
|
|
COMMENT= Enhanced performance Test of Filesystem I/O
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_LANGUAGES= c c++
|
|
GNU_CONFIGURE= YES
|
|
USE_TOOLS+= gmake perl:run tee
|
|
REPLACE_PERL+= bon_csv2txt.in bon_csv2html.in
|
|
|
|
INSTALLATION_DIRS= bin share/doc/bonnie++ ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
|
|
|
|
# todo: patch bonnie++.8 to point to correct path to readme.html
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/readme.html ${DESTDIR}${PREFIX}/share/doc/bonnie++/
|
|
|
|
.PHONY: benchmark
|
|
benchmark: build
|
|
cd ${WRKSRC} && ./bonnie++ -u ${ROOT_USER}:${ROOT_GROUP} | ${TEE} bonnie.out
|
|
|
|
.PHONY: results
|
|
results: build
|
|
@${MKDIR} /tmp/benches/`domainname`
|
|
-@${CP} ${WRKSRC:Q}/bonnie.out /tmp/benches/`domainname`/bonnie++.`uname`-`uname -m`-`uname -r`.`hostname`
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|