aboutsummaryrefslogtreecommitdiff
path: root/net/gnu-radius
diff options
context:
space:
mode:
authorKelly Yancey <kbyanc@FreeBSD.org>2002-03-08 03:11:04 +0000
committerKelly Yancey <kbyanc@FreeBSD.org>2002-03-08 03:11:04 +0000
commit367ac6ed3b07692011412661d8fa5b030f8b8c25 (patch)
tree62e62d3925d126491c082c08445145804a9c137d /net/gnu-radius
parent6c0ad600bd4146920bed1e86f2cbe0de436bac52 (diff)
downloadports-367ac6ed3b07692011412661d8fa5b030f8b8c25.tar.gz
ports-367ac6ed3b07692011412661d8fa5b030f8b8c25.zip
Add gnu-radius 0.96, GNU RADIUS server.
PR: 33917 Submitted by: lance@evitel.net
Notes
Notes: svn path=/head/; revision=55703
Diffstat (limited to 'net/gnu-radius')
-rw-r--r--net/gnu-radius/Makefile48
-rw-r--r--net/gnu-radius/Makefile.inc5
-rw-r--r--net/gnu-radius/distinfo1
-rw-r--r--net/gnu-radius/files/gnu-radius.sh.tmpl11
-rw-r--r--net/gnu-radius/pkg-comment1
-rw-r--r--net/gnu-radius/pkg-descr10
-rw-r--r--net/gnu-radius/pkg-plist54
-rw-r--r--net/gnu-radius/scripts/configure81
8 files changed, 211 insertions, 0 deletions
diff --git a/net/gnu-radius/Makefile b/net/gnu-radius/Makefile
new file mode 100644
index 000000000000..da8c3ed333f7
--- /dev/null
+++ b/net/gnu-radius/Makefile
@@ -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>
diff --git a/net/gnu-radius/Makefile.inc b/net/gnu-radius/Makefile.inc
new file mode 100644
index 000000000000..3284e93a77e5
--- /dev/null
+++ b/net/gnu-radius/Makefile.inc
@@ -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
diff --git a/net/gnu-radius/distinfo b/net/gnu-radius/distinfo
new file mode 100644
index 000000000000..fff3a1307e3b
--- /dev/null
+++ b/net/gnu-radius/distinfo
@@ -0,0 +1 @@
+MD5 (gnu-radius-0.96.tar.gz) = 76d5087685f7e9298263bb1255582885
diff --git a/net/gnu-radius/files/gnu-radius.sh.tmpl b/net/gnu-radius/files/gnu-radius.sh.tmpl
new file mode 100644
index 000000000000..894832c9ce8f
--- /dev/null
+++ b/net/gnu-radius/files/gnu-radius.sh.tmpl
@@ -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
diff --git a/net/gnu-radius/pkg-comment b/net/gnu-radius/pkg-comment
new file mode 100644
index 000000000000..b74968948a56
--- /dev/null
+++ b/net/gnu-radius/pkg-comment
@@ -0,0 +1 @@
+GNU RADIUS server
diff --git a/net/gnu-radius/pkg-descr b/net/gnu-radius/pkg-descr
new file mode 100644
index 000000000000..659a9c317951
--- /dev/null
+++ b/net/gnu-radius/pkg-descr
@@ -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
diff --git a/net/gnu-radius/pkg-plist b/net/gnu-radius/pkg-plist
new file mode 100644
index 000000000000..a078c00cc399
--- /dev/null
+++ b/net/gnu-radius/pkg-plist
@@ -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."
diff --git a/net/gnu-radius/scripts/configure b/net/gnu-radius/scripts/configure
new file mode 100644
index 000000000000..cb41950eaf8f
--- /dev/null
+++ b/net/gnu-radius/scripts/configure
@@ -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