summaryrefslogtreecommitdiff
path: root/misc/mbuffer
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-05-08 11:21:24 +0000
committerjperkin <jperkin@pkgsrc.org>2014-05-08 11:21:24 +0000
commitf22e5babbae6ab0371b07165dc3116dd14218505 (patch)
tree03c7c3b5a194f77747f6cc68e147d7e20362c0c0 /misc/mbuffer
parent269b491658f2fe126f4c205acb377ccd6269f86d (diff)
downloadpkgsrc-f22e5babbae6ab0371b07165dc3116dd14218505.tar.gz
Import mbuffer-20140310 into pkgsrc, packaged by Brian Bennett.
mbuffer is a tool for buffering data streams with a large set of unique features: * direct support for TCP based network targets (IPv4 and IPv6) * ability to send to multiple targets in parallel (distribution mode) * support for multiple volumes * I/O rate limitation * high/low watermark based restart criteria * configurable buffer size * on the fly MD5 hash calculation * highly efficient, multi-threaded implementation It is especially useful, if you are writing backups to fast tape drives or libraries.
Diffstat (limited to 'misc/mbuffer')
-rw-r--r--misc/mbuffer/DESCR5
-rw-r--r--misc/mbuffer/Makefile17
-rw-r--r--misc/mbuffer/PLIST3
-rw-r--r--misc/mbuffer/distinfo8
-rw-r--r--misc/mbuffer/patches/patch-Makefile.in21
-rw-r--r--misc/mbuffer/patches/patch-configure15
-rw-r--r--misc/mbuffer/patches/patch-network.c15
7 files changed, 84 insertions, 0 deletions
diff --git a/misc/mbuffer/DESCR b/misc/mbuffer/DESCR
new file mode 100644
index 00000000000..b6f519314a8
--- /dev/null
+++ b/misc/mbuffer/DESCR
@@ -0,0 +1,5 @@
+The mbuffer tool is used to buffer data streams and show the I/O rate
+and summary to the user. It is especially useful for writing backups to
+fast tape drives or streaming them over the network. If used correctly,
+it can prevent buffer underruns and speed up the whole backup or
+transfer process.
diff --git a/misc/mbuffer/Makefile b/misc/mbuffer/Makefile
new file mode 100644
index 00000000000..93cee330202
--- /dev/null
+++ b/misc/mbuffer/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2014/05/08 11:21:24 jperkin Exp $
+
+DISTNAME= mbuffer-20140310
+CATEGORIES= misc
+MASTER_SITES= http://www.maier-komor.de/software/mbuffer/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.maier-komor.de/mbuffer.html
+COMMENT= Tool for buffering data streams
+LICENSE= gnu-gpl-v3
+
+NOT_FOR_PLATFORM= NetBSD-*-* # Needs sysctl bits
+
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/mbuffer/PLIST b/misc/mbuffer/PLIST
new file mode 100644
index 00000000000..b5a6773270a
--- /dev/null
+++ b/misc/mbuffer/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2014/05/08 11:21:24 jperkin Exp $
+bin/mbuffer
+man/man1/mbuffer.1
diff --git a/misc/mbuffer/distinfo b/misc/mbuffer/distinfo
new file mode 100644
index 00000000000..6195b68f070
--- /dev/null
+++ b/misc/mbuffer/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2014/05/08 11:21:24 jperkin Exp $
+
+SHA1 (mbuffer-20140310.tgz) = 6646a7391470ee120bd8fdb754e16984d737f4e0
+RMD160 (mbuffer-20140310.tgz) = 2c67c3c0c6d87ea1c0bcfa6abe94d3d14e9db146
+Size (mbuffer-20140310.tgz) = 122422 bytes
+SHA1 (patch-Makefile.in) = 81118c470367b0136f868f8ccb0f35e3c389150c
+SHA1 (patch-configure) = e92b735b8ca0e03ee011522ce247bf3f242614f4
+SHA1 (patch-network.c) = 6d5b5a937ce71482b1b2f13cf0a3d8b2d8b45e4f
diff --git a/misc/mbuffer/patches/patch-Makefile.in b/misc/mbuffer/patches/patch-Makefile.in
new file mode 100644
index 00000000000..29a8ea8e60b
--- /dev/null
+++ b/misc/mbuffer/patches/patch-Makefile.in
@@ -0,0 +1,21 @@
+$NetBSD: patch-Makefile.in,v 1.1 2014/05/08 11:21:24 jperkin Exp $
+
+Fix install permissions.
+
+--- Makefile.in.orig 2014-03-10 22:41:15.000000000 +0000
++++ Makefile.in
+@@ -39,10 +39,10 @@ distclean: clean
+ config.status Makefile mbuffer.1 core
+
+ install: $(TARGET)
+- -$(INSTALL) -d $(DESTDIR)$(bindir)
+- $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
+- -$(INSTALL) -d $(DESTDIR)$(mandir)
+- $(INSTALL) mbuffer.1 $(DESTDIR)$(mandir)
++ -$(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(bindir)
++ $(BSD_INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)
++ -$(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(mandir)
++ $(BSD_INSTALL_MAN) mbuffer.1 $(DESTDIR)$(mandir)
+
+ lint:
+ lint $(DEFS) $(SOURCES)
diff --git a/misc/mbuffer/patches/patch-configure b/misc/mbuffer/patches/patch-configure
new file mode 100644
index 00000000000..74b10ee7b79
--- /dev/null
+++ b/misc/mbuffer/patches/patch-configure
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2014/05/08 11:21:24 jperkin Exp $
+
+Portability fix.
+
+--- configure.orig 2014-05-08 10:26:55.008091173 +0000
++++ configure
+@@ -3841,7 +3841,7 @@ fi
+ else
+ SUNCCVERSION=`${CC} -V 2>&1 | grep Sun`
+ SUNCC=$?
+- if test "${SUNCC}" == "0" ; then
++ if test "${SUNCC}" = "0" ; then
+ CFLAGS="${CFLAGS} -O"
+ cflags_tmp="$CFLAGS"
+ HAS_M64=`${CC} -flags | grep m64`
diff --git a/misc/mbuffer/patches/patch-network.c b/misc/mbuffer/patches/patch-network.c
new file mode 100644
index 00000000000..2ff93349149
--- /dev/null
+++ b/misc/mbuffer/patches/patch-network.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-network.c,v 1.1 2014/05/08 11:21:24 jperkin Exp $
+
+Portability fix.
+
+--- network.c.orig 2014-03-10 22:41:15.000000000 +0000
++++ network.c
+@@ -114,7 +114,7 @@ void initNetworkInput(const char *addr)
+ hint.ai_family = AddrFam;
+ hint.ai_protocol = IPPROTO_TCP;
+ hint.ai_socktype = SOCK_STREAM;
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ hint.ai_flags = AI_ADDRCONFIG;
+ #else
+ hint.ai_flags = AI_ADDRCONFIG | AI_V4MAPPED;