diff options
author | edwin <edwin@FreeBSD.org> | 2003-09-27 15:29:44 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-09-27 15:29:44 +0800 |
commit | c2937e7f549d4619b76666fca1c53c30ddebe573 (patch) | |
tree | df48dc29d783db2862790efba437a307f2f1daa0 | |
parent | 243ff780c8527638a4f8a99a397edd6a51e9e1d2 (diff) | |
download | freebsd-ports-gnome-c2937e7f549d4619b76666fca1c53c30ddebe573.tar.gz freebsd-ports-gnome-c2937e7f549d4619b76666fca1c53c30ddebe573.tar.zst freebsd-ports-gnome-c2937e7f549d4619b76666fca1c53c30ddebe573.zip |
New port openradius
A port of OpenRADIUS has not been made yet, though other
RADIUS servers are currently in the ports tree. I have found
OpenRADIUS to be extremely easy to use, especially for unix
password databases.
PR: ports/52614
Submitted by: Adam Jette <jettea46@yahoo.com>
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/openradius/Makefile | 26 | ||||
-rw-r--r-- | net/openradius/distinfo | 1 | ||||
-rw-r--r-- | net/openradius/pkg-descr | 20 | ||||
-rw-r--r-- | net/openradius/pkg-message | 2 | ||||
-rw-r--r-- | net/openradius/pkg-plist | 48 | ||||
-rw-r--r-- | net/openradius/scripts/configure | 64 |
7 files changed, 162 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 9876907a49c9..341b3e736901 100644 --- a/net/Makefile +++ b/net/Makefile @@ -389,6 +389,7 @@ SUBDIR += openldap22-client SUBDIR += openldap22-server SUBDIR += openmcu + SUBDIR += openradius SUBDIR += openreg SUBDIR += openslp SUBDIR += openverse diff --git a/net/openradius/Makefile b/net/openradius/Makefile new file mode 100644 index 000000000000..782c0ff98ea8 --- /dev/null +++ b/net/openradius/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: openradius +# Date created: 23 May 2003 +# Whom: Adam Jette <jettea46@yahoo.com> +# +# $FreeBSD$ +# + +PORTNAME= openradius +PORTVERSION= 0.9.7 +CATEGORIES= net +MASTER_SITES= http://www.xs4all.nl/~evbergen/openradius/download/ \ + http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/ + +MAINTAINER= jettea46@yahoo.com +COMMENT= A RADIUS server with some actual documentation + +CONFIGURE_ARGS= --prefix={$PREFIX} + +CC ?= gcc +CXX ?= g++ +USE_GMAKE= yes + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/net/openradius/distinfo b/net/openradius/distinfo new file mode 100644 index 000000000000..89311f429f2f --- /dev/null +++ b/net/openradius/distinfo @@ -0,0 +1 @@ +MD5 (openradius-0.9.7.tar.gz) = a9c74fe3b572ac8ec512c7b1f630a19f diff --git a/net/openradius/pkg-descr b/net/openradius/pkg-descr new file mode 100644 index 000000000000..1afe06c36111 --- /dev/null +++ b/net/openradius/pkg-descr @@ -0,0 +1,20 @@ +This is a relatively simple port of OpenRADIUS. From the faq... + +------------------------------ +What is OpenRADIUS? + +OpenRADIUS is a piece of software that links your network access +devices to your user-, service profile-, and usage databases. + +As such, OpenRADIUS isn't unique; other servers that speak the +RADIUS protocol do the same. But it is unique in the flexibility +it offers you in building this link, because it puts you in full +control of the business rules used inside the server and the ways +it talks to your databases - without anybody having to hack the +source code. +------------------------------ + +WWW: http://www.openradius.net/ + +- aj +jettea46@yahoo.com diff --git a/net/openradius/pkg-message b/net/openradius/pkg-message new file mode 100644 index 000000000000..b483d31e587e --- /dev/null +++ b/net/openradius/pkg-message @@ -0,0 +1,2 @@ +Configuration sample files were installed, you will need to copy +these over to create real configuration files. diff --git a/net/openradius/pkg-plist b/net/openradius/pkg-plist new file mode 100644 index 000000000000..753939cdbd58 --- /dev/null +++ b/net/openradius/pkg-plist @@ -0,0 +1,48 @@ +etc/openradius/behaviour +etc/openradius/configuration +etc/openradius/behaviour.sample-ldap +etc/openradius/behaviour.sample-ldap-authbind +etc/openradius/behaviour.sample-mysql +etc/openradius/behaviour.sample-unixpass +etc/openradius/behaviour.sample-usersfile +etc/openradius/configuration.sample-ldap +etc/openradius/configuration.sample-ldap-authbind +etc/openradius/configuration.sample-mysql +etc/openradius/configuration.sample-unixpass +etc/openradius/configuration.sample-usersfile +etc/openradius/dictionary + +etc/openradius/legacy/clients +etc/openradius/legacy/users +@dirrm etc/openradius/legacy + +etc/openradius/modules/radldap.attrmap +@dirrm etc/openradius/modules + +etc/openradius/subdicts/dict.cisco +etc/openradius/subdicts/dict.internal +etc/openradius/subdicts/dict.microsoft +etc/openradius/subdicts/dict.rfc2869 +etc/openradius/subdicts/dict.stdacct +etc/openradius/subdicts/dict.stdauth +etc/openradius/subdicts/dict.str-ldap +etc/openradius/subdicts/dict.tunnel +etc/openradius/subdicts/dict.usr +etc/openradius/subdicts/dict.vendors +@dirrm etc/openradius/subdicts + +@dirrm etc/openradius + +lib/openradius/ascfile +lib/openradius/delay +lib/openradius/radlogger +lib/openradius/radsql +lib/openradius/unixpasswd +@dirrm lib/openradius + +bin/genmd5hexpasswd +bin/radaccttest +bin/radclient +bin/radtest + +sbin/radiusd diff --git a/net/openradius/scripts/configure b/net/openradius/scripts/configure new file mode 100644 index 000000000000..6ee603c24579 --- /dev/null +++ b/net/openradius/scripts/configure @@ -0,0 +1,64 @@ +#!/bin/sh + +cd $WRKSRC || exit 1; + +cat > Makefile << END + +### Installation paths and compiled-in defaults +# +DIR_BIN = $PREFIX/bin +DIR_SBIN = $PREFIX/sbin +DIR_ETC = $PREFIX/etc/openradius +DIR_LIB = $PREFIX/lib/openradius +FILE_LOG = $PREFIX/var/log/openradius.log + +### Modules that will be built and installed +# +TGT_LIB += modules/ascfile/ascfile +TGT_LIB += modules/unixpasswd/unixpasswd +TGT_LIB += modules/radlogger/radlogger +TGT_LIB += modules/delay/delay +TGT_LIB += modules/radsql/radsql + +### System compatibility flags, used in some targets' CF_TGT, LF_TGT or LL_TGT +# +S_CF_U_INT32_T = -DU_INT32_T=u_int32_t +S_CF_SYSLOG = -DHAVE_SYSLOG +S_CF_VSNPRINTF = -DHAVE_VSNPRINTF +S_CF_SIGACTION = -DHAVE_SIGACTION +S_LL_INET = + +### Build flags for all targets +# +CF_ALL = -g -Wall +LF_ALL = +LL_ALL = + +### Module-specific build flags +# +CF_RADLDAP = -I$LDAPINCLUDE/openldap +LF_RADLDAP = -L$LDAPLIB/usr/local/lib +LL_RADLDAP = -lldap -llber + +### Build tools +# +# The C compiler named here must output full (header) dependencies in $(@).d. +# It may be necessary to create a script similar to ccd-gcc for your compiler. +# +CMPLR = ./build/ccd-gcc +DEFHDR = ./build/hdr +INST = ./build/install +ARCH = ar rc \$@ \$^ +# +COMP = \$(CMPLR) \$(CF_ALL) \$(CF_TGT) -o \$@ -c \$< +LINK = \$(CMPLR) \$(LF_ALL) \$(LF_TGT) -o \$@ \$^ \$(LL_TGT) \$(LL_ALL) +COMPLINK = \$(CMPLR) \$(CF_ALL) \$(CF_TGT) \$(LF_ALL) \$(LF_TGT) -o \$@ \$< \$(LL_TGT) \$(LL_ALL) + + +### Standard parts +# +include Rules.mk + +END + +exit 0; |