summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Pfeifer <pfeifer@gentoo.org>2003-07-04 02:54:17 +0000
committerJay Pfeifer <pfeifer@gentoo.org>2003-07-04 02:54:17 +0000
commitd9af7790b629308d0ed70e8fee9729e0b3227204 (patch)
treee6fbcce901a86b68c3aaad00258cf35617efdbb4 /net-dialup/cistronradius
parentInitial import of Cistron Radius. (diff)
downloadgentoo-2-d9af7790b629308d0ed70e8fee9729e0b3227204.tar.gz
gentoo-2-d9af7790b629308d0ed70e8fee9729e0b3227204.tar.bz2
gentoo-2-d9af7790b629308d0ed70e8fee9729e0b3227204.zip
Initial import of Cistron Radius.
Diffstat (limited to 'net-dialup/cistronradius')
-rw-r--r--net-dialup/cistronradius/ChangeLog8
-rw-r--r--net-dialup/cistronradius/Manifest4
-rw-r--r--net-dialup/cistronradius/cistronradius-1.6.6.ebuild55
-rw-r--r--net-dialup/cistronradius/files/cistronradius.rc35
-rw-r--r--net-dialup/cistronradius/files/digest-cistronradius-1.6.61
5 files changed, 101 insertions, 2 deletions
diff --git a/net-dialup/cistronradius/ChangeLog b/net-dialup/cistronradius/ChangeLog
new file mode 100644
index 000000000000..6a50a4572315
--- /dev/null
+++ b/net-dialup/cistronradius/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-dialup/cistronradius
+# Copyright 1999-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/cistronradius/ChangeLog,v 1.1 2003/07/04 02:54:13 pfeifer Exp $
+
+*cistronradius-1.6.6 (03 Jul 2003)
+
+ 03 Jul 2003; Jay Pfeifer <pfeifer@gentoo.org> ChangeLog :
+ Initial import.
diff --git a/net-dialup/cistronradius/Manifest b/net-dialup/cistronradius/Manifest
index 3fbc90334c03..f18a51002df9 100644
--- a/net-dialup/cistronradius/Manifest
+++ b/net-dialup/cistronradius/Manifest
@@ -1,4 +1,4 @@
-MD5 aa26828d82b806eef009789dac420fbf cistronradius-1.6.6.ebuild 1186
-MD5 977ec815630fa1c0c2ee65607806bf0a ChangeLog 248
+MD5 1c66f95a57c2112bd9d6daa44d79d4ec cistronradius-1.6.6.ebuild 1301
+MD5 d38a9da7adaf4002fd09fcc31ec5b416 ChangeLog 346
MD5 a4069a15c4864c13bfb0595bbe431206 files/cistronradius.rc 734
MD5 3dd71fd3a3d624e0c3c7e3488bb91c7d files/digest-cistronradius-1.6.6 73
diff --git a/net-dialup/cistronradius/cistronradius-1.6.6.ebuild b/net-dialup/cistronradius/cistronradius-1.6.6.ebuild
new file mode 100644
index 000000000000..df9ccde715a5
--- /dev/null
+++ b/net-dialup/cistronradius/cistronradius-1.6.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/cistronradius/cistronradius-1.6.6.ebuild,v 1.1 2003/07/04 02:54:13 pfeifer Exp $
+
+IUSE=""
+
+S="${WORKDIR}/radiusd-cistron-${PV}/src"
+DESCRIPTION="An authentication and accounting server for terminal servers that speak the RADIUS protocol."
+SRC_URI="ftp://ftp.radius.cistron.nl/pub/radius/radiusd-cistron-${PV}.tar.gz"
+HOMEPAGE="http://www.radius.cistron.nl/"
+KEYWORDS="~x86"
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND="sys-devel/gcc"
+RDEPEND=${DEPEND}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ sed -i -e "s:/usr/local:/usr:g" \
+ -e "s:-Wall -g:${CFLAGS}:g" \
+ Makefile || die
+ mv checkrad.pl checkrad
+}
+
+src_compile() {
+ cd ${S}
+ emake
+}
+
+src_install() {
+ cd ${S}
+ dodir /usr/sbin
+ exeinto /usr/sbin
+ doexe ${S}/checkrad
+ doexe ${S}/radiusd
+ doexe ${S}/radrelay
+ dodir /usr/bin
+ exeinto /usr/bin
+ doexe ${S}/radclient
+ doexe ${S}/radlast
+ doexe ${S}/radtest
+ doexe ${S}/raduse
+ doexe ${S}/radwho
+ doexe ${S}/radzap
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/cistronradius.rc cistronradius
+ cd ${S}/..
+ dodir /etc/raddb
+ insinto /etc/raddb
+ doins raddb/*
+ dodoc COPYRIGHT INSTALL README doc/{ChangeLog,FAQ.txt,README*}
+ doman doc/{*.1,*.8,*.5rad,*.8rad}
+}
diff --git a/net-dialup/cistronradius/files/cistronradius.rc b/net-dialup/cistronradius/files/cistronradius.rc
new file mode 100644
index 000000000000..7dce6dfa0127
--- /dev/null
+++ b/net-dialup/cistronradius/files/cistronradius.rc
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -x /usr/sbin/radiusd ] ; then
+ eerror "The radius daemon was not found."
+ eerror "Please (re)emerge cistronradius."
+ return 1
+ fi
+
+ if [ ! -e /etc/raddb/clients ] ; then
+ eerror "No /etc/raddb/clients file found."
+ eerror "Please create the file and retry."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting Cistron Radius"
+ start-stop-daemon --start --quiet --exec /usr/sbin/radiusd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Cistron Radius"
+ start-stop-daemon --stop --quiet --pidfile /var/run/radiusd.pid
+ eend $?
+}
diff --git a/net-dialup/cistronradius/files/digest-cistronradius-1.6.6 b/net-dialup/cistronradius/files/digest-cistronradius-1.6.6
new file mode 100644
index 000000000000..894e581b50c0
--- /dev/null
+++ b/net-dialup/cistronradius/files/digest-cistronradius-1.6.6
@@ -0,0 +1 @@
+MD5 16084870890fd2ec577dbe183b51a379 radiusd-cistron-1.6.6.tar.gz 194154