git: fd68fdb7e340 - main - net/freeradius3: Update to 3.2.1

From: Ryan Steinmetz <zi_at_FreeBSD.org>
Date: Thu, 27 Oct 2022 16:45:34 UTC
The branch main has been updated by zi:

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

commit fd68fdb7e340c9bcb2c71961875c3029888e80b1
Author:     Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2022-10-27 16:44:49 +0000
Commit:     Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2022-10-27 16:44:49 +0000

    net/freeradius3: Update to 3.2.1
    
    PR:             267061
    Submitted by:   Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
---
 net/freeradius3/Makefile               | 20 +++++++++++--
 net/freeradius3/distinfo               |  6 ++--
 net/freeradius3/files/patch-install-sh | 11 --------
 net/freeradius3/pkg-plist              | 51 +++++++++++++++++++---------------
 4 files changed, 50 insertions(+), 38 deletions(-)

diff --git a/net/freeradius3/Makefile b/net/freeradius3/Makefile
index ada17c5ba3cd..1ea59d825cc5 100644
--- a/net/freeradius3/Makefile
+++ b/net/freeradius3/Makefile
@@ -1,5 +1,7 @@
+# Created by: Ryan Steinmetz <zi@FreeBSD.org>
+
 PORTNAME=	freeradius
-DISTVERSION=	3.0.25
+DISTVERSION=	3.2.1
 CATEGORIES=	net
 MASTER_SITES=	https://github.com/FreeRADIUS/freeradius-server/releases/download/release_${DISTVERSION:S/./_/g}/ \
 		https://freeradius.org/ftp/pub/radius/%SUBDIR%/ \
@@ -15,6 +17,10 @@ WWW=		https://www.freeradius.org/
 
 LICENSE=	GPLv2
 
+BROKEN_SSL=			libressl libressl-devel
+BROKEN_SSL_REASON_libressl=	LibreSSL is no longer supported
+BROKEN_SSL_REASON_libressl-devel=	${BROKEN_SSL_REASON_libressl}
+
 LIB_DEPENDS=	libgdbm.so:databases/gdbm \
 		libtalloc.so:devel/talloc
 
@@ -52,7 +58,7 @@ OPTIONS_SUB=	yes
 OPTIONS_DEFINE=	USER LDAP MYSQL PGSQL UNIXODBC FIREBIRD REDIS \
 		EXPERIMENTAL UDPFROMTO DEVELOPER EDIR PERL REST \
 		FREETDS IDN DOCS SQLITE3 PYTHON RUBY UNBOUND PCRE \
-		WINBIND EXAMPLES
+		WINBIND EXAMPLES JSON
 OPTIONS_DEFAULT=USER PERL HEIMDAL UDPFROMTO
 OPTIONS_SINGLE=	KRB
 OPTIONS_SINGLE_KRB=	NOKRB HEIMDAL HEIMDAL_PORT MITKRB_PORT
@@ -85,6 +91,7 @@ DEVELOPER_DESC=		Enable developer options
 EDIR_DESC=		Enable eDirectory support (implies LDAP)
 REST_DESC=		Enable RESTful API support
 WINBIND_DESC=		Enable native winbind support in rlm_mschap
+JSON_DESC=		With JSON support
 
 EDIR_CONFIGURE_WITH=		edir
 EDIR_IMPLIES=			LDAP
@@ -147,6 +154,10 @@ UNIXODBC_LIB_DEPENDS=		libodbc.so:databases/unixODBC
 WINBIND_USES=			samba:build,lib
 WINBIND_CONFIGURE_ON=		--with-winbind-include-dir=${LOCALBASE}/include/samba4 \
 				--with-winbind-lib-dir=${LOCALBASE}/lib/samba4
+JSON_CONFIGURE_WITH=		rlm_json
+JSON_CONFIGURE_ON=		--with-jsonc-lib-dir=${LOCALBASE}/lib \
+				--with-jsonc-include-dir=${LOCALBASE}/include
+JSON_LIB_DEPENDS=		libjson-c.so:devel/json-c
 
 .include <bsd.port.options.mk>
 
@@ -198,6 +209,11 @@ EXPM=		yes
 EXPM=		yes
 .endif
 
+# json module is still experimental
+.if ${PORT_OPTIONS:MJSON} && empty(PORT_OPTIONS:MEXPERIMENTAL)
+EXPM=		yes
+.endif
+
 .if ${PORT_OPTIONS:MEXPERIMENTAL} || defined(EXPM)
 CONFIGURE_ARGS+=--with-experimental-modules
 PLIST_SUB+=	EXPM=""
