mbuffer is a tool for buffering data streams. It is also a replacement
for buffer with additional functionality:
- multi-target network output
- on the fly hash calculation
- display of I/O speed
- optional use of memory mapped I/O for huge buffers
- multithreaded instead of sharedmemory ipc
- multi volume support
- autoloader support
- networking support
- command-line options compatible to buffer
===> The following configuration options are available for mbuffer-20261015:
GCRYPT=off: Use gcrypt for hash generation
MHASH=on: Use mhash for hash generation
RHASH=off: Use rhash for hash generation
===> Use 'make config' to modify these settings
misc/mbuffer: Update to 20261015
Changes according to the ChangeLog in the distribution tar ball:
20261015:
- rollback 20260929
- removed obsolete interlock code needed for Linux < 3.14
- fix for MacOS statistics initialization
20260929 (WITHDRAWN - MacOS already worked since 20251025):
- added MacOS support (patch provided by Robert Smith, WANSecurity, Inc)
20260926:
- prefer info from fpathconf over PIPE_BUF
- integrated some patches from Peter Pentchev
- build fixes
- buffer allocation limitation
- typos and grammar fixes
misc/mbuffer: Update to 20260511
Changes according to the ChangeLog in the distribution tar ball:
20260511:
- fix data corruption occuring at the end of a tape, when the
transfer block size is not a multiple of the native block
size of the tape device (fix by Daniel Collins)
- restore terminal attributes on exit
misc/mbuffer: Update to 20260301
Changes according to the ChangeLog in the distribution tar ball:
20260301:
- drop speed limitations at the start and end of transfer
- fix input stalling unintential in -M/-R mode
- fix: do not close an already closed file
misc/mbuffer: Update to 20260221
Changes according to the ChangeLog in the distribution tar ball:
20260221:
- added dynamic speed adjustment with low speed
- add support to bind network input to a specific interface
20251025:
- updated config.sub, config.guess, and instal-sh
- added MacOS support (submitted by Grady McBride)
- update for configure script
- added condition variables based infra structure for MacOS
misc/mbuffer: Update 20250429 => 20250809
20250809:
* Fix CMake build issue
* Fix some warnings on intentionally ignored return values
* Use https:// URI scheme for MASTER_SITES
* Remove GNU_CONFIGURE_MANPREFIX (already set by default in Mk/bsd.port.mk:2697)
* Pet portclippy(1) and portfmt(1)
PR: 289897
Submitted by: alven, takefu@airport.fm
misc/mbuffer: Update to 20250429
- Updated to 20250429
Changes according to the ChangeLog in the distribution tar ball:
20250429:
- get number of available pages on NetBSD via sysctl
- use SYSCONFDIR instead of 'PREFIX "/etc"'
- clang configure fix for tapedrive emulation
- minor code updates
misc/mbuffer: Update to 20241007
- Updated to 20241007
Changes according to the ChangeLog in the distribution tar ball:
20241007:
- build fix for -Wincompatible-pointer-types
- configure script update to autoconf version 2.71
20240929:
- updated default buffer calculation for more sane defaults
- minor updates for debug messages
20240818:
- fix port range check (Peter Pentchev)
- fix ipv6 only mode
- enhanced incoming host check to work with IP, hostname, FQHN
- enhanced ipv6 hostname parsing
misc/mbuffer: Update to 20240707
Changes according to the ChangeLog in the distribution tar ball:
20240707:
- fix IPv4 address printing
- listen on IPv6 and IPv4 if possible
- add debug messages for defaults on address family
- build fix for systems without getaddrinfo
- gracefully handle empty address infos
misc/mbuffer: Update to 20240107
- Updated to 20240107
- Moved manpages to share/man
Changes according to the ChangeLog in the distribution tar ball:
20240107:
- corrections for documentation and help output
(patch by Andreas Hartmann)
- added environment variables for auto-loader command
devel/cmake-core devel/cmake-gui misc/mbuffer: cope with librhash.so bump
Because rhash 1.4.4 updated the librhash.so symlink from .0 to .1,
build-time dependents such as cmake-core and cmake-gui need their
PORTREVISION bumped.
The other case is misc/mbuffer, which uses librhash only at runtime, but
hardcodes dlopen("librhash.so.0", RTLD_NOW). I changed this to just
"librhash.so", and it seems to work fine with light testing.
PR: 273775
Reported by: Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Fixes: e0acbd158ec9 security/rhash: update to 1.4.4 and fix build with lld 17
MFH: 2023Q3
misc/mbuffer: Fix build if www/libwww installed
Remove libmd5 from AC_SEARCH_LIBS and only searches for libmd,
avoid linking with libmd5 installed by www/libwww.
PR: 273735
Reported by: meta
MFH: 2023Q3 (build fix)
misc/mbuffer: Update to 20230301
Changes according to the ChangeLog in the distribution tar ball:
20230301:
- Fix breaking connections on WAN links: retry on EAGAIN
(fix by Nico Schümann)
MFH: 2023Q3 (bugfix release)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
misc: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* Aaron Dalton <aaron@FreeBSD.org>
* Adam Weinberger <adam@vectors.cx>
* Adam Weinberger <adamw@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan E <alane@FreeBSD.org>
* Alex Semenyaka <alex@rinet.ru>
* Alex Stangl <alex@stangl.us>
* Alexander Logvinov <avl@FreeBSD.org>
* Alexander Logvinov <ports@logvinov.com>
* Alexander Nusov <alexander.nusov@nfvexpress.com>
* Alexander Timoshenko <gonzo@univ.kiev.ua>
(Only the first 15 lines of the commit message are shown above )
misc/mbuffer: Update to 20220418
Changes according to the ChangeLog in the distribution tar ball:
20220418:
- fix handling of filesystem full on stdout
MFH: 2022Q2 (bugfix release)
misc/mbuffer: Update to 20211018
Changes according to the ChangeLog in the distribution tar ball:
20211018:
- fixes related to TCP timeout handling
- enhancement: support setting config file via env var MBUFFERRC
- documentation update
20211004:
- make TCPTimeout=0 disable the TCP timeout
- changed default TCP timeout from 10s to 100s
- TCP timeout now can be give with suffixes ms,s,min,h
- documented option for TCP timeout
20210829:
- enhancement: accept IPv6 addresses in square bracket format
- enhancement: more detailed warning message for connect failures
- work around Solaris default old mercurial and incompatible sed
PR: 260091
Submitted by: Fabian Keil <fk@fabiankeil.de>
MFH: No (feature release)
misc/mbuffer: Update to 20200929
Upstream changes according to the ChangeLog:
- enhancement: added option --no-direct to disable use of O_DIRECT
- defaults: raised default TCP timeout to 10ms for WAN connections
- fix: leave TCP buffer size untouched if not set
- enhancement: add option to set TCP timeout
- performance optimization: use recv with MSG_WAITALL instead of read
- configure fix: look for objdump also with target prefix
- testing: make sure to use gtar for testing to avoid unexpected failures
- portability: NetBSD compatibility fix
- build enhancement: added dependency calculation for make
- build enhancement: automatic version string generation
PR: 252737
Submitted by: Fabian Keil <fk@fabiankeil.de>
misc/mbuffer: Update to 20190113
- mbuffer now tries to dlopen some libraries when looking for valid
hash functions. This happens at runtime only. Drop related
build dependencies, CONFIGURE_ARGS, and other workarounds.
- Add options for all supported hashing libraries
Unbreak misc/mbuffer when objdump is missing (for example on aarch64)
The configure script uses objdump to check for libc symbol names
for open/read/write/fstat. We could switch it to nm or readelf but
as the names are unlikely to ever going to differ from their visible
names on FreeBSD hardcode them instead and skip the check.
misc/mbuffer: Update to 20180505
- Unify versioning scheme with how it's done upstream and on other systems
- Add missing gtar to TEST_DEPENDS
- Clean up some unnecessary {CONFIGURE,MAKE}_ARGS
misc/mbuffer: Update to 20180318
- Fixes a bug where mbuffer would immediatly fail with no explicit
counts set
- Add TEST_TARGET
- Take maintainership after the last 6 months maintainer timeout from
r464491
PR: 226637
Submitted by: eborisch+FreeBSD@gmail.com
misc/mbuffer: Update to 2017.10.11
- While here switch to options helpers
PR: 222329
Submitted by: asomers
Approved by: mm (maintainer timeout, 6 months)
- Update to version 2014.03.10
- Fix version display
- Minor updates to pkg-descr, incoluding a WWW: whitespace fix
Notable changes:
0140310:
- added memory advise for buffer memory
- compatibility fix for Solars st driver
- prevent buffer overflow attack via defaults file
- ignore defaults file from other users
- updated documentation for use with cron
- minor bugfixes
20140126:
- new feature: set option defaults in ~/.mbuffer.rc
- enhancement: write status to the log file
- enhancement: added option to suppress status logging
- fix: formatting fix for summary message
PR: 193480
Submitted by: fk@fabiankeil.de
Approved by: maintainer timeout (mm@)
- mbuffer prefers mash, so let it be (also fixed hidden dependency to mhash
if it was installed at the time this port is built)
PR: ports/168252
Submitted by: mm@