diff options
author | rmind <rmind@pkgsrc.org> | 2007-03-05 15:55:25 +0000 |
---|---|---|
committer | rmind <rmind@pkgsrc.org> | 2007-03-05 15:55:25 +0000 |
commit | 7409fbf550262b83561fc1a0773c7c35221f0987 (patch) | |
tree | 8417f44b3298742875bc941cde5912a5d8af8f1e /benchmarks | |
parent | e2277684c24dce3ffb77764445919ce1d9e378d8 (diff) | |
download | pkgsrc-7409fbf550262b83561fc1a0773c7c35221f0987.tar.gz |
PR/35905: New pkg: benchmarks/sysbench 0.4.8
Thanks for Kimura Fuyuki. OK: agc@
SysBench is a modular, cross-platform and multi-threaded benchmark
tool for evaluating OS parameters that are important for a system
running a database under intensive load.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/sysbench/DESCR | 15 | ||||
-rw-r--r-- | benchmarks/sysbench/Makefile | 31 | ||||
-rw-r--r-- | benchmarks/sysbench/PLIST | 4 | ||||
-rw-r--r-- | benchmarks/sysbench/distinfo | 6 | ||||
-rw-r--r-- | benchmarks/sysbench/options.mk | 20 | ||||
-rw-r--r-- | benchmarks/sysbench/patches/patch-aa | 12 |
6 files changed, 88 insertions, 0 deletions
diff --git a/benchmarks/sysbench/DESCR b/benchmarks/sysbench/DESCR new file mode 100644 index 00000000000..67341a4b372 --- /dev/null +++ b/benchmarks/sysbench/DESCR @@ -0,0 +1,15 @@ +SysBench is a modular, cross-platform and multi-threaded benchmark +tool for evaluating OS parameters that are important for a system +running a database under intensive load. + +The idea of this benchmark suite is to quickly get an impression about +system performance without setting up complex database benchmarks or +even without installing a database at all. + +Current features allow to test the following system parameters: + + * file I/O performance + * scheduler performance + * memory allocation and transfer speed + * POSIX threads implementation performance + * database server performance (OLTP benchmark) diff --git a/benchmarks/sysbench/Makefile b/benchmarks/sysbench/Makefile new file mode 100644 index 00000000000..8c397fd2a9a --- /dev/null +++ b/benchmarks/sysbench/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/03/05 15:55:25 rmind Exp $ + +DISTNAME= sysbench-0.4.8 +CATEGORIES= benchmarks +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sysbench/} + +MAINTAINER= fuyuki@hadaly.org +HOMEPAGE= http://sysbench.sourceforge.net/ +COMMENT= Modular, cross-platform and multi-threaded benchmark tool + +BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt +BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl + +GNU_CONFIGURE= yes +PTHREAD_AUTO_VARS= yes +MAKE_FLAGS+= bin_SCRIPTS= # don't install problematic scripts + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "NetBSD" +CFLAGS+= -D_NETBSD_SOURCE # hack for ulong along with patch-aa +.endif + +post-build: + ${PREFIX}/bin/xsltproc -o ${WRKSRC}/doc/manual.html \ + ${PREFIX}/share/xsl/docbook/xhtml/docbook.xsl \ + ${WRKSRC}/doc/manual.xml + +.include "options.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/benchmarks/sysbench/PLIST b/benchmarks/sysbench/PLIST new file mode 100644 index 00000000000..4aa11e51841 --- /dev/null +++ b/benchmarks/sysbench/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/05 15:55:25 rmind Exp $ +bin/sysbench +share/doc/sysbench/manual.html +@dirrm share/doc/sysbench diff --git a/benchmarks/sysbench/distinfo b/benchmarks/sysbench/distinfo new file mode 100644 index 00000000000..a297fef302c --- /dev/null +++ b/benchmarks/sysbench/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/03/05 15:55:25 rmind Exp $ + +SHA1 (sysbench-0.4.8.tar.gz) = dbf77d98d9399eeecf0d9e81c72a28a5dee2cf58 +RMD160 (sysbench-0.4.8.tar.gz) = a7d2686a5fe017b8d170fe438794462c1c5cd902 +Size (sysbench-0.4.8.tar.gz) = 469327 bytes +SHA1 (patch-aa) = 5032e69d02c5d209c5858d729d55a5d52781f148 diff --git a/benchmarks/sysbench/options.mk b/benchmarks/sysbench/options.mk new file mode 100644 index 00000000000..0dfa63c1aa8 --- /dev/null +++ b/benchmarks/sysbench/options.mk @@ -0,0 +1,20 @@ +# $NetBSD: options.mk,v 1.1.1.1 2007/03/05 15:55:25 rmind Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.sysbench +PKG_SUPPORTED_OPTIONS+= mysql pgsql + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mmysql) +CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client:Q} +. include "../../mk/mysql.buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-mysql +.endif + +.if !empty(PKG_OPTIONS:Mpgsql) +CONFIGURE_ARGS+= --with-pgsql=${PGSQL_PREFIX:Q} +. include "../../mk/pgsql.buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-pgsql +.endif diff --git a/benchmarks/sysbench/patches/patch-aa b/benchmarks/sysbench/patches/patch-aa new file mode 100644 index 00000000000..dd8361bb062 --- /dev/null +++ b/benchmarks/sysbench/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/03/05 15:55:25 rmind Exp $ + +--- sysbench/drivers/mysql/drv_mysql.c.orig 2006-10-11 04:22:51.000000000 +0900 ++++ sysbench/drivers/mysql/drv_mysql.c +@@ -29,6 +29,7 @@ + # include <strings.h> + #endif + ++#include <my_global.h> + #include <mysql.h> + #include <mysqld_error.h> + |