diff --git a/net/freeradius3/distinfo b/net/freeradius3/distinfo
index 1cf1ba661fa3..cb1f17ef334c 100644
--- a/net/freeradius3/distinfo
+++ b/net/freeradius3/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1633704252
-SHA256 (freeradius-server-3.0.25.tar.bz2) = fc158cdab4a705b179b1a91cd72473006ef4dfb570b0d097db6c9c34049a4509
-SIZE (freeradius-server-3.0.25.tar.bz2) = 3402380
+TIMESTAMP = 1665076845
+SHA256 (freeradius-server-3.2.1.tar.bz2) = 32cd4eae3c24af2893aa5feff643bc9ac0755341b2b7e8dd622c6e9a23e9f256
+SIZE (freeradius-server-3.2.1.tar.bz2) = 3399164
diff --git a/net/freeradius3/files/patch-install-sh b/net/freeradius3/files/patch-install-sh
deleted file mode 100644
index e0742d564d16..000000000000
--- a/net/freeradius3/files/patch-install-sh
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./install-sh.orig	2014-05-13 12:44:10.000000000 -0400
-+++ ./install-sh	2014-05-13 12:44:43.000000000 -0400
-@@ -120,7 +120,7 @@
- 		instcmd=:
- 		chmodcmd=""
- 	else
--		instcmd=mkdir
-+		instcmd="mkdir -p"
- 	fi
- else
- 
diff --git a/net/freeradius3/pkg-plist b/net/freeradius3/pkg-plist
index 130e9fe685a5..ca24e1c120bf 100644
--- a/net/freeradius3/pkg-plist
+++ b/net/freeradius3/pkg-plist
@@ -1,5 +1,5 @@
-@unexec different=0 ; for i in `find %D/%%EXAMPLESDIR%%/raddb/certs/ -type f -print | sed -e 's:^%D/%%EXAMPLESDIR%%/raddb/certs/::g'`; do if ! cmp -hsz %D/%%EXAMPLESDIR%%/raddb/certs/${i} %D/etc/raddb/certs/${i}; then different=1; break; fi; done; if [ ${different} -eq 0 ] && diff -rq --exclude=certs %D/%%EXAMPLESDIR%%/raddb %D/etc/raddb >/dev/null 2>&1; then rm -rf %D/etc/raddb; fi
-@unexec if [ -d %D/etc/raddb ]; then echo "You should remove %D/etc/raddb if you don't need it any more."; fi
+@preunexec different=0 ; for i in `find %D/%%EXAMPLESDIR%%/raddb/certs/ -type f -print | sed -e 's:^%D/%%EXAMPLESDIR%%/raddb/certs/::g'`; do if ! cmp -hsz %D/%%EXAMPLESDIR%%/raddb/certs/${i} %D/etc/raddb/certs/${i}; then different=1; break; fi; done; if [ ${different} -eq 0 ] && diff -rq --exclude=certs %D/%%EXAMPLESDIR%%/raddb %D/etc/raddb >/dev/null 2>&1; then rm -rf %D/etc/raddb; fi
+@preunexec if [ -d %D/etc/raddb ]; then echo "You should remove %D/etc/raddb if you don't need it any more."; fi
 bin/dhcpclient
 bin/map_unit
 bin/rad_counter
@@ -122,9 +122,6 @@ include/freeradius/vqp.h
 %%LIBDIR%%/rlm_counter.a
 %%LIBDIR%%/rlm_counter.la
 %%LIBDIR%%/rlm_counter.so
-%%LIBDIR%%/rlm_cram.a
-%%LIBDIR%%/rlm_cram.la
-%%LIBDIR%%/rlm_cram.so
 %%LIBDIR%%/rlm_date.a
 %%LIBDIR%%/rlm_date.la
 %%LIBDIR%%/rlm_date.so
@@ -206,9 +203,6 @@ include/freeradius/vqp.h
 %%LIBDIR%%/rlm_mschap.a
 %%LIBDIR%%/rlm_mschap.la
 %%LIBDIR%%/rlm_mschap.so
-%%LIBDIR%%/rlm_otp.a
-%%LIBDIR%%/rlm_otp.la
-%%LIBDIR%%/rlm_otp.so
 %%LIBDIR%%/rlm_pam.a
 %%LIBDIR%%/rlm_pam.la
 %%LIBDIR%%/rlm_pam.so
