pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
update to freeradius 2.0.9
Module Name: pkgsrc-wip
Committed By: Gianni D'Aprile <giannidaprile+pkgsrc-wip%gmail.com@localhost>
Pushed By: giannidaprile
Date: Thu Dec 24 08:33:29 2015 -0600
Changeset: b006851700723ddb5178738d9ae26c8b90ce7b15
Added Files:
freeradius2/DESCR
freeradius2/MESSAGE
freeradius2/MESSAGE.pam
freeradius2/Makefile
freeradius2/PLIST
freeradius2/distinfo
freeradius2/files/radiusd.sh
freeradius2/options.mk
freeradius2/patches/patch-aa
freeradius2/patches/patch-ab
freeradius2/patches/patch-ac
freeradius2/patches/patch-ae
freeradius2/patches/patch-ai
freeradius2/patches/patch-aj
freeradius2/patches/patch-ak
freeradius2/patches/patch-al
freeradius2/patches/patch-configure.in
freeradius2/patches/patch-man_man5_dictionary.5
Log Message:
update to freeradius 2.0.9
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b006851700723ddb5178738d9ae26c8b90ce7b15
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
freeradius2/DESCR | 23 +
freeradius2/MESSAGE | 17 +
freeradius2/MESSAGE.pam | 21 +
freeradius2/Makefile | 166 +++++++
freeradius2/PLIST | 628 ++++++++++++++++++++++++
freeradius2/distinfo | 15 +
freeradius2/files/radiusd.sh | 36 ++
freeradius2/options.mk | 147 ++++++
freeradius2/patches/patch-aa | 16 +
freeradius2/patches/patch-ab | 9 +
freeradius2/patches/patch-ac | 14 +
freeradius2/patches/patch-ae | 23 +
freeradius2/patches/patch-ai | 48 ++
freeradius2/patches/patch-aj | 12 +
freeradius2/patches/patch-ak | 13 +
freeradius2/patches/patch-al | 65 +++
freeradius2/patches/patch-configure.in | 12 +
freeradius2/patches/patch-man_man5_dictionary.5 | 12 +
18 files changed, 1277 insertions(+)
diffs:
diff --git a/freeradius2/DESCR b/freeradius2/DESCR
new file mode 100644
index 0000000..0c9d4b6
--- /dev/null
+++ b/freeradius2/DESCR
@@ -0,0 +1,23 @@
+ 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@localhost to find
+ out how to subscribe.
diff --git a/freeradius2/MESSAGE b/freeradius2/MESSAGE
new file mode 100644
index 0000000..59377a4
--- /dev/null
+++ b/freeradius2/MESSAGE
@@ -0,0 +1,17 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2008/05/15 19:43:47 adrianp Exp $
+
+Note to users who have been running radiusd as root before:
+
+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.
+
+===========================================================================
diff --git a/freeradius2/MESSAGE.pam b/freeradius2/MESSAGE.pam
new file mode 100644
index 0000000..a1b0508
--- /dev/null
+++ b/freeradius2/MESSAGE.pam
@@ -0,0 +1,21 @@
+===========================================================================
+$NetBSD: MESSAGE.pam,v 1.1.1.1 2008/05/15 19:43:47 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/freeradius2/Makefile b/freeradius2/Makefile
new file mode 100644
index 0000000..2b06d46
--- /dev/null
+++ b/freeradius2/Makefile
@@ -0,0 +1,166 @@
+# $NetBSD: Makefile,v 1.40 2015/06/12 10:50:41 wiz Exp $
+
+DISTNAME= freeradius-server-${RADVER}
+PKGNAME= ${DISTNAME:S/-server//}
+#PKGREVISION= 12
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://freeradius.org/
+COMMENT= Free RADIUS server implementation
+LICENSE= gnu-gpl-v2
+
+CONFLICTS+= radiusd-cistron-[0-9]*
+CONFLICTS+= freeradius<2.0
+USE_TOOLS+= gmake perl:run
+USE_LANGUAGES+= c c++ #fortran
+USE_LIBTOOL= yes
+USE_OLD_DES_API= yes
+MAKE_JOBS_SAFE= no
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+= VARBASE
+FILES_SUBST+= RADIUS_USER=${RADIUS_USER}
+FILES_SUBST+= RADIUS_GROUP=${RADIUS_GROUP}
+PLIST_SUBST+= RADVER=${RADVER}
+PLIST_SUBST+= RADVERALT=${RADVERALT}
+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}
+
+PKG_SYSCONFSUBDIR= raddb
+RCD_SCRIPTS= radiusd
+RADIUS_USER?= radius
+RADIUS_GROUP?= radius
+PKG_GROUPS= ${RADIUS_USER}
+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
+OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd \
+ ${RADIUS_USER} ${RADIUS_GROUP} 0750
+OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd/radacct \
+ ${RADIUS_USER} ${RADIUS_GROUP} 0750
+
+RADVER= 2.2.9
+RADVERALT= 020209
+EGDIR= ${PREFIX}/share/examples/freeradius
+
+BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+CONFIGURE_ARGS+= --quiet
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
+CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log/radiusd
+CONFIGURE_ARGS+= --with-system-libltdl
+CONFIGURE_ARGS+= --with-system-libtool
+CONFIGURE_ARGS+= --without-rlm_python
+CONFIGURE_ARGS+= --without-rlm_smb
+CONFIGURE_ARGS+= --without-rlm_sql_oracle
+CONFIGURE_ARGS+= --without-rlm_sql_unixodbc
+MAKE_ENV+= R=${DESTDIR}
+
+REPLACE_PERL= src/modules/rlm_counter/rad_counter
+REPLACE_PERL+= scripts/radsqlrelay
+
+SUBST_CLASSES+= make
+SUBST_STAGE.make= post-patch
+SUBST_FILES.make= src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in
+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 attrs.access_reject attrs.accounting_response \
+ attrs.pre-proxy certs/README certs/bootstrap certs/ca.cnf \
+ certs/client.cnf certs/demoCA/cacert.pem certs/server.cnf \
+ certs/xpextensions clients.conf dictionary eap.conf experimental.conf \
+ hints huntgroups ldap.attrmap modules/acct_unique modules/always \
+ modules/attr_filter modules/attr_rewrite modules/chap modules/checkval \
+ modules/counter modules/detail modules/detail.example.com \
+ modules/detail.log modules/digest modules/echo modules/etc_group \
+ modules/exec modules/expiration modules/expr modules/files \
+ modules/inner-eap modules/ippool modules/krb5 modules/ldap \
+ modules/linelog modules/logintime modules/mac2ip modules/mac2vlan \
+ modules/mschap modules/otp modules/pam modules/pap modules/passwd \
+ modules/perl modules/policy modules/preprocess modules/radutmp \
+ modules/realm modules/smbpasswd modules/smsotp modules/sql_log \
+ modules/sqlcounter_expire_on_login modules/sradutmp modules/unix \
+ modules/wimax policy.conf policy.txt preproxy_users proxy.conf \
+ radiusd.conf sites-available/README sites-available/buffered-sql \
+ sites-available/control-socket \
+ sites-available/copy-acct-to-home-server \
+ sites-available/decoupled-accounting sites-available/default \
+ sites-available/dhcp sites-available/dynamic-clients \
+ sites-available/example sites-available/inner-tunnel \
+ sites-available/originate-coa sites-available/proxy-inner-tunnel \
+ sites-available/robust-proxy-accounting sites-available/status \
+ sites-available/virtual.example.com sites-available/vmps sql.conf \
+ sql/mssql/dialup.conf sql/mssql/schema.sql sql/mysql/admin.sql \
+ sql/mysql/counter.conf sql/mysql/dialup.conf sql/mysql/ippool.conf \
+ sql/mysql/ippool.sql sql/mysql/nas.sql sql/mysql/schema.sql \
+ sql/mysql/wimax.conf sql/mysql/wimax.sql sql/oracle/dialup.conf \
+ sql/oracle/ippool.conf sql/oracle/ippool.sql sql/oracle/msqlippool.txt \
+ sql/oracle/nas.sql sql/oracle/schema.sql sql/postgresql/admin.sql \
+ sql/postgresql/cisco_h323_db_schema.sql sql/postgresql/counter.conf \
+ sql/postgresql/dialup.conf sql/postgresql/ippool.conf \
+ sql/postgresql/ippool.sql sql/postgresql/nas.sql \
+ sql/postgresql/schema.sql \
+ sql/postgresql/update_radacct_group_trigger.sql \
+ sql/postgresql/voip-postpaid.conf sqlippool.conf templates.conf users
+EGDIRS= certs certs/demoCA modules sql sql/mssql sql/mysql sql/oracle \
+ sql/postgresql sites-available sites-enabled
+
+.for f in ${EGFILES}
+CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} \
+ ${RADIUS_USER} ${RADIUS_GROUP} 0640
+.endfor
+
+.for d in ${EGDIRS}
+INSTALLATION_DIRS+= ${EGDIR}/${d}
+OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/${d} ${RADIUS_USER} \
+ ${RADIUS_GROUP} 750
+.endfor
+
+.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
+
+.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
+
+post-install:
+.for f in ${EGFILES}
+ ${INSTALL_DATA} ${WRKSRC}/raddb/${f} ${DESTDIR}${EGDIR}/${f}
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/src/modules/rlm_perl/example.pl ${DESTDIR}${EGDIR}
+
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../devel/libexecinfo/buildlink3.mk"
+.include "../../net/libpcap/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/freeradius2/PLIST b/freeradius2/PLIST
new file mode 100644
index 0000000..bcb5cc0
--- /dev/null
+++ b/freeradius2/PLIST
@@ -0,0 +1,628 @@
+@comment $NetBSD: PLIST,v 1.16 2014/03/11 14:05:08 jperkin Exp $
+bin/rad_counter
+bin/radclient
+bin/radconf2xml
+bin/radcrypt
+bin/radeapclient
+bin/radlast
+bin/radsniff
+bin/radsqlrelay
+bin/radtest
+bin/radwho
+bin/radzap
+${PLIST.dbm}bin/rlm_dbm_cat
+${PLIST.dbm}bin/rlm_dbm_parser
+bin/rlm_ippool_tool
+bin/smbencrypt
+include/freeradius/autoconf.h
+include/freeradius/base64.h
+include/freeradius/conf.h
+include/freeradius/conffile.h
+include/freeradius/detail.h
+include/freeradius/dhcp.h
+include/freeradius/event.h
+include/freeradius/hash.h
+include/freeradius/heap.h
+include/freeradius/ident.h
+include/freeradius/libradius.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/sha1.h
+include/freeradius/stats.h
+include/freeradius/sysutmp.h
+include/freeradius/threads.h
+include/freeradius/token.h
+include/freeradius/udpfromto.h
+include/freeradius/vmps.h
+include/freeradius/vqp.h
+lib/libfreeradius-eap-${RADVER}.la
+lib/libfreeradius-eap.la
+lib/libfreeradius-radius-${RADVERALT}.la
+lib/libfreeradius-radius.la
+lib/rlm_acct_unique-${RADVER}.la
+lib/rlm_acct_unique.la
+lib/rlm_acctlog-${RADVER}.la
+lib/rlm_acctlog.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_cache-${RADVER}.la
+lib/rlm_cache.la
+lib/rlm_chap-${RADVER}.la
+lib/rlm_chap.la
+lib/rlm_checkval-${RADVER}.la
+lib/rlm_checkval.la
+lib/rlm_copy_packet-${RADVER}.la
+lib/rlm_copy_packet.la
+${PLIST.gdbm}lib/rlm_counter-${RADVER}.la
+${PLIST.gdbm}lib/rlm_counter.la
+${PLIST.dbm}lib/rlm_dbm-${RADVER}.la
+${PLIST.dbm}lib/rlm_dbm.la
+lib/rlm_detail-${RADVER}.la
+lib/rlm_detail.la
+lib/rlm_digest-${RADVER}.la
+lib/rlm_digest.la
+lib/rlm_dynamic_clients-${RADVER}.la
+lib/rlm_dynamic_clients.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_expiration-${RADVER}.la
+lib/rlm_expiration.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_ippool-${RADVER}.la
+lib/rlm_ippool.la
+${PLIST.kerberos}lib/rlm_krb5-${RADVER}.la
+${PLIST.kerberos}lib/rlm_krb5.la
+${PLIST.ldap}lib/rlm_ldap-${RADVER}.la
+${PLIST.ldap}lib/rlm_ldap.la
+lib/rlm_linelog-${RADVER}.la
+lib/rlm_linelog.la
+lib/rlm_logintime-${RADVER}.la
+lib/rlm_logintime.la
+lib/rlm_mschap-${RADVER}.la
+lib/rlm_mschap.la
+lib/rlm_otp-${RADVER}.la
+lib/rlm_otp.la
+${PLIST.pam}lib/rlm_pam-${RADVER}.la
+${PLIST.pam}lib/rlm_pam.la
+lib/rlm_pap-${RADVER}.la
+lib/rlm_pap.la
+lib/rlm_passwd-${RADVER}.la
+lib/rlm_passwd.la
+${PLIST.perl}lib/rlm_perl-${RADVER}.la
+${PLIST.perl}lib/rlm_perl.la
+${PLIST.pgsql}lib/rlm_sql_postgresql-${RADVER}.la
+${PLIST.pgsql}lib/rlm_sql_postgresql.la
+lib/rlm_policy-${RADVER}.la
+lib/rlm_policy.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_replicate-${RADVER}.la
+lib/rlm_replicate.la
+lib/rlm_soh-${RADVER}.la
+lib/rlm_soh.la
+lib/rlm_sql-${RADVER}.la
+lib/rlm_sql.la
+${PLIST.iodbc}lib/rlm_sql_iodbc-${RADVER}.la
+${PLIST.iodbc}lib/rlm_sql_iodbc.la
+lib/rlm_sql_log-${RADVER}.la
+lib/rlm_sql_log.la
+${PLIST.mysql}lib/rlm_sql_mysql-${RADVER}.la
+${PLIST.mysql}lib/rlm_sql_mysql.la
+${PLIST.unixodbc}lib/rlm_sql_unixodbc-${RADVER}.la
+${PLIST.unixodbc}lib/rlm_sql_unixodbc.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
+lib/rlm_wimax-${RADVER}.la
+lib/rlm_wimax.la
+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/man1/smbencrypt.1
+man/man5/acct_users.5
+man/man5/checkrad.5
+man/man5/clients.conf.5
+man/man5/dictionary.5
+man/man5/radiusd.conf.5
+man/man5/radrelay.conf.5
+man/man5/rlm_acct_unique.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_mschap.5
+man/man5/rlm_pap.5
+man/man5/rlm_passwd.5
+man/man5/rlm_policy.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/radconf2xml.8
+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
+man/man8/rlm_dbm_cat.8
+man/man8/rlm_dbm_parser.8
+man/man8/rlm_ippool_tool.8
+sbin/checkrad
+sbin/raddebug
+sbin/radiusd
+sbin/radmin
+sbin/radwatch
+sbin/rc.radiusd
+share/doc/freeradius/Acct-Type.rst
+share/doc/freeradius/Autz-Type.rst
+share/doc/freeradius/CYGWIN.rst
+share/doc/freeradius/ChangeLog
+share/doc/freeradius/DIFFS.rst
+share/doc/freeradius/MACOSX
+share/doc/freeradius/Makefile.sphinx
+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/README
+share/doc/freeradius/Session-Type
+share/doc/freeradius/Simultaneous-Use
+share/doc/freeradius/SoH.txt
+share/doc/freeradius/aaa.rst
+share/doc/freeradius/ascend
+share/doc/freeradius/bay
+share/doc/freeradius/bugs
+share/doc/freeradius/cisco.rst
+share/doc/freeradius/coding-methods.rst
+share/doc/freeradius/configurable_failover.rst
+share/doc/freeradius/examples/iplanet.ldif
+share/doc/freeradius/examples/iplanet.schema
+share/doc/freeradius/examples/openldap.schema
+share/doc/freeradius/examples/postgresql_update_radacct_group_trigger.sql
+share/doc/freeradius/index.rst
+share/doc/freeradius/ldap_howto.rst
+share/doc/freeradius/load-balance.rst
+share/doc/freeradius/misc-nas.rst
+share/doc/freeradius/module_interface.rst
+share/doc/freeradius/mssql
+share/doc/freeradius/performance-testing
+share/doc/freeradius/processing_users_file.rst
+share/doc/freeradius/proxy.rst
+share/doc/freeradius/release-method.rst
+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/leap.txt
+share/doc/freeradius/rfc/pppext-eap-sim-12.txt
+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/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
+share/doc/freeradius/rfc/rfc2621.txt
+share/doc/freeradius/rfc/rfc2716.txt
+share/doc/freeradius/rfc/rfc2759.txt
+share/doc/freeradius/rfc/rfc2809.txt
+share/doc/freeradius/rfc/rfc2865.txt
+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/rfc2924.txt
+share/doc/freeradius/rfc/rfc3079.txt
+share/doc/freeradius/rfc/rfc3162.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/rfc/rfc3748.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/rfc5997.txt
+share/doc/freeradius/rfc/rfc6158.txt
+share/doc/freeradius/rfc/rfc6519.txt
+share/doc/freeradius/rfc/rfc6572.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/rlm_dbm
+share/doc/freeradius/rlm_eap
+share/doc/freeradius/rlm_expiration
+share/doc/freeradius/rlm_fastusers
+share/doc/freeradius/rlm_jradius
+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/snmp
+share/doc/freeradius/supervise-radiusd.rst
+share/doc/freeradius/tuning_guide
+share/doc/freeradius/variables.rst
+share/examples/freeradius/acct_users
+share/examples/freeradius/attrs
+share/examples/freeradius/attrs.access_reject
+share/examples/freeradius/attrs.accounting_response
+share/examples/freeradius/attrs.pre-proxy
+share/examples/freeradius/certs/README
+share/examples/freeradius/certs/bootstrap
+share/examples/freeradius/certs/ca.cnf
+share/examples/freeradius/certs/client.cnf
+share/examples/freeradius/certs/demoCA/cacert.pem
+share/examples/freeradius/certs/server.cnf
+share/examples/freeradius/certs/xpextensions
+share/examples/freeradius/clients.conf
+share/examples/freeradius/dictionary
+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/modules/acct_unique
+share/examples/freeradius/modules/always
+share/examples/freeradius/modules/attr_filter
+share/examples/freeradius/modules/attr_rewrite
+share/examples/freeradius/modules/chap
+share/examples/freeradius/modules/checkval
+share/examples/freeradius/modules/counter
+share/examples/freeradius/modules/detail
+share/examples/freeradius/modules/detail.example.com
+share/examples/freeradius/modules/detail.log
+share/examples/freeradius/modules/digest
+share/examples/freeradius/modules/echo
+share/examples/freeradius/modules/etc_group
+share/examples/freeradius/modules/exec
+share/examples/freeradius/modules/expiration
+share/examples/freeradius/modules/expr
+share/examples/freeradius/modules/files
+share/examples/freeradius/modules/inner-eap
+share/examples/freeradius/modules/ippool
+share/examples/freeradius/modules/krb5
+share/examples/freeradius/modules/ldap
+share/examples/freeradius/modules/linelog
+share/examples/freeradius/modules/logintime
+share/examples/freeradius/modules/mac2ip
+share/examples/freeradius/modules/mac2vlan
+share/examples/freeradius/modules/mschap
+share/examples/freeradius/modules/otp
+share/examples/freeradius/modules/pam
+share/examples/freeradius/modules/pap
+share/examples/freeradius/modules/passwd
+share/examples/freeradius/modules/perl
+share/examples/freeradius/modules/policy
+share/examples/freeradius/modules/preprocess
+share/examples/freeradius/modules/radutmp
+share/examples/freeradius/modules/realm
+share/examples/freeradius/modules/smbpasswd
+share/examples/freeradius/modules/smsotp
+share/examples/freeradius/modules/sql_log
+share/examples/freeradius/modules/sqlcounter_expire_on_login
+share/examples/freeradius/modules/sradutmp
+share/examples/freeradius/modules/unix
+share/examples/freeradius/modules/wimax
+share/examples/freeradius/policy.conf
+share/examples/freeradius/policy.txt
+share/examples/freeradius/preproxy_users
+share/examples/freeradius/proxy.conf
+share/examples/freeradius/radiusd.conf
+share/examples/freeradius/sites-available/README
+share/examples/freeradius/sites-available/buffered-sql
+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/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/status
+share/examples/freeradius/sites-available/virtual.example.com
+share/examples/freeradius/sites-available/vmps
+share/examples/freeradius/sql.conf
+share/examples/freeradius/sql/mssql/dialup.conf
+share/examples/freeradius/sql/mssql/schema.sql
+share/examples/freeradius/sql/mysql/admin.sql
+share/examples/freeradius/sql/mysql/counter.conf
+share/examples/freeradius/sql/mysql/dialup.conf
+share/examples/freeradius/sql/mysql/ippool.conf
+share/examples/freeradius/sql/mysql/ippool.sql
+share/examples/freeradius/sql/mysql/nas.sql
+share/examples/freeradius/sql/mysql/schema.sql
+share/examples/freeradius/sql/mysql/wimax.conf
+share/examples/freeradius/sql/mysql/wimax.sql
+share/examples/freeradius/sql/oracle/dialup.conf
+share/examples/freeradius/sql/oracle/ippool.conf
+share/examples/freeradius/sql/oracle/ippool.sql
+share/examples/freeradius/sql/oracle/msqlippool.txt
+share/examples/freeradius/sql/oracle/nas.sql
+share/examples/freeradius/sql/oracle/schema.sql
+share/examples/freeradius/sql/postgresql/admin.sql
+share/examples/freeradius/sql/postgresql/cisco_h323_db_schema.sql
+share/examples/freeradius/sql/postgresql/counter.conf
+share/examples/freeradius/sql/postgresql/dialup.conf
+share/examples/freeradius/sql/postgresql/ippool.conf
+share/examples/freeradius/sql/postgresql/ippool.sql
+share/examples/freeradius/sql/postgresql/nas.sql
+share/examples/freeradius/sql/postgresql/schema.sql
+share/examples/freeradius/sql/postgresql/update_radacct_group_trigger.sql
+share/examples/freeradius/sql/postgresql/voip-postpaid.conf
+share/examples/freeradius/sqlippool.conf
+share/examples/freeradius/templates.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.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.apc
+share/freeradius/dictionary.aptis
+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.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.chillispot
+share/freeradius/dictionary.cisco
+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.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.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.ericsson
+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.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.hp
+share/freeradius/dictionary.huawei
+share/freeradius/dictionary.iea
+share/freeradius/dictionary.infonet
+share/freeradius/dictionary.ipunplugged
+share/freeradius/dictionary.issanni
+share/freeradius/dictionary.itk
+share/freeradius/dictionary.jradius
+share/freeradius/dictionary.juniper
+share/freeradius/dictionary.karlnet
+share/freeradius/dictionary.kineto
+share/freeradius/dictionary.lancom
+share/freeradius/dictionary.livingston
+share/freeradius/dictionary.localweb
+share/freeradius/dictionary.lucent
+share/freeradius/dictionary.manzara
+share/freeradius/dictionary.merit
+share/freeradius/dictionary.meru
+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.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
+share/freeradius/dictionary.rfc2867
+share/freeradius/dictionary.rfc2868
+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.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.rfc6930
+share/freeradius/dictionary.rfc7055
+share/freeradius/dictionary.rfc7268
+share/freeradius/dictionary.riverbed
+share/freeradius/dictionary.riverstone
+share/freeradius/dictionary.roaringpenguin
+share/freeradius/dictionary.ruckus
+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.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.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.wimax
+share/freeradius/dictionary.wimax.wichorus
+share/freeradius/dictionary.wispr
+share/freeradius/dictionary.xedia
+share/freeradius/dictionary.xylan
+share/freeradius/dictionary.zeus
+share/freeradius/dictionary.zte
+share/freeradius/dictionary.zyxel
+@pkgdir share/examples/freeradius/sites-enabled
diff --git a/freeradius2/distinfo b/freeradius2/distinfo
new file mode 100644
index 0000000..58a272e
--- /dev/null
+++ b/freeradius2/distinfo
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.16 2014/04/27 12:10:55 he Exp $
+
+SHA1 (freeradius-server-2.2.9.tar.bz2) = 730a5b681b375800a85c935cc2f34c5ba3aa951b
+RMD160 (freeradius-server-2.2.9.tar.bz2) = 4d3097e5d193a2268e81e3bde7cb6b75aed739c5
+Size (freeradius-server-2.2.9.tar.bz2) = 2793005 bytes
+SHA1 (patch-aa) = 07f28084b9d159a52014e31b5314827baaf07716
+SHA1 (patch-ab) = 306ee49b886d38341c2a94159ae033d2cff9c577
+SHA1 (patch-ac) = 689de3193b34f6ff169287a2512bda9691de6899
+SHA1 (patch-ae) = 98be5272791935ed6823165ff53893b352fd6974
+SHA1 (patch-ai) = c224f984167747894506e806a5a9775318b47d96
+SHA1 (patch-aj) = 99f62341e36932270ea0bce38bca8778a2125624
+SHA1 (patch-ak) = 898cc417449e9e5d5513a5d53b538ed320b923a2
+SHA1 (patch-al) = e553795702f48c26c41fa00a7fd59c48413c1423
+SHA1 (patch-configure.in) = e0fc20374d8600694d7a34e1ecef8e1f03b5816d
+SHA1 (patch-man_man5_dictionary.5) = 01242a57f7a2bd6b84313ec578b4650c525b72b8
diff --git a/freeradius2/files/radiusd.sh b/freeradius2/files/radiusd.sh
new file mode 100644
index 0000000..2f4f331
--- /dev/null
+++ b/freeradius2/files/radiusd.sh
@@ -0,0 +1,36 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: radiusd.sh,v 1.1.1.1 2008/05/15 19:43:47 adrianp Exp $
+#
+# PROVIDE: radiusd
+# REQUIRE: network
+#
+
+if [ -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="radiusd"
+rcvar=${name}
+command="@PREFIX@/sbin/radiusd"
+pidfile="@VARBASE@/run/radiusd/radiusd.pid"
+start_precmd="radiusd_precmd"
+
+radiusd_precmd()
+{
+ if [ ! -d @VARBASE@/run/radiusd ]; then
+ @MKDIR@ @VARBASE@/run/radiusd
+ @CHMOD@ 0750 @VARBASE@/run/radiusd
+ @CHOWN@ @RADIUS_USER@:@RADIUS_GROUP@ @VARBASE@/run/radiusd
+ fi
+}
+
+if [ -f /etc/rc.subr ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n ' ${name}'
+ exec ${command} ${radiusd_flags} ${command_args}
+fi
diff --git a/freeradius2/options.mk b/freeradius2/options.mk
new file mode 100644
index 0000000..67b8549
--- /dev/null
+++ b/freeradius2/options.mk
@@ -0,0 +1,147 @@
+# $NetBSD: options.mk,v 1.5 2014/11/02 05:55:43 obache Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.freeradius
+PKG_SUPPORTED_OPTIONS= freeradius-simul-use kerberos ldap mysql
+PKG_SUPPORTED_OPTIONS+= pam perl pgsql snmp
+PKG_OPTIONS_OPTIONAL_GROUPS= dbm odbc
+PKG_OPTIONS_GROUP.dbm= bdb gdbm
+PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
+PKG_SUGGESTED_OPTIONS= freeradius-simul-use gdbm
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= dbm gdbm iodbc ldap kerberos mysql pam pgsql unixodbc perl
+
+###
+### GDBM or Berkeley DB 1.x support
+###
+.if !empty(PKG_OPTIONS:Mgdbm)
+. include "../../databases/gdbm/buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_dbm
+PLIST.dbm= yes
+PLIST.gdbm= yes
+.elif !empty(PKG_OPTIONS:Mbdb) && exists(/usr/include/ndbm.h)
+BDB_ACCEPTED= db1
+. include "../../mk/bdb.buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_dbm
+PLIST.dbm= yes
+.else
+CONFIGURE_ARGS+= --without-rlm_dbm
+.endif
+
+###
+### PERL support
+###
+.if !empty(PKG_OPTIONS:Mperl)
+. include "../../lang/perl5/buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_perl
+PLIST.perl= yes
+.else
+CONFIGURE_ARGS+= --without-rlm_perl
+.endif
+
+###
+### OpenLDAP support
+###
+.if !empty(PKG_OPTIONS:Mldap)
+. include "../../databases/openldap-client/buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_ldap
+PLIST.ldap= yes
+.else
+CONFIGURE_ARGS+= --without-rlm_ldap
+.endif
+
+###
+### IODBC support
+###
+.if !empty(PKG_OPTIONS:Miodbc)
+. include "../../databases/iodbc/buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_sql_iodbc
+PLIST.iodbc= yes
+.else
+CONFIGURE_ARGS+= --without-rlm_sql_iodbc
+.endif
+
+###
+### UnixDBC support
+###
+.if !empty(PKG_OPTIONS:Munixodbc)
+. include "../../databases/unixodbc/buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_sql_unixodbc
+PLIST.unixodbc= yes
+.else
+CONFIGURE_ARGS+= --without-rlm_sql_unixodbc
+.endif
+
+###
+### PostgreSQL support
+###
+.if !empty(PKG_OPTIONS:Mpgsql)
+. include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_sql_postgresql
+PLIST.pgsql= yes
+.else
+CONFIGURE_ARGS+= --without-rlm_sql_postgresql
+.endif
+
+###
+### MySQL support
+###
+.if !empty(PKG_OPTIONS:Mmysql)
+. include "../../mk/mysql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-rlm_sql_mysql
+PLIST.mysql= yes
+.else
+CONFIGURE_ARGS+= --without-rlm_sql_mysql
+.endif
+
+###
+### 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
+
+###
+### Kerberos 5 support
+###
+.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.kerberos= yes
+.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
+
+###
+### PAM support
+###
+.if !empty(PKG_OPTIONS:Mpam)
+CONFIGURE_ARGS+= --with-rlm_pam
+MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam
+PLIST.pam= yes
+.else
+CONFIGURE_ARGS+= --without-rlm_pam
+.endif
diff --git a/freeradius2/patches/patch-aa b/freeradius2/patches/patch-aa
new file mode 100644
index 0000000..46aff8c
--- /dev/null
+++ b/freeradius2/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1 2008/10/12 13:57:27 adrianp Exp $
+
+--- src/lib/log.c.orig 2015-09-30 20:37:13.000000000 +0000
++++ src/lib/log.c
+@@ -52,10 +52,10 @@ RCSID("$Id: 73c46d7d3d460adfb424ef70ee4b
+ * Use pthread keys if we have pthreads. For MAC, which should
+ * be very fast.
+ */
++#endif
+ #ifdef HAVE_PTHREAD_H
+ #define USE_PTHREAD_FOR_TLS (1)
+ #endif
+-#endif
+
+ #ifndef USE_PTHREAD_FOR_TLS
+ /*
diff --git a/freeradius2/patches/patch-ab b/freeradius2/patches/patch-ab
new file mode 100644
index 0000000..8f74881
--- /dev/null
+++ b/freeradius2/patches/patch-ab
@@ -0,0 +1,9 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/05/15 19:43:47 adrianp Exp $
+
+--- src/modules/rlm_perl/Makefile.in.orig 2015-09-30 20:37:13.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/freeradius2/patches/patch-ac b/freeradius2/patches/patch-ac
new file mode 100644
index 0000000..abba6e3
--- /dev/null
+++ b/freeradius2/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.4 2013/04/12 13:45:47 joerg Exp $
+
+--- src/main/modules.c.orig 2015-09-30 20:37:13.000000000 +0000
++++ src/main/modules.c
+@@ -1408,9 +1408,6 @@ int setup_modules(int reload, CONF_SECTI
+ * It's like libtool and libltdl are some kind
+ * of sick joke.
+ */
+-#ifdef IE_LIBTOOL_DIE
+-#define lt__PROGRAM__LTX_preloaded_symbols lt_libltdl_LTX_preloaded_symbols
+-#endif
+
+ /*
+ * Set the default list of preloaded symbols.
diff --git a/freeradius2/patches/patch-ae b/freeradius2/patches/patch-ae
new file mode 100644
index 0000000..1e26b24
--- /dev/null
+++ b/freeradius2/patches/patch-ae
@@ -0,0 +1,23 @@
+$NetBSD: patch-ae,v 1.3 2009/10/11 09:18:25 adam Exp $
+
+--- Makefile.orig 2015-09-30 20:37:13.000000000 +0000
++++ Makefile
+@@ -11,7 +11,7 @@ include Make.inc
+
+ .PHONY: all clean install
+
+-SUBDIRS = $(LTDL_SUBDIRS) $(wildcard src raddb scripts doc)
++SUBDIRS = $(LTDL_SUBDIRS) $(wildcard src scripts doc)
+ WHAT_TO_MAKE = all
+
+ all:
+@@ -47,9 +47,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/freeradius2/patches/patch-ai b/freeradius2/patches/patch-ai
new file mode 100644
index 0000000..1698bc7
--- /dev/null
+++ b/freeradius2/patches/patch-ai
@@ -0,0 +1,48 @@
+$NetBSD$
+
+--- configure.orig 2015-09-30 20:37:13.000000000 +0000
++++ configure
+@@ -20177,13 +20177,13 @@ fi
+ done
+
+
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
+-$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
++$as_echo_n "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... " >&6; }
+ if ${ac_cv_lib_pthread_pthread_create+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread $LIBS"
++LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -20215,7 +20215,7 @@ fi
+ $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
+ if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
+ CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
+- LIBS="-lpthread $LIBS"
++ LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
+ $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
+@@ -20525,7 +20525,7 @@ if ${ac_cv_lib_ssl_SSL_new+:} false; the
+ $as_echo_n "(cached) " >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lssl $LIBS"
++LIBS="-lssl -lcrypto $LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -22529,7 +22529,7 @@ gethostbyaddrrstyle=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
+ $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
+ case "$host" in
+-*-freebsd*)
++*-freebsd* | *-dragonfly*)
+ ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
+ #ifdef HAVE_NETDB_H
+ #include <netdb.h>
diff --git a/freeradius2/patches/patch-aj b/freeradius2/patches/patch-aj
new file mode 100644
index 0000000..ea8948d
--- /dev/null
+++ b/freeradius2/patches/patch-aj
@@ -0,0 +1,12 @@
+$NetBSD: patch-aj,v 1.2 2010/07/20 08:41:21 adam Exp $
+
+--- Make.inc.in.orig 2015-09-30 20:37:13.000000000 +0000
++++ Make.inc.in
+@@ -47,6 +47,7 @@ INSTALLSTRIP = @INSTALLSTRIP@
+ LCRYPT = @CRYPTLIB@
+ LIBS = @LIBS@
+ LDFLAGS = @LDFLAGS@
++RLM_LIBS += -lcrypto -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib
+
+ LOGDIR = ${logdir}
+ RADDBDIR = ${raddbdir}
diff --git a/freeradius2/patches/patch-ak b/freeradius2/patches/patch-ak
new file mode 100644
index 0000000..198a248
--- /dev/null
+++ b/freeradius2/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- raddb/radiusd.conf.in.orig 2015-09-30 20:37:13.000000000 +0000
++++ raddb/radiusd.conf.in
+@@ -166,6 +166,8 @@ pidfile = ${run_dir}/${name}.pid
+ #
+ #user = radius
+ #group = radius
++user = radius
++group = radius
+
+ # panic_action: Command to execute if the server dies unexpectedly.
+ #
diff --git a/freeradius2/patches/patch-al b/freeradius2/patches/patch-al
new file mode 100644
index 0000000..94698d5
--- /dev/null
+++ b/freeradius2/patches/patch-al
@@ -0,0 +1,65 @@
+$NetBSD: patch-al,v 1.3 2010/07/20 08:41:21 adam Exp $
+
+--- src/modules/rlm_preprocess/rlm_preprocess.c.orig 2015-09-30 20:37:13.000000000 +0000
++++ src/modules/rlm_preprocess/rlm_preprocess.c
+@@ -128,7 +128,7 @@ static void cisco_vsa_hack(VALUE_PAIR *v
+ /*
+ * No weird packing. Ignore it.
+ */
+- ptr = strchr(vp->vp_strvalue, '='); /* find an '=' */
++ ptr = strchr((char *)vp->vp_strvalue, '='); /* find an '=' */
+ if (!ptr) continue;
+
+ /*
+@@ -146,7 +146,7 @@ static void cisco_vsa_hack(VALUE_PAIR *v
+ const char *p;
+ DICT_ATTR *dattr;
+
+- p = vp->vp_strvalue;
++ p = (char *)vp->vp_strvalue;
+ gettoken(&p, newattr, sizeof(newattr));
+
+ if ((dattr = dict_attrbyname(newattr)) != NULL) {
+@@ -231,10 +231,10 @@ static void rad_mangle(rlm_preprocess_t
+ *
+ * FIXME: should we handle this as a REALM ?
+ */
+- if ((ptr = strchr(namepair->vp_strvalue, '\\')) != NULL) {
++ if ((ptr = strchr((char *)namepair->vp_strvalue, '\\')) != NULL) {
+ strlcpy(newname, ptr + 1, sizeof(newname));
+ /* Same size */
+- strcpy(namepair->vp_strvalue, newname);
++ strcpy((char *)namepair->vp_strvalue, newname);
+ namepair->length = strlen(newname);
+ }
+ }
+@@ -415,9 +415,9 @@ static int huntgroup_access(REQUEST *req
+ &request->packet->vps,
+ PW_HUNTGROUP_NAME,
+ PW_TYPE_STRING);
+- strlcpy(vp->vp_strvalue, i->name,
++ strlcpy((char *)vp->vp_strvalue, i->name,
+ sizeof(vp->vp_strvalue));
+- vp->length = strlen(vp->vp_strvalue);
++ vp->length = strlen((char *)vp->vp_strvalue);
+ }
+ r = RLM_MODULE_OK;
+ }
+@@ -597,7 +597,7 @@ static int preprocess_authorize(void *in
+ data->huntgroups)) != RLM_MODULE_OK) {
+ char buf[1024];
+ radlog_request(L_AUTH, 0, request, "No huntgroup access: [%s] (%s)",
+- request->username ? request->username->vp_strvalue : "<NO User-Name>",
++ request->username ? (char *)request->username->vp_strvalue : "<NO User-Name>",
+ auth_name(buf, sizeof(buf), request, 1));
+ return r;
+ }
+@@ -648,7 +648,7 @@ static int preprocess_preaccounting(void
+ data->huntgroups)) != RLM_MODULE_OK) {
+ char buf[1024];
+ radlog_request(L_INFO, 0, request, "No huntgroup access: [%s] (%s)",
+- request->username ? request->username->vp_strvalue : "<NO User-Name>",
++ request->username ? (char *)request->username->vp_strvalue : "<NO User-Name>",
+ auth_name(buf, sizeof(buf), request, 1));
+ return r;
+ }
diff --git a/freeradius2/patches/patch-configure.in b/freeradius2/patches/patch-configure.in
new file mode 100644
index 0000000..be9248b
--- /dev/null
+++ b/freeradius2/patches/patch-configure.in
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- configure.in.orig 2015-09-30 20:37:13.000000000 +0000
++++ configure.in
+@@ -659,7 +659,6 @@ AC_CHECK_HEADERS( \
+ unistd.h \
+ crypt.h \
+ errno.h \
+- execinfo.h \
+ resource.h \
+ sys/resource.h \
+ getopt.h \
diff --git a/freeradius2/patches/patch-man_man5_dictionary.5 b/freeradius2/patches/patch-man_man5_dictionary.5
new file mode 100644
index 0000000..8ce45db
--- /dev/null
+++ b/freeradius2/patches/patch-man_man5_dictionary.5
@@ -0,0 +1,12 @@
+$NetBSD: patch-man_man5_dictionary.5,v 1.1 2012/03/12 21:54:13 joerg Exp $
+
+--- man/man5/dictionary.5.orig 2015-09-30 20:37:13.000000000 +0000
++++ man/man5/dictionary.5
+@@ -60,7 +60,6 @@ given, the attribute is defined to be a
+ Alternately, the options may be the a comma-separated list of the
+ following options:
+
+-.TP 0.5i
+ .DS
+ encrypt=[1-3]
+ .DE
Home |
Main Index |
Thread Index |
Old Index