1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Add gnu-radius 0.96, GNU RADIUS server.

PR:		33917
Submitted by:	lance@evitel.net
This commit is contained in:
Kelly Yancey 2002-03-08 03:11:04 +00:00
parent 6c0ad600bd
commit 367ac6ed3b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55703
9 changed files with 212 additions and 0 deletions

View File

@ -143,6 +143,7 @@
SUBDIR += gnometelnet
SUBDIR += gnosamba
SUBDIR += gnu-finger
SUBDIR += gnu-radius
SUBDIR += gnugadu
SUBDIR += gnut
SUBDIR += googolplex

48
net/gnu-radius/Makefile Normal file
View File

@ -0,0 +1,48 @@
# New ports collection makefile for: gnu-radius
# Date created: 13 Jul 2001
# Whom: lance@evitel.net
#
# $FreeBSD$
PORTNAME= gnu-radius
PORTVERSION= 0.96
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= radius
MAINTAINER= lance@evitel.net
#MAKEFILE= Makefile
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-include-path="${PREFIX}"
MAN1= radgrep.1 radlast.1 raduse.1 radwho.1
MAN8= builddbm.8 radctl.8 radiusd.8 radping.8 radzap.8
MANCOMPRESSED= no
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
CURDIR="${.CURDIR}"
STARTUP_FILE= ${PREFIX}/etc/rc.d/gnu-radius.sh
.if !defined(BATCH)
post-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
.endif
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
post-install:
@${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/gnu-radius.sh.tmpl \
> ${PREFIX}/etc/rc.d/gnu-radius.sh
@${CHMOD} 550 ${PREFIX}/etc/rc.d/gnu-radius.sh
@${CHOWN} root:wheel ${PREFIX}/etc/rc.d/gnu-radius.sh
post-clean:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
CONFIGURE_ARGS+= --with-client
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client:install
CONFIGURE_ARGS+= --with-mysql
CONFIGURE_ARGS+= --enable-snmp
BUILD_DEPENDS+= guile:/tmp/ap.wrMWIQVn/lang/guile

1
net/gnu-radius/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (gnu-radius-0.96.tar.gz) = 76d5087685f7e9298263bb1255582885

View File

@ -0,0 +1,11 @@
#!/bin/sh
case "$1" in
stop)
killall radiusd
;;
*)
if [ -x !!PREFIX!!/sbin/radiusd ]; then
!!PREFIX!!/sbin/radiusd -y && echo -n ' radiusd'
fi
;;
esac

View File

@ -0,0 +1 @@
GNU RADIUS server

10
net/gnu-radius/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
GNU-Radius is a server for remote user authentication and accounting.
Its primary use is for Internet Service Providers, though it may also
be used on any network that needs a centralized authentication and/or
accounting service for its workstations. The package includes an
authentication and accounting server and administrator tools.
WWW: http://www.gnu.org/software/radius/
- Sergey Poznyakoff
gray@farlep.net

54
net/gnu-radius/pkg-plist Normal file
View File

@ -0,0 +1,54 @@
bin/radwho
bin/radzap
bin/radlast
bin/raduse
bin/radping
bin/radgrep
bin/radtest
bin/builddbm
sbin/radauth
sbin/radiusd
sbin/radctl
etc/raddb/access.deny
etc/raddb/client.conf
etc/raddb/clients
etc/raddb/config
etc/raddb/config.syntax
etc/raddb/dictionary
etc/raddb/hints
etc/raddb/huntgroups
etc/raddb/nas.rc
etc/raddb/naslist
etc/raddb/nastypes
etc/raddb/realms
etc/raddb/rewrite
etc/raddb/rewrite.full
etc/raddb/sqlserver
etc/raddb/users
etc/raddb/dict/ascend
etc/raddb/dict/cisco
etc/raddb/dict/livingston
etc/raddb/dict/usr
etc/raddb/dict/ascend.vs
etc/raddb/dict/compat
etc/raddb/dict/tunnel
etc/raddb/dict/voip
etc/rc.d/gnu-radius.sh
share/gnu-radius/boot.scm
share/gnu-radius/ttl.scm
share/gnu-radius/guile-procedures.txt
info/radius.info
info/radius.info-1
info/radius.info-2
info/radius.info-3
info/radius.info-4
info/radius.info-5
info/radius.info-6
info/radius.info-7
@dirrm etc/raddb/dict
@dirrm etc/raddb/menu
@dirrm etc/raddb
@dirrm share/gnu-radius
@unexec rm -f /var/run/radiusd.pid
@unexec rm -rf /var/log/radius
@unexec echo "Leaving /var/run/radutmp, /var/log/radwtmp and /var/log/radstat alone."

81
net/gnu-radius/scripts/configure vendored Normal file
View File

@ -0,0 +1,81 @@
#!/bin/sh
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
fi
tempfile=`/usr/bin/mktemp -t checklist`
if [ "${BATCH}" ]; then
set \"MySQL\"
else
/usr/bin/dialog --title "GNU-Radius configuration options" --clear \
--checklist "\n\
Please select desired options:" -1 -1 16 \
Client "Enable build client" OFF \
DBM "Enable DBM support" OFF \
MySQL "Enable MySQL support" ON \
PostgreSQL "Enable PostgreSQL support" OFF \
SNMP "Enable SNMP support" ON \
Notify "Enable TTL notification" OFF \
2> /tmp/checklist.tmp.$$
retval=$?
if [ -s /tmp/checklist.tmp.$$ ]; then
set `cat /tmp/checklist.tmp.$$`
fi
rm -f /tmp/checklist.tmp.$$
case $retval in
0) if [ -z "$*" ]; then
echo "Nothing selected"
fi
;;
1) echo "Cancel pressed."
exit 1
;;
esac
fi
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
while [ "$1" ]; do
case $1 in
\"Client\")
echo "CONFIGURE_ARGS+= --with-client"
export GUILE=Yes
;;
\"DBM\")
echo "CONFIGURE_ARGS+= --enable-dbm=ndbm"
;;
\"MySQL\")
echo "LIB_DEPENDS+= mysqlclient.10:\${PORTSDIR}/databases/mysql323-client:install"
echo "CONFIGURE_ARGS+= --with-mysql"
;;
\"PostgreSQL\")
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7:install"
echo "CONFIGURE_ARGS+= --with-postgres"
;;
\"SNMP\")
echo "CONFIGURE_ARGS+= --enable-snmp"
;;
\"Notify\")
echo "CONFIGURE_ARGS+= --enable-notify"
;;
*)
echo "Invalid option(s): $*" > /dev/stderr
rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
exit 1
;;
esac
shift
done
if [ -z $GUILE ]; then
echo "CONFIGURE_ARGS+= --without-guile"
echo ${PLIST}
else
echo "BUILD_DEPENDS+= guile:${PORTSDIR}/lang/guile"
unset GUILE
fi