Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2002 14:11:37 +0200 (EET)
From:      Andrey Pavlenko <lance@evitel.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/33917: GNU-Radius port.
Message-ID:  <200201151211.g0FCBbG79380@elbrus.evitel.net>

next in thread | raw e-mail | index | archive | help

>Number:         33917
>Category:       ports
>Synopsis:       GNU-Radius port.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 15 04:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Pavlenko
>Release:        FreeBSD 4.5-PRERELEASE i386
>Organization:
ISP Evitel
>Environment:
System: FreeBSD elbrus.evitel.net 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #0: Mon Dec 24 13:03:24 EET 2001 root@elbrus.evitel.net:/usr/obj/usr/src/sys/ELBRUS i386


>Description:
GNU-Radius is a seiving system for remote user authentication and accounting.
Very popular realization of Remote Authentication in Dial-in User Service protocol. Its primary use is for Internet Service Providers, though it may as well be usedon any network that needs a centralized authentication and/or accounting servicefor its workstations.

>How-To-Repeat:
	

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gnu-radius
#	gnu-radius/scripts
#	gnu-radius/scripts/configure
#	gnu-radius/pkg-comment
#	gnu-radius/pkg-descr
#	gnu-radius/Makefile
#	gnu-radius/distinfo
#	gnu-radius/pkg-plist
#	gnu-radius/files
#	gnu-radius/files/gnu-radius.sh.tmpl
#
echo c - gnu-radius
mkdir -p gnu-radius > /dev/null 2>&1
echo c - gnu-radius/scripts
mkdir -p gnu-radius/scripts > /dev/null 2>&1
echo x - gnu-radius/scripts/configure
sed 's/^X//' >gnu-radius/scripts/configure << 'END-of-gnu-radius/scripts/configure'
X#!/bin/sh
X
Xif [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
X	exit
Xfi
X
Xtempfile=`/usr/bin/mktemp -t checklist`
X
Xif [ "${BATCH}" ]; then
X	set \"MySQL\"
Xelse
X	/usr/bin/dialog --title "GNU-Radius configuration options" --clear \
X		--checklist "\n\
XPlease select desired options:" -1 -1 16 \
XClient		"Enable build client" OFF \
XDBM		    "Enable DBM support" OFF \
XMySQL		"Enable MySQL support" ON \
XPostgreSQL	"Enable PostgreSQL support" OFF \
XSNMP	    "Enable SNMP support" ON \
XNotify		"Enable TTL notification" OFF \
X2> /tmp/checklist.tmp.$$
X
X	retval=$?
X
X	if [ -s /tmp/checklist.tmp.$$ ]; then
X		set `cat /tmp/checklist.tmp.$$`
X	fi
X	rm -f /tmp/checklist.tmp.$$
X
X	case $retval in
X		0)	if [ -z "$*" ]; then
X				echo "Nothing selected"
X			fi
X			;;
X		1)	echo "Cancel pressed."
X			exit 1
X			;;
X	esac
Xfi
X
Xexec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
X
Xwhile [ "$1" ]; do
X	case $1 in
X		\"Client\")
X			echo "CONFIGURE_ARGS+= --with-client"
X			export GUILE=Yes
X			;;
X		\"DBM\")
X			echo "CONFIGURE_ARGS+= --enable-dbm=ndbm"
X			;;
X		\"MySQL\")
X			echo "LIB_DEPENDS+=	mysqlclient.10:\${PORTSDIR}/databases/mysql323-client:install"
X			echo "CONFIGURE_ARGS+= --with-mysql"
X			;;
X		\"PostgreSQL\")
X			echo "LIB_DEPENDS+=	pq.2:\${PORTSDIR}/databases/postgresql7:install"
X			echo "CONFIGURE_ARGS+= --with-postgres"
X			;;
X		\"SNMP\")
X			echo "CONFIGURE_ARGS+= --enable-snmp"
X			;;
X		\"Notify\")
X			echo "CONFIGURE_ARGS+= --enable-notify"
X			;;
X		*)
X			echo "Invalid option(s): $*" > /dev/stderr
X			rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
X			exit 1
X			;;
X	esac
X	shift
Xdone
X
Xif [ -z $GUILE ]; then
X	echo "CONFIGURE_ARGS+= --without-guile"
Xecho ${PLIST}
Xelse
X	echo "BUILD_DEPENDS+= guile:${PORTSDIR}/lang/guile"
X	unset GUILE
Xfi
END-of-gnu-radius/scripts/configure
echo x - gnu-radius/pkg-comment
sed 's/^X//' >gnu-radius/pkg-comment << 'END-of-gnu-radius/pkg-comment'
XGNU-Radius is currently able to communicate with MySQL and PostgreSQL servers.
END-of-gnu-radius/pkg-comment
echo x - gnu-radius/pkg-descr
sed 's/^X//' >gnu-radius/pkg-descr << 'END-of-gnu-radius/pkg-descr'
XGNU-Radius is a server for remote user authentication and accounting.
XIts primary use is for Internet Service Providers, though it may as well be used
Xon any network that needs a centralized authentication and/or accounting service
Xfor its workstations.
XThe package includes an authentication and accounting server and administrator tools. 
X
XWWW: http://www.gnu.org/software/radius/
X
X- Sergey Poznyakoff
Xgray@farlep.net
END-of-gnu-radius/pkg-descr
echo x - gnu-radius/Makefile
sed 's/^X//' >gnu-radius/Makefile << 'END-of-gnu-radius/Makefile'
X# New ports collection makefile for:	gnu-radius
X# Date created:		13 Jul 2001
X# Whom:			      lance@evitel.net
X#
X
XPORTNAME= gnu-radius
XPORTVERSION= 0.96
XCATEGORIES= net
XMASTER_SITES= ftp://ftp.gnu.org/gnu/radius/ \
X              ftp://ftp.progsoc.uts.edu.au/pub/gnu/radius/ \
X              ftp://ftp.sea9.com/pub/gnu/radius/ \
X              ftp://ftp.univie.ac.at/packages/gnu/radius/ \
X              ftp://ftp.irisa.fr/pub/gnu/radius/
X
XMAINTAINER=	lance@evitel.net
X
XMAKEFILE=	Makefile
X
XUSE_AUTOCONF=   yes
XUSE_GMAKE=      yes
XGNU_CONFIGURE=  yes
X
XMAN1=     radgrep.1 radlast.1 raduse.1 radwho.1
XMAN8=     builddbm.8 radctl.8 radiusd.8 radping.8 radzap.8
XMANCOMPRESSED= no
X
X# IS_INTERACTIVE=	yes
XSCRIPTS_ENV=	WRKDIRPREFIX="${WRKDIRPREFIX}" \
X                CURDIR="${.CURDIR}"
X
XCONFIGURE_ARGS= --with-include-path="/usr/local/include/"
X
XSTARTUP_FILE=	${PREFIX}/etc/rc.d/gnu-radius.sh
X
Xpre-fetch:
X	@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
X
X.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
X.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
X.endif
X
Xpost-install:
X	@${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/gnu-radius.sh.tmpl \
X		> ${PREFIX}/etc/rc.d/gnu-radius.sh
X	@${CHMOD} 550 ${PREFIX}/etc/rc.d/gnu-radius.sh
X	@${CHOWN} root.wheel ${PREFIX}/etc/rc.d/gnu-radius.sh
X
Xpost-clean:
X	@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
X
X.include <bsd.port.mk>
END-of-gnu-radius/Makefile
echo x - gnu-radius/distinfo
sed 's/^X//' >gnu-radius/distinfo << 'END-of-gnu-radius/distinfo'
XMD5 (gnu-radius-0.96.tar.gz) = 76d5087685f7e9298263bb1255582885
END-of-gnu-radius/distinfo
echo x - gnu-radius/pkg-plist
sed 's/^X//' >gnu-radius/pkg-plist << 'END-of-gnu-radius/pkg-plist'
Xbin/radwho
Xbin/radzap
Xbin/radlast
Xbin/raduse
Xbin/radping
Xbin/radgrep
Xbin/radtest
Xbin/builddbm
Xsbin/radauth
Xsbin/radiusd
Xsbin/radctl
Xetc/raddb/access.deny
Xetc/raddb/client.conf
Xetc/raddb/clients
Xetc/raddb/config
Xetc/raddb/config.syntax
Xetc/raddb/dictionary
Xetc/raddb/hints
Xetc/raddb/huntgroups
Xetc/raddb/nas.rc
Xetc/raddb/naslist
Xetc/raddb/nastypes
Xetc/raddb/realms
Xetc/raddb/rewrite
Xetc/raddb/rewrite.full
Xetc/raddb/sqlserver
Xetc/raddb/users
Xetc/raddb/dict/ascend
Xetc/raddb/dict/cisco
Xetc/raddb/dict/livingston
Xetc/raddb/dict/usr
Xetc/raddb/dict/ascend.vs
Xetc/raddb/dict/compat
Xetc/raddb/dict/tunnel
Xetc/raddb/dict/voip
Xetc/rc.d/gnu-radius.sh
Xshare/gnu-radius/boot.scm
Xshare/gnu-radius/ttl.scm
Xinfo/radius.info
Xinfo/radius.info-1
Xinfo/radius.info-2
Xinfo/radius.info-3
Xinfo/radius.info-4
Xinfo/radius.info-5
Xinfo/radius.info-6
Xinfo/radius.info-7
X@dirrm etc/raddb/dict
X@dirrm etc/raddb/menu
X@dirrm etc/raddb
X@dirrm share/gnu-radius
X@unexec rm -f /var/run/radiusd.pid
X@unexec rm -rf /var/log/radius
X@unexec echo "Leaving /var/run/radutmp, /var/log/radwtmp and /var/log/radstat alone."
END-of-gnu-radius/pkg-plist
echo c - gnu-radius/files
mkdir -p gnu-radius/files > /dev/null 2>&1
echo x - gnu-radius/files/gnu-radius.sh.tmpl
sed 's/^X//' >gnu-radius/files/gnu-radius.sh.tmpl << 'END-of-gnu-radius/files/gnu-radius.sh.tmpl'
X#!/bin/sh
Xcase "$1" in
Xstop) killall radiusd;;
X*) [ -x !!PREFIX!!/sbin/radiusd ] && !!PREFIX!!/sbin/radiusd -y && echo -n ' radiusd';;
Xesac
END-of-gnu-radius/files/gnu-radius.sh.tmpl
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201151211.g0FCBbG79380>