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

7
sysutils/mesure/DESCR Normal file
View File

@@ -0,0 +1,7 @@
This tool is to be used to measure different kinds of streams, the
idea is to create a good source to get concepts and resources for
other tools that measure system usage.
You can measure by how many KB/s a file received by FTP or NetCat
grows, for example. How fast processes eat memory, stream usage
(pipe like), etc.

24
sysutils/mesure/Makefile Normal file
View File

@@ -0,0 +1,24 @@
# $NetBSD: Makefile,v 1.8 2013/02/06 19:31:05 jperkin Exp $
#
DISTNAME= mesure-0.5
PKGREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_BACKUP}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nopcode.org/?t=mesure
COMMENT= Tool to measure different kind of streams
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
NOT_FOR_PLATFORM+= OpenBSD-*-*
INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX} \
MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR} \
DATADIR=${DESTDIR}${PREFIX}/share
.include "../../devel/gmp/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

4
sysutils/mesure/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2005/09/26 23:27:37 xtraeme Exp $
bin/mesure
share/doc/mesure/mesure.txt
man/man1/mesure.1

8
sysutils/mesure/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.3 2013/03/02 17:55:27 joerg Exp $
SHA1 (mesure-0.5.tar.gz) = 587f4cb2132b748cd127b0307269e658756a6ae3
RMD160 (mesure-0.5.tar.gz) = 8c8a60fe903bdb220f427f444b3fc80b840f5b38
Size (mesure-0.5.tar.gz) = 13374 bytes
SHA1 (patch-aa) = 4f3692cf816c208178730ba3033700b840690c27
SHA1 (patch-ab) = 9a350289e763bdf60cae78eb6e827181b6d1d9c8
SHA1 (patch-src_main.c) = c82f325885c371715540a924dc7e90fafe6a70dd

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-aa,v 1.1 2006/03/25 17:14:40 joerg Exp $
--- src/iface.c.orig 2006-03-24 20:32:14.000000000 +0000
+++ src/iface.c
@@ -4,10 +4,10 @@
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
-#if __FreeBSD__ || __APPLE__
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
#include <ifaddrs.h>
#endif
-#if __NetBSD__ || __OpenBSD__
+#if defined( __NetBSD__) || defined(__OpenBSD__)
#include <ifaddrs.h>
#include <net/if_media.h>
#endif

View File

@@ -0,0 +1,35 @@
$NetBSD: patch-ab,v 1.1 2006/03/25 17:14:40 joerg Exp $
--- src/mem.c.orig 2006-03-25 16:59:45.000000000 +0000
+++ src/mem.c
@@ -7,10 +7,10 @@
#include <sys/fcntl.h>
#include <stdio.h>
#include <unistd.h>
-#if !__linux__
+#if !defined(__linux__)
#include <sys/user.h>
#include <kvm.h>
-#if __FreeBSD__ || __APPLE__
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
#define KVM_NO_FILES O_RDONLY
#endif
#endif
@@ -26,7 +26,7 @@ mem_get_value()
{
long total=0;
-#if __linux__
+#if defined(__linux__)
FILE *fd;
char var[1024];
long val,memtotal,memfree;
@@ -56,7 +56,7 @@ mem_get_value()
total*=1024;
#else
-#if __FreeBSD__ || __APPLE__
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
printf("Not yet supported on FreeBSD.\n");
exit(1);
#else

View File

@@ -0,0 +1,33 @@
$NetBSD: patch-src_main.c,v 1.1 2013/03/02 17:55:27 joerg Exp $
--- src/main.c.orig 2013-03-01 14:14:10.000000000 +0000
+++ src/main.c
@@ -107,8 +107,8 @@ int show_usage(char *argv0)
}
-int
-do_work()
+static void
+do_work(int dummy)
{
if (count != -1)
count--;
@@ -462,7 +462,7 @@ main(int argc,char **argv)
vstring[0]='\0';
}
- signal(SIGALRM,(void *)do_work);
+ signal(SIGALRM, do_work);
/* init counters */
#if HAVE_GMP
@@ -477,7 +477,7 @@ main(int argc,char **argv)
tmp = 0;
#endif
- do_work();
+ do_work(0);
while(count!=0)
{