Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

22
benchmarks/dbench/DESCR Normal file
View File

@@ -0,0 +1,22 @@
Taken from the dbench README file:
Netbench is a terrible benchmark, but it's an "industry
standard" and it's what is used in the press to rate windows
fileservers like Samba and WindowsNT.
In order for the development methodologies of the open source
community to work we need to be able to run this benchmark in
an environment that a bunch of us have access to. We need the
source to the benchmark so we can see what it does. We need
to be able to split it into pieces to look for individual
bottlenecks. In short, we need to open up netbench to the
masses.
To do this I have written three tools, dbench, tbench and
smbtorture. All three read a load description file called
client.txt that was derived from a network sniffer dump of a
real netbench run. client.txt is about 4MB and describes the
90 thousand operations that a netbench client does in a
typical netbench run. They parse client.txt and use it to
produce the same load without having to buy a huge lab. They
can simulate any number of simultaneous clients.

View File

@@ -0,0 +1,37 @@
# $NetBSD: Makefile,v 1.15 2012/09/11 22:37:11 asau Exp $
DISTNAME= dbench-3.04
PKGREVISION= 1
CATEGORIES= benchmarks
MASTER_SITES= http://samba.org/ftp/tridge/dbench/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://samba.org/ftp/tridge/dbench/README
COMMENT= Simulation of the Ziff-Davis netbench benchmark
PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= yes
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
MAKE_ENV+= DB_LDFLAGS="-lrt" TB_LDFLAGS="-lsocket -lnsl"
.endif
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \
datadir=${DESTDIR}${PREFIX}/share/dbench \
mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/dbench
SUBST_CLASSES+= path
SUBST_STAGE.path= post-configure
SUBST_FILES.path= dbench.1
SUBST_SED.path= -e 's|/usr/share/|${PREFIX}/share/|g'
INSTALLATION_DIRS= share/doc/dbench
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/dbench
.include "../../mk/bsd.pkg.mk"

9
benchmarks/dbench/PLIST Normal file
View File

@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.5 2009/06/14 17:33:11 joerg Exp $
bin/dbench
bin/tbench
bin/tbench_srv
man/man1/dbench.1
man/man1/tbench.1
man/man1/tbench_srv.1
share/dbench/client.txt
share/doc/dbench/README

View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.12 2012/01/23 09:39:52 wiz Exp $
SHA1 (dbench-3.04.tar.gz) = 09d7b647663ddc3e5617956dedd1aa6a4da2d840
RMD160 (dbench-3.04.tar.gz) = 707f396aec21e6c6c79a6b93217e9503356cefea
Size (dbench-3.04.tar.gz) = 2078197 bytes
SHA1 (patch-aa) = f808137abe6b88add704ffbbaaa7684b84a5900c
SHA1 (patch-ab) = 8d17f83c86ef9b733f6970454f3321a8afdac600
SHA1 (patch-ac) = b60ff204f1f2a1f30976a8c2a51f19e0633e4bf5

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-aa,v 1.6 2012/01/23 09:39:52 wiz Exp $
--- fileio.c.orig 2004-12-13 02:47:59.000000000 +0000
+++ fileio.c
@@ -19,6 +19,14 @@
*/
#include "dbench.h"
+#ifdef __APPLE__
+#include <sys/aio.h>
+#define fdatasync fsync
+#endif
+
+#ifdef __DragonFly__
+#define O_SYNC O_FSYNC
+#endif
#define MAX_FILES 200

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.6 2008/05/01 13:17:55 obache Exp $
--- Makefile.in.orig 2005-11-08 03:40:41.000000000 +0000
+++ Makefile.in
@@ -6,7 +6,7 @@ VPATH=@srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
-mandir=@mandir@
+mandir=@mandir@/man1
datadir=@datadir@
INSTALLCMD=@INSTALL@
LIBS=@LIBS@

View File

@@ -0,0 +1,42 @@
$NetBSD: patch-ac,v 1.2 2006/03/16 23:00:08 minskim Exp $
--- system.c.orig 2004-12-12 17:37:43.000000000 -0800
+++ system.c
@@ -29,8 +29,12 @@
ssize_t sys_getxattr (const char *path, const char *name, void *value, size_t size)
{
#if defined(HAVE_GETXATTR)
+# ifdef __APPLE__
+ return getxattr(path, name, value, size, 0, 0);
+# else
return getxattr(path, name, value, size);
-#elif defined(HAVE_EXTATTR_GET_FILE)
+# endif
+#elif defined(HAVE_EXTATTR_GET_FILE) && !defined(__DragonFly__)
char *s;
int attrnamespace = (strncmp(name, "system", 6) == 0) ?
EXTATTR_NAMESPACE_SYSTEM : EXTATTR_NAMESPACE_USER;
@@ -56,7 +60,11 @@ ssize_t sys_getxattr (const char *path,
ssize_t sys_fgetxattr (int filedes, const char *name, void *value, size_t size)
{
#if defined(HAVE_FGETXATTR)
+# ifdef __APPLE__
+ return fgetxattr(filedes, name, value, size, 0, 0);
+# else
return fgetxattr(filedes, name, value, size);
+# endif
#elif defined(HAVE_EXTATTR_GET_FD)
char *s;
int attrnamespace = (strncmp(name, "system", 6) == 0) ?
@@ -89,7 +97,11 @@ ssize_t sys_fgetxattr (int filedes, cons
int sys_fsetxattr (int filedes, const char *name, const void *value, size_t size, int flags)
{
#if defined(HAVE_FSETXATTR)
+# ifdef __APPLE__
+ return fsetxattr(filedes, name, value, size, 0, flags);
+# else
return fsetxattr(filedes, name, value, size, flags);
+# endif
#elif defined(HAVE_EXTATTR_SET_FD)
char *s;
int retval = 0;