git: 63dbb2a3a1c3 - main - net/ipaddr: New port: Command-line IP address manipulation tool
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 Mar 2026 04:32:51 UTC
The branch main has been updated by tagattie:
URL: https://cgit.FreeBSD.org/ports/commit/?id=63dbb2a3a1c37fbf5ee0d19053a57c22fb455535
commit 63dbb2a3a1c37fbf5ee0d19053a57c22fb455535
Author: Eugene M. Kim <ab@astral.blue>
AuthorDate: 2026-03-15 04:30:28 +0000
Commit: Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-03-15 04:32:25 +0000
net/ipaddr: New port: Command-line IP address manipulation tool
ipaddr is a command-line tool for manipulating and querying IP addresses
and networks. It provides functionality similar to Python's ipaddress module
but as a standalone CLI utility.
Features include:
- IPv4 and IPv6 address normalization
- CIDR and netmask prefix notation support
- Network calculations (network, broadcast, host addressing)
- Address classification (private, loopback, multicast, etc.)
- Subnet and supernet operations
- Command chaining for complex operations
- IPv6-specific features (6to4, Teredo, zone-id)
WWW: https://github.com/astralblue/ipaddr
PR: 292621
Reported by: Eugene M. Kim <ab@astral.blue> (new maintainer)
---
net/Makefile | 1 +
net/ipaddr/Makefile | 24 ++++++++++++++++++++++++
net/ipaddr/distinfo | 3 +++
net/ipaddr/pkg-descr | 12 ++++++++++++
4 files changed, 40 insertions(+)
diff --git a/net/Makefile b/net/Makefile
index b526680fff9c..11db188100f0 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -286,6 +286,7 @@
SUBDIR += ip2location
SUBDIR += ip2proxy
SUBDIR += ip6_int
+ SUBDIR += ipaddr
SUBDIR += ipdecap
SUBDIR += ipgrab
SUBDIR += ipinfo-cli
diff --git a/net/ipaddr/Makefile b/net/ipaddr/Makefile
new file mode 100644
index 000000000000..07e05f2d2451
--- /dev/null
+++ b/net/ipaddr/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= ipaddr
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.0
+CATEGORIES= net
+
+MAINTAINER= ab@astral.blue
+COMMENT= Command-line IP address manipulation tool
+WWW= https://github.com/astralblue/ipaddr
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le riscv64
+ONLY_FOR_ARCHS_REASON= requires compiler support for __uint128_t (64-bit only)
+
+USES= cmake
+
+USE_GITHUB= yes
+GH_ACCOUNT= astralblue
+
+PLIST_FILES= bin/ipaddr \
+ share/man/man1/ipaddr.1.gz
+
+.include <bsd.port.mk>
diff --git a/net/ipaddr/distinfo b/net/ipaddr/distinfo
new file mode 100644
index 000000000000..70cce03f42b9
--- /dev/null
+++ b/net/ipaddr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1768961244
+SHA256 (astralblue-ipaddr-v1.0.0_GH0.tar.gz) = 0435b8353af71bfb637f96d201dcf40c68083da29fb3b0d5bedda067c36de6d0
+SIZE (astralblue-ipaddr-v1.0.0_GH0.tar.gz) = 45231
diff --git a/net/ipaddr/pkg-descr b/net/ipaddr/pkg-descr
new file mode 100644
index 000000000000..42bf7fc1a9be
--- /dev/null
+++ b/net/ipaddr/pkg-descr
@@ -0,0 +1,12 @@
+ipaddr is a command-line tool for manipulating and querying IP addresses
+and networks. It provides functionality similar to Python's ipaddress module
+but as a standalone CLI utility.
+
+Features include:
+- IPv4 and IPv6 address normalization
+- CIDR and netmask prefix notation support
+- Network calculations (network, broadcast, host addressing)
+- Address classification (private, loopback, multicast, etc.)
+- Subnet and supernet operations
+- Command chaining for complex operations
+- IPv6-specific features (6to4, Teredo, zone-id)