1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

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>
This commit is contained in:
Edwin Groothuis 2003-09-27 07:29:44 +00:00
parent 161411524e
commit 0365ab67fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89526
7 changed files with 162 additions and 0 deletions

View File

@ -389,6 +389,7 @@
SUBDIR += openldap22-client
SUBDIR += openldap22-server
SUBDIR += openmcu
SUBDIR += openradius
SUBDIR += openreg
SUBDIR += openslp
SUBDIR += openverse

26
net/openradius/Makefile Normal file
View File

@ -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>

1
net/openradius/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (openradius-0.9.7.tar.gz) = a9c74fe3b572ac8ec512c7b1f630a19f

20
net/openradius/pkg-descr Normal file
View File

@ -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

View File

@ -0,0 +1,2 @@
Configuration sample files were installed, you will need to copy
these over to create real configuration files.

48
net/openradius/pkg-plist Normal file
View File

@ -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

64
net/openradius/scripts/configure vendored Normal file
View File

@ -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;