@@ -245,6 +239,9 @@ include/freeradius/vqp.h
 %%LIBDIR%%/rlm_sometimes.a
 %%LIBDIR%%/rlm_sometimes.la
 %%LIBDIR%%/rlm_sometimes.so
+%%EXPM%%%%JSON%%%%LIBDIR%%/rlm_json.a
+%%EXPM%%%%JSON%%%%LIBDIR%%/rlm_json.la
+%%EXPM%%%%JSON%%%%LIBDIR%%/rlm_json.so
 %%EXPM%%%%REDIS%%%%LIBDIR%%/rlm_redis.a
 %%EXPM%%%%REDIS%%%%LIBDIR%%/rlm_redis.la
 %%EXPM%%%%REDIS%%%%LIBDIR%%/rlm_redis.so
@@ -287,9 +284,6 @@ include/freeradius/vqp.h
 %%LIBDIR%%/rlm_sqlcounter.a
 %%LIBDIR%%/rlm_sqlcounter.la
 %%LIBDIR%%/rlm_sqlcounter.so
-%%EXPM%%%%LIBDIR%%/rlm_sqlhpwippool.a
-%%EXPM%%%%LIBDIR%%/rlm_sqlhpwippool.la
-%%EXPM%%%%LIBDIR%%/rlm_sqlhpwippool.so
 %%LIBDIR%%/rlm_sqlippool.a
 %%LIBDIR%%/rlm_sqlippool.la
 %%LIBDIR%%/rlm_sqlippool.so
@@ -381,6 +375,7 @@ sbin/radmin
 %%PORTDOCS%%%%DOCSDIR%%/deployment/performance-testing
 %%PORTDOCS%%%%DOCSDIR%%/deployment/supervise-radiusd.rst
 %%PORTDOCS%%%%DOCSDIR%%/deployment/tuning_guide
+%%PORTDOCS%%%%DOCSDIR%%/developer/autotools.md
 %%PORTDOCS%%%%DOCSDIR%%/developer/coding-methods.rst
 %%PORTDOCS%%%%DOCSDIR%%/developer/contributing.rst
 %%PORTDOCS%%%%DOCSDIR%%/developer/module_interface.rst
@@ -627,7 +622,7 @@ sbin/radmin
 %%EXAMPLESDIR%%/raddb/mods-available/always
 %%EXAMPLESDIR%%/raddb/mods-available/attr_filter
 %%EXAMPLESDIR%%/raddb/mods-available/cache
-%%EXAMPLESDIR%%/raddb/mods-available/cache_eap
+%%EXAMPLESDIR%%/raddb/mods-available/cache_auth
 %%EXAMPLESDIR%%/raddb/mods-available/chap
 %%EXAMPLESDIR%%/raddb/mods-available/couchbase
 %%EXAMPLESDIR%%/raddb/mods-available/counter
@@ -650,8 +645,10 @@ sbin/radmin
 %%EXAMPLESDIR%%/raddb/mods-available/idn
 %%EXAMPLESDIR%%/raddb/mods-available/inner-eap
 %%EXAMPLESDIR%%/raddb/mods-available/ippool
+%%EXAMPLESDIR%%/raddb/mods-available/json
 %%EXAMPLESDIR%%/raddb/mods-available/krb5
 %%EXAMPLESDIR%%/raddb/mods-available/ldap
+%%EXAMPLESDIR%%/raddb/mods-available/ldap_google
 %%EXAMPLESDIR%%/raddb/mods-available/linelog
 %%EXAMPLESDIR%%/raddb/mods-available/logintime
 %%EXAMPLESDIR%%/raddb/mods-available/mac2ip
@@ -660,7 +657,6 @@ sbin/radmin
 %%EXAMPLESDIR%%/raddb/mods-available/moonshot-targeted-ids
 %%EXAMPLESDIR%%/raddb/mods-available/ntlm_auth
 %%EXAMPLESDIR%%/raddb/mods-available/opendirectory
-%%EXAMPLESDIR%%/raddb/mods-available/otp
 %%EXAMPLESDIR%%/raddb/mods-available/pam
 %%EXAMPLESDIR%%/raddb/mods-available/pap
 %%EXAMPLESDIR%%/raddb/mods-available/passwd
@@ -702,6 +698,7 @@ sbin/radmin
 %%EXAMPLESDIR%%/raddb/mods-config/preprocess/huntgroups
 %%PYTHON%%%%EXAMPLESDIR%%/raddb/mods-config/python3/example.py
 %%PYTHON%%%%EXAMPLESDIR%%/raddb/mods-config/python3/radiusd.py
