File:
[cvs.NetBSD.org] /
pkgsrc /
benchmarks /
bonnie /
Makefile
Revision
1.37:
download - view:
text,
annotated -
select for diffs
Tue Sep 11 22:37:11 2012 UTC (12 years, 1 month ago) by
asau
Branches:
MAIN
CVS tags:
pkgsrc-2013Q2-base,
pkgsrc-2013Q2,
pkgsrc-2013Q1-base,
pkgsrc-2013Q1,
pkgsrc-2012Q4-base,
pkgsrc-2012Q4,
pkgsrc-2012Q3-base,
pkgsrc-2012Q3,
HEAD
"user-destdir" is default these days
# $NetBSD: Makefile,v 1.37 2012/09/11 22:37:11 asau Exp $
DISTNAME= bonnie
PKGNAME= bonnie-2.06
PKGREVISION= 2
CATEGORIES= benchmarks
MASTER_SITES= http://www.textuality.com/bonnie/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.textuality.com/bonnie/index.html
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
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}
USE_TOOLS+= expr groff nroff
USE_BSD_MAKEFILE= yes
MANCOMPRESSED_IF_MANZ= yes
CFLAGS.Linux+= -D_FILE_OFFSET_BITS=64
CFLAGS.SunOS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
INSTALLATION_DIRS= bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
post-extract:
${MV} ${WRKSRC}/Bonnie.c ${WRKSRC}/bonnie.c
SYSCTL?= /sbin/sysctl
benchmark:
@(cd ${WRKSRC}; ./bonnie -m nb$$(uname -r) -s $$(${EXPR} 4 \* $$(${SYSCTL} -n hw.physmem) / 1024 / 1024) | tee bonnie.out)
results:
@${MKDIR} /tmp/benches/$$(domainname)
-@${CP} ${WRKSRC}/bonnie.out /tmp/benches/$$(domainname)/bonnie.$$(uname)-$$(uname -m)-$$(uname -r).$$(hostname)
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>