Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2026 21:29:00 +0000
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Cc:        Thomas Dreibholz <thomas.dreibholz@gmail.com>
Subject:   git: b56dc81cc95d - main - net/subnetcalc: Update 2.6.6 => 2.7.1
Message-ID:  <6a1b569c.3a0ce.469aee5e@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b56dc81cc95d3a476fc0b04b7911b945b5281cb0

commit b56dc81cc95d3a476fc0b04b7911b945b5281cb0
Author:     Thomas Dreibholz <thomas.dreibholz@gmail.com>
AuthorDate: 2026-05-30 21:14:43 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-05-30 21:14:43 +0000

    net/subnetcalc: Update 2.6.6 => 2.7.1
    
    This new version provides several improvements:
    * Replaced deprecated libGeoIP by libMaxMindDB. This particularly again
      allows GeoIP support under FreeBSD. Optionally, GeoIP support can be
      disabled.
    * IDN is now supported under FreeBSD as well.
    * I18N support is configurable.
    
    Changelog:
    https://github.com/dreibh/subnetcalc/blob/subnetcalc-2.7.1/ChangeLog
    
    Commit log:
    https://github.com/dreibh/subnetcalc/compare/subnetcalc-2.6.6...subnetcalc-2.7.1
    
    PR:             295695
    Sponsored by:   UNIS Labs
---
 net/subnetcalc/Makefile  | 23 +++++++++++++++--------
 net/subnetcalc/distinfo  |  6 +++---
 net/subnetcalc/pkg-plist |  6 ++++++
 3 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/net/subnetcalc/Makefile b/net/subnetcalc/Makefile
index 043ec855b4a6..c518821e01c0 100644
--- a/net/subnetcalc/Makefile
+++ b/net/subnetcalc/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	subnetcalc
-DISTVERSION=	2.6.6
+DISTVERSION=	2.7.1
 CATEGORIES=	net
 MASTER_SITES=	https://www.nntb.no/~dreibh/subnetcalc/download/
 
@@ -10,13 +10,20 @@ WWW=		https://www.nntb.no/~dreibh/subnetcalc/
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cmake gettext tar:xz
+LIB_DEPENDS=	libidn2.so:dns/libidn2
 
-PLIST_FILES=	bin/subnetcalc \
-		share/bash-completion/completions/subnetcalc \
-		share/locale/de/LC_MESSAGES/subnetcalc.mo \
-		share/locale/ka/LC_MESSAGES/subnetcalc.mo \
-		share/locale/nb/LC_MESSAGES/subnetcalc.mo \
-		share/man/man1/subnetcalc.1.gz
+USES=		cmake tar:xz
+
+OPTIONS_DEFINE=		GEOIP NLS
+OPTIONS_DEFAULT=	GEOIP
+OPTIONS_SUB=		yes
+
+GEOIP_DESC=		Build with GeoIP support
+
+GEOIP_LIB_DEPENDS=	libmaxminddb.so:net/libmaxminddb
+GEOIP_CMAKE_BOOL=	WITH_GEOIP
+
+NLS_USES=		gettext
+NLS_CMAKE_BOOL=		WITH_I18N
 
 .include <bsd.port.mk>
diff --git a/net/subnetcalc/distinfo b/net/subnetcalc/distinfo
index bb7d7e76b305..eb189fe83de4 100644
--- a/net/subnetcalc/distinfo
+++ b/net/subnetcalc/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1776597888
-SHA256 (subnetcalc-2.6.6.tar.xz) = b1c9c0b74e90dbc1c8d9fe8bd9b89b5dd2f37533bf4fda7a90b438dcf0f2d936
-SIZE (subnetcalc-2.6.6.tar.xz) = 150600
+TIMESTAMP = 1780066915
+SHA256 (subnetcalc-2.7.1.tar.xz) = 2ef4e8bf77bbc9f866cd433ee5e8dcc3924a7e858128371863d6720584fa0033
+SIZE (subnetcalc-2.7.1.tar.xz) = 154180
diff --git a/net/subnetcalc/pkg-plist b/net/subnetcalc/pkg-plist
new file mode 100644
index 000000000000..c08443014937
--- /dev/null
+++ b/net/subnetcalc/pkg-plist
@@ -0,0 +1,6 @@
+bin/subnetcalc
+share/bash-completion/completions/subnetcalc
+%%NLS%%share/locale/de/LC_MESSAGES/subnetcalc.mo
+%%NLS%%share/locale/ka/LC_MESSAGES/subnetcalc.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/subnetcalc.mo
+share/man/man1/subnetcalc.1.gz


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1b569c.3a0ce.469aee5e>