+%%EXAMPLESDIR%%/raddb/mods-config/realm/freeradius-naptr-to-home-server.sh
 %%EXAMPLESDIR%%/raddb/mods-config/sql/counter/mysql/dailycounter.conf
 %%EXAMPLESDIR%%/raddb/mods-config/sql/counter/mysql/expire_on_login.conf
 %%EXAMPLESDIR%%/raddb/mods-config/sql/counter/mysql/monthlycounter.conf
@@ -787,8 +784,9 @@ sbin/radmin
 %%EXAMPLESDIR%%/raddb/mods-config/sql/main/postgresql/queries.conf
 %%EXAMPLESDIR%%/raddb/mods-config/sql/main/postgresql/schema.sql
 %%EXAMPLESDIR%%/raddb/mods-config/sql/main/postgresql/setup.sql
-%%EXAMPLESDIR%%/raddb/mods-config/sql/main/sqlite/process-radacct-refresh.sh
 %%EXAMPLESDIR%%/raddb/mods-config/sql/main/sqlite/process-radacct-schema.sql
+%%EXAMPLESDIR%%/raddb/mods-config/sql/main/sqlite/process-radacct-close-after-reload.pl
+%%EXAMPLESDIR%%/raddb/mods-config/sql/main/sqlite/process-radacct-new-data-usage-period.sh
 %%EXAMPLESDIR%%/raddb/mods-config/sql/main/sqlite/queries.conf
 %%EXAMPLESDIR%%/raddb/mods-config/sql/main/sqlite/schema.sql
 %%EXAMPLESDIR%%/raddb/mods-config/sql/moonshot-targeted-ids/mysql/queries.conf
@@ -800,7 +798,6 @@ sbin/radmin
 %%EXAMPLESDIR%%/raddb/mods-config/unbound/default.conf
 %%EXAMPLESDIR%%/raddb/mods-enabled/always
 %%EXAMPLESDIR%%/raddb/mods-enabled/attr_filter
-%%EXAMPLESDIR%%/raddb/mods-enabled/cache_eap
 %%EXAMPLESDIR%%/raddb/mods-enabled/chap
 %%EXAMPLESDIR%%/raddb/mods-enabled/date
 %%EXAMPLESDIR%%/raddb/mods-enabled/detail
@@ -847,6 +844,7 @@ sbin/radmin
 %%EXAMPLESDIR%%/raddb/sites-available/README
 %%EXAMPLESDIR%%/raddb/sites-available/abfab-tls
 %%EXAMPLESDIR%%/raddb/sites-available/abfab-tr-idp
+%%EXAMPLESDIR%%/raddb/sites-available/aws-nlb
 %%EXAMPLESDIR%%/raddb/sites-available/buffered-sql
 %%EXAMPLESDIR%%/raddb/sites-available/challenge
 %%EXAMPLESDIR%%/raddb/sites-available/channel_bindings
@@ -861,6 +859,7 @@ sbin/radmin
 %%EXAMPLESDIR%%/raddb/sites-available/dhcp.relay
 %%EXAMPLESDIR%%/raddb/sites-available/dynamic-clients
 %%EXAMPLESDIR%%/raddb/sites-available/example
+%%EXAMPLESDIR%%/raddb/sites-available/google-ldap-auth
 %%EXAMPLESDIR%%/raddb/sites-available/inner-tunnel
 %%EXAMPLESDIR%%/raddb/sites-available/originate-coa
 %%EXAMPLESDIR%%/raddb/sites-available/proxy-inner-tunnel
@@ -870,6 +869,7 @@ sbin/radmin
 %%EXAMPLESDIR%%/raddb/sites-available/status
 %%EXAMPLESDIR%%/raddb/sites-available/totp
 %%EXAMPLESDIR%%/raddb/sites-available/tls
+%%EXAMPLESDIR%%/raddb/sites-available/tls-cache
 %%EXAMPLESDIR%%/raddb/sites-available/virtual.example.com
 %%EXAMPLESDIR%%/raddb/sites-available/vmps
 %%EXAMPLESDIR%%/raddb/sites-enabled/default
@@ -894,6 +894,7 @@ sbin/radmin
 %%DATADIR%%/dictionary.acme
 %%DATADIR%%/dictionary.actelis
 %%DATADIR%%/dictionary.adtran
