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

View File

@@ -0,0 +1,2 @@
Randread is a simple program to help benchmark random disk read
performance.

View File

@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.13 2012/09/11 22:37:14 asau Exp $
#
DISTNAME= randread-0.2
CATEGORIES= benchmarks
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=randread/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://randread.sourceforge.net/
COMMENT= Program to help benchmark random disk read performance
LICENSE= public-domain
ONLY_FOR_PLATFORM= DragonFly-*-* FreeBSD-*-* NetBSD-*-* OpenBSD-*-*
PKG_INSTALLATION_TYPES= overwrite pkgviews
BUILD_TARGET= randread
WRKSRC= ${WRKDIR}/${DISTNAME}
INSTALLATION_DIRS= sbin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/randread ${DESTDIR}${PREFIX}/sbin
.include "../../mk/bsd.prefs.mk"
.if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
TEST_TARGET= test
BUILDLINK_DEPMETHOD.check= build
.include "../../devel/check/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.2 2011/02/03 14:15:12 obache Exp $
sbin/randread

View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.5 2011/02/03 14:15:12 obache Exp $
SHA1 (randread-0.2.tar.gz) = 5085d07cb6c4395d018addb4ab81f060473ea620
RMD160 (randread-0.2.tar.gz) = e8806da27cc231748b9416b16949c4921abc1d91
Size (randread-0.2.tar.gz) = 8112 bytes
SHA1 (patch-Makefile) = 0b709cc55687b274eda350cd263477644964c6e9
SHA1 (patch-filelist.c) = eee8bb8586cdcc568e8cf44965465d5f1885cd93
SHA1 (patch-filelist__test.c) = 15bf7f34db587812061f2e9aa5bf743c72ad458a
SHA1 (patch-test.c) = 0257aea93fdc12840c12e3818672fc8e4c2fb232

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-Makefile,v 1.1 2011/02/03 14:15:12 obache Exp $
* proper CPPFLAGS and LDFLAGS will be set by pkgsrc
* honor CFLAGS
--- Makefile.orig 2002-09-11 04:55:38.000000000 +0000
+++ Makefile
@@ -2,11 +2,11 @@
# Add alternative directories for includes files and libraries.
-CPPFLAGS=-I/usr/pkg/include
-LDFLAGS=-L/usr/pkg/lib
+CPPFLAGS?=-I/usr/pkg/include
+LDFLAGS?=-L/usr/pkg/lib
CC=cc ${CPPFLAGS}
randread: randread.c
- ${CC} -g -Wall -o randread randread.c filelist.c
+ ${CC} ${CFLAGS} -Wall -o randread randread.c filelist.c
tarfile: clean
@@ -18,6 +18,6 @@ tarfile: clean
#
test::
- ${CC} -g -Wall -o test test.c ${LDFLAGS} -lcheck
- ${CC} -g -Wall -o filelist_test filelist_test.c filelist.c \
+ ${CC} ${CFLAGS} -Wall -o test test.c ${LDFLAGS} -lcheck
+ ${CC} ${CFLAGS} -Wall -o filelist_test filelist_test.c filelist.c \
${LDFLAGS} -lcheck
./test

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-filelist.c,v 1.1 2011/02/03 14:15:12 obache Exp $
--- filelist.c.orig 2002-09-11 05:15:12.000000000 +0000
+++ filelist.c
@@ -7,9 +7,10 @@
#include <errno.h>
#include <fcntl.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
-#include <strings.h>
+#include <string.h>
#include <unistd.h>
#include "filelist.h"

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-filelist__test.c,v 1.1 2011/02/03 14:15:12 obache Exp $
* suite_free is not required by check>=0.9.0, everything will be freed when
srunner_free is called.
--- filelist_test.c.orig 2002-09-11 05:15:40.000000000 +0000
+++ filelist_test.c
@@ -177,7 +177,6 @@ int main(void)
srunner_run_all (sr, CK_NORMAL);
num_failed = srunner_ntests_failed (sr);
srunner_free (sr);
- suite_free (s);
return num_failed;
}

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-test.c,v 1.1 2011/02/03 14:15:12 obache Exp $
* suite_free is not required by check>=0.9.0, everything will be freed when
srunner_free is called.
--- test.c.orig 2002-07-11 08:23:49.000000000 +0000
+++ test.c
@@ -31,7 +31,6 @@ int main(void)
srunner_run_all (sr, CK_NORMAL);
num_failed = srunner_ntests_failed (sr);
srunner_free (sr);
- suite_free (s);
return num_failed;
}