summaryrefslogtreecommitdiff
path: root/net/openradius
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-09-27 07:29:44 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-09-27 07:29:44 +0000
commit0365ab67fdec4cb55d23c45c9f05c47327d8294f (patch)
treee11ce60b29628599c3a7c06f72fac2c9cf9ce752 /net/openradius
parentNew port: optimizing BF to C compiler (diff)
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>
Notes
Notes: svn path=/head/; revision=89526
Diffstat (limited to 'net/openradius')
-rw-r--r--net/openradius/Makefile26
-rw-r--r--net/openradius/distinfo1
-rw-r--r--net/openradius/pkg-descr20
-rw-r--r--net/openradius/pkg-message2
-rw-r--r--net/openradius/pkg-plist48
-rw-r--r--net/openradius/scripts/configure64
6 files changed, 161 insertions, 0 deletions
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;