summaryrefslogtreecommitdiff
path: root/net/freeradius-python
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2017-08-26 10:07:27 +0000
committerfhajny <fhajny@pkgsrc.org>2017-08-26 10:07:27 +0000
commitc62cd2025af227a830e6260ef02cb2c1bd99cb7d (patch)
treedf887ab980ecf8ce5e7abb0814d9f3c0a1bc001b /net/freeradius-python
parent50d19f17d6565bfd414e06be65dbef78505a02e5 (diff)
downloadpkgsrc-c62cd2025af227a830e6260ef02cb2c1bd99cb7d.tar.gz
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. <ipaddr>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 <em>much</em> 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)
Diffstat (limited to 'net/freeradius-python')
-rw-r--r--net/freeradius-python/DESCR3
-rw-r--r--net/freeradius-python/Makefile17
-rw-r--r--net/freeradius-python/PLIST2
3 files changed, 22 insertions, 0 deletions
diff --git a/net/freeradius-python/DESCR b/net/freeradius-python/DESCR
new file mode 100644
index 00000000000..d49bc196e0b
--- /dev/null
+++ b/net/freeradius-python/DESCR
@@ -0,0 +1,3 @@
+FreeRADIUS rlm_python module
+
+This package provides python support for FreeRADIUS
diff --git a/net/freeradius-python/Makefile b/net/freeradius-python/Makefile
new file mode 100644
index 00000000000..a8df2109d2a
--- /dev/null
+++ b/net/freeradius-python/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2017/08/26 10:07:29 fhajny Exp $
+
+.include "../../net/freeradius/Makefile.module"
+
+PKGNAME= ${DISTNAME:S/-server/-python/}
+COMMENT= Free RADIUS rlm_python module
+CATEGORIES= net
+
+PYTHON_VERSIONS_ACCEPTED= 27
+
+CONFIGURE_ARGS+= --with-rlm_python
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/build/lib/.libs/rlm_python.so ${DESTDIR}${PREFIX}/lib
+
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/freeradius-python/PLIST b/net/freeradius-python/PLIST
new file mode 100644
index 00000000000..e671eaf7890
--- /dev/null
+++ b/net/freeradius-python/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2017/08/26 10:07:29 fhajny Exp $
+lib/rlm_python.so