diff options
author | Jay Pfeifer <pfeifer@gentoo.org> | 2003-07-04 02:54:17 +0000 |
---|---|---|
committer | Jay Pfeifer <pfeifer@gentoo.org> | 2003-07-04 02:54:17 +0000 |
commit | b0d25552662007148badb143cbec12f06cac28ba (patch) | |
tree | 82b569934de9795c4e35a063f06db27e685e2874 /net-dialup | |
parent | Initial import of Cistron Radius. (diff) | |
download | historical-b0d25552662007148badb143cbec12f06cac28ba.tar.gz historical-b0d25552662007148badb143cbec12f06cac28ba.tar.bz2 historical-b0d25552662007148badb143cbec12f06cac28ba.zip |
Initial import of Cistron Radius.
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/cistronradius/Manifest | 4 | ||||
-rw-r--r-- | net-dialup/cistronradius/cistronradius-1.6.6.ebuild | 55 | ||||
-rw-r--r-- | net-dialup/cistronradius/files/cistronradius.rc | 35 | ||||
-rw-r--r-- | net-dialup/cistronradius/files/digest-cistronradius-1.6.6 | 1 |
4 files changed, 93 insertions, 2 deletions
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 |