Skip to content

Commit f9d780d

Browse files
committed
net/xfr: import xfr-0.3.0
Packaged for wip by pin@ A fast, modern network bandwidth testing tool with TUI. Built in Rust as an iperf replacement. Features: - Live TUI with real-time throughput graphs and per-stream stats - Server dashboard - xfr serve --tui for monitoring active tests - Multi-client server - handle multiple simultaneous tests - TCP and UDP with configurable bitrate and parallel streams - Bidirectional testing - measure upload and download simultaneously - Multiple output formats - plain text, JSON, JSON streaming, CSV - Result comparison - xfr diff to detect performance regressions - LAN discovery - find xfr servers with mDNS (xfr discover) - Prometheus metrics - export stats for monitoring dashboards - Config file - save defaults in ~/.config/xfr/config.toml - Environment variables - XFR_PORT, XFR_DURATION overrides
1 parent bcb115c commit f9d780d

6 files changed

Lines changed: 1589 additions & 0 deletions

File tree

net/xfr/DESCR

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
A fast, modern network bandwidth testing tool with TUI. Built in Rust as an
2+
iperf replacement.
3+
4+
Features:
5+
- Live TUI with real-time throughput graphs and per-stream stats
6+
- Server dashboard - xfr serve --tui for monitoring active tests
7+
- Multi-client server - handle multiple simultaneous tests
8+
- TCP and UDP with configurable bitrate and parallel streams
9+
- Bidirectional testing - measure upload and download simultaneously
10+
- Multiple output formats - plain text, JSON, JSON streaming, CSV
11+
- Result comparison - xfr diff to detect performance regressions
12+
- LAN discovery - find xfr servers with mDNS (xfr discover)
13+
- Prometheus metrics - export stats for monitoring dashboards
14+
- Config file - save defaults in ~/.config/xfr/config.toml
15+
- Environment variables - XFR_PORT, XFR_DURATION overrides

net/xfr/Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# $NetBSD: Makefile,v 1.1 2026/02/04 13:59:40 wiz Exp $
2+
3+
DISTNAME= xfr-0.3.0
4+
CATEGORIES= net
5+
MASTER_SITES= ${MASTER_SITE_GITHUB:=lance0/}
6+
GITHUB_TAG= v${PKGVERSION_NOREV}
7+
8+
MAINTAINER= pkgsrc-users@NetBSD.org
9+
HOMEPAGE= https://github.com/lance0/xfr/
10+
COMMENT= Modern network bandwidth testing with TUI
11+
LICENSE= apache-2.0 OR mit
12+
13+
TOOL_DEPENDS+= cmake-[0-9]*:../../devel/cmake
14+
15+
.include "cargo-depends.mk"
16+
17+
INSTALLATION_DIRS= ${PKGMANDIR}/man1 share/examples/xfr
18+
19+
post-install:
20+
${INSTALL_MAN} ${WRKSRC}/doc/xfr.1 \
21+
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xfr.1
22+
${INSTALL_DATA} ${WRKSRC}/examples/config.toml \
23+
${DESTDIR}${PREFIX}/share/examples/xfr/config.toml
24+
25+
.include "../../lang/rust/cargo.mk"
26+
.include "../../mk/bsd.pkg.mk"

net/xfr/PLIST

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@comment $NetBSD: PLIST,v 1.1 2026/02/04 13:59:40 wiz Exp $
2+
bin/xfr
3+
man/man1/xfr.1
4+
share/examples/xfr/config.toml

0 commit comments

Comments
 (0)