From c62cd2025af227a830e6260ef02cb2c1bd99cb7d Mon Sep 17 00:00:00 2001 From: fhajny Date: Sat, 26 Aug 2017 10:07:27 +0000 Subject: Update net/freeradius to 3.0.15. Based on a PR from @coyhile (https://github.com/joyent/pkgsrc/issues/18). Splits modules with external dependencies into separate packages. The 1.1.x branch was EOL'd in 2008. No upgrade guide from 1.1.x to 3.0.x seem to exist. Summary of improvements in 3.x: - Moved configuration entries in radiusd.conf to make more sense. - Added the "integer64" and "ipv4prefix" data types. - Added RADIUS over TLS (i.e. RadSec). See raddb/sites-available/tls. - Updated internal API to support new attributes and formats. - Added code to send SNMP Traps. See raddb/trigger.conf. - Added preliminary support for Apple's Grand Central Dispatch. - Added provisions for raddb/dictionary.local, for local changes See raddb/dictionary for more details. - Added packet/s tracking. See max_pps in the "listen" section. - The %{} expansions and "unlang" conditions are now parsed at server start. Descriptive errors are produced for syntax and format errors. - Casting is now supported for "unlang" comparisons. See "man unlang" e.g. 127.0.0.1 == Framed-IP-Address. - Direct comparison of attribute references is now supported e.g. &Foo == &Bar. This avoids stringification of the attributes. - Direct assignment of attributes is now supported e.g. Foo := &Bar. It also works for "octets" data types. - Comparisons of IPv4 and IPv6 prefixes are now supported The "<" operator means "within the prefix" for comparisons. - New sha1 xlat expansion (thanks to Alan Buxey). - Colourised log messages when logging to stdout. Look for yellow warnings and red errors. Doing this will save you a LOT of grief. - If the PCRE library is available, use it (insted of the POSIX functions) to process regular expressions (thanks to Phil Mayers). - -xv now displays all the features the server was built with, and the versions of the core libraries (libtalloc, libssl). Summary of improvements in 2.x: - simple policy language (see "man unlang") - virtual servers ("raddb/sites-available/README") - IPv6 support - better proxy support ("raddb/proxy.conf") - More EAP types - Debugging output should be much easier to understand - VMPS support - More modules have been moved to "stable" status (python, etc.) - SQL configuration has been cleaned up (see "raddb/sql/*") - limited support for HUP. (The configuration for some modules is re-loaded on HUP. Nothing else is reloaded.) - check configuration and exit ("radiusd -C") - Server core is now event based (simpler, more powerful) --- net/freeradius-pgsql/DESCR | 1 + net/freeradius-pgsql/Makefile | 15 +++++++++++++++ net/freeradius-pgsql/PLIST | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 net/freeradius-pgsql/DESCR create mode 100644 net/freeradius-pgsql/Makefile create mode 100644 net/freeradius-pgsql/PLIST (limited to 'net/freeradius-pgsql') diff --git a/net/freeradius-pgsql/DESCR b/net/freeradius-pgsql/DESCR new file mode 100644 index 00000000000..dc6a8e6d4d6 --- /dev/null +++ b/net/freeradius-pgsql/DESCR @@ -0,0 +1 @@ +FreeRADIUS MySQL support diff --git a/net/freeradius-pgsql/Makefile b/net/freeradius-pgsql/Makefile new file mode 100644 index 00000000000..04c900ae0a6 --- /dev/null +++ b/net/freeradius-pgsql/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1 2017/08/26 10:07:28 fhajny Exp $ + +.include "../../net/freeradius/Makefile.module" + +PKGNAME= ${DISTNAME:S/-server/-pgsql/} +COMMENT= Free RADIUS PostgreSQL support +CATEGORIES= net + +CONFIGURE_ARGS+= --with-rlm_sql_postgresql + +do-install: + ${INSTALL_LIB} ${WRKSRC}/build/lib/.libs/rlm_sql_postgresql.so ${DESTDIR}${PREFIX}/lib + +.include "../../mk/pgsql.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/freeradius-pgsql/PLIST b/net/freeradius-pgsql/PLIST new file mode 100644 index 00000000000..6cd1762d16e --- /dev/null +++ b/net/freeradius-pgsql/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2017/08/26 10:07:28 fhajny Exp $ +lib/rlm_sql_postgresql.so -- cgit v1.2.3