pkgsrc/benchmarks/bonnie++/Makefile
markd 118fe67829 bonnie++: update to 1.98
* Fixed macros in bon_csv2html.cpp that had lower case due to excessive
   matching on a regex.
 * Changed debian/compat to level 10
 * Allow specifying the number of random seeks and the number of seeker
   processes and store that in the CSV.
 * Changed bon_csv2html and bon_csv2txt to take the new CSV format.
 * Changed the text output to use KiB/MiB/GiB as units of measurement so we
   can fit NVMe results on screen.
 * Changed the HTML to be in MiB/s for the bulk IO tests.
 * Changed the default size for getc_putc to work with faster CPUs and more
   optimised libc.

-- Russell Coker <russell@coker.com.au>  Wed, 26 Dec 2018 15:14:28 +1100
2021-07-10 01:43:57 +00:00

40 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.42 2021/07/10 01:43:57 markd Exp $
#
DISTNAME= bonnie++-1.98
CATEGORIES= benchmarks
MASTER_SITES= http://www.coker.com.au/bonnie++/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.coker.com.au/bonnie++/
COMMENT= Enhanced performance Test of Filesystem I/O
USE_LANGUAGES= c c++
GNU_CONFIGURE= YES
USE_TOOLS+= gmake perl:run tee
REPLACE_PERL+= bon_csv2txt.in
INSTALLATION_DIRS= bin share/doc/bonnie++ ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
CFLAGS.NetBSD+= -D_LARGEFILE64_SOURCE=1
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= bonnie++.8
SUBST_SED.paths= -e 's,/usr/share/doc/,${PREFIX}/share/doc/,'
# 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"