+%%DATADIR%%/dictionary.adva
 %%DATADIR%%/dictionary.aerohive
 %%DATADIR%%/dictionary.airespace
 %%DATADIR%%/dictionary.alcatel
@@ -933,6 +934,7 @@ sbin/radmin
 %%DATADIR%%/dictionary.centec
 %%DATADIR%%/dictionary.checkpoint
 %%DATADIR%%/dictionary.chillispot
+%%DATADIR%%/dictionary.ciena
 %%DATADIR%%/dictionary.cisco
 %%DATADIR%%/dictionary.cisco.asa
 %%DATADIR%%/dictionary.cisco.bbsm
@@ -946,6 +948,7 @@ sbin/radmin
 %%DATADIR%%/dictionary.compat
 %%DATADIR%%/dictionary.compatible
 %%DATADIR%%/dictionary.cosine
+%%DATADIR%%/dictionary.covaro
 %%DATADIR%%/dictionary.dante
 %%DATADIR%%/dictionary.dellemc
 %%DATADIR%%/dictionary.dhcp
@@ -968,6 +971,7 @@ sbin/radmin
 %%DATADIR%%/dictionary.foundry
 %%DATADIR%%/dictionary.freedhcp
 %%DATADIR%%/dictionary.freeradius
+%%DATADIR%%/dictionary.freeradius.evs5
 %%DATADIR%%/dictionary.freeradius.internal
 %%DATADIR%%/dictionary.freeswitch
 %%DATADIR%%/dictionary.gandalf
@@ -995,6 +999,7 @@ sbin/radmin
 %%DATADIR%%/dictionary.lucent
 %%DATADIR%%/dictionary.manzara
 %%DATADIR%%/dictionary.meinberg
+%%DATADIR%%/dictionary.mellanox
 %%DATADIR%%/dictionary.meraki
 %%DATADIR%%/dictionary.merit
 %%DATADIR%%/dictionary.meru
@@ -1007,9 +1012,11 @@ sbin/radmin
 %%DATADIR%%/dictionary.motorola.wimax
 %%DATADIR%%/dictionary.navini
 %%DATADIR%%/dictionary.net
+%%DATADIR%%/dictionary.netelastic
 %%DATADIR%%/dictionary.netscreen
 %%DATADIR%%/dictionary.networkphysics
 %%DATADIR%%/dictionary.nexans
+%%DATADIR%%/dictionary.nile
 %%DATADIR%%/dictionary.nokia
 %%DATADIR%%/dictionary.nokia.conflict
 %%DATADIR%%/dictionary.nomadix
@@ -1116,10 +1123,10 @@ sbin/radmin
 %%DATADIR%%/dictionary.zeus
 %%DATADIR%%/dictionary.zte
 %%DATADIR%%/dictionary.zyxel
-@exec if ! [ -d %D/etc/raddb -o -L %D/etc/raddb ]; then cp -RP %D/%%EXAMPLESDIR%%/raddb %D/etc/raddb; echo '===> Bootstrapping default certificates, please wait...'; %D/etc/raddb/certs/bootstrap >/dev/null 2>&1; fi
-@exec chmod -R g-w,o-rwx %D/etc/raddb
-@exec if [ ! -d /var/log/radacct ]; then mkdir -p /var/log/radacct; chmod -R go= /var/log/radacct; fi
-@exec for i in /var/log/radius.log /var/log/radutmp /var/log/radwtmp; do if [ ! -f ${i} ]; then touch ${i}; chmod go= ${i}; fi; done
-@exec mkdir -p /var/run/radiusd
-@unexec rmdir "/var/log/radacct" >/dev/null 2>&1 || :
-@unexec rmdir "/var/run/radiusd" >/dev/null 2>&1 || :
+@dir /var/log/radacct
+@dir /var/run/radiusd
+@postexec if ! [ -d %D/etc/raddb -o -L %D/etc/raddb ]; then cp -RP %D/%%EXAMPLESDIR%%/raddb %D/etc/raddb; echo '===> Bootstrapping default certificates, please wait...'; %D/etc/raddb/certs/bootstrap >/dev/null 2>&1; fi
+@postexec chmod -R g-w,o-rwx %D/etc/raddb
+@postexec if [ ! -d /var/log/radacct ]; then mkdir -p /var/log/radacct; chmod -R go= /var/log/radacct; fi
+@postexec for i in /var/log/radius.log /var/log/radutmp /var/log/radwtmp; do if [ ! -f ${i} ]; then touch ${i}; chmod go= ${i}; fi; done
+@postexec mkdir -p /var/run/radiusd