From nobody Thu Aug 15 04:51:17 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wkt4P53Xrz5Ssr6; Thu, 15 Aug 2024 04:51:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wkt4P47q9z4JJS; Thu, 15 Aug 2024 04:51:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723697477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HoVhR9CFXuCszw5rwIgq5q4FWQ7x4tASQr28pKiuyLo=; b=iIUKT5QewIarQxoU7GoNAdAbWrzqWWCM6IwXhlcj9p1S6m6GeSihUFAh89YEeplxCLhMWL N0jDwLm+4r54zRrh2sc0q1kGJQf9YpjlQWlQeRuKVZpjlbY619oVUywtUGQnQLxLToaTv7 7B0jO6OeCUzRLA9HUpwQvTgEtIA0y9isN4p2iOPfRZTRFnL9Ssy6Tmg7Z4fnAPJeP0R/GH Eb2JzS5yypVSHRmOkJinP7aM72jwwwSmaEBisRuRuOlm4IqhdO2r9vfzrOOOl79D8HjCUX ybugzXYHd/13D/GSCO6hKniq3PyFXUQ6osS80eDhSwtLzaMP67efAcd+LeWyxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723697477; a=rsa-sha256; cv=none; b=CQJL/1o3xOpy1v8Zsd2M/kdduKUVj67wqjvzMeVNMcjNoEf0inwxgkI9Jh9RwcEOjQ8e4t 3LppCYfuuqRh7dMqbkGAK5HGm/QIV9FLw93f+LlkqB7hU8Bb7ZJ18kOyi9fy0AUf8q38Ye /rJ1qXmebCZrdHGMUKdnSGKXY51BZONIhrGdFuEdS9QLLn96L8gyNIX9KFT0f6awvn9mA8 jBBiBEfPMndd+y67zI85d1A2fyp6nrhnOsZvrLSjQt7BV1FVvlmnrRiJvxEfyepVID2Ieg 4sq5Xvl5JYR3wWQjij+6gSuJ/Twx22kZHGk+j0GBSp8slvb06LkwIPUCYqeMCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723697477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HoVhR9CFXuCszw5rwIgq5q4FWQ7x4tASQr28pKiuyLo=; b=pv1McnABE2S5QgQ5YdpYq8fQBQdXO9gz6d8pIAyEWafX4U0IKIHtofrXyuM/Z6dyk9VKUv l94ScuxMtwx4cKZ4+MLW1XaR+nVGibe3wsp17DkzegKPNjQ1V/eL6/ZgtRO5JJb5sR47Z1 vjYMzJZheiR4f1MbBktIHgvuWTMl195xPVIS8kqcALa9k9ckiPFyDA6aR3erNt+fyO4TlF BkdTHLvgkChCZda/rujMW1aMs1oQwyNTCtEEuinJRFOQ6zoDpS8rITEZLvspeY0AQvmZBP mb8KL8j0Rr4ziDP+1T3Kc3PuFTpk2dPjtY3NACEsCXRV6Yl6pu57Xlq3QC2mFA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wkt4P3gw0z1NYd; Thu, 15 Aug 2024 04:51:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47F4pH6j040284; Thu, 15 Aug 2024 04:51:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47F4pHlk040281; Thu, 15 Aug 2024 04:51:17 GMT (envelope-from git) Date: Thu, 15 Aug 2024 04:51:17 GMT Message-Id: <202408150451.47F4pHlk040281@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Zsolt Udvari Subject: git: dee466c071b5 - main - net/openradius: update to 0.9.14 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: uzsolt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dee466c071b5f1cff1aa85e394e60cd17affcfdc Auto-Submitted: auto-generated The branch main has been updated by uzsolt: URL: https://cgit.FreeBSD.org/ports/commit/?id=dee466c071b5f1cff1aa85e394e60cd17affcfdc commit dee466c071b5f1cff1aa85e394e60cd17affcfdc Author: Chris Hutchinson AuthorDate: 2024-08-14 18:44:42 +0000 Commit: Zsolt Udvari CommitDate: 2024-08-15 04:50:56 +0000 net/openradius: update to 0.9.14 Update WWW and MASTER_SITES. Pet portlint, portfmt, portclippy. Changelog: https://codeberg.org/BSDforge/openradius/src/branch/main/CHANGELOG PR: 277588 Approved by: submitter is maintainer --- net/openradius/Makefile | 75 +++++++++------------- net/openradius/distinfo | 5 +- net/openradius/files/openradius.in | 4 +- net/openradius/files/patch-Rules.mk | 4 +- net/openradius/files/patch-common-misc.c | 11 ---- net/openradius/files/patch-common-misc.h | 11 ---- ...patch-common-Rules.mk => patch-common_Rules.mk} | 4 +- net/openradius/files/patch-constants.h | 12 ---- .../{patch-ETCRules.mk => patch-etc_Rules.mk} | 4 +- ...h-language-Rules.mk => patch-language_Rules.mk} | 4 +- net/openradius/pkg-plist | 3 +- net/openradius/scripts/configure | 8 ++- 12 files changed, 49 insertions(+), 96 deletions(-) diff --git a/net/openradius/Makefile b/net/openradius/Makefile index 1e9d05916d74..7c4f624e9e86 100644 --- a/net/openradius/Makefile +++ b/net/openradius/Makefile @@ -1,70 +1,53 @@ PORTNAME= openradius -PORTVERSION= 0.9.12c -PORTREVISION= 4 +DISTVERSION= 0.9.14 CATEGORIES= net -MASTER_SITES= http://sites.e-advies.nl/openradius/download/ \ - https://BSDforge.COM/projects/source/net/openradius/ +MASTER_SITES= https://codeberg.org/BSDforge/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/ MAINTAINER= portmaster@bsdforge.com COMMENT= RADIUS server with some actual documentation -WWW= https://BSDforge.COM/projects/net/openradius/ +WWW= https://codeberg.org/BSDforge/${PORTNAME}/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -LOGFILE?= /var/log/openradius.log +USES= cpe gmake shebangfix +USE_RC_SUBR= openradius +SHEBANG_FILES= modules/ascfile/ascfile modules/debug/debug \ + modules/memory/memory modules/radsql/radsql \ + modules/unixpasswd/unixpasswd +LOGFILE?= /var/log/openradius/openradius.log -CONFLICTS= freeradius gnu-radius radiusd-cistron \ - freeradius-mysql +MAKE_ENV= INST_PREFIX=${STAGEDIR} +CONFLICTS= freeradius freeradius-mysql gnu-radius radiusd-cistron CC?= gcc CXX?= g++ -MAKE_ENV= INST_PREFIX=${STAGEDIR} -USES= cpe gmake shebangfix -SHEBANG_FILES= modules/ascfile/ascfile \ - modules/radsql/radsql \ - modules/unixpasswd/unixpasswd -USE_RC_SUBR= openradius SUB_LIST= LOGFILE="${LOGFILE}" -OPTIONS_DEFINE= LDAP DOCS EXAMPLES +OPTIONS_DEFINE= DOCS EXAMPLES LDAP +OPTIONS_DEFAULT= DOCS EXAMPLES -.include +DOCS_DESC= Install documentstion +EXAMPLES_DESC= Include examples +LDAP_DESC= Install LDAP support -.if ${PORT_OPTIONS:MLDAP} -USES+= ldap -PLIST_SUB+= LDAP="" -SCRIPTS_ENV+= USE_LDAP=yes -.else -PLIST_SUB+= LDAP="@comment " -.endif +LDAP_USES+= ldap +LDAP_PLIST_SUB+= LDAP="" +LDAP_PLIST_SUB_OFF+= LDAP="@comment" +LDAP_SCRIPTS_ENV+= USE_LDAP=yes -post-install: +post-extract: + ${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}-${DISTVERSION} + +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/async-iface-notes ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/language.html ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/module-interface.html ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/note-behaviourfile ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/note-struct-ownership ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/using-openradius.html ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) + +post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/accounts - ${INSTALL_DATA} ${WRKSRC}/examples/behaviour.sample-ldap ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/behaviour.sample-ldap-authbind ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/behaviour.sample-mysql ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/behaviour.sample-postgres ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/behaviour.sample-unixpass ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/behaviour.sample-usersfile ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/configuration.sample-ldap ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/configuration.sample-ldap-authbind ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/configuration.sample-mysql ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/configuration.sample-postgres ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/configuration.sample-unixpass ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/configuration.sample-usersfile ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/accounts/README ${STAGEDIR}${EXAMPLESDIR}/accounts - ${INSTALL_DATA} ${WRKSRC}/examples/accounts/accounts.mysql ${STAGEDIR}${EXAMPLESDIR}/accounts - ${INSTALL_DATA} ${WRKSRC}/examples/accounts/behaviour ${STAGEDIR}${EXAMPLESDIR}/accounts - ${INSTALL_DATA} ${WRKSRC}/examples/accounts/configuration ${STAGEDIR}${EXAMPLESDIR}/accounts + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ + ${STAGEDIR}${EXAMPLESDIR} "! -name redhat-sysv-init-script") # Configuration, copy over to sample files ${MKDIR} ${STAGEDIR}${ETCDIR} .for FILE in dictionary diff --git a/net/openradius/distinfo b/net/openradius/distinfo index 64acb4f1b6c4..38697f9a095b 100644 --- a/net/openradius/distinfo +++ b/net/openradius/distinfo @@ -1,2 +1,3 @@ -SHA256 (openradius-0.9.12c.tar.gz) = faf55f3ede8d842a73014656c2d9e6d2516baca453709a7d5c5d13bbeaf79cc6 -SIZE (openradius-0.9.12c.tar.gz) = 254179 +TIMESTAMP = 1716509201 +SHA256 (openradius-0.9.14.tar.gz) = 544a1bc25bf214d3713320d81d8ad29951da2dfbe1474ab5824c398398834810 +SIZE (openradius-0.9.14.tar.gz) = 252374 diff --git a/net/openradius/files/openradius.in b/net/openradius/files/openradius.in index 380dadedd0ee..938480ef0dc9 100644 --- a/net/openradius/files/openradius.in +++ b/net/openradius/files/openradius.in @@ -17,9 +17,9 @@ name=openradius rcvar=openradius_enable -load_rc_config ${name} +load_rc_config $name -: ${openradius_enable:=no} +: ${openradius_enable:=NO} : ${openradius_flags=-o %%LOGFILE%%} command=%%PREFIX%%/sbin/radiusd diff --git a/net/openradius/files/patch-Rules.mk b/net/openradius/files/patch-Rules.mk index 8960625292c1..4acba7b5161e 100644 --- a/net/openradius/files/patch-Rules.mk +++ b/net/openradius/files/patch-Rules.mk @@ -1,5 +1,5 @@ ---- Rules.mk.orig Thu Mar 23 17:19:04 2006 -+++ Rules.mk Sun Oct 29 15:49:17 2006 +--- Rules.mk.orig 2024-05-23 14:07:34 UTC ++++ Rules.mk @@ -74,19 +74,6 @@ $(CMD_INSTSBIN) $(INST) $(TGT_LIB) -m 755 -d $(INST_PREFIX)$(DIR_LIB) diff --git a/net/openradius/files/patch-common-misc.c b/net/openradius/files/patch-common-misc.c deleted file mode 100644 index 828dd80a515d..000000000000 --- a/net/openradius/files/patch-common-misc.c +++ /dev/null @@ -1,11 +0,0 @@ ---- common/misc.c.orig 2009-07-07 18:15:41.000000000 +0100 -+++ common/misc.c 2009-07-07 18:17:20.000000000 +0100 -@@ -43,7 +43,7 @@ - */ - - --char *memrchr(char *s, int c, ssize_t len) -+char *memrchr9(char *s, int c, ssize_t len) - { - char *ret; - diff --git a/net/openradius/files/patch-common-misc.h b/net/openradius/files/patch-common-misc.h deleted file mode 100644 index 121bf103513d..000000000000 --- a/net/openradius/files/patch-common-misc.h +++ /dev/null @@ -1,11 +0,0 @@ ---- common/misc.h.orig 2009-07-07 18:15:47.000000000 +0100 -+++ common/misc.h 2009-07-07 18:17:01.000000000 +0100 -@@ -90,7 +90,7 @@ - * PROTOTYPES - */ - --char *memrchr(char *s, int c, ssize_t len); -+char *memrchr9(char *s, int c, ssize_t len); - void hex(char *buf, const char *src, ssize_t len); - void hmac_md5(char *out, char *in, META_ORD inl, char *key, META_ORD keyl); - void get_random_data(char *p, ssize_t len); diff --git a/net/openradius/files/patch-common-Rules.mk b/net/openradius/files/patch-common_Rules.mk similarity index 66% rename from net/openradius/files/patch-common-Rules.mk rename to net/openradius/files/patch-common_Rules.mk index 56e32013bf16..8199f43b614a 100644 --- a/net/openradius/files/patch-common-Rules.mk +++ b/net/openradius/files/patch-common_Rules.mk @@ -1,5 +1,5 @@ ---- common/Rules.mk.orig Sun Oct 29 15:53:42 2006 -+++ common/Rules.mk Sun Oct 29 15:53:45 2006 +--- common/Rules.mk.orig 2024-05-23 14:07:34 UTC ++++ common/Rules.mk @@ -29,7 +29,7 @@ $(OBJS_$(d)): $(d)/platform.h diff --git a/net/openradius/files/patch-constants.h b/net/openradius/files/patch-constants.h deleted file mode 100644 index ee412cb27805..000000000000 --- a/net/openradius/files/patch-constants.h +++ /dev/null @@ -1,12 +0,0 @@ ---- common/constants.h.orig Thu Mar 23 18:15:07 2006 -+++ common/constants.h Thu Jan 18 14:57:54 2007 -@@ -16,6 +16,8 @@ - * 2003/06/23 - EvB - Added constants needed for accept/reject/acctresp ops. - */ - -+/* Required for LONG_MAX */ -+#include - - /* - * DEFINES - diff --git a/net/openradius/files/patch-ETCRules.mk b/net/openradius/files/patch-etc_Rules.mk similarity index 83% rename from net/openradius/files/patch-ETCRules.mk rename to net/openradius/files/patch-etc_Rules.mk index c1672dfde65e..cd8ccc3eab09 100644 --- a/net/openradius/files/patch-ETCRules.mk +++ b/net/openradius/files/patch-etc_Rules.mk @@ -1,5 +1,5 @@ ---- etc/Rules.mk.orig Fri Mar 17 13:39:14 2006 -+++ etc/Rules.mk Sun Oct 29 15:46:17 2006 +--- etc/Rules.mk.orig 2024-05-23 14:07:34 UTC ++++ etc/Rules.mk @@ -13,7 +13,6 @@ CMD_INSTETC := $(CMD_INSTETC) \ $(INST) $(d)/dictionary -m 644 -d $(INST_PREFIX)$(DIR_ETC) \ diff --git a/net/openradius/files/patch-language-Rules.mk b/net/openradius/files/patch-language_Rules.mk similarity index 64% rename from net/openradius/files/patch-language-Rules.mk rename to net/openradius/files/patch-language_Rules.mk index faffdf82327f..a42ab3e4f959 100644 --- a/net/openradius/files/patch-language-Rules.mk +++ b/net/openradius/files/patch-language_Rules.mk @@ -1,5 +1,5 @@ ---- language/Rules.mk.orig Sun Oct 29 15:55:04 2006 -+++ language/Rules.mk Sun Oct 29 15:55:08 2006 +--- language/Rules.mk.orig 2024-05-23 14:07:34 UTC ++++ language/Rules.mk @@ -31,7 +31,7 @@ $(COMP) diff --git a/net/openradius/pkg-plist b/net/openradius/pkg-plist index c659d5bdb265..942562818155 100644 --- a/net/openradius/pkg-plist +++ b/net/openradius/pkg-plist @@ -28,12 +28,13 @@ bin/radtest %%ETCDIR%%/subdicts/dict.vendors %%ETCDIR%%/subdicts/dict.wispr lib/openradius/ascfile +lib/openradius/debug lib/openradius/delay +lib/openradius/memory lib/openradius/radclient lib/openradius/radlogger lib/openradius/radsql lib/openradius/unixpasswd -%%LDAP%%lib/openradius/radldap sbin/radiusd %%PORTDOCS%%%%DOCSDIR%%/async-iface-notes %%PORTDOCS%%%%DOCSDIR%%/language.html diff --git a/net/openradius/scripts/configure b/net/openradius/scripts/configure index 637cb8ee7b6e..9533aeb45c42 100644 --- a/net/openradius/scripts/configure +++ b/net/openradius/scripts/configure @@ -18,7 +18,7 @@ FILE_LOG = $LOGFILE END else cat >> Makefile << END -FILE_LOG = /var/log/openradius.log +FILE_LOG = /var/log/openradius/openradius.log END fi @@ -31,6 +31,8 @@ TGT_LIB += modules/unixpasswd/unixpasswd TGT_LIB += modules/radlogger/radlogger TGT_LIB += modules/delay/delay TGT_LIB += modules/radsql/radsql +TGT_LIB += modules/memory/memory +TGT_LIB += modules/debug/debug END if [ x$USE_LDAP != x ]; then @@ -52,8 +54,8 @@ S_LL_INET = ### Build flags for all targets # -CF_ALL = -g -Wall -LF_ALL = +CF_ALL = -g -w +LF_ALL = -s -L$LDAPLIB${LOCALBASE}/lib LL_ALL = ### Module-specific build flags