summaryrefslogtreecommitdiff
path: root/net/freeradius
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
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')
-rw-r--r--net/freeradius/DEINSTALL24
-rw-r--r--net/freeradius/DESCR25
-rw-r--r--net/freeradius/INSTALL25
-rw-r--r--net/freeradius/MESSAGE20
-rw-r--r--net/freeradius/MESSAGE.pam21
-rw-r--r--net/freeradius/Makefile306
-rw-r--r--net/freeradius/Makefile.common29
-rw-r--r--net/freeradius/Makefile.module13
-rw-r--r--net/freeradius/PLIST760
-rw-r--r--net/freeradius/PLIST.dbm5
-rw-r--r--net/freeradius/PLIST.gdbm3
-rw-r--r--net/freeradius/PLIST.kerberos3
-rw-r--r--net/freeradius/PLIST.ldap3
-rw-r--r--net/freeradius/PLIST.mysql2
-rw-r--r--net/freeradius/PLIST.pam3
-rw-r--r--net/freeradius/PLIST.pgsql2
-rw-r--r--net/freeradius/distinfo22
-rw-r--r--net/freeradius/files/smf/manifest.xml40
-rw-r--r--net/freeradius/options.mk112
-rw-r--r--net/freeradius/patches/patch-ab9
-rw-r--r--net/freeradius/patches/patch-ae23
-rw-r--r--net/freeradius/patches/patch-ai95
-rw-r--r--net/freeradius/patches/patch-aj12
-rw-r--r--net/freeradius/patches/patch-ak15
-rw-r--r--net/freeradius/patches/patch-al74
-rw-r--r--net/freeradius/patches/patch-main_command.c23
-rw-r--r--net/freeradius/patches/patch-main_util.c20
-rw-r--r--net/freeradius/patches/patch-rlm_krb5_configure50
-rw-r--r--net/freeradius/patches/patch-rlm_perl_configure24
-rw-r--r--net/freeradius/patches/patch-rlm_yubikey_configure15
30 files changed, 1090 insertions, 688 deletions
diff --git a/net/freeradius/DEINSTALL b/net/freeradius/DEINSTALL
new file mode 100644
index 00000000000..5a69f2caa70
--- /dev/null
+++ b/net/freeradius/DEINSTALL
@@ -0,0 +1,24 @@
+# $NetBSD: DEINSTALL,v 1.1 2017/08/26 10:07:27 fhajny Exp $
+#
+# Remove default symlinks in ${PKG_SYSCONFDIR} for enabled modules/sites
+#
+
+SITES_ENABLED="default inner-tunnel"
+MODS_ENABLED="always attr_filter cache_eap chap date detail detail.log
+ dhcp digest dynamic_clients eap echo exec expiration expr
+ files linelog logintime mschap ntlm_auth pap passwd preprocess
+ radutmp realm replicate soh sradutmp unix unpack utf8"
+
+case ${STAGE} in
+DEINSTALL)
+ ${ECHO} "Removing default modules and sites"
+ for s in ${SITES_ENABLED}; do
+ ${RM} -f @PKG_SYSCONFDIR@/sites-enabled/${s}
+ done
+ for m in ${MODS_ENABLED}; do
+ ${RM} -f @PKG_SYSCONFDIR@/mods-enabled/${m}
+ done
+ ${RMDIR} @PKG_SYSCONFDIR@/sites-enabled
+ ${RMDIR} @PKG_SYSCONFDIR@/mods-enabled
+ ;;
+esac
diff --git a/net/freeradius/DESCR b/net/freeradius/DESCR
index 0c9d4b6a0b4..b4ff8e21750 100644
--- a/net/freeradius/DESCR
+++ b/net/freeradius/DESCR
@@ -1,23 +1,2 @@
- All code in this server was written from scratch.
-
- The server is mostly compatible with livingston radiusd-2.01
- (no menus or s/key support though) but with more feautures, such as:
-
- o Can limit max. number of simultaneous logins on a per-user basis!
- o Multiple DEFAULT entries, that can optionally fall-through.
- o In fact, every entry can fall-through
- o Deny/permit access based on huntgroup users dials into
- o Set certain parameters (such as static IP address) based on huntgroup
- o Extra "hints" file that can select SLIP/PPP/rlogin based on
- username pattern (Puser or user.ppp is PPP, plain "user" is rlogin etc).
- o Can execute an external program when user has authenticated (for example
- to run a sendmail queue).
- o Can use `$INCLUDE filename' in radiusd.conf, users, and dictionary files
- o Can act as a proxy server, relaying requests to a remote server
- o Supports Vendor-Specific attributes
- o No good documentation at all, just like the original radiusd 1.16!
-
- Then of course for general RADIUS questions, especially if you are using
- Livingston / Lucent RABU equipment, there is the portmaster-radius mailing
- list. Send mail to portmaster-radius-request@livingston.com to find
- out how to subscribe.
+FreeRADIUS is the most widely deployed RADIUS server in the world.
+It is the basis for multiple commercial offerings.
diff --git a/net/freeradius/INSTALL b/net/freeradius/INSTALL
new file mode 100644
index 00000000000..2d769a2f306
--- /dev/null
+++ b/net/freeradius/INSTALL
@@ -0,0 +1,25 @@
+# $NetBSD: INSTALL,v 1.1 2017/08/26 10:07:27 fhajny Exp $
+#
+# Create default symlinks in ${PKG_SYSCONFDIR} for enabled modules/sites
+#
+
+SITES_ENABLED="default inner-tunnel"
+MODS_ENABLED="always attr_filter cache_eap chap date detail detail.log
+ dhcp digest dynamic_clients eap echo exec expiration expr
+ files linelog logintime mschap ntlm_auth pap passwd preprocess
+ radutmp realm replicate soh sradutmp unix unpack utf8"
+
+case ${STAGE} in
+POST-INSTALL)
+ ${ECHO} "Enabling default modules and sites"
+ ${LN} -sf ./mods-config/preprocess/hints @PKG_SYSCONFDIR@/hints
+ ${LN} -sf ./mods-config/preprocess/huntgroups @PKG_SYSCONFDIR@/huntgroups
+ ${LN} -sf ./mods-config/files/authorize @PKG_SYSCONFDIR@/users
+ for s in ${SITES_ENABLED}; do
+ ${LN} -sf ../sites-available/${s} @PKG_SYSCONFDIR@/sites-enabled/${s}
+ done
+ for m in ${MODS_ENABLED}; do
+ ${LN} -sf ../mods-available/${m} @PKG_SYSCONFDIR@/mods-enabled/${m}
+ done
+ ;;
+esac
diff --git a/net/freeradius/MESSAGE b/net/freeradius/MESSAGE
index b093491972f..82f4e579a9e 100644
--- a/net/freeradius/MESSAGE
+++ b/net/freeradius/MESSAGE
@@ -1,17 +1,13 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.1 2006/08/10 10:55:52 adrianp Exp $
+$NetBSD: MESSAGE,v 1.2 2017/08/26 10:07:28 fhajny Exp $
-Note to users who have been running radiusd as root before:
+This package provides the FreeRADIUS server with certain core modules.
+Other modules such as rest, SQL backends, redis, etc are provided by
+other packages such as net/freeradius3-mysql.
-As radiusd now runs unprivileged by default (as ${RADIUS_USER}:${RADIUS_GROUP}),
-you'll have to adapt some permissions:
-
- ${CHOWN} -R ${RADIUS_USER}:${RADIUS_GROUP} ${VARBASE}/run/radiusd
- ${CHOWN} -R ${RADIUS_USER}:${RADIUS_GROUP} ${PKG_SYSCONFDIR}
- ${FIND} ${PKG_SYSCONFDIR} -type d | ${XARGS} ${CHMOD} 0750
- ${FIND} ${PKG_SYSCONFDIR} -type f | ${XARGS} ${CHMOD} 0640
-
-In addition to this the base logging directory has now been moved from
-${VARBASE}/log to ${VARBASE}/log/radiusd.
+Some authentication methods require SSL configuration in order to
+work. To bootstrap a self-signed SSL certificate for those
+authentication methods, one can run
+ ${BOOTSTRAP}
===========================================================================
diff --git a/net/freeradius/MESSAGE.pam b/net/freeradius/MESSAGE.pam
deleted file mode 100644
index ed829d62520..00000000000
--- a/net/freeradius/MESSAGE.pam
+++ /dev/null
@@ -1,21 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE.pam,v 1.2 2006/08/11 16:23:39 adrianp Exp $
-
-Certain PAM modules require that radiusd run as root in order to
-perform privileged operations. However, other PAM modules (e.g. pam-dbm),
-will work with with radiusd running as non-root if the non-root user is
-given the permissions necessary.
-
-If you will be using a PAM module that requires radiusd to run as root
-you can set the following in /etc/mk.conf:
-
- RADIUS_USER=root
- RADIUS_GROUP=wheel
-
-And then re-install freeradius. Alternatively, you can just change the
-following settings in your ${PKG_SYSCONFDIR}/radiusd.conf
-
- user = root
- group = wheel
-
-===========================================================================
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile
index 83dc553658d..bc15ecbcbbd 100644
--- a/net/freeradius/Makefile
+++ b/net/freeradius/Makefile
@@ -1,141 +1,215 @@
-# $NetBSD: Makefile,v 1.90 2016/10/09 21:42:01 wiz Exp $
+# $NetBSD: Makefile,v 1.91 2017/08/26 10:07:28 fhajny Exp $
-DISTNAME= freeradius-${RADVER}
-PKGREVISION= 14
-CATEGORIES= net
-MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/
+.include "Makefile.common"
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://freeradius.org/
-COMMENT= Free RADIUS server implementation
+PKGNAME= ${DISTNAME:S/-server//}
+COMMENT= Free RADIUS server implementation
-CONFLICTS+= freeradius-2.[0-9]*
-
-MAKE_JOBS_SAFE= no
-
-.include "../../mk/bsd.prefs.mk"
-
-CONFLICTS+= radiusd-cistron-[0-9]*
-USE_TOOLS+= gmake perl:run
-GNU_CONFIGURE= YES
-USE_LIBTOOL= YES
-USE_OLD_DES_API= YES
BUILD_DEFS+= VARBASE
-PLIST_SRC= ${PKGDIR}/PLIST
-FILES_SUBST+= RADIUS_USER=${RADIUS_USER}
-FILES_SUBST+= RADIUS_GROUP=${RADIUS_GROUP}
-PLIST_SUBST+= RADVER=${RADVER}
-MESSAGE_SRC+= ${PKGDIR}/MESSAGE
-MESSAGE_SUBST+= CHOWN=${CHOWN:Q} CHMOD=${CHMOD:Q} VARBASE=${VARBASE}
-MESSAGE_SUBST+= RADIUS_USER=${RADIUS_USER} XARGS=${XARGS:Q}
-MESSAGE_SUBST+= RADIUS_GROUP=${RADIUS_GROUP} FIND=${FIND:Q}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
+CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log/radiusd
+CONFIGURE_ARGS+= --without-rlm_eap_ikev2
+CONFIGURE_ARGS+= --without-rlm_eap_tnc
+CONFIGURE_ARGS+= --without-rlm_sql_freetds
+CONFIGURE_ARGS+= --without-rlm_sql_sqlite
+CONFIGURE_ARGS+= --without-rlm_cache_memcached
+CONFIGURE_ARGS+= --without-rlm_krb5
+CONFIGURE_ARGS+= --without-rlm_ldap
+CONFIGURE_ARGS+= --without-rlm_perl
+CONFIGURE_ARGS+= --without-rlm_python
+CONFIGURE_ARGS+= --without-rlm_redis
+CONFIGURE_ARGS+= --without-rlm_rediswho
+CONFIGURE_ARGS+= --without-rlm_rest
+CONFIGURE_ARGS+= --without-rlm_ruby
+CONFIGURE_ARGS+= --without-rlm_sql_iodbc
+CONFIGURE_ARGS+= --without-rlm_sql_mysql
+CONFIGURE_ARGS+= --without-rlm_sql_oracle
+CONFIGURE_ARGS+= --without-rlm_sql_postgresql
+CONFIGURE_ARGS+= --without-rlm_sql_unixodbc
-PKG_SYSCONFSUBDIR= raddb
-RCD_SCRIPTS= radiusd
-RADIUS_USER?= radius
-RADIUS_GROUP?= radius
-PKG_GROUPS= ${RADIUS_USER}
+RADIUS_GROUP?= radiusd
+RADIUS_USER?= radiusd
+PKG_GROUPS= ${RADIUS_GROUP}
PKG_USERS= ${RADIUS_USER}:${RADIUS_GROUP}
-PKG_GROUPS_VARS= RADIUS_GROUP
-PKG_USERS_VARS= RADIUS_USER
-OWN_DIRS_PERMS+= ${VARBASE}/run/radiusd \
- ${RADIUS_USER} ${RADIUS_GROUP} 0750
+PKG_HOME.${RADIUS_USER}=${VARBASE}/log/radiusd
+
OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd \
${RADIUS_USER} ${RADIUS_GROUP} 0750
-OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd/radacct \
+OWN_DIRS_PERMS+= ${VARBASE}/run/radiusd \
${RADIUS_USER} ${RADIUS_GROUP} 0750
-RADVER= 1.1.8
-EGDIR= ${PREFIX}/share/examples/freeradius
+PKG_SYSCONFSUBDIR= raddb
-BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7
+FILES_SUBST+= RADIUS_USER=${RADIUS_USER} RADIUS_GROUP=${RADIUS_GROUP}
+MESSAGE_SUBST+= BOOTSTRAP=${PKG_SYSCONFDIR:Q}/certs/bootstrap
-CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log/radiusd
-CONFIGURE_ARGS+= --localstatedir=${VARBASE}
-CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
-CONFIGURE_ARGS+= --disable-ltdl-install
-CONFIGURE_ARGS+= --with-ltdl-lib=${PREFIX}/lib
-CONFIGURE_ARGS+= --with-ltdl-include=${PREFIX}/include
-CONFIGURE_ARGS+= --without-rlm_ippool
-CONFIGURE_ARGS+= --without-rlm_smb
-CONFIGURE_ARGS+= --without-rlm_sql_iodbc
-CONFIGURE_ARGS+= --without-rlm_sql_oracle
-CONFIGURE_ARGS+= --without-rlm_sql_unixodbc
-CONFIGURE_ARGS+= --quiet
-#CONFIGURE_ARGS+= --without-rlm_eap_peap
-#CONFIGURE_ARGS+= --without-rlm_eap_sim
-#CONFIGURE_ARGS+= --without-rlm_eap_tls
-#CONFIGURE_ARGS+= --without-rlm_eap_ttls
-
-REPLACE_PERL= scripts/radsqlrelay
-
-SUBST_CLASSES+= make
-SUBST_STAGE.make= post-patch
-SUBST_FILES.make= src/modules/rlm_mschap/Makefile \
- src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in
-SUBST_SED.make= -e "s|RLM_LDFLAGS =|RLM_LDFLAGS = \
- ../../../src/lib/libradius.la|g"
-SUBST_SED.make+= -e "s|RLM_SQL_LIBS =|RLM_SQL_LIBS = \
- -L${PREFIX}/lib|g"
-SUBST_MESSAGE.make= Fixing Makefiles.
-
-SUBST_CLASSES+= config
-SUBST_STAGE.config= post-patch
-SUBST_FILES.config= raddb/radiusd.conf.in
-SUBST_SED.config= -e "s|@@RADIUS_USER@@|${RADIUS_USER}|g"
-SUBST_SED.config+= -e "s|@@RADIUS_GROUP@@|${RADIUS_GROUP}|g"
-SUBST_MESSAGE.config= Fixing configuration files.
-
-.include "options.mk"
-
-EGFILES= acct_users attrs certs/demoCA/index.txt.old \
- certs/demoCA/cacert.pem certs/demoCA/index.txt \
- certs/demoCA/serial.old certs/demoCA/serial \
- certs/newcert.pem certs/README certs/dh \
- certs/cert-clt.der certs/cert-clt.p12 certs/cert-clt.pem \
- certs/cert-srv.der certs/cert-srv.p12 certs/cert-srv.pem \
- certs/newreq.pem certs/random certs/root.der certs/root.p12 \
- certs/root.pem clients clients.conf dictionary.in eap.conf \
- experimental.conf hints huntgroups ldap.attrmap mssql.conf \
- naslist naspasswd oraclesql.conf pgsql-voip.conf \
- postgresql.conf preproxy_users proxy.conf \
- realms snmp.conf sql.conf users radiusd.conf dictionary \
- otp.conf sqlippool.conf
+EGDIR= ${PREFIX}/share/examples/freeradius
+
+EGFILES= certs/ca.cnf certs/client.cnf certs/Makefile \
+ certs/README certs/server.cnf certs/xpextensions \
+ clients.conf dictionary experimental.conf \
+ hints huntgroups \
+ mods-available/abfab_psk_sql mods-available/always \
+ mods-available/attr_filter mods-available/cache \
+ mods-available/cache_eap mods-available/chap \
+ mods-available/couchbase mods-available/counter \
+ mods-available/cui mods-available/date \
+ mods-available/detail mods-available/detail.example.com \
+ mods-available/detail.log mods-available/dhcp \
+ mods-available/dhcp_sqlippool mods-available/digest \
+ mods-available/dynamic_clients mods-available/eap \
+ mods-available/echo mods-available/etc_group \
+ mods-available/exec mods-available/expiration \
+ mods-available/expr mods-available/files \
+ mods-available/idn mods-available/inner-eap \
+ mods-available/ippool mods-available/krb5 \
+ mods-available/ldap mods-available/linelog \
+ mods-available/logintime mods-available/mac2ip \
+ mods-available/mac2vlan mods-available/mschap \
+ mods-available/ntlm_auth mods-available/opendirectory \
+ mods-available/otp mods-available/pam \
+ mods-available/pap mods-available/passwd \
+ mods-available/perl mods-available/preprocess \
+ mods-available/python mods-available/radutmp \
+ mods-available/README.rst mods-available/realm \
+ mods-available/redis mods-available/rediswho \
+ mods-available/replicate mods-available/rest \
+ mods-available/smbpasswd mods-available/smsotp \
+ mods-available/soh mods-available/sometimes \
+ mods-available/sql mods-available/sqlcounter \
+ mods-available/sqlippool mods-available/sradutmp \
+ mods-available/unbound mods-available/unix \
+ mods-available/unpack mods-available/utf8 \
+ mods-available/wimax mods-available/yubikey \
+ mods-config/attr_filter/access_challenge \
+ mods-config/attr_filter/access_reject \
+ mods-config/attr_filter/accounting_response \
+ mods-config/attr_filter/post-proxy \
+ mods-config/attr_filter/pre-proxy \
+ mods-config/files/accounting \
+ mods-config/files/authorize \
+ mods-config/files/pre-proxy \
+ mods-config/perl/example.pl \
+ mods-config/preprocess/hints \
+ mods-config/preprocess/huntgroups \
+ mods-config/README.rst \
+ mods-config/sql/counter/mysql/dailycounter.conf \
+ mods-config/sql/counter/mysql/expire_on_login.conf \
+ mods-config/sql/counter/mysql/monthlycounter.conf \
+ mods-config/sql/counter/mysql/noresetcounter.conf \
+ mods-config/sql/counter/postgresql/dailycounter.conf \
+ mods-config/sql/counter/postgresql/expire_on_login.conf \
+ mods-config/sql/counter/postgresql/monthlycounter.conf \
+ mods-config/sql/counter/postgresql/noresetcounter.conf \
+ mods-config/sql/counter/sqlite/dailycounter.conf \
+ mods-config/sql/counter/sqlite/expire_on_login.conf \
+ mods-config/sql/counter/sqlite/monthlycounter.conf \
+ mods-config/sql/counter/sqlite/noresetcounter.conf \
+ mods-config/sql/cui/mysql/queries.conf \
+ mods-config/sql/cui/mysql/schema.sql \
+ mods-config/sql/cui/postgresql/queries.conf \
+ mods-config/sql/cui/postgresql/schema.sql \
+ mods-config/sql/cui/sqlite/queries.conf \
+ mods-config/sql/cui/sqlite/schema.sql \
+ mods-config/sql/ippool/mysql/queries.conf \
+ mods-config/sql/ippool/mysql/schema.sql \
+ mods-config/sql/ippool/oracle/procedures.sql \
+ mods-config/sql/ippool/oracle/queries.conf \
+ mods-config/sql/ippool/oracle/schema.sql \
+ mods-config/sql/ippool/postgresql/queries.conf \
+ mods-config/sql/ippool/postgresql/schema.sql \
+ mods-config/sql/ippool/sqlite/queries.conf \
+ mods-config/sql/ippool/sqlite/schema.sql \
+ mods-config/sql/ippool-dhcp/mysql/queries.conf \
+ mods-config/sql/ippool-dhcp/mysql/schema.sql \
+ mods-config/sql/ippool-dhcp/oracle/queries.conf \
+ mods-config/sql/ippool-dhcp/oracle/schema.sql \
+ mods-config/sql/ippool-dhcp/sqlite/queries.conf \
+ mods-config/sql/ippool-dhcp/sqlite/schema.sql \
+ mods-config/sql/main/mssql/queries.conf \
+ mods-config/sql/main/mssql/schema.sql \
+ mods-config/sql/main/mysql/extras/wimax/queries.conf \
+ mods-config/sql/main/mysql/extras/wimax/schema.sql \
+ mods-config/sql/main/mysql/queries.conf \
+ mods-config/sql/main/mysql/schema.sql \
+ mods-config/sql/main/mysql/setup.sql \
+ mods-config/sql/main/ndb/README \
+ mods-config/sql/main/ndb/schema.sql \
+ mods-config/sql/main/ndb/setup.sql \
+ mods-config/sql/main/oracle/queries.conf \
+ mods-config/sql/main/oracle/schema.sql \
+ mods-config/sql/main/postgresql/extras/cisco_h323_db_schema.sql \
+ mods-config/sql/main/postgresql/extras/update_radacct_group.sql \
+ mods-config/sql/main/postgresql/extras/voip-postpaid.conf \
+ mods-config/sql/main/postgresql/queries.conf \
+ mods-config/sql/main/postgresql/schema.sql \
+ mods-config/sql/main/postgresql/setup.sql \
+ mods-config/sql/main/sqlite/queries.conf \
+ mods-config/sql/main/sqlite/schema.sql \
+ mods-config/unbound/default.conf \
+ panic.gdb policy.d/abfab-tr policy.d/accounting \
+ policy.d/canonicalization policy.d/control policy.d/cui \
+ policy.d/debug policy.d/dhcp policy.d/eap policy.d/filter \
+ policy.d/moonshot-targeted-ids policy.d/operator-name \
+ proxy.conf radiusd.conf README.rst \
+ sites-available/abfab-tls sites-available/abfab-tr-idp \
+ sites-available/buffered-sql sites-available/challenge \
+ sites-available/channel_bindings sites-available/check-eap-tls \
+ sites-available/coa sites-available/control-socket \
+ sites-available/copy-acct-to-home-server \
+ sites-available/decoupled-accounting \
+ sites-available/default \
+ sites-available/dhcp \
+ sites-available/dhcp.relay \
+ sites-available/dynamic-clients \
+ sites-available/example \
+ sites-available/inner-tunnel \
+ sites-available/originate-coa \
+ sites-available/proxy-inner-tunnel \
+ sites-available/README \
+ sites-available/robust-proxy-accounting \
+ sites-available/soh \
+ sites-available/status \
+ sites-available/tls \
+ sites-available/virtual.example.com \
+ users templates.conf trigger.conf
+
+EGDIRS= certs mods-available mods-config mods-config/attr_filter mods-config/files \
+ mods-config/perl mods-config/preprocess mods-config/sql mods-config/sql/counter \
+ mods-config/sql/counter/mysql mods-config/sql/counter/postgresql \
+ mods-config/sql/counter/sqlite mods-config/sql/cui mods-config/sql/cui/mysql \
+ mods-config/sql/cui/postgresql mods-config/sql/cui/sqlite mods-config/sql/ippool \
+ mods-config/sql/ippool-dhcp mods-config/sql/ippool-dhcp/mysql \
+ mods-config/sql/ippool-dhcp/oracle mods-config/sql/ippool-dhcp/sqlite \
+ mods-config/sql/ippool/mysql mods-config/sql/ippool/oracle \
+ mods-config/sql/ippool/postgresql mods-config/sql/ippool/sqlite \
+ mods-config/sql/main mods-config/sql/main/mssql mods-config/sql/main/mysql \
+ mods-config/sql/main/mysql/extras mods-config/sql/main/mysql/extras/wimax \
+ mods-config/sql/main/ndb mods-config/sql/main/oracle \
+ mods-config/sql/main/postgresql mods-config/sql/main/postgresql/extras \
+ mods-config/sql/main/sqlite mods-config/unbound mods-enabled \
+ policy.d sites-available sites-enabled
.for f in ${EGFILES}
CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} \
${RADIUS_USER} ${RADIUS_GROUP} 0640
.endfor
+CONF_FILES_PERMS+= ${EGDIR}/certs/bootstrap ${PKG_SYSCONFDIR}/certs/bootstrap \
+ ${RADIUS_USER} ${RADIUS_GROUP} 0750
-.include "../../security/openssl/buildlink3.mk"
-.include "../../devel/libltdl/buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
-
-.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
-CONFIGURE_ARGS+= --without-threads
-.endif
-
-.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "pth"
-.include "../../devel/pthread-sem/buildlink3.mk"
-SUBST_SED.make+= -e 's|@ldap_ldflags@|@ldap_ldflags@ \
- ${PTHREAD_LDFLAGS:M*:Q} ${PTHREAD_LIBS:M*:Q} -lsemaphore|g'
-.endif
+.for d in ${EGDIRS}
+OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/${d} ${RADIUS_USER} ${RADIUS_GROUP} 0750
+.endfor
-.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "native"
-SUBST_SED.make+= -e 's|@ldap_ldflags@|@ldap_ldflags@ \
- ${PTHREAD_LDFLAGS:M*:Q} ${PTHREAD_LIBS:M*:Q}|g'
-.endif
+INSTALL_MAKE_FLAGS+= raddbdir=${EGDIR}
-INSTALLATION_DIRS+= ${EGDIR}/certs/demoCA
-INSTALL_ENV+= R=${DESTDIR}
-MAKE_DIRS_PERMS+= ${PKG_SYSCONFDIR}/certs ${RADIUS_USER} ${RADIUS_GROUP} 0750
-MAKE_DIRS_PERMS+= ${PKG_SYSCONFDIR}/certs/demoCA ${RADIUS_USER} ${RADIUS_GROUP} 0750
+TEST_TARGET= test
+TEST_MAKE_FLAGS+= EAPOL_TEST=""
post-install:
-.for f in ${EGFILES}
- ${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${DESTDIR}${EGDIR}/${f}
-.endfor
- ${INSTALL_SCRIPT} ${WRKSRC}/src/modules/rlm_perl/example.pl ${DESTDIR}${EGDIR}
+ ${RM} -f ${DESTDIR}${PREFIX}/lib/*.a ${DESTDIR}${PREFIX}/lib/*.la
+.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/freeradius/Makefile.common b/net/freeradius/Makefile.common
new file mode 100644
index 00000000000..c46c736f260
--- /dev/null
+++ b/net/freeradius/Makefile.common
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile.common,v 1.1 2017/08/26 10:07:28 fhajny Exp $
+# used by net/freeradius/Makefile.module
+
+DISTNAME= freeradius-server-3.0.15
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.freeradius.org/
+LICENSE= gnu-gpl-v2
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake perl
+USE_LANGUAGES+= c c++
+
+CONFIGURE_ARGS+= --without-rlm_yubikey
+
+CFLAGS.SunOS+= -D_XPG4_2 -D__EXTENSIONS__
+LIBS.SunOS+= -lnsl -lresolv -lsocket
+
+MAKE_ENV+= R=${DESTDIR}
+MAKE_ENV+= PACKAGE=yes
+
+INSTALLATION_DIRS+= lib
+
+.include "../../databases/gdbm/buildlink3.mk"
+.include "../../devel/talloc/buildlink3.mk"
+.include "../../net/libpcap/buildlink3.mk"
diff --git a/net/freeradius/Makefile.module b/net/freeradius/Makefile.module
new file mode 100644
index 00000000000..3cf82db32e7
--- /dev/null
+++ b/net/freeradius/Makefile.module
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile.module,v 1.1 2017/08/26 10:07:28 fhajny Exp $
+
+.include "../../net/freeradius/Makefile.common"
+
+DEPENDS+= freeradius>=${PKGVERSION_NOREV}:../../net/freeradius
+
+DISTINFO_FILE= ${.CURDIR}/../../net/freeradius/distinfo
+PATCHDIR= ${.CURDIR}/../../net/freeradius/patches
+
+BUILDLINK_DEPMETHOD.gdbm?= build
+BUILDLINK_DEPMETHOD.libpcap?= build
+BUILDLINK_DEPMETHOD.openssl?= build
+BUILDLINK_DEPMETHOD.talloc?= build
diff --git a/net/freeradius/PLIST b/net/freeradius/PLIST
index b6a591952a1..98a15b60a9c 100644
--- a/net/freeradius/PLIST
+++ b/net/freeradius/PLIST
@@ -1,180 +1,242 @@
-@comment $NetBSD: PLIST,v 1.26 2014/03/11 14:05:08 jperkin Exp $
+@comment $NetBSD: PLIST,v 1.27 2017/08/26 10:07:28 fhajny Exp $
+bin/dhcpclient
+bin/map_unit
+bin/rad_counter
+bin/radattr
bin/radclient
+bin/radcrypt
bin/radeapclient
bin/radlast
-bin/radrelay
+bin/radsniff
bin/radsqlrelay
bin/radtest
bin/radwho
bin/radzap
+bin/rlm_ippool_tool
bin/smbencrypt
-lib/libeap-${RADVER}.la
-lib/libeap.la
-lib/libradius-${RADVER}.la
-lib/libradius.la
-lib/rlm_acct_unique-${RADVER}.la
-lib/rlm_acct_unique.la
-lib/rlm_always-${RADVER}.la
-lib/rlm_always.la
-lib/rlm_attr_filter-${RADVER}.la
-lib/rlm_attr_filter.la
-lib/rlm_attr_rewrite-${RADVER}.la
-lib/rlm_attr_rewrite.la
-lib/rlm_chap-${RADVER}.la
-lib/rlm_chap.la
-lib/rlm_checkval-${RADVER}.la
-lib/rlm_checkval.la
-lib/rlm_detail-${RADVER}.la
-lib/rlm_detail.la
-lib/rlm_digest-${RADVER}.la
-lib/rlm_digest.la
-lib/rlm_eap-${RADVER}.la
-lib/rlm_eap.la
-lib/rlm_eap_gtc-${RADVER}.la
-lib/rlm_eap_gtc.la
-lib/rlm_eap_leap-${RADVER}.la
-lib/rlm_eap_leap.la
-lib/rlm_eap_md5-${RADVER}.la
-lib/rlm_eap_md5.la
-lib/rlm_eap_mschapv2-${RADVER}.la
-lib/rlm_eap_mschapv2.la
-lib/rlm_eap_peap-${RADVER}.la
-lib/rlm_eap_peap.la
-lib/rlm_eap_sim-${RADVER}.la
-lib/rlm_eap_sim.la
-lib/rlm_eap_tls-${RADVER}.la
-lib/rlm_eap_tls.la
-lib/rlm_eap_ttls-${RADVER}.la
-lib/rlm_eap_ttls.la
-lib/rlm_exec-${RADVER}.la
-lib/rlm_exec.la
-lib/rlm_expr-${RADVER}.la
-lib/rlm_expr.la
-lib/rlm_fastusers-${RADVER}.la
-lib/rlm_fastusers.la
-lib/rlm_files-${RADVER}.la
-lib/rlm_files.la
-lib/rlm_mschap-${RADVER}.la
-lib/rlm_mschap.la
-lib/rlm_ns_mta_md5-${RADVER}.la
-lib/rlm_ns_mta_md5.la
-lib/rlm_otp-${RADVER}.la
-lib/rlm_otp.la
-lib/rlm_pap-${RADVER}.la
-lib/rlm_pap.la
-lib/rlm_passwd-${RADVER}.la
-lib/rlm_passwd.la
-lib/rlm_preprocess-${RADVER}.la
-lib/rlm_preprocess.la
-lib/rlm_radutmp-${RADVER}.la
-lib/rlm_radutmp.la
-lib/rlm_realm-${RADVER}.la
-lib/rlm_realm.la
-lib/rlm_sql-${RADVER}.la
-lib/rlm_sql.la
-lib/rlm_sql_log-${RADVER}.la
-lib/rlm_sql_log.la
-lib/rlm_sqlcounter-${RADVER}.la
-lib/rlm_sqlcounter.la
-lib/rlm_sqlippool-${RADVER}.la
-lib/rlm_sqlippool.la
-lib/rlm_unix-${RADVER}.la
-lib/rlm_unix.la
+include/freeradius/attributes.h
+include/freeradius/base64.h
+include/freeradius/build.h
+include/freeradius/conf.h
+include/freeradius/conffile.h
+include/freeradius/detail.h
+include/freeradius/event.h
+include/freeradius/features.h
+include/freeradius/freeradius.h
+include/freeradius/hash.h
+include/freeradius/heap.h
+include/freeradius/libradius.h
+include/freeradius/map.h
+include/freeradius/md4.h
+include/freeradius/md5.h
+include/freeradius/missing.h
+include/freeradius/modcall.h
+include/freeradius/modules.h
+include/freeradius/packet.h
+include/freeradius/rad_assert.h
+include/freeradius/radius.h
+include/freeradius/radiusd.h
+include/freeradius/radpaths.h
+include/freeradius/radutmp.h
+include/freeradius/realms.h
+include/freeradius/rfc2865.h
+include/freeradius/rfc2866.h
+include/freeradius/rfc2867.h
+include/freeradius/rfc2868.h
+include/freeradius/rfc2869.h
+include/freeradius/rfc3162.h
+include/freeradius/rfc3576.h
+include/freeradius/rfc3580.h
+include/freeradius/rfc4072.h
+include/freeradius/rfc4372.h
+include/freeradius/rfc4603.h
+include/freeradius/rfc4675.h
+include/freeradius/rfc4679.h
+include/freeradius/rfc4818.h
+include/freeradius/rfc4849.h
+include/freeradius/rfc5090.h
+include/freeradius/rfc5176.h
+include/freeradius/rfc5447.h
+include/freeradius/rfc5580.h
+include/freeradius/rfc5607.h
+include/freeradius/rfc5904.h
+include/freeradius/rfc6519.h
+include/freeradius/rfc6572.h
+include/freeradius/rfc6677.h
+include/freeradius/rfc6911.h
+include/freeradius/rfc6929.h
+include/freeradius/rfc6930.h
+include/freeradius/rfc7055.h
+include/freeradius/rfc7155.h
+include/freeradius/rfc7268.h
+include/freeradius/rfc7499.h
+include/freeradius/rfc7930.h
+include/freeradius/sha1.h
+include/freeradius/stats.h
+include/freeradius/sysutmp.h
+include/freeradius/tls.h
+include/freeradius/token.h
+include/freeradius/udpfromto.h
+include/freeradius/vqp.h
+lib/libfreeradius-dhcp.so
+lib/libfreeradius-eap.so
+lib/libfreeradius-radius.so
+lib/libfreeradius-server.so
+lib/proto_dhcp.so
+lib/proto_vmps.so
+lib/rlm_always.so
+lib/rlm_attr_filter.so
+lib/rlm_cache.so
+lib/rlm_cache_rbtree.so
+lib/rlm_chap.so
+lib/rlm_counter.so
+lib/rlm_cram.so
+lib/rlm_date.so
+lib/rlm_detail.so
+lib/rlm_dhcp.so
+lib/rlm_digest.so
+lib/rlm_dynamic_clients.so
+lib/rlm_eap.so
+lib/rlm_eap_fast.so
+lib/rlm_eap_gtc.so
+lib/rlm_eap_leap.so
+lib/rlm_eap_md5.so
+lib/rlm_eap_mschapv2.so
+lib/rlm_eap_peap.so
+lib/rlm_eap_pwd.so
+lib/rlm_eap_sim.so
+lib/rlm_eap_tls.so
+lib/rlm_eap_ttls.so
+lib/rlm_exec.so
+lib/rlm_expiration.so
+lib/rlm_expr.so
+lib/rlm_files.so
+lib/rlm_ippool.so
+lib/rlm_linelog.so
+lib/rlm_logintime.so
+lib/rlm_mschap.so
+lib/rlm_otp.so
+lib/rlm_pam.so
+lib/rlm_pap.so
+lib/rlm_passwd.so
+lib/rlm_preprocess.so
+lib/rlm_radutmp.so
+lib/rlm_realm.so
+lib/rlm_replicate.so
+lib/rlm_soh.so
+lib/rlm_sometimes.so
+lib/rlm_sql.so
+lib/rlm_sql_null.so
+lib/rlm_sqlcounter.so
+lib/rlm_sqlippool.so
+lib/rlm_test.so
+lib/rlm_unix.so
+lib/rlm_unpack.so
+lib/rlm_utf8.so
+lib/rlm_wimax.so
+man/man1/dhcpclient.1
+man/man1/rad_counter.1
man/man1/radclient.1
man/man1/radeapclient.1
man/man1/radlast.1
man/man1/radtest.1
man/man1/radwho.1
man/man1/radzap.1
-man/man5/acct_users.5
-man/man5/clients.5
+man/man1/smbencrypt.1
+man/man5/checkrad.5
man/man5/clients.conf.5
man/man5/dictionary.5
-man/man5/naslist.5
man/man5/radiusd.conf.5
-man/man5/rlm_acct_unique.5
+man/man5/radrelay.conf.5
man/man5/rlm_always.5
man/man5/rlm_attr_filter.5
-man/man5/rlm_attr_rewrite.5
man/man5/rlm_chap.5
man/man5/rlm_counter.5
man/man5/rlm_detail.5
+man/man5/rlm_digest.5
man/man5/rlm_expr.5
man/man5/rlm_files.5
+man/man5/rlm_idn.5
man/man5/rlm_mschap.5
man/man5/rlm_pap.5
man/man5/rlm_passwd.5
man/man5/rlm_realm.5
man/man5/rlm_sql.5
-man/man5/rlm_sql_log.5
man/man5/rlm_unix.5
+man/man5/unlang.5
man/man5/users.5
+man/man8/radcrypt.8
+man/man8/raddebug.8
man/man8/radiusd.8
+man/man8/radmin.8
man/man8/radrelay.8
+man/man8/radsniff.8
man/man8/radsqlrelay.8
-man/man8/radwatch.8
-sbin/check-radiusd-config
+man/man8/rlm_ippool_tool.8
sbin/checkrad
+sbin/raddebug
sbin/radiusd
-sbin/radwatch
+sbin/radmin
sbin/rc.radiusd
-share/doc/freeradius/Acct-Type
-share/doc/freeradius/Autz-Type
-share/doc/freeradius/CYGWIN
share/doc/freeradius/ChangeLog
-share/doc/freeradius/DIFFS
-share/doc/freeradius/MACOSX
-share/doc/freeradius/OS2
-share/doc/freeradius/Post-Auth-Type
-share/doc/freeradius/RADIUS-LDAP-eDirectory
-share/doc/freeradius/RADIUS-SQL.schema
+share/doc/freeradius/Makefile.sphinx
share/doc/freeradius/README
-share/doc/freeradius/Session-Type
-share/doc/freeradius/Simultaneous-Use
-share/doc/freeradius/aaa.txt
-share/doc/freeradius/ascend
-share/doc/freeradius/bay
share/doc/freeradius/bugs
-share/doc/freeradius/cisco
-share/doc/freeradius/coding-methods.txt
-share/doc/freeradius/configurable_failover
-share/doc/freeradius/duplicate-users
-share/doc/freeradius/examples/iplanet.ldif
-share/doc/freeradius/examples/iplanet.schema
-share/doc/freeradius/examples/mssql.sql
-share/doc/freeradius/examples/mysql.sql
-share/doc/freeradius/examples/openldap.schema
-share/doc/freeradius/examples/oracle.sql
-share/doc/freeradius/examples/postgresql.sql
-share/doc/freeradius/examples/postgresql.sql.extra
-share/doc/freeradius/ldap_howto.txt
-share/doc/freeradius/load-balance.txt
-share/doc/freeradius/misc-nas
-share/doc/freeradius/module_interface
-share/doc/freeradius/mssql
-share/doc/freeradius/performance-testing
-share/doc/freeradius/processing_users_file
-share/doc/freeradius/proxy
-share/doc/freeradius/radrelay
-share/doc/freeradius/release-method.txt
+share/doc/freeradius/concepts/aaa.rst
+share/doc/freeradius/concepts/proxy.rst
+share/doc/freeradius/configuration/acct_type.rst
+share/doc/freeradius/configuration/autz_type.rst
+share/doc/freeradius/configuration/configurable_failover.rst
+share/doc/freeradius/configuration/load_balance.rst
+share/doc/freeradius/configuration/post_auth_type
+share/doc/freeradius/configuration/session_type
+share/doc/freeradius/configuration/simultaneous_use
+share/doc/freeradius/configuration/snmp
+share/doc/freeradius/configuration/variables.rst
+share/doc/freeradius/deployment/CYGWIN.rst
+share/doc/freeradius/deployment/MACOSX
+share/doc/freeradius/deployment/OS2
+share/doc/freeradius/deployment/performance-testing
+share/doc/freeradius/deployment/supervise-radiusd.rst
+share/doc/freeradius/deployment/tuning_guide
+share/doc/freeradius/developer/coding-methods.rst
+share/doc/freeradius/developer/contributing.rst
+share/doc/freeradius/developer/module_interface.rst
+share/doc/freeradius/developer/release-method.rst
+share/doc/freeradius/index.rst
+share/doc/freeradius/modules/RADIUS-LDAP-eDirectory
+share/doc/freeradius/modules/ldap_howto.rst
+share/doc/freeradius/modules/mschap.rst
+share/doc/freeradius/modules/rlm_dbm
+share/doc/freeradius/modules/rlm_eap
+share/doc/freeradius/modules/rlm_expiration
+share/doc/freeradius/modules/rlm_krb5
+share/doc/freeradius/modules/rlm_pam
+share/doc/freeradius/modules/rlm_passwd
+share/doc/freeradius/modules/rlm_python
+share/doc/freeradius/modules/rlm_soh
+share/doc/freeradius/modules/rlm_sql
+share/doc/freeradius/modules/rlm_sqlcounter
+share/doc/freeradius/modules/rlm_sqlippool
+share/doc/freeradius/rfc/Makefile
share/doc/freeradius/rfc/attributes.html
share/doc/freeradius/rfc/draft-kamath-pppext-eap-mschapv2-00.txt
share/doc/freeradius/rfc/draft-sterman-aaa-sip-00.txt
+share/doc/freeradius/rfc/genref.pl
share/doc/freeradius/rfc/leap.txt
-share/doc/freeradius/rfc/pppext-eap-sim-12.txt
+share/doc/freeradius/rfc/per-rfc.pl
+share/doc/freeradius/rfc/rewrite.pl
share/doc/freeradius/rfc/rfc1157.txt
share/doc/freeradius/rfc/rfc1227.txt
share/doc/freeradius/rfc/rfc1448.txt
share/doc/freeradius/rfc/rfc1901.txt
share/doc/freeradius/rfc/rfc1905.txt
-share/doc/freeradius/rfc/rfc2058.txt
-share/doc/freeradius/rfc/rfc2059.txt
-share/doc/freeradius/rfc/rfc2138.txt
-share/doc/freeradius/rfc/rfc2139.txt
share/doc/freeradius/rfc/rfc2243.txt
+share/doc/freeradius/rfc/rfc2284.txt
share/doc/freeradius/rfc/rfc2289.txt
share/doc/freeradius/rfc/rfc2433.txt
share/doc/freeradius/rfc/rfc2548.txt
+share/doc/freeradius/rfc/rfc2607.txt
share/doc/freeradius/rfc/rfc2618.txt
share/doc/freeradius/rfc/rfc2619.txt
share/doc/freeradius/rfc/rfc2620.txt
@@ -187,140 +249,428 @@ share/doc/freeradius/rfc/rfc2866.txt
share/doc/freeradius/rfc/rfc2867.txt
share/doc/freeradius/rfc/rfc2868.txt
share/doc/freeradius/rfc/rfc2869.txt
-share/doc/freeradius/rfc/rfc2882.txt
share/doc/freeradius/rfc/rfc2924.txt
+share/doc/freeradius/rfc/rfc3079.txt
share/doc/freeradius/rfc/rfc3162.txt
+share/doc/freeradius/rfc/rfc3539.txt
share/doc/freeradius/rfc/rfc3575.txt
share/doc/freeradius/rfc/rfc3576.txt
share/doc/freeradius/rfc/rfc3579.txt
share/doc/freeradius/rfc/rfc3580.txt
-share/doc/freeradius/rlm_attr_filter
-share/doc/freeradius/rlm_dbm
-share/doc/freeradius/rlm_digest
-share/doc/freeradius/rlm_eap
-share/doc/freeradius/rlm_fastusers
-share/doc/freeradius/rlm_krb5
-share/doc/freeradius/rlm_ldap
-share/doc/freeradius/rlm_pam
-share/doc/freeradius/rlm_passwd
-share/doc/freeradius/rlm_python
-share/doc/freeradius/rlm_sim_triplets
-share/doc/freeradius/rlm_sql
-share/doc/freeradius/rlm_sqlcounter
-share/doc/freeradius/rlm_sqlippool
-share/doc/freeradius/supervise-radiusd.txt
-share/doc/freeradius/tuning_guide
-share/doc/freeradius/variables.txt
-share/examples/freeradius/acct_users
-share/examples/freeradius/attrs
+share/doc/freeradius/rfc/rfc3748.txt
+share/doc/freeradius/rfc/rfc4072.txt
+share/doc/freeradius/rfc/rfc4186.txt
+share/doc/freeradius/rfc/rfc4282.txt
+share/doc/freeradius/rfc/rfc4372.txt
+share/doc/freeradius/rfc/rfc4590.txt
+share/doc/freeradius/rfc/rfc4668.txt
+share/doc/freeradius/rfc/rfc4669.txt
+share/doc/freeradius/rfc/rfc4670.txt
+share/doc/freeradius/rfc/rfc4671.txt
+share/doc/freeradius/rfc/rfc4672.txt
+share/doc/freeradius/rfc/rfc4673.txt
+share/doc/freeradius/rfc/rfc4675.txt
+share/doc/freeradius/rfc/rfc4679.txt
+share/doc/freeradius/rfc/rfc4818.txt
+share/doc/freeradius/rfc/rfc4849.txt
+share/doc/freeradius/rfc/rfc5080.txt
+share/doc/freeradius/rfc/rfc5090.txt
+share/doc/freeradius/rfc/rfc5176.txt
+share/doc/freeradius/rfc/rfc5247.txt
+share/doc/freeradius/rfc/rfc5281.txt
+share/doc/freeradius/rfc/rfc5580.txt
+share/doc/freeradius/rfc/rfc5607.txt
+share/doc/freeradius/rfc/rfc5904.txt
+share/doc/freeradius/rfc/rfc5931.txt
+share/doc/freeradius/rfc/rfc5997.txt
+share/doc/freeradius/rfc/rfc6158.txt
+share/doc/freeradius/rfc/rfc6519.txt
+share/doc/freeradius/rfc/rfc6572.txt
+share/doc/freeradius/rfc/rfc6613.txt
+share/doc/freeradius/rfc/rfc6614.txt
+share/doc/freeradius/rfc/rfc6677.txt
+share/doc/freeradius/rfc/rfc6911.txt
+share/doc/freeradius/rfc/rfc6929.txt
+share/doc/freeradius/rfc/rfc6930.txt
+share/doc/freeradius/rfc/rfc7055.txt
+share/doc/freeradius/rfc/rfc7268.txt
+share/doc/freeradius/rfc/rfc7542.txt
+share/doc/freeradius/rfc/rfc7599.txt
+share/doc/freeradius/schemas/ldap/edir/freeradius-clients.ldif
+share/doc/freeradius/schemas/ldap/iplanet/freeradius.ldif
+share/doc/freeradius/schemas/ldap/iplanet/freeradius.schema
+share/doc/freeradius/schemas/ldap/openldap/freeradius-clients.ldif
+share/doc/freeradius/schemas/ldap/openldap/freeradius-clients.schema
+share/doc/freeradius/schemas/ldap/openldap/freeradius.ldif
+share/doc/freeradius/schemas/ldap/openldap/freeradius.schema
+share/doc/freeradius/schemas/logstash/README
+share/doc/freeradius/schemas/logstash/kibana4-dashboard.json
+share/doc/freeradius/schemas/logstash/log-courier.conf
+share/doc/freeradius/schemas/logstash/logstash-radius.conf
+share/doc/freeradius/schemas/logstash/radius-mapping.sh
+share/doc/freeradius/schemas/sql
+share/doc/freeradius/vendor/ascend
+share/doc/freeradius/vendor/bay
+share/doc/freeradius/vendor/cisco.rst
+share/doc/freeradius/vendor/proxim
+share/examples/freeradius/README.rst
+share/examples/freeradius/certs/Makefile
share/examples/freeradius/certs/README
-share/examples/freeradius/certs/cert-clt.der
-share/examples/freeradius/certs/cert-clt.p12
-share/examples/freeradius/certs/cert-clt.pem
-share/examples/freeradius/certs/cert-srv.der
-share/examples/freeradius/certs/cert-srv.p12
-share/examples/freeradius/certs/cert-srv.pem
-share/examples/freeradius/certs/demoCA/cacert.pem
-share/examples/freeradius/certs/demoCA/index.txt
-share/examples/freeradius/certs/demoCA/index.txt.old
-share/examples/freeradius/certs/demoCA/serial
-share/examples/freeradius/certs/demoCA/serial.old
-share/examples/freeradius/certs/dh
-share/examples/freeradius/certs/newcert.pem
-share/examples/freeradius/certs/newreq.pem
-share/examples/freeradius/certs/random
-share/examples/freeradius/certs/root.der
-share/examples/freeradius/certs/root.p12
-share/examples/freeradius/certs/root.pem
-share/examples/freeradius/clients
+share/examples/freeradius/certs/bootstrap
+share/examples/freeradius/certs/ca.cnf
+share/examples/freeradius/certs/client.cnf
+share/examples/freeradius/certs/server.cnf
+share/examples/freeradius/certs/xpextensions
share/examples/freeradius/clients.conf
share/examples/freeradius/dictionary
-share/examples/freeradius/dictionary.in
-share/examples/freeradius/eap.conf
-share/examples/freeradius/example.pl
share/examples/freeradius/experimental.conf
share/examples/freeradius/hints
share/examples/freeradius/huntgroups
-share/examples/freeradius/ldap.attrmap
-share/examples/freeradius/mssql.conf
-share/examples/freeradius/naslist
-share/examples/freeradius/naspasswd
-share/examples/freeradius/oraclesql.conf
-share/examples/freeradius/otp.conf
-share/examples/freeradius/pgsql-voip.conf
-share/examples/freeradius/postgresql.conf
-share/examples/freeradius/preproxy_users
+share/examples/freeradius/mods-available/README.rst
+share/examples/freeradius/mods-available/abfab_psk_sql
+share/examples/freeradius/mods-available/always
+share/examples/freeradius/mods-available/attr_filter
+share/examples/freeradius/mods-available/cache
+share/examples/freeradius/mods-available/cache_eap
+share/examples/freeradius/mods-available/chap
+share/examples/freeradius/mods-available/couchbase
+share/examples/freeradius/mods-available/counter
+share/examples/freeradius/mods-available/cui
+share/examples/freeradius/mods-available/date
+share/examples/freeradius/mods-available/detail
+share/examples/freeradius/mods-available/detail.example.com
+share/examples/freeradius/mods-available/detail.log
+share/examples/freeradius/mods-available/dhcp
+share/examples/freeradius/mods-available/dhcp_sqlippool
+share/examples/freeradius/mods-available/digest
+share/examples/freeradius/mods-available/dynamic_clients
+share/examples/freeradius/mods-available/eap
+share/examples/freeradius/mods-available/echo
+share/examples/freeradius/mods-available/etc_group
+share/examples/freeradius/mods-available/exec
+share/examples/freeradius/mods-available/expiration
+share/examples/freeradius/mods-available/expr
+share/examples/freeradius/mods-available/files
+share/examples/freeradius/mods-available/idn
+share/examples/freeradius/mods-available/inner-eap
+share/examples/freeradius/mods-available/ippool
+share/examples/freeradius/mods-available/krb5
+share/examples/freeradius/mods-available/ldap
+share/examples/freeradius/mods-available/linelog
+share/examples/freeradius/mods-available/logintime
+share/examples/freeradius/mods-available/mac2ip
+share/examples/freeradius/mods-available/mac2vlan
+share/examples/freeradius/mods-available/moonshot-targeted-ids
+share/examples/freeradius/mods-available/mschap
+share/examples/freeradius/mods-available/ntlm_auth
+share/examples/freeradius/mods-available/opendirectory
+share/examples/freeradius/mods-available/otp
+share/examples/freeradius/mods-available/pam
+share/examples/freeradius/mods-available/pap
+share/examples/freeradius/mods-available/passwd
+share/examples/freeradius/mods-available/perl
+share/examples/freeradius/mods-available/preprocess
+share/examples/freeradius/mods-available/python
+share/examples/freeradius/mods-available/radutmp
+share/examples/freeradius/mods-available/realm
+share/examples/freeradius/mods-available/redis
+share/examples/freeradius/mods-available/rediswho
+share/examples/freeradius/mods-available/replicate
+share/examples/freeradius/mods-available/rest
+share/examples/freeradius/mods-available/smbpasswd
+share/examples/freeradius/mods-available/smsotp
+share/examples/freeradius/mods-available/soh
+share/examples/freeradius/mods-available/sometimes
+share/examples/freeradius/mods-available/sql
+share/examples/freeradius/mods-available/sqlcounter
+share/examples/freeradius/mods-available/sqlippool
+share/examples/freeradius/mods-available/sradutmp
+share/examples/freeradius/mods-available/unbound
+share/examples/freeradius/mods-available/unix
+share/examples/freeradius/mods-available/unpack
+share/examples/freeradius/mods-available/utf8
+share/examples/freeradius/mods-available/wimax
+share/examples/freeradius/mods-available/yubikey
+share/examples/freeradius/mods-config/README.rst
+share/examples/freeradius/mods-config/attr_filter/access_challenge
+share/examples/freeradius/mods-config/attr_filter/access_reject
+share/examples/freeradius/mods-config/attr_filter/accounting_response
+share/examples/freeradius/mods-config/attr_filter/post-proxy
+share/examples/freeradius/mods-config/attr_filter/pre-proxy
+share/examples/freeradius/mods-config/files/accounting
+share/examples/freeradius/mods-config/files/authorize
+share/examples/freeradius/mods-config/files/pre-proxy
+share/examples/freeradius/mods-config/perl/example.pl
+share/examples/freeradius/mods-config/preprocess/hints
+share/examples/freeradius/mods-config/preprocess/huntgroups
+share/examples/freeradius/mods-config/sql/counter/mysql/dailycounter.conf
+share/examples/freeradius/mods-config/sql/counter/mysql/expire_on_login.conf
+share/examples/freeradius/mods-config/sql/counter/mysql/monthlycounter.conf
+share/examples/freeradius/mods-config/sql/counter/mysql/noresetcounter.conf
+share/examples/freeradius/mods-config/sql/counter/postgresql/dailycounter.conf
+share/examples/freeradius/mods-config/sql/counter/postgresql/expire_on_login.conf
+share/examples/freeradius/mods-config/sql/counter/postgresql/monthlycounter.conf
+share/examples/freeradius/mods-config/sql/counter/postgresql/noresetcounter.conf
+share/examples/freeradius/mods-config/sql/counter/sqlite/dailycounter.conf
+share/examples/freeradius/mods-config/sql/counter/sqlite/expire_on_login.conf
+share/examples/freeradius/mods-config/sql/counter/sqlite/monthlycounter.conf
+share/examples/freeradius/mods-config/sql/counter/sqlite/noresetcounter.conf
+share/examples/freeradius/mods-config/sql/cui/mysql/queries.conf
+share/examples/freeradius/mods-config/sql/cui/mysql/schema.sql
+share/examples/freeradius/mods-config/sql/cui/postgresql/queries.conf
+share/examples/freeradius/mods-config/sql/cui/postgresql/schema.sql
+share/examples/freeradius/mods-config/sql/cui/sqlite/queries.conf
+share/examples/freeradius/mods-config/sql/cui/sqlite/schema.sql
+share/examples/freeradius/mods-config/sql/ippool-dhcp/mysql/queries.conf
+share/examples/freeradius/mods-config/sql/ippool-dhcp/mysql/schema.sql
+share/examples/freeradius/mods-config/sql/ippool-dhcp/oracle/queries.conf
+share/examples/freeradius/mods-config/sql/ippool-dhcp/oracle/schema.sql
+share/examples/freeradius/mods-config/sql/ippool-dhcp/sqlite/queries.conf
+share/examples/freeradius/mods-config/sql/ippool-dhcp/sqlite/schema.sql
+share/examples/freeradius/mods-config/sql/ippool/mysql/queries.conf
+share/examples/freeradius/mods-config/sql/ippool/mysql/schema.sql
+share/examples/freeradius/mods-config/sql/ippool/oracle/procedures.sql
+share/examples/freeradius/mods-config/sql/ippool/oracle/queries.conf
+share/examples/freeradius/mods-config/sql/ippool/oracle/schema.sql
+share/examples/freeradius/mods-config/sql/ippool/postgresql/queries.conf
+share/examples/freeradius/mods-config/sql/ippool/postgresql/schema.sql
+share/examples/freeradius/mods-config/sql/ippool/sqlite/queries.conf
+share/examples/freeradius/mods-config/sql/ippool/sqlite/schema.sql
+share/examples/freeradius/mods-config/sql/main/mssql/queries.conf
+share/examples/freeradius/mods-config/sql/main/mssql/schema.sql
+share/examples/freeradius/mods-config/sql/main/mysql/extras/wimax/queries.conf
+share/examples/freeradius/mods-config/sql/main/mysql/extras/wimax/schema.sql
+share/examples/freeradius/mods-config/sql/main/mysql/queries.conf
+share/examples/freeradius/mods-config/sql/main/mysql/schema.sql
+share/examples/freeradius/mods-config/sql/main/mysql/setup.sql
+share/examples/freeradius/mods-config/sql/main/ndb/README
+share/examples/freeradius/mods-config/sql/main/ndb/schema.sql
+share/examples/freeradius/mods-config/sql/main/ndb/setup.sql
+share/examples/freeradius/mods-config/sql/main/oracle/queries.conf
+share/examples/freeradius/mods-config/sql/main/oracle/schema.sql
+share/examples/freeradius/mods-config/sql/main/postgresql/extras/cisco_h323_db_schema.sql
+share/examples/freeradius/mods-config/sql/main/postgresql/extras/update_radacct_group.sql
+share/examples/freeradius/mods-config/sql/main/postgresql/extras/voip-postpaid.conf
+share/examples/freeradius/mods-config/sql/main/postgresql/queries.conf
+share/examples/freeradius/mods-config/sql/main/postgresql/schema.sql
+share/examples/freeradius/mods-config/sql/main/postgresql/setup.sql
+share/examples/freeradius/mods-config/sql/main/sqlite/queries.conf
+share/examples/freeradius/mods-config/sql/main/sqlite/schema.sql
+share/examples/freeradius/mods-config/sql/moonshot-targeted-ids/mysql/queries.conf
+share/examples/freeradius/mods-config/sql/moonshot-targeted-ids/mysql/schema.sql
+share/examples/freeradius/mods-config/sql/moonshot-targeted-ids/postgresql/queries.conf
+share/examples/freeradius/mods-config/sql/moonshot-targeted-ids/postgresql/schema.sql
+share/examples/freeradius/mods-config/sql/moonshot-targeted-ids/sqlite/queries.conf
+share/examples/freeradius/mods-config/sql/moonshot-targeted-ids/sqlite/schema.sql
+share/examples/freeradius/mods-config/unbound/default.conf
+share/examples/freeradius/mods-enabled/always
+share/examples/freeradius/mods-enabled/attr_filter
+share/examples/freeradius/mods-enabled/cache_eap
+share/examples/freeradius/mods-enabled/chap
+share/examples/freeradius/mods-enabled/date
+share/examples/freeradius/mods-enabled/detail
+share/examples/freeradius/mods-enabled/detail.log
+share/examples/freeradius/mods-enabled/dhcp
+share/examples/freeradius/mods-enabled/digest
+share/examples/freeradius/mods-enabled/dynamic_clients
+share/examples/freeradius/mods-enabled/eap
+share/examples/freeradius/mods-enabled/echo
+share/examples/freeradius/mods-enabled/exec
+share/examples/freeradius/mods-enabled/expiration
+share/examples/freeradius/mods-enabled/expr
+share/examples/freeradius/mods-enabled/files
+share/examples/freeradius/mods-enabled/linelog
+share/examples/freeradius/mods-enabled/logintime
+share/examples/freeradius/mods-enabled/mschap
+share/examples/freeradius/mods-enabled/ntlm_auth
+share/examples/freeradius/mods-enabled/pap
+share/examples/freeradius/mods-enabled/passwd
+share/examples/freeradius/mods-enabled/preprocess
+share/examples/freeradius/mods-enabled/radutmp
+share/examples/freeradius/mods-enabled/realm
+share/examples/freeradius/mods-enabled/replicate
+share/examples/freeradius/mods-enabled/soh
+share/examples/freeradius/mods-enabled/sradutmp
+share/examples/freeradius/mods-enabled/unix
+share/examples/freeradius/mods-enabled/unpack
+share/examples/freeradius/mods-enabled/utf8
+share/examples/freeradius/panic.gdb
+share/examples/freeradius/policy.d/abfab-tr
+share/examples/freeradius/policy.d/accounting
+share/examples/freeradius/policy.d/canonicalization
+share/examples/freeradius/policy.d/control
+share/examples/freeradius/policy.d/cui
+share/examples/freeradius/policy.d/debug
+share/examples/freeradius/policy.d/dhcp
+share/examples/freeradius/policy.d/eap
+share/examples/freeradius/policy.d/filter
+share/examples/freeradius/policy.d/moonshot-targeted-ids
+share/examples/freeradius/policy.d/operator-name
share/examples/freeradius/proxy.conf
share/examples/freeradius/radiusd.conf
-share/examples/freeradius/realms
-share/examples/freeradius/snmp.conf
-share/examples/freeradius/sql.conf
-share/examples/freeradius/sqlippool.conf
+share/examples/freeradius/sites-available/README
+share/examples/freeradius/sites-available/abfab-tls
+share/examples/freeradius/sites-available/abfab-tr-idp
+share/examples/freeradius/sites-available/buffered-sql
+share/examples/freeradius/sites-available/challenge
+share/examples/freeradius/sites-available/channel_bindings
+share/examples/freeradius/sites-available/check-eap-tls
+share/examples/freeradius/sites-available/coa
+share/examples/freeradius/sites-available/control-socket
+share/examples/freeradius/sites-available/copy-acct-to-home-server
+share/examples/freeradius/sites-available/decoupled-accounting
+share/examples/freeradius/sites-available/default
+share/examples/freeradius/sites-available/dhcp
+share/examples/freeradius/sites-available/dhcp.relay
+share/examples/freeradius/sites-available/dynamic-clients
+share/examples/freeradius/sites-available/example
+share/examples/freeradius/sites-available/inner-tunnel
+share/examples/freeradius/sites-available/originate-coa
+share/examples/freeradius/sites-available/proxy-inner-tunnel
+share/examples/freeradius/sites-available/robust-proxy-accounting
+share/examples/freeradius/sites-available/soh
+share/examples/freeradius/sites-available/status
+share/examples/freeradius/sites-available/tls
+share/examples/freeradius/sites-available/virtual.example.com
+share/examples/freeradius/sites-available/vmps
+share/examples/freeradius/sites-enabled/default
+share/examples/freeradius/sites-enabled/inner-tunnel
+share/examples/freeradius/templates.conf
+share/examples/freeradius/trigger.conf
share/examples/freeradius/users
share/freeradius/dictionary
share/freeradius/dictionary.3com
share/freeradius/dictionary.3gpp
share/freeradius/dictionary.3gpp2
share/freeradius/dictionary.acc
+share/freeradius/dictionary.acme
+share/freeradius/dictionary.actelis
+share/freeradius/dictionary.adtran
+share/freeradius/dictionary.aerohive
share/freeradius/dictionary.airespace
share/freeradius/dictionary.alcatel
+share/freeradius/dictionary.alcatel-lucent.aaa
+share/freeradius/dictionary.alcatel.esam
+share/freeradius/dictionary.alcatel.sr
share/freeradius/dictionary.alteon
share/freeradius/dictionary.altiga
share/freeradius/dictionary.alvarion
+share/freeradius/dictionary.alvarion.wimax.v2_2
+share/freeradius/dictionary.apc
+share/freeradius/dictionary.aptilo
share/freeradius/dictionary.aptis
+share/freeradius/dictionary.arbor
+share/freeradius/dictionary.arista
share/freeradius/dictionary.aruba
share/freeradius/dictionary.ascend
+share/freeradius/dictionary.ascend.illegal
share/freeradius/dictionary.asn
+share/freeradius/dictionary.audiocodes
share/freeradius/dictionary.avaya
+share/freeradius/dictionary.azaire
share/freeradius/dictionary.bay
share/freeradius/dictionary.bintec
+share/freeradius/dictionary.bluecoat
+share/freeradius/dictionary.boingo
share/freeradius/dictionary.bristol
+share/freeradius/dictionary.broadsoft
+share/freeradius/dictionary.brocade
+share/freeradius/dictionary.bskyb
+share/freeradius/dictionary.bt
share/freeradius/dictionary.cablelabs
share/freeradius/dictionary.cabletron
+share/freeradius/dictionary.camiant
+share/freeradius/dictionary.checkpoint
+share/freeradius/dictionary.chillispot
share/freeradius/dictionary.cisco
+share/freeradius/dictionary.cisco.asa
share/freeradius/dictionary.cisco.bbsm
share/freeradius/dictionary.cisco.vpn3000
share/freeradius/dictionary.cisco.vpn5000
+share/freeradius/dictionary.citrix
+share/freeradius/dictionary.clavister
+share/freeradius/dictionary.cnergee
share/freeradius/dictionary.colubris
share/freeradius/dictionary.columbia_university
share/freeradius/dictionary.compat
+share/freeradius/dictionary.compatible
share/freeradius/dictionary.cosine
+share/freeradius/dictionary.dante
+share/freeradius/dictionary.dellemc
+share/freeradius/dictionary.dhcp
share/freeradius/dictionary.digium
+share/freeradius/dictionary.dlink
+share/freeradius/dictionary.dragonwave
+share/freeradius/dictionary.efficientip
+share/freeradius/dictionary.eltex
share/freeradius/dictionary.epygi
+share/freeradius/dictionary.equallogic
share/freeradius/dictionary.ericsson
+share/freeradius/dictionary.ericsson.ab
+share/freeradius/dictionary.ericsson.packet.core.networks
share/freeradius/dictionary.erx
share/freeradius/dictionary.extreme
+share/freeradius/dictionary.f5
+share/freeradius/dictionary.fdxtended
share/freeradius/dictionary.fortinet
share/freeradius/dictionary.foundry
+share/freeradius/dictionary.freedhcp
share/freeradius/dictionary.freeradius
share/freeradius/dictionary.freeradius.internal
+share/freeradius/dictionary.freeswitch
share/freeradius/dictionary.gandalf
share/freeradius/dictionary.garderos
share/freeradius/dictionary.gemtek
+share/freeradius/dictionary.h3c
+share/freeradius/dictionary.hillstone
share/freeradius/dictionary.hp
+share/freeradius/dictionary.huawei
+share/freeradius/dictionary.iana
+share/freeradius/dictionary.iea
+share/freeradius/dictionary.infoblox
+share/freeradius/dictionary.infonet
share/freeradius/dictionary.ipunplugged
share/freeradius/dictionary.issanni
share/freeradius/dictionary.itk
share/freeradius/dictionary.juniper
share/freeradius/dictionary.karlnet
+share/freeradius/dictionary.kineto
+share/freeradius/dictionary.lancom
+share/freeradius/dictionary.lantronix
share/freeradius/dictionary.livingston
share/freeradius/dictionary.localweb
share/freeradius/dictionary.lucent
+share/freeradius/dictionary.manzara
+share/freeradius/dictionary.meinberg
+share/freeradius/dictionary.meraki
share/freeradius/dictionary.merit
+share/freeradius/dictionary.meru
+share/freeradius/dictionary.microsemi
share/freeradius/dictionary.microsoft
share/freeradius/dictionary.mikrotik
share/freeradius/dictionary.motorola
+share/freeradius/dictionary.motorola.illegal
+share/freeradius/dictionary.motorola.wimax
share/freeradius/dictionary.navini
share/freeradius/dictionary.netscreen
+share/freeradius/dictionary.networkphysics
+share/freeradius/dictionary.nexans
share/freeradius/dictionary.nokia
+share/freeradius/dictionary.nokia.conflict
share/freeradius/dictionary.nomadix
share/freeradius/dictionary.nortel
share/freeradius/dictionary.ntua
+share/freeradius/dictionary.openser
share/freeradius/dictionary.packeteer
+share/freeradius/dictionary.paloalto
share/freeradius/dictionary.patton
+share/freeradius/dictionary.perle
share/freeradius/dictionary.propel
+share/freeradius/dictionary.prosoft
+share/freeradius/dictionary.proxim
+share/freeradius/dictionary.purewave
+share/freeradius/dictionary.quiconnect
share/freeradius/dictionary.quintum
-share/freeradius/dictionary.redback
share/freeradius/dictionary.redcreek
share/freeradius/dictionary.rfc2865
share/freeradius/dictionary.rfc2866
@@ -330,32 +680,74 @@ share/freeradius/dictionary.rfc2869
share/freeradius/dictionary.rfc3162
share/freeradius/dictionary.rfc3576
share/freeradius/dictionary.rfc3580
+share/freeradius/dictionary.rfc4072
share/freeradius/dictionary.rfc4372
-share/freeradius/dictionary.rfc4590
+share/freeradius/dictionary.rfc4603
share/freeradius/dictionary.rfc4675
share/freeradius/dictionary.rfc4679
+share/freeradius/dictionary.rfc4818
+share/freeradius/dictionary.rfc4849
+share/freeradius/dictionary.rfc5090
+share/freeradius/dictionary.rfc5176
+share/freeradius/dictionary.rfc5447
+share/freeradius/dictionary.rfc5580
+share/freeradius/dictionary.rfc5607
+share/freeradius/dictionary.rfc5904
+share/freeradius/dictionary.rfc6519
+share/freeradius/dictionary.rfc6572
+share/freeradius/dictionary.rfc6677
+share/freeradius/dictionary.rfc6911
+share/freeradius/dictionary.rfc6929
+share/freeradius/dictionary.rfc6930
+share/freeradius/dictionary.rfc7055
+share/freeradius/dictionary.rfc7155
+share/freeradius/dictionary.rfc7268
+share/freeradius/dictionary.rfc7499
+share/freeradius/dictionary.rfc7930
+share/freeradius/dictionary.riverbed
share/freeradius/dictionary.riverstone
share/freeradius/dictionary.roaringpenguin
-share/freeradius/dictionary.schulzrinne-sipping
+share/freeradius/dictionary.ruckus
+share/freeradius/dictionary.ruggedcom
+share/freeradius/dictionary.sangoma
+share/freeradius/dictionary.sg
share/freeradius/dictionary.shasta
share/freeradius/dictionary.shiva
+share/freeradius/dictionary.siemens
+share/freeradius/dictionary.slipstream
share/freeradius/dictionary.sofaware
share/freeradius/dictionary.sonicwall
share/freeradius/dictionary.springtide
share/freeradius/dictionary.starent
+share/freeradius/dictionary.starent.vsa1
+share/freeradius/dictionary.surfnet
+share/freeradius/dictionary.symbol
share/freeradius/dictionary.t_systems_nova
share/freeradius/dictionary.telebit
+share/freeradius/dictionary.telkom
+share/freeradius/dictionary.terena
share/freeradius/dictionary.trapeze
+share/freeradius/dictionary.travelping
share/freeradius/dictionary.tropos
+share/freeradius/dictionary.ukerna
share/freeradius/dictionary.unix
share/freeradius/dictionary.usr
+share/freeradius/dictionary.usr.illegal
+share/freeradius/dictionary.utstarcom
share/freeradius/dictionary.valemount
share/freeradius/dictionary.versanet
+share/freeradius/dictionary.vqp
share/freeradius/dictionary.walabi
share/freeradius/dictionary.waverider
+share/freeradius/dictionary.wichorus
+share/freeradius/dictionary.wifialliance
+share/freeradius/dictionary.wimax
+share/freeradius/dictionary.wimax.alvarion
+share/freeradius/dictionary.wimax.wichorus
share/freeradius/dictionary.wispr
share/freeradius/dictionary.xedia
share/freeradius/dictionary.xylan
+share/freeradius/dictionary.yubico
+share/freeradius/dictionary.zeus
+share/freeradius/dictionary.zte
share/freeradius/dictionary.zyxel
-@unexec ${RMDIR} %D/etc/raddb/certs/demoCA 2>/dev/null || ${TRUE}
-@unexec ${RMDIR} %D/etc/raddb/certs 2>/dev/null || ${TRUE}
diff --git a/net/freeradius/PLIST.dbm b/net/freeradius/PLIST.dbm
deleted file mode 100644
index f14651e9833..00000000000
--- a/net/freeradius/PLIST.dbm
+++ /dev/null
@@ -1,5 +0,0 @@
-@comment $NetBSD: PLIST.dbm,v 1.4 2006/08/09 16:42:09 adrianp Exp $
-bin/rlm_dbm_cat
-bin/rlm_dbm_parser
-lib/rlm_dbm-${RADVER}.la
-lib/rlm_dbm.la
diff --git a/net/freeradius/PLIST.gdbm b/net/freeradius/PLIST.gdbm
deleted file mode 100644
index 81934400ad7..00000000000
--- a/net/freeradius/PLIST.gdbm
+++ /dev/null
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST.gdbm,v 1.4 2006/08/09 16:42:09 adrianp Exp $
-lib/rlm_counter-${RADVER}.la
-lib/rlm_counter.la
diff --git a/net/freeradius/PLIST.kerberos b/net/freeradius/PLIST.kerberos
deleted file mode 100644
index 4cfb4b04f5a..00000000000
--- a/net/freeradius/PLIST.kerberos
+++ /dev/null
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST.kerberos,v 1.2 2006/08/09 16:42:09 adrianp Exp $
-lib/rlm_krb5-${RADVER}.la
-lib/rlm_krb5.la
diff --git a/net/freeradius/PLIST.ldap b/net/freeradius/PLIST.ldap
deleted file mode 100644
index a258a86d6e3..00000000000
--- a/net/freeradius/PLIST.ldap
+++ /dev/null
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST.ldap,v 1.3 2006/08/09 16:42:09 adrianp Exp $
-lib/rlm_ldap-${RADVER}.la
-lib/rlm_ldap.la
diff --git a/net/freeradius/PLIST.mysql b/net/freeradius/PLIST.mysql
deleted file mode 100644
index 3b8303fef80..00000000000
--- a/net/freeradius/PLIST.mysql
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST.mysql,v 1.3 2006/08/09 16:42:09 adrianp Exp $
-lib/rlm_sql_mysql.la
diff --git a/net/freeradius/PLIST.pam b/net/freeradius/PLIST.pam
deleted file mode 100644
index 18ab64569d1..00000000000
--- a/net/freeradius/PLIST.pam
+++ /dev/null
@@ -1,3 +0,0 @@
-@comment $NetBSD: PLIST.pam,v 1.1 2006/08/09 16:42:09 adrianp Exp $
-lib/rlm_pam-${RADVER}.la
-lib/rlm_pam.la
diff --git a/net/freeradius/PLIST.pgsql b/net/freeradius/PLIST.pgsql
deleted file mode 100644
index e3b0854b4e9..00000000000
--- a/net/freeradius/PLIST.pgsql
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST.pgsql,v 1.4 2006/11/21 11:46:29 hira Exp $
-lib/rlm_sql_postgresql.la
diff --git a/net/freeradius/distinfo b/net/freeradius/distinfo
index ddda188f877..2520eef76c4 100644
--- a/net/freeradius/distinfo
+++ b/net/freeradius/distinfo
@@ -1,12 +1,12 @@
-$NetBSD: distinfo,v 1.31 2015/11/04 00:35:00 agc Exp $
+$NetBSD: distinfo,v 1.32 2017/08/26 10:07:28 fhajny Exp $
-SHA1 (freeradius-1.1.8.tar.gz) = c6dcebd09af1c9e4df75e05c800d8b42bdd5f0af
-RMD160 (freeradius-1.1.8.tar.gz) = a21a50657fc3bc525d837e432a6d867c03276793
-SHA512 (freeradius-1.1.8.tar.gz) = 955bd8e2dde01547a2e2526d1f7e09e7d2bf13716197d5d37d1c0f00ec3fb0e0cce7f26b8a5ca2cbf5bef9ce7bbba505ee93fbda3fae16d9c299ea9f81f8e58a
-Size (freeradius-1.1.8.tar.gz) = 3130766 bytes
-SHA1 (patch-ab) = 7a23eb75a9818b073263fd36cbf17b692fa19a9f
-SHA1 (patch-ae) = 8fa500de8c24ec4a8e3bfa043ebb2fb574b0fe7e
-SHA1 (patch-ai) = 8e74a07cde8134881cfd2e5fe661e42cfa3e9fbf
-SHA1 (patch-aj) = 422c9dfbde08c26acf41a040c57508ab9725004e
-SHA1 (patch-ak) = 7be986e3949a6f8368f7e01ba93521fac48eff7d
-SHA1 (patch-al) = d334e29e475202ab1dc66bd2c77db459c7ea73f4
+SHA1 (freeradius-server-3.0.15.tar.bz2) = f651142a31b514fc80d888fe8ab5040cbfdd546e
+RMD160 (freeradius-server-3.0.15.tar.bz2) = 46d2d491b71516c6db7659e46e1ec44c7fbf9d1f
+SHA512 (freeradius-server-3.0.15.tar.bz2) = a2808f0b70b73f11c4c7d00edcb4a56a2ab8f73ce0ff74a9834c8b613ce5ed75ece372f852b0891f68c6a33f50c1bababb76d2eff9326a7fc29fe6b45ec9af88
+Size (freeradius-server-3.0.15.tar.bz2) = 3038070 bytes
+SHA1 (patch-ai) = 837af388cd6f4f4c41177eb28e2eebdfd74e7d8d
+SHA1 (patch-main_command.c) = 1c79b29eb13df341906c710c8dd41860a27473dd
+SHA1 (patch-main_util.c) = b9cefdb9bc30df0906184e8c0bb883e5258767c3
+SHA1 (patch-rlm_krb5_configure) = e97f0efe85c449d3b8a9aa450b6b7d1d0e4c6b89
+SHA1 (patch-rlm_perl_configure) = 577d6f0df7322ee12a99aafcdcc2d0b40e89eb69
+SHA1 (patch-rlm_yubikey_configure) = ea62cc0e87da014befbd0ad79f68dc852dc0f254
diff --git a/net/freeradius/files/smf/manifest.xml b/net/freeradius/files/smf/manifest.xml
new file mode 100644
index 00000000000..14d834d8b78
--- /dev/null
+++ b/net/freeradius/files/smf/manifest.xml
@@ -0,0 +1,40 @@
+<?xml version='1.0'?>
+<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
+<service_bundle type='manifest' name='export'>
+ <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'>
+ <create_default_instance enabled="false" />
+ <single_instance />
+ <dependency name='fs-local' grouping='require_all' restart_on='none' type='service'>
+ <service_fmri value='svc:/system/filesystem/local' />
+ </dependency>
+ <dependency name='loopback' grouping='require_all' restart_on='error' type='service'>
+ <service_fmri value='svc:/network/loopback:default' />
+ </dependency>
+ <dependency name='physical' grouping='require_all' restart_on='error' type='service'>
+ <service_fmri value='svc:/network/physical:default' />
+ </dependency>
+ <dependency name='name-services' grouping='require_all' restart_on='refresh' type='service'>
+ <service_fmri value='svc:/milestone/name-services' />
+ </dependency>
+ <dependency name='system-log' grouping='optional_all' restart_on='none' type='service'>
+ <service_fmri value='svc:/system/system-log' />
+ </dependency>
+ <method_context>
+ <method_credential user='@RADIUS_USER@' group='@RADIUS_GROUP@' />
+ </method_context>
+ <exec_method name='start' type='method' exec='@PREFIX@/sbin/radiusd' timeout_seconds='60' />
+ <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60' />
+ <property_group name='startd' type='framework'>
+ <propval name='ignore_error' type='astring' value='core,signal' />
+ </property_group>
+ <template>
+ <common_name>
+ <loctext xml:lang='C'>FreeRADIUS Server</loctext>
+ </common_name>
+ <documentation>
+ <manpage title='radiusd' section='8' manpath='@PREFIX@/@PKGMANDIR@'/>
+ <doc_link name='freeradius.org' uri='http://freeradius.org/doc/' />
+ </documentation>
+ </template>
+ </service>
+</service_bundle>
diff --git a/net/freeradius/options.mk b/net/freeradius/options.mk
deleted file mode 100644
index 403f537df0b..00000000000
--- a/net/freeradius/options.mk
+++ /dev/null
@@ -1,112 +0,0 @@
-# $NetBSD: options.mk,v 1.14 2014/11/02 05:53:48 obache Exp $
-
-PKG_OPTIONS_VAR= PKG_OPTIONS.freeradius
-
-PKG_OPTIONS_OPTIONAL_GROUPS= dbm
-PKG_OPTIONS_GROUP.dbm= bdb gdbm
-
-PKG_SUPPORTED_OPTIONS= ldap mysql pgsql snmp kerberos freeradius-simul-use pam
-PKG_SUGGESTED_OPTIONS= gdbm freeradius-simul-use
-
-.include "../../mk/bsd.options.mk"
-
-###
-### Use GDBM or Berkeley DB 1.x for storing user details
-###
-.if !empty(PKG_OPTIONS:Mgdbm)
-. include "../../databases/gdbm/buildlink3.mk"
-CONFIGURE_ARGS+= --with-rlm_dbm
-PLIST_SRC+= ${PKGDIR}/PLIST.dbm ${PKGDIR}/PLIST.gdbm
-.elif !empty(PKG_OPTIONS:Mbdb) && exists(/usr/include/ndbm.h)
-BDB_ACCEPTED= db1
-. include "../../mk/bdb.buildlink3.mk"
-CONFIGURE_ARGS+= --with-rlm_dbm
-PLIST_SRC+= ${PKGDIR}/PLIST.dbm
-.else
-CONFIGURE_ARGS+= --without-rlm_dbm
-.endif
-
-###
-### Use OpenLDAP for storing user details
-###
-.if !empty(PKG_OPTIONS:Mldap)
-. include "../../databases/openldap-client/buildlink3.mk"
-CONFIGURE_ARGS+= --with-rlm_ldap
-PLIST_SRC+= ${PKGDIR}/PLIST.ldap
-.else
-CONFIGURE_ARGS+= --without-rlm_ldap
-.endif
-
-###
-### Use PostgreSQL for storing user details
-###
-.if !empty(PKG_OPTIONS:Mpgsql)
-. include "../../mk/pgsql.buildlink3.mk"
-CONFIGURE_ARGS+= --with-rlm_sql_postgresql
-PLIST_SRC+= ${PKGDIR}/PLIST.pgsql
-.else
-CONFIGURE_ARGS+= --without-rlm_sql_postgresql
-.endif
-
-###
-### Use MySQL for storing user details
-###
-.if !empty(PKG_OPTIONS:Mmysql)
-. include "../../mk/mysql.buildlink3.mk"
-CONFIGURE_ARGS+= --with-rlm_sql_mysql
-PLIST_SRC+= ${PKGDIR}/PLIST.mysql
-.else
-CONFIGURE_ARGS+= --without-rlm_sql_mysql
-.endif
-
-###
-### Compile in SNMP support
-###
-### Please note that snmp support is limited. Freeradius looks like it's
-### after the old ucd-snmp (v4.x) headers and ucd-snmp isn't in pkgsrc any
-### more. Compatability mode on the current net-snmp (v5.x) does not seem
-### to work either. So it will find a few snmp utilites but other than that
-### it's limited, at best.
-###
-###
-.if !empty(PKG_OPTIONS:Msnmp)
-. include "../../net/net-snmp/buildlink3.mk"
-CONFIGURE_ARGS+= --with-snmp
-.else
-CONFIGURE_ARGS+= --without-snmp
-.endif
-
-###
-### Use kerberos 5
-###
-.if !empty(PKG_OPTIONS:Mkerberos)
-. include "../../mk/krb5.buildlink3.mk"
-CONFIGURE_ARGS+= --with-rlm_krb5
-. if defined(KRB5_TYPE) && ${KRB5_TYPE} == "heimdal"
-CONFIGURE_ARGS+= --enable-heimdal-krb5
-. endif
-PLIST_SRC+= ${PKGDIR}/PLIST.kerberos
-.else
-CONFIGURE_ARGS+= --without-rlm_krb5
-.endif
-
-###
-### Enable Simultaneous-Use which needs snmpwalk and snmpget
-###
-.if !empty(PKG_OPTIONS:Mfreeradius-simul-use)
-. include "../../net/net-snmp/buildlink3.mk"
-.else
-CONFIGURE_ENV+= ac_cv_path_SNMPGET=""
-CONFIGURE_ENV+= ac_cv_path_SNMPWALK=""
-.endif
-
-###
-### Use PAM for storing user details
-###
-.if !empty(PKG_OPTIONS:Mpam)
-CONFIGURE_ARGS+= --with-rlm_pam
-PLIST_SRC+= ${PKGDIR}/PLIST.pam
-MESSAGE_SRC+= MESSAGE.pam
-.else
-CONFIGURE_ARGS+= --without-rlm_pam
-.endif
diff --git a/net/freeradius/patches/patch-ab b/net/freeradius/patches/patch-ab
deleted file mode 100644
index 5fa98bc4b7a..00000000000
--- a/net/freeradius/patches/patch-ab
+++ /dev/null
@@ -1,9 +0,0 @@
-$NetBSD: patch-ab,v 1.5 2006/03/21 23:08:08 adrianp Exp $
-
---- src/modules/rlm_perl/Makefile.in.orig 2006-02-10 19:47:17.000000000 +0000
-+++ src/modules/rlm_perl/Makefile.in
-@@ -15,4 +15,3 @@ include ../rules.mak
- $(LT_OBJS): $(HEADERS)
-
- install-scripts:
-- $(INSTALL) -m 755 example.pl $(R)$(raddbdir)
diff --git a/net/freeradius/patches/patch-ae b/net/freeradius/patches/patch-ae
deleted file mode 100644
index 7177c623750..00000000000
--- a/net/freeradius/patches/patch-ae
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-ae,v 1.5 2006/09/10 22:35:22 adrianp Exp $
-
---- Makefile.orig 2006-06-23 05:31:58.000000000 +0100
-+++ Makefile
-@@ -11,7 +11,7 @@ include Make.inc
-
- .PHONY: all clean install
-
--SUBDIRS = $(LTDL_SUBDIRS) src raddb scripts doc
-+SUBDIRS = $(LTDL_SUBDIRS) src scripts doc
- WHAT_TO_MAKE = all
-
- all:
-@@ -42,9 +42,7 @@ export DESTDIR := $(R)
- install:
- $(INSTALL) -d -m 755 $(R)$(sbindir)
- $(INSTALL) -d -m 755 $(R)$(bindir)
-- $(INSTALL) -d -m 755 $(R)$(raddbdir)
- $(INSTALL) -d -m 755 $(R)$(mandir)
-- $(INSTALL) -d -m 755 $(R)$(RUNDIR)
- $(INSTALL) -d -m 700 $(R)$(logdir)
- $(INSTALL) -d -m 700 $(R)$(radacctdir)
- $(INSTALL) -d -m 755 $(R)$(datadir)
diff --git a/net/freeradius/patches/patch-ai b/net/freeradius/patches/patch-ai
index ad8416d90a8..102dd74f473 100644
--- a/net/freeradius/patches/patch-ai
+++ b/net/freeradius/patches/patch-ai
@@ -1,57 +1,42 @@
-$NetBSD: patch-ai,v 1.10 2007/09/18 22:15:08 adrianp Exp $
+$NetBSD: patch-ai,v 1.11 2017/08/26 10:07:28 fhajny Exp $
---- configure.orig 2007-07-21 15:01:34.000000000 +0100
+Portable test syntax
+
+--- configure.orig 2016-09-29 15:19:48.000000000 +0000
+++ configure
-@@ -20022,13 +20022,13 @@ fi
- done
-
-
-- { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
--echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
-+ { echo "$as_me:$LINENO: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
-+echo $ECHO_N "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6; }
- if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
--LIBS="-lpthread $LIBS"
-+LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
-@@ -20085,7 +20085,7 @@ fi
- echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
- if test $ac_cv_lib_pthread_pthread_create = yes; then
- CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
-- LIBS="$LIBS -lpthread"
-+ LIBS="$LIBS ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}"
- else
- { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
- echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
-@@ -20194,7 +20194,7 @@ return sem_init ();
- return 0;
- }
- _ACEOF
--for ac_lib in '' pthread sem posix4 rt; do
-+for ac_lib in '' pthread sem posix4 rt semaphore; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
-@@ -20552,7 +20552,7 @@ if test "${ac_cv_lib_ssl_SSL_new+set}" =
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- ac_check_lib_save_LIBS=$LIBS
--LIBS="-lssl $LIBS"
-+LIBS="-lssl -lcrypto $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
-@@ -23623,7 +23623,7 @@ gethostbyaddrrstyle=""
- { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
- echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
- case "$host" in
--*-freebsd*)
-+*-freebsd* | *-dragonfly*)
- { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
- echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
- if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
+@@ -9031,7 +9031,7 @@ fi
+
+ smart_prefix=
+
+- if test "x$ac_cv_header_pcap_h" == "xyes"; then
++ if test "x$ac_cv_header_pcap_h" = "xyes"; then
+
+ $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
+
+@@ -9274,7 +9274,7 @@ fi
+
+ smart_prefix=
+
+- if test "x$ac_cv_header_collectd_client_h" == "xyes"; then
++ if test "x$ac_cv_header_collectd_client_h" = "xyes"; then
+
+ $as_echo "#define HAVE_COLLECTDC_H 1" >>confdefs.h
+
+@@ -9517,7 +9517,7 @@ fi
+
+ smart_prefix=
+
+- if test "x$ac_cv_header_sys_capability_h" == "xyes"; then
++ if test "x$ac_cv_header_sys_capability_h" = "xyes"; then
+
+ $as_echo "#define HAVE_CAPABILITY_H 1" >>confdefs.h
+
+@@ -12640,7 +12640,7 @@ subdirs="$subdirs $mysubdirs"
+
+
+
+-if test "x$werror" == "xyes"; then
++if test "x$werror" = "xyes"; then
+ CFLAGS="-Werror $CFLAGS"
+ fi
+
diff --git a/net/freeradius/patches/patch-aj b/net/freeradius/patches/patch-aj
deleted file mode 100644
index dee116efe4a..00000000000
--- a/net/freeradius/patches/patch-aj
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-aj,v 1.3 2004/11/16 13:51:45 adrianp Exp $
-
---- Make.inc.in.orig Fri Nov 12 23:23:02 2004
-+++ Make.inc.in Fri Nov 12 23:24:23 2004
-@@ -42,6 +42,7 @@
- LCRYPT = @CRYPTLIB@
- LIBS = @LIBS@ @LFS_LIBS@
- LDFLAGS = @LDFLAGS@ @LFS_LDFLAGS@
-+RLM_LIBS += -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib
-
- LOGDIR = ${logdir}
- RADDBDIR = ${raddbdir}
diff --git a/net/freeradius/patches/patch-ak b/net/freeradius/patches/patch-ak
deleted file mode 100644
index 75214ae619a..00000000000
--- a/net/freeradius/patches/patch-ak
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-ak,v 1.7 2006/08/10 10:55:52 adrianp Exp $
-
---- raddb/radiusd.conf.in.orig 2006-04-20 19:40:29.000000000 +0100
-+++ raddb/radiusd.conf.in
-@@ -106,8 +106,8 @@ pidfile = ${run_dir}/radiusd.pid
- # that the debugging mode server is running as a user that can read the
- # shadow info, and the user listed below can not.
- #
--#user = nobody
--#group = nobody
-+user = @@RADIUS_USER@@
-+group = @@RADIUS_GROUP@@
-
- # max_request_time: The maximum time (in seconds) to handle a request.
- #
diff --git a/net/freeradius/patches/patch-al b/net/freeradius/patches/patch-al
deleted file mode 100644
index 26f374f37ef..00000000000
--- a/net/freeradius/patches/patch-al
+++ /dev/null
@@ -1,74 +0,0 @@
-$NetBSD: patch-al,v 1.1 2007/11/24 17:40:36 adrianp Exp $
-
---- src/modules/rlm_preprocess/rlm_preprocess.c.orig 2007-04-07 23:42:51.000000000 +0100
-+++ src/modules/rlm_preprocess/rlm_preprocess.c
-@@ -126,7 +126,7 @@ static void cisco_vsa_hack(VALUE_PAIR *v
- /*
- * No weird packing. Ignore it.
- */
-- ptr = strchr(vp->strvalue, '='); /* find an '=' */
-+ ptr = strchr((char *)vp->strvalue, '='); /* find an '=' */
- if (!ptr) continue;
-
- /*
-@@ -144,7 +144,7 @@ static void cisco_vsa_hack(VALUE_PAIR *v
- char *p;
- DICT_ATTR *dattr;
-
-- p = vp->strvalue;
-+ p = (char *)vp->strvalue;
- gettoken(&p, newattr, sizeof(newattr));
-
- if (((dattr = dict_attrbyname(newattr)) != NULL) &&
-@@ -223,10 +223,10 @@ static void rad_mangle(rlm_preprocess_t
- *
- * FIXME: should we handle this as a REALM ?
- */
-- if ((ptr = strchr(namepair->strvalue, '\\')) != NULL) {
-+ if ((ptr = strchr((char *)namepair->strvalue, '\\')) != NULL) {
- strNcpy(newname, ptr + 1, sizeof(newname));
- /* Same size */
-- strcpy(namepair->strvalue, newname);
-+ strcpy((char *)namepair->strvalue, newname);
- namepair->length = strlen(newname);
- }
- }
-@@ -395,9 +395,9 @@ static int huntgroup_access(REQUEST *req
- break;
- }
-
-- strNcpy(vp->strvalue, i->name,
-+ strNcpy((char *)vp->strvalue, i->name,
- sizeof(vp->strvalue));
-- vp->length = strlen(vp->strvalue);
-+ vp->length = strlen((char *)vp->strvalue);
-
- pairadd(&request_pairs, vp);
- }
-@@ -425,7 +425,7 @@ static int add_nas_attr(REQUEST *request
- return -1;
- }
- nas->lvalue = request->packet->src_ipaddr;
-- ip_hostname(nas->strvalue, sizeof(nas->strvalue), nas->lvalue);
-+ ip_hostname((char *)nas->strvalue, sizeof(nas->strvalue), nas->lvalue);
- pairadd(&request->packet->vps, nas);
- }
-
-@@ -446,7 +446,7 @@ static int add_nas_attr(REQUEST *request
- return -1;
- }
- nas->lvalue = request->packet->src_ipaddr;
-- ip_hostname(nas->strvalue, sizeof(nas->strvalue), nas->lvalue);
-+ ip_hostname((char *)nas->strvalue, sizeof(nas->strvalue), nas->lvalue);
- pairadd(&request->packet->vps, nas);
- return 0;
- }
-@@ -580,7 +580,7 @@ static int preprocess_authorize(void *in
- if ((r = huntgroup_access(request, data->huntgroups,
- request->packet->vps)) != RLM_MODULE_OK) {
- radlog(L_AUTH, "No huntgroup access: [%s] (%s)",
-- request->username ? request->username->strvalue : "<No User-Name>",
-+ request->username ? (char *)request->username->strvalue : "<No User-Name>",
- auth_name(buf, sizeof(buf), request, 1));
- return r;
- }
diff --git a/net/freeradius/patches/patch-main_command.c b/net/freeradius/patches/patch-main_command.c
new file mode 100644
index 00000000000..55e7ff70036
--- /dev/null
+++ b/net/freeradius/patches/patch-main_command.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-main_command.c,v 1.1 2017/08/26 10:07:28 fhajny Exp $
+
+O_DIRECTORY is a Linuxism and O_NOFOLLOW is a BSDism ported to Linux
+
+--- src/main/command.c.orig 2016-09-29 15:19:48.000000000 +0000
++++ src/main/command.c
+@@ -21,6 +21,16 @@
+ * Copyright 2008 Alan DeKok <aland@deployingradius.com>
+ */
+
++/*
++ * Not every implementation knows what O_DIRECTORY and O_NOFOLLOW are
++ */
++#ifndef O_DIRECTORY
++#define O_DIRECTORY 0
++#endif
++#ifndef O_NOFOLLOW
++#define O_NOFOLLOW 0
++#endif
++
+ #ifdef WITH_COMMAND_SOCKET
+
+ #include <freeradius-devel/parser.h>
diff --git a/net/freeradius/patches/patch-main_util.c b/net/freeradius/patches/patch-main_util.c
new file mode 100644
index 00000000000..64f86ec342c
--- /dev/null
+++ b/net/freeradius/patches/patch-main_util.c
@@ -0,0 +1,20 @@
+$NetBSD: patch-main_util.c,v 1.1 2017/08/26 10:07:28 fhajny Exp $
+O_DIRECTORY to open(2) is a Linuxism.
+
+--- src/main/util.c.orig 2016-09-29 15:19:48.000000000 +0000
++++ src/main/util.c
+@@ -31,6 +31,14 @@ RCSID("$Id: 22299f8c8d6bc98616fa025ee3da
+ #include <fcntl.h>
+
+ /*
++ * Not all libc implmenetations have O_DIRECTORY to pass to
++ * open(2)
++ */
++#ifndef O_DIRECTORY
++#define O_DIRECTORY 0
++#endif
++
++/*
+ * The signal() function in Solaris 2.5.1 sets SA_NODEFER in
+ * sa_flags, which causes grief if signal() is called in the
+ * handler before the cause of the signal has been cleared.
diff --git a/net/freeradius/patches/patch-rlm_krb5_configure b/net/freeradius/patches/patch-rlm_krb5_configure
new file mode 100644
index 00000000000..71d1e679780
--- /dev/null
+++ b/net/freeradius/patches/patch-rlm_krb5_configure
@@ -0,0 +1,50 @@
+$NetBSD: patch-rlm_krb5_configure,v 1.1 2017/08/26 10:07:28 fhajny Exp $
+
+Portable test syntax
+
+--- src/modules/rlm_krb5/configure.orig 2016-09-29 15:19:48.000000000 +0000
++++ src/modules/rlm_krb5/configure
+@@ -3913,7 +3913,7 @@ if test "x$smart_lib" != "x"; then
+ SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
+ fi
+
+- if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" == xyes; then
++ if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
+ krb5_api_type='heimdal'
+ else
+ krb5_api_type='mit'
+@@ -4114,13 +4114,13 @@ _ACEOF
+ fi
+ done
+
+- if test "x$ac_cv_func_krb5_get_error_message" == xyes; then
++ if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
+ krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
+ fi
+- if test "x$ac_cv_func_krb5_free_error_message" == xyes; then
++ if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
+ krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
+ fi
+- if test "x$ac_cv_func_krb5_free_error_string" == xyes; then
++ if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
+ krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
+ fi
+
+@@ -4301,7 +4301,7 @@ if test "x$smart_lib" != "x"; then
+ SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
+ fi
+
+- if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" == xyes; then
++ if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
+ if test "$cross_compiling" = yes; then :
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+@@ -4334,7 +4334,7 @@ fi
+ krb5threadsafe=""
+ fi
+
+- if test "$krb5_api_type" == "mit"; then
++ if test "$krb5_api_type" = "mit"; then
+
+
+ ac_safe=`echo "com_err.h" | sed 'y%./+-%__pm%'`
diff --git a/net/freeradius/patches/patch-rlm_perl_configure b/net/freeradius/patches/patch-rlm_perl_configure
new file mode 100644
index 00000000000..ce8954c8568
--- /dev/null
+++ b/net/freeradius/patches/patch-rlm_perl_configure
@@ -0,0 +1,24 @@
+$NetBSD: patch-rlm_perl_configure,v 1.1 2017/08/26 10:07:28 fhajny Exp $
+
+Portable test syntax
+
+--- src/modules/rlm_perl/configure.orig 2016-09-29 15:19:48.000000000 +0000
++++ src/modules/rlm_perl/configure
+@@ -3451,7 +3451,7 @@ rm -f core conftest.err conftest.$ac_obj
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKS" >&5
+ $as_echo "$LINKS" >&6; }
+- if test "x$LINKS" == "xno"; then
++ if test "x$LINKS" = "xno"; then
+ fail="$fail libperl.so"
+ targetname=
+ fi
+@@ -3482,7 +3482,7 @@ rm -f core conftest.err conftest.$ac_obj
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKS" >&5
+ $as_echo "$LINKS" >&6; }
+- if test "x$LINKS" == "xno"; then
++ if test "x$LINKS" = "xno"; then
+ fail="$fail libperl.so"
+ targetname=
+ fi
diff --git a/net/freeradius/patches/patch-rlm_yubikey_configure b/net/freeradius/patches/patch-rlm_yubikey_configure
new file mode 100644
index 00000000000..530e8d30a6d
--- /dev/null
+++ b/net/freeradius/patches/patch-rlm_yubikey_configure
@@ -0,0 +1,15 @@
+$NetBSD: patch-rlm_yubikey_configure,v 1.1 2017/08/26 10:07:28 fhajny Exp $
+
+Portable test syntax
+
+--- src/modules/rlm_yubikey/configure.orig 2016-09-29 15:19:48.000000000 +0000
++++ src/modules/rlm_yubikey/configure
+@@ -3704,7 +3704,7 @@ if test "x$smart_lib" != "x"; then
+ SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
+ fi
+
+- if test "x$ac_cv_lib_ykclient_ykclient_request" == "xyes"; then
++ if test "x$ac_cv_lib_ykclient_ykclient_request" = "xyes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libykclient missing ykclient_request_process. A later version of libykclient is required." >&5
+ $as_echo "$as_me: WARNING: libykclient missing ykclient_request_process. A later version of libykclient is required." >&2;}
+ else