summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authordarcy <darcy>2003-02-27 08:51:00 +0000
committerdarcy <darcy>2003-02-27 08:51:00 +0000
commiteae8799e05ef70eee64bb9a02f36a656370df2c2 (patch)
tree2f113b871970228c5e2d6396a1ca8540694b90b5 /net
parentea2f6b5645266a5a8b39d9acc7c0a7a5ba21012c (diff)
downloadpkgsrc-eae8799e05ef70eee64bb9a02f36a656370df2c2.tar.gz
Adding freeradius package. Thanks to David Ferlier <david@netbsd-fr.org>
for putting this package together. Closes PR pkg/20013. I had originally requested this package even though we already had the Cistern RADIUS package because some terminal servers won't work with one or the other of these packages. This increases the number of terminal servers that can work with NetBSD. from the DESCR file: 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.
Diffstat (limited to 'net')
-rw-r--r--net/freeradius/DESCR23
-rw-r--r--net/freeradius/Makefile38
-rw-r--r--net/freeradius/PLIST232
-rw-r--r--net/freeradius/distinfo6
-rwxr-xr-xnet/freeradius/files/radiusd19
-rw-r--r--net/freeradius/patches/patch-aa16
-rw-r--r--net/freeradius/patches/patch-ab13
7 files changed, 347 insertions, 0 deletions
diff --git a/net/freeradius/DESCR b/net/freeradius/DESCR
new file mode 100644
index 00000000000..0c9d4b6a0b4
--- /dev/null
+++ b/net/freeradius/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 to find
+ out how to subscribe.
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile
new file mode 100644
index 00000000000..8d817386b41
--- /dev/null
+++ b/net/freeradius/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1 2003/02/27 08:51:00 darcy Exp $
+
+DISTNAME= freeradius-0.7
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
+ ftp://ftp.Awfulhak.org/pub/radius/
+
+MAINTAINER= david@netbsd-fr.org
+HOMEPAGE= http://www.freeradius.org/
+COMMENT= Free RADIUS server implementation
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --quiet --with-logdir=/var/log
+USE_BUILDLINK2= YES
+USE_LIBTOOL= YES
+
+RADDB= acct_users attrs clients clients.conf dictionary \
+ dictionary.acc dictionary.aptis dictionary.ascend \
+ dictionary.bay dictionary.cisco dictionary.compat \
+ dictionary.erx dictionary.foundry dictionary.freeradius \
+ dictionary.livingston dictionary.microsoft dictionary.nomadix \
+ dictionary.quintum dictionary.redback dictionary.shasta \
+ dictionary.shiva dictionary.tunnel dictionary.usr \
+ dictionary.versanet hints huntgroups ldap.attrmap naslist \
+ naspasswd postgresql.conf proxy.conf radiusd.conf realms \
+ snmp.conf sql.conf users x99.conf
+
+post-install:
+ @${INSTALL_DATA_DIR} ${PREFIX}/etc/raddb
+.for db in ${RADDB}
+ ${INSTALL_DATA} ${WRKSRC}/raddb/${db} ${PREFIX}/etc/raddb/${db}.sample
+.endfor
+ ${INSTALL_SCRIPT} ${FILESDIR}/radiusd ${PREFIX}/etc/rc.d/radiusd
+
+.include "../../databases/gdbm/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/freeradius/PLIST b/net/freeradius/PLIST
new file mode 100644
index 00000000000..198b5e191a8
--- /dev/null
+++ b/net/freeradius/PLIST
@@ -0,0 +1,232 @@
+@comment $NetBSD: PLIST,v 1.1 2003/02/27 08:51:00 darcy Exp $
+bin/radclient
+bin/radlast
+bin/radrelay
+bin/radtest
+bin/raduse
+bin/radwho
+bin/radzap
+bin/rlm_dbm_cat
+bin/rlm_dbm_parser
+bin/smbencrypt
+etc/raddb/acct_users
+etc/raddb/acct_users.sample
+etc/raddb/attrs
+etc/raddb/attrs.sample
+etc/raddb/clients
+etc/raddb/clients.conf
+etc/raddb/clients.conf.sample
+etc/raddb/clients.sample
+etc/raddb/dictionary
+etc/raddb/dictionary.acc
+etc/raddb/dictionary.acc.sample
+etc/raddb/dictionary.alcatel
+etc/raddb/dictionary.aptis
+etc/raddb/dictionary.aptis.sample
+etc/raddb/dictionary.ascend
+etc/raddb/dictionary.ascend.sample
+etc/raddb/dictionary.bay
+etc/raddb/dictionary.bay.sample
+etc/raddb/dictionary.cisco
+etc/raddb/dictionary.cisco.sample
+etc/raddb/dictionary.columbia_university
+etc/raddb/dictionary.compat
+etc/raddb/dictionary.compat.sample
+etc/raddb/dictionary.erx
+etc/raddb/dictionary.erx.sample
+etc/raddb/dictionary.foundry
+etc/raddb/dictionary.foundry.sample
+etc/raddb/dictionary.freeradius
+etc/raddb/dictionary.freeradius.sample
+etc/raddb/dictionary.livingston
+etc/raddb/dictionary.livingston.sample
+etc/raddb/dictionary.microsoft
+etc/raddb/dictionary.microsoft.sample
+etc/raddb/dictionary.nomadix
+etc/raddb/dictionary.nomadix.sample
+etc/raddb/dictionary.quintum
+etc/raddb/dictionary.quintum.sample
+etc/raddb/dictionary.redback
+etc/raddb/dictionary.redback.sample
+etc/raddb/dictionary.sample
+etc/raddb/dictionary.shasta
+etc/raddb/dictionary.shasta.sample
+etc/raddb/dictionary.shiva
+etc/raddb/dictionary.shiva.sample
+etc/raddb/dictionary.tunnel
+etc/raddb/dictionary.tunnel.sample
+etc/raddb/dictionary.usr
+etc/raddb/dictionary.usr.sample
+etc/raddb/dictionary.versanet
+etc/raddb/dictionary.versanet.sample
+etc/raddb/experimental.conf
+etc/raddb/hints
+etc/raddb/hints.sample
+etc/raddb/huntgroups
+etc/raddb/huntgroups.sample
+etc/raddb/ldap.attrmap
+etc/raddb/ldap.attrmap.sample
+etc/raddb/mssql.conf
+etc/raddb/naslist
+etc/raddb/naslist.sample
+etc/raddb/naspasswd
+etc/raddb/naspasswd.sample
+etc/raddb/postgresql.conf
+etc/raddb/postgresql.conf.sample
+etc/raddb/proxy.conf
+etc/raddb/proxy.conf.sample
+etc/raddb/radiusd.conf
+etc/raddb/radiusd.conf.sample
+etc/raddb/realms
+etc/raddb/realms.sample
+etc/raddb/snmp.conf
+etc/raddb/snmp.conf.sample
+etc/raddb/sql.conf
+etc/raddb/sql.conf.sample
+etc/raddb/users
+etc/raddb/users.sample
+etc/raddb/x99.conf
+etc/raddb/x99.conf.sample
+etc/raddb/x99passwd.sample
+etc/rc.d/radiusd
+include/ltdl.h
+lib/libltdl.a
+lib/libltdl.la
+lib/libltdl.so
+lib/libltdl.so.4
+lib/libltdl.so.4.0
+lib/libradius-${PKGVERSION}.la
+lib/libradius-${PKGVERSION}.so
+lib/libradius.a
+lib/libradius.la
+lib/libradius.so
+lib/rlm_acct_unique-${PKGVERSION}.la
+lib/rlm_acct_unique-${PKGVERSION}.so
+lib/rlm_acct_unique.a
+lib/rlm_acct_unique.la
+lib/rlm_acct_unique.so
+lib/rlm_always-${PKGVERSION}.la
+lib/rlm_always-${PKGVERSION}.so
+lib/rlm_always.a
+lib/rlm_always.la
+lib/rlm_always.so
+lib/rlm_attr_filter-${PKGVERSION}.la
+lib/rlm_attr_filter-${PKGVERSION}.so
+lib/rlm_attr_filter.a
+lib/rlm_attr_filter.la
+lib/rlm_attr_filter.so
+lib/rlm_attr_rewrite-${PKGVERSION}.la
+lib/rlm_attr_rewrite-${PKGVERSION}.so
+lib/rlm_attr_rewrite.a
+lib/rlm_attr_rewrite.la
+lib/rlm_attr_rewrite.so
+lib/rlm_chap-${PKGVERSION}.la
+lib/rlm_chap-${PKGVERSION}.so
+lib/rlm_chap.a
+lib/rlm_chap.la
+lib/rlm_chap.so
+lib/rlm_counter-${PKGVERSION}.la
+lib/rlm_counter.a
+lib/rlm_counter.la
+lib/rlm_dbm-${PKGVERSION}.la
+lib/rlm_dbm-${PKGVERSION}.so
+lib/rlm_dbm.a
+lib/rlm_dbm.la
+lib/rlm_dbm.so
+lib/rlm_detail-${PKGVERSION}.la
+lib/rlm_detail-${PKGVERSION}.so
+lib/rlm_detail.a
+lib/rlm_detail.la
+lib/rlm_detail.so
+lib/rlm_eap-${PKGVERSION}.la
+lib/rlm_eap-${PKGVERSION}.so
+lib/rlm_eap.a
+lib/rlm_eap.la
+lib/rlm_eap.so
+lib/rlm_eap_md5-${PKGVERSION}.la
+lib/rlm_eap_md5-${PKGVERSION}.so
+lib/rlm_eap_md5.a
+lib/rlm_eap_md5.la
+lib/rlm_eap_md5.so
+lib/rlm_eap_tls-${PKGVERSION}.la
+lib/rlm_eap_tls-${PKGVERSION}.so
+lib/rlm_eap_tls.a
+lib/rlm_eap_tls.la
+lib/rlm_eap_tls.so
+lib/rlm_fastusers-${PKGVERSION}.la
+lib/rlm_fastusers-${PKGVERSION}.so
+lib/rlm_fastusers.a
+lib/rlm_fastusers.la
+lib/rlm_fastusers.so
+lib/rlm_files-${PKGVERSION}.la
+lib/rlm_files-${PKGVERSION}.so
+lib/rlm_files.a
+lib/rlm_files.la
+lib/rlm_files.so
+lib/rlm_mschap-${PKGVERSION}.la
+lib/rlm_mschap-${PKGVERSION}.so
+lib/rlm_mschap.a
+lib/rlm_mschap.la
+lib/rlm_mschap.so
+lib/rlm_ns_mta_md5-${PKGVERSION}.la
+lib/rlm_ns_mta_md5-${PKGVERSION}.so
+lib/rlm_ns_mta_md5.a
+lib/rlm_ns_mta_md5.la
+lib/rlm_ns_mta_md5.so
+lib/rlm_pap-${PKGVERSION}.la
+lib/rlm_pap-${PKGVERSION}.so
+lib/rlm_pap.a
+lib/rlm_pap.la
+lib/rlm_pap.so
+lib/rlm_preprocess-${PKGVERSION}.la
+lib/rlm_preprocess-${PKGVERSION}.so
+lib/rlm_preprocess.a
+lib/rlm_preprocess.la
+lib/rlm_preprocess.so
+lib/rlm_radutmp-${PKGVERSION}.la
+lib/rlm_radutmp-${PKGVERSION}.so
+lib/rlm_radutmp.a
+lib/rlm_radutmp.la
+lib/rlm_radutmp.so
+lib/rlm_realm-${PKGVERSION}.la
+lib/rlm_realm-${PKGVERSION}.so
+lib/rlm_realm.a
+lib/rlm_realm.la
+lib/rlm_realm.so
+lib/rlm_sql-${PKGVERSION}.la
+lib/rlm_sql-${PKGVERSION}.so
+lib/rlm_sql.a
+lib/rlm_sql.la
+lib/rlm_sql.so
+lib/rlm_unix-${PKGVERSION}.la
+lib/rlm_unix-${PKGVERSION}.so
+lib/rlm_unix.a
+lib/rlm_unix.la
+lib/rlm_unix.so
+lib/rlm_x99_token-${PKGVERSION}.la
+lib/rlm_x99_token-${PKGVERSION}.so
+lib/rlm_x99_token.a
+lib/rlm_x99_token.la
+lib/rlm_x99_token.so
+man/man1/radclient.1
+man/man1/radlast.1
+man/man1/radtest.1
+man/man1/raduse.1
+man/man1/radwho.1
+man/man1/radzap.1
+man/man5/acct_users.5
+man/man5/clients.5
+man/man5/dictionary.5
+man/man5/naslist.5
+man/man5/radiusd.conf.5
+man/man5/users.5
+man/man8/builddbm.8
+man/man8/radiusd.8
+man/man8/radrelay.8
+man/man8/radwatch.8
+sbin/check-radiusd-config
+sbin/checkrad
+sbin/radiusd
+sbin/radwatch
+sbin/rc.radiusd
+@dirrm etc/raddb
diff --git a/net/freeradius/distinfo b/net/freeradius/distinfo
new file mode 100644
index 00000000000..17c884f39bd
--- /dev/null
+++ b/net/freeradius/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2003/02/27 08:51:00 darcy Exp $
+
+SHA1 (freeradius-0.7.tar.gz) = 8f44f1f9fedf69b71aa4aed9c0b7222d012ee8d6
+Size (freeradius-0.7.tar.gz) = 1659035 bytes
+SHA1 (patch-aa) = dc2c8c62ed2d11ebf682f7d9fcbaf7a410cbce0d
+SHA1 (patch-ab) = 0715679a341dae04184b761a9133b5c7f84fedea
diff --git a/net/freeradius/files/radiusd b/net/freeradius/files/radiusd
new file mode 100755
index 00000000000..f88ef3f0e86
--- /dev/null
+++ b/net/freeradius/files/radiusd
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# PROVIDE: radiusd
+# REQUIRE: network
+
+name="radiusd"
+command="/usr/pkg/sbin/radiusd"
+pidfile="/ust/pkg/var/run/radiusd/radiusd.pid"
+
+if [ ! -d /etc/rc.d ]
+then
+ echo -n ' ${name}'
+ exec ${command} ${smbd_flags} ${command_args}
+fi
+
+. /etc/rc.subr
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/net/freeradius/patches/patch-aa b/net/freeradius/patches/patch-aa
new file mode 100644
index 00000000000..8f0f8542dc0
--- /dev/null
+++ b/net/freeradius/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1 2003/02/27 08:51:01 darcy Exp $
+
+--- src/main/raduse.c.orig 2003-02-26 03:13:17.000000000 +0100
++++ src/main/raduse.c 2003-02-26 03:17:32.000000000 +0100
+@@ -32,11 +32,6 @@
+ #include "radpaths.h"
+ #include "libradius.h"
+
+-#ifdef HAVE_UTMPX_H
+-#undef ut_time
+-#define ut_time ut_xtime
+-#endif
+-
+ #define UTSIZE (sizeof(struct utmp))
+
+ #define HOURS 19
diff --git a/net/freeradius/patches/patch-ab b/net/freeradius/patches/patch-ab
new file mode 100644
index 00000000000..bc4ec4bacaa
--- /dev/null
+++ b/net/freeradius/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2003/02/27 08:51:01 darcy Exp $
+
+--- src/modules/rlm_dbm/Makefile.in.orig 2003-02-26 03:34:42.000000000 +0100
++++ src/modules/rlm_dbm/Makefile.in 2003-02-26 03:34:49.000000000 +0100
+@@ -3,7 +3,7 @@
+ HEADERS =
+ RLM_UTILS = @dbm_utils@
+ RLM_CFLAGS = @dbm_cflags@
+-RLM_LIBS = @dbm_ldflags@
++RLM_LIBS = @dbm_ldflags@ -L/usr/pkg/lib
+ RLM_INSTALL = @dbm_install@
+
+ include ../rules.mak