diff options
author | Ryan Phillips <rphillips@gentoo.org> | 2003-08-20 17:42:40 +0000 |
---|---|---|
committer | Ryan Phillips <rphillips@gentoo.org> | 2003-08-20 17:42:40 +0000 |
commit | 177019630d0f1a6393b659be0ce6052ba70dd546 (patch) | |
tree | 9f2682805630170029bd0c70e5f46036252f193f /net-dialup | |
parent | Minor fixes (diff) | |
download | gentoo-2-177019630d0f1a6393b659be0ce6052ba70dd546.tar.gz gentoo-2-177019630d0f1a6393b659be0ce6052ba70dd546.tar.bz2 gentoo-2-177019630d0f1a6393b659be0ce6052ba70dd546.zip |
Version Bump and config tweaks by Oliver Graf
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/freeradius/ChangeLog | 6 | ||||
-rw-r--r-- | net-dialup/freeradius/Manifest | 6 | ||||
-rw-r--r-- | net-dialup/freeradius/files/0.9/radius.conf | 5 | ||||
-rw-r--r-- | net-dialup/freeradius/files/0.9/radius.init | 41 | ||||
-rw-r--r-- | net-dialup/freeradius/files/digest-freeradius-0.9.0 | 1 | ||||
-rw-r--r-- | net-dialup/freeradius/freeradius-0.9.0.ebuild | 120 |
6 files changed, 177 insertions, 2 deletions
diff --git a/net-dialup/freeradius/ChangeLog b/net-dialup/freeradius/ChangeLog index ebc5260c3d80..17f0722eedaa 100644 --- a/net-dialup/freeradius/ChangeLog +++ b/net-dialup/freeradius/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-dialup/freeradius # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.4 2003/05/23 06:04:59 killian Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/ChangeLog,v 1.5 2003/08/20 17:42:27 rphillips Exp $ + +*freeradius-0.9.0 (20 Aug 2003) + 20 Aug 2003; Ryan Phillips <rphillips@gentoo.org> freeradius-0.9.0.ebuild : + Added Oliver Graf's version bump, and tweaked init.d and conf.d scripts *freeradius-0.8.1 (22 May 2003) 22 May 2003; Chuck Brewer <killian@gentoo.org>: diff --git a/net-dialup/freeradius/Manifest b/net-dialup/freeradius/Manifest index 47adbaea7d1a..58997a2f198b 100644 --- a/net-dialup/freeradius/Manifest +++ b/net-dialup/freeradius/Manifest @@ -1,3 +1,7 @@ -MD5 2009fc61c3659ee14eb994449fec03f0 ChangeLog 638 MD5 38b31bcded3db4242624b0259ab053d0 freeradius-0.8.1.ebuild 798 +MD5 6c0eb1b2d47ca0eb43e31a4f5df0c01e freeradius-0.9.0.ebuild 3145 +MD5 83d461d833d712dced12e0ac5e4acfff ChangeLog 823 MD5 c74e5180819ac75249b8a0a81694b47c files/digest-freeradius-0.8.1 63 +MD5 25c3511d9df84703c8b34aceb81d55d6 files/digest-freeradius-0.9.0 69 +MD5 fc6693f3df5a0694610110287a28568a files/0.9/radius.conf 129 +MD5 386aaf4470ecc4b4e0c43dec2bc02ba7 files/0.9/radius.init 807 diff --git a/net-dialup/freeradius/files/0.9/radius.conf b/net-dialup/freeradius/files/0.9/radius.conf new file mode 100644 index 000000000000..9811289ba453 --- /dev/null +++ b/net-dialup/freeradius/files/0.9/radius.conf @@ -0,0 +1,5 @@ +# Config file for /etc/init.d/radiusd + +# see man pages for radiusd run `radiusd -h` +# for valid cmdline options +#RADIUSD_OPTS="" diff --git a/net-dialup/freeradius/files/0.9/radius.init b/net-dialup/freeradius/files/0.9/radius.init new file mode 100644 index 000000000000..ec27f1fc4e54 --- /dev/null +++ b/net-dialup/freeradius/files/0.9/radius.init @@ -0,0 +1,41 @@ +#!/sbin/runscript + +depend() { + need net + use dns +} + +checkconfig() { + if [ ! -f /etc/raddb/radiusd.conf ] ; then + eerror "No /etc/raddb/radiusd.conf file exists!" + return 1 + fi + + if [ "`/usr/sbin/check-radiusd-config >/dev/null 2>&1; echo $?`" != "0" ] ; then + eerror "Config not ok! (try /usr/sbin/check-radiusd-config )" + return 1 + fi + + if [ -z "`grep radiusd /etc/passwd`" ]; then + eerror "radiusd user missing!" + return 1 + fi + + return 0 +} + +start() { + # Comment out the following line to get faster startups + checkconfig || return 1 + + ebegin "Starting radiusd" + start-stop-daemon --start --quiet --exec /usr/sbin/radiusd -- ${RADIUSD_OPTS} >/dev/null + eend $? +} + +stop () { + ebegin "Stopping radiusd" + start-stop-daemon --stop --quiet \ + --pidfile=/var/run/radiusd/radiusd.pid --retry 20 + eend $? +} diff --git a/net-dialup/freeradius/files/digest-freeradius-0.9.0 b/net-dialup/freeradius/files/digest-freeradius-0.9.0 new file mode 100644 index 000000000000..db0376de783b --- /dev/null +++ b/net-dialup/freeradius/files/digest-freeradius-0.9.0 @@ -0,0 +1 @@ +MD5 1a8b3dd4852305c9a3fc08aa7a325f5a freeradius-0.9.0.tar.gz 1793827 diff --git a/net-dialup/freeradius/freeradius-0.9.0.ebuild b/net-dialup/freeradius/freeradius-0.9.0.ebuild new file mode 100644 index 000000000000..f185b5ee6234 --- /dev/null +++ b/net-dialup/freeradius/freeradius-0.9.0.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/freeradius/freeradius-0.9.0.ebuild,v 1.1 2003/08/20 17:42:40 rphillips Exp $ + +IUSE="snmp mysql postgres ldap kerberos ssl pam frascend frlargefiles frnothreads frxp" + +MY_PN=${PN}-0.9.0 +S=${WORKDIR}/${MY_PN} +DESCRIPTION="highly configurable free RADIUS server" +SRC_URI="ftp://ftp.freeradius.org/pub/radius/${MY_PN}.tar.gz" +HOMEPAGE="http://www.freeradius.org/" +KEYWORDS="~x86" +LICENSE="GPL-2" +SLOT="0" + +RDEPEND="virtual/glibc + sys-devel/libtool + >=sys-libs/db-3.2 + sys-libs/gdbm + snmp? ( net-analyzer/ucd-snmp ) + mysql? ( dev-db/mysql ) + postgres? ( dev-db/postgresql ) + pam? ( sys-libs/pam ) + ssl? ( dev-libs/openssl ) + ldap? ( net-nds/openldap ) + kerberos? ( app-crypt/mit-krb5 ) + frxp? ( dev-lang/python + dev-lang/perl )" + +DEPEND="${RDEPEND}" + +src_unpack() { + + cd ${WORKDIR} + unpack ${MY_PN}.tar.gz + cd ${S} + + autoconf + +} + +src_compile() { + local myconf="" + + if [ -z "`use snmp`" ]; then + myconf="--without-snmp" + fi + if [ "`use frascend`" ]; then + myconf="${myconf} --with-ascend-binary" + fi + if [ "`use frlargefiles`" ]; then + myconf="${myconf} --with-large-files" + fi + if [ "`use frnothreds`" ]; then + myconf="${myconf} --without-threads" + fi + if [ "`use frxp`" ]; then + myconf="${myconf} --with-experimental-modules" + fi + + # kill modules we don't use + if [ -z "`use ssl`" ]; then + einfo "removing rlm_eap_tls and rlm_x99_token (no use ssl)" + rm -rf src/modules/rlm_eap/types/rlm_eap_tls src/modules/rlm_x99_token + fi + if [ -z "`use ldap`" ]; then + einfo "removing rlm_ldap (no use ldap)" + rm -rf src/modules/rlm_ldap + fi + if [ -z "`use kerberos`" ]; then + einfo "removing rlm_krb5 (no use kerberos)" + rm -rf src/modules/rlm_krb5 + fi + if [ -z "`use pam`" ]; then + einfo "removing rlm_pam (no use pam)" + rm -rf src/modules/rlm_pam + fi + + # experimental modules are + # rlm_checkval rlm_cram rlm_dictionary rlm_example rlm_passwd rlm_perl + # rlm_python rlm_smb rlm_sqlcounter + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --mandir=/usr/share/man --host=${CHOST} \ + --with-gnu-ld --with-system-libtool --disable-ltdl-install \ + ${myconf} || die + + make || die + +} + +src_install() { + + dodir /etc/raddb + + make R=${D} install || die + + dodoc COPYRIGHT CREDITS INSTALL LICENSE README + + rm ${D}/usr/sbin/rc.radiusd + + dodir /etc/init.d + cp ${FILESDIR}/0.9/radiusd.init ${D}/etc/init.d/radiusd + + dodir /etc/conf.d + cp ${FILESDIR}/0.9/radiusd.conf ${D}/etc/conf.d/radiusd + + touch ${D}/var/run/radiusd/.keep + touch ${D}/var/log/radius/.keep + touch ${D}/var/log/radius/radacct/.keep + +} + +pkg_postinst() { + einfo "You need to add an user and a group radiusd or" + einfo "change the radiusd.conf file to use an existing" + einfo "user for running radiusd." + einfo "Make sure that all paths radiusd needs to write" + einfo "to have the proper owner!" +} |