mirror of
https://git.freebsd.org/ports.git
synced 2025-05-06 02:47:37 -04:00
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
This commit is contained in:
parent
a9f1ec24af
commit
dee466c071
12 changed files with 49 additions and 96 deletions
|
@ -1,70 +1,53 @@
|
||||||
PORTNAME= openradius
|
PORTNAME= openradius
|
||||||
PORTVERSION= 0.9.12c
|
DISTVERSION= 0.9.14
|
||||||
PORTREVISION= 4
|
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= http://sites.e-advies.nl/openradius/download/ \
|
MASTER_SITES= https://codeberg.org/BSDforge/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
|
||||||
https://BSDforge.COM/projects/source/net/openradius/
|
|
||||||
|
|
||||||
MAINTAINER= portmaster@bsdforge.com
|
MAINTAINER= portmaster@bsdforge.com
|
||||||
COMMENT= RADIUS server with some actual documentation
|
COMMENT= RADIUS server with some actual documentation
|
||||||
WWW= https://BSDforge.COM/projects/net/openradius/
|
WWW= https://codeberg.org/BSDforge/${PORTNAME}/
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
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 \
|
MAKE_ENV= INST_PREFIX=${STAGEDIR}
|
||||||
freeradius-mysql
|
CONFLICTS= freeradius freeradius-mysql gnu-radius radiusd-cistron
|
||||||
|
|
||||||
CC?= gcc
|
CC?= gcc
|
||||||
CXX?= g++
|
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}"
|
SUB_LIST= LOGFILE="${LOGFILE}"
|
||||||
|
|
||||||
OPTIONS_DEFINE= LDAP DOCS EXAMPLES
|
OPTIONS_DEFINE= DOCS EXAMPLES LDAP
|
||||||
|
OPTIONS_DEFAULT= DOCS EXAMPLES
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
DOCS_DESC= Install documentstion
|
||||||
|
EXAMPLES_DESC= Include examples
|
||||||
|
LDAP_DESC= Install LDAP support
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MLDAP}
|
LDAP_USES+= ldap
|
||||||
USES+= ldap
|
LDAP_PLIST_SUB+= LDAP=""
|
||||||
PLIST_SUB+= LDAP=""
|
LDAP_PLIST_SUB_OFF+= LDAP="@comment"
|
||||||
SCRIPTS_ENV+= USE_LDAP=yes
|
LDAP_SCRIPTS_ENV+= USE_LDAP=yes
|
||||||
.else
|
|
||||||
PLIST_SUB+= LDAP="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-install:
|
post-extract:
|
||||||
|
${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
||||||
|
|
||||||
|
post-install-DOCS-on:
|
||||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/doc/async-iface-notes ${STAGEDIR}${DOCSDIR}
|
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
||||||
${INSTALL_DATA} ${WRKSRC}/doc/language.html ${STAGEDIR}${DOCSDIR}
|
|
||||||
${INSTALL_DATA} ${WRKSRC}/doc/module-interface.html ${STAGEDIR}${DOCSDIR}
|
post-install-EXAMPLES-on:
|
||||||
${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}
|
|
||||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/accounts
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/accounts
|
||||||
${INSTALL_DATA} ${WRKSRC}/examples/behaviour.sample-ldap ${STAGEDIR}${EXAMPLESDIR}
|
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
|
||||||
${INSTALL_DATA} ${WRKSRC}/examples/behaviour.sample-ldap-authbind ${STAGEDIR}${EXAMPLESDIR}
|
${STAGEDIR}${EXAMPLESDIR} "! -name redhat-sysv-init-script")
|
||||||
${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
|
|
||||||
# Configuration, copy over to sample files
|
# Configuration, copy over to sample files
|
||||||
${MKDIR} ${STAGEDIR}${ETCDIR}
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||||
.for FILE in dictionary
|
.for FILE in dictionary
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
SHA256 (openradius-0.9.12c.tar.gz) = faf55f3ede8d842a73014656c2d9e6d2516baca453709a7d5c5d13bbeaf79cc6
|
TIMESTAMP = 1716509201
|
||||||
SIZE (openradius-0.9.12c.tar.gz) = 254179
|
SHA256 (openradius-0.9.14.tar.gz) = 544a1bc25bf214d3713320d81d8ad29951da2dfbe1474ab5824c398398834810
|
||||||
|
SIZE (openradius-0.9.14.tar.gz) = 252374
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
name=openradius
|
name=openradius
|
||||||
rcvar=openradius_enable
|
rcvar=openradius_enable
|
||||||
|
|
||||||
load_rc_config ${name}
|
load_rc_config $name
|
||||||
|
|
||||||
: ${openradius_enable:=no}
|
: ${openradius_enable:=NO}
|
||||||
: ${openradius_flags=-o %%LOGFILE%%}
|
: ${openradius_flags=-o %%LOGFILE%%}
|
||||||
|
|
||||||
command=%%PREFIX%%/sbin/radiusd
|
command=%%PREFIX%%/sbin/radiusd
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- Rules.mk.orig Thu Mar 23 17:19:04 2006
|
--- Rules.mk.orig 2024-05-23 14:07:34 UTC
|
||||||
+++ Rules.mk Sun Oct 29 15:49:17 2006
|
+++ Rules.mk
|
||||||
@@ -74,19 +74,6 @@
|
@@ -74,19 +74,6 @@
|
||||||
$(CMD_INSTSBIN)
|
$(CMD_INSTSBIN)
|
||||||
$(INST) $(TGT_LIB) -m 755 -d $(INST_PREFIX)$(DIR_LIB)
|
$(INST) $(TGT_LIB) -m 755 -d $(INST_PREFIX)$(DIR_LIB)
|
||||||
|
|
|
@ -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;
|
|
||||||
|
|
|
@ -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);
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- common/Rules.mk.orig Sun Oct 29 15:53:42 2006
|
--- common/Rules.mk.orig 2024-05-23 14:07:34 UTC
|
||||||
+++ common/Rules.mk Sun Oct 29 15:53:45 2006
|
+++ common/Rules.mk
|
||||||
@@ -29,7 +29,7 @@
|
@@ -29,7 +29,7 @@
|
||||||
$(OBJS_$(d)): $(d)/platform.h
|
$(OBJS_$(d)): $(d)/platform.h
|
||||||
|
|
|
@ -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 <limits.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* DEFINES
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- etc/Rules.mk.orig Fri Mar 17 13:39:14 2006
|
--- etc/Rules.mk.orig 2024-05-23 14:07:34 UTC
|
||||||
+++ etc/Rules.mk Sun Oct 29 15:46:17 2006
|
+++ etc/Rules.mk
|
||||||
@@ -13,7 +13,6 @@
|
@@ -13,7 +13,6 @@
|
||||||
CMD_INSTETC := $(CMD_INSTETC) \
|
CMD_INSTETC := $(CMD_INSTETC) \
|
||||||
$(INST) $(d)/dictionary -m 644 -d $(INST_PREFIX)$(DIR_ETC) \
|
$(INST) $(d)/dictionary -m 644 -d $(INST_PREFIX)$(DIR_ETC) \
|
|
@ -1,5 +1,5 @@
|
||||||
--- language/Rules.mk.orig Sun Oct 29 15:55:04 2006
|
--- language/Rules.mk.orig 2024-05-23 14:07:34 UTC
|
||||||
+++ language/Rules.mk Sun Oct 29 15:55:08 2006
|
+++ language/Rules.mk
|
||||||
@@ -31,7 +31,7 @@
|
@@ -31,7 +31,7 @@
|
||||||
$(COMP)
|
$(COMP)
|
||||||
|
|
|
@ -28,12 +28,13 @@ bin/radtest
|
||||||
%%ETCDIR%%/subdicts/dict.vendors
|
%%ETCDIR%%/subdicts/dict.vendors
|
||||||
%%ETCDIR%%/subdicts/dict.wispr
|
%%ETCDIR%%/subdicts/dict.wispr
|
||||||
lib/openradius/ascfile
|
lib/openradius/ascfile
|
||||||
|
lib/openradius/debug
|
||||||
lib/openradius/delay
|
lib/openradius/delay
|
||||||
|
lib/openradius/memory
|
||||||
lib/openradius/radclient
|
lib/openradius/radclient
|
||||||
lib/openradius/radlogger
|
lib/openradius/radlogger
|
||||||
lib/openradius/radsql
|
lib/openradius/radsql
|
||||||
lib/openradius/unixpasswd
|
lib/openradius/unixpasswd
|
||||||
%%LDAP%%lib/openradius/radldap
|
|
||||||
sbin/radiusd
|
sbin/radiusd
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/async-iface-notes
|
%%PORTDOCS%%%%DOCSDIR%%/async-iface-notes
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/language.html
|
%%PORTDOCS%%%%DOCSDIR%%/language.html
|
||||||
|
|
8
net/openradius/scripts/configure
vendored
8
net/openradius/scripts/configure
vendored
|
@ -18,7 +18,7 @@ FILE_LOG = $LOGFILE
|
||||||
END
|
END
|
||||||
else
|
else
|
||||||
cat >> Makefile << END
|
cat >> Makefile << END
|
||||||
FILE_LOG = /var/log/openradius.log
|
FILE_LOG = /var/log/openradius/openradius.log
|
||||||
END
|
END
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -31,6 +31,8 @@ TGT_LIB += modules/unixpasswd/unixpasswd
|
||||||
TGT_LIB += modules/radlogger/radlogger
|
TGT_LIB += modules/radlogger/radlogger
|
||||||
TGT_LIB += modules/delay/delay
|
TGT_LIB += modules/delay/delay
|
||||||
TGT_LIB += modules/radsql/radsql
|
TGT_LIB += modules/radsql/radsql
|
||||||
|
TGT_LIB += modules/memory/memory
|
||||||
|
TGT_LIB += modules/debug/debug
|
||||||
END
|
END
|
||||||
|
|
||||||
if [ x$USE_LDAP != x ]; then
|
if [ x$USE_LDAP != x ]; then
|
||||||
|
@ -52,8 +54,8 @@ S_LL_INET =
|
||||||
|
|
||||||
### Build flags for all targets
|
### Build flags for all targets
|
||||||
#
|
#
|
||||||
CF_ALL = -g -Wall
|
CF_ALL = -g -w
|
||||||
LF_ALL =
|
LF_ALL = -s -L$LDAPLIB${LOCALBASE}/lib
|
||||||
LL_ALL =
|
LL_ALL =
|
||||||
|
|
||||||
### Module-specific build flags
|
### Module-specific build flags
|
||||||
|
|
Loading…
Add table
Reference in a new issue