From 6880b716995bf325143a8d0b4fe9f1286f043492 Mon Sep 17 00:00:00 2001 From: Alin Năstac Date: Mon, 28 Mar 2005 22:58:29 +0000 Subject: initial version (#84070) (Portage version: 2.0.51.19) --- www-apps/freeradius-dialupadmin/ChangeLog | 10 ++++ www-apps/freeradius-dialupadmin/Manifest | 2 + .../files/digest-freeradius-dialupadmin-1.0.2 | 1 + www-apps/freeradius-dialupadmin/files/setrootpath | 5 ++ .../freeradius-dialupadmin-1.0.2.ebuild | 66 ++++++++++++++++++++++ www-apps/freeradius-dialupadmin/metadata.xml | 6 ++ 6 files changed, 90 insertions(+) create mode 100644 www-apps/freeradius-dialupadmin/ChangeLog create mode 100644 www-apps/freeradius-dialupadmin/Manifest create mode 100644 www-apps/freeradius-dialupadmin/files/digest-freeradius-dialupadmin-1.0.2 create mode 100644 www-apps/freeradius-dialupadmin/files/setrootpath create mode 100644 www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.0.2.ebuild create mode 100644 www-apps/freeradius-dialupadmin/metadata.xml (limited to 'www-apps/freeradius-dialupadmin') diff --git a/www-apps/freeradius-dialupadmin/ChangeLog b/www-apps/freeradius-dialupadmin/ChangeLog new file mode 100644 index 000000000000..80b1682af780 --- /dev/null +++ b/www-apps/freeradius-dialupadmin/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for www-apps/freeradius-dialupadmin +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/freeradius-dialupadmin/ChangeLog,v 1.1 2005/03/28 22:58:29 mrness Exp $ + +*freeradius-dialupadmin-1.0.2 (29 Mar 2005) + + 29 Mar 2005; Alin Nastac +metadata.xml, + +files/setrootpath, +freeradius-dialupadmin-1.0.2.ebuild: + Initial version (#84070). + diff --git a/www-apps/freeradius-dialupadmin/Manifest b/www-apps/freeradius-dialupadmin/Manifest new file mode 100644 index 000000000000..ec044cbab20d --- /dev/null +++ b/www-apps/freeradius-dialupadmin/Manifest @@ -0,0 +1,2 @@ +MD5 c10a320de4c90f994c0b7d9ea8189f5a freeradius-dialupadmin-1.0.2.ebuild 2901 +MD5 5a26f9881af51aed070957e5fc4ed808 files/digest-freeradius-dialupadmin-1.0.2 69 diff --git a/www-apps/freeradius-dialupadmin/files/digest-freeradius-dialupadmin-1.0.2 b/www-apps/freeradius-dialupadmin/files/digest-freeradius-dialupadmin-1.0.2 new file mode 100644 index 000000000000..54745a2d6470 --- /dev/null +++ b/www-apps/freeradius-dialupadmin/files/digest-freeradius-dialupadmin-1.0.2 @@ -0,0 +1 @@ +MD5 f5dfce4efbb03bbc47ceae08270a875e freeradius-1.0.2.tar.gz 2208884 diff --git a/www-apps/freeradius-dialupadmin/files/setrootpath b/www-apps/freeradius-dialupadmin/files/setrootpath new file mode 100644 index 000000000000..6098945fbcd4 --- /dev/null +++ b/www-apps/freeradius-dialupadmin/files/setrootpath @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "$1" = "install" ]; then + sed -i -e "s:/usr/dialup_admin:${VHOST_ROOT}:" ${VHOST_ROOT}/conf/{._*admin.conf,admin.conf} +fi diff --git a/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.0.2.ebuild b/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.0.2.ebuild new file mode 100644 index 000000000000..a5fd2d0c8081 --- /dev/null +++ b/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.0.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.0.2.ebuild,v 1.1 2005/03/28 22:58:29 mrness Exp $ + +inherit webapp + +MY_P=${P/-dialupadmin/} + +DESCRIPTION="Web administration interface of freeradius server" +SRC_URI="ftp://ftp.freeradius.org/pub/radius/${MY_P}.tar.gz" +HOMEPAGE="http://www.freeradius.org/dialupadmin.html" + +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="" +LICENSE="GPL-2" + +DEPEND="virtual/php + dev-lang/perl + =net-dialup/freeradius-${PV}* + sys-apps/findutils" + +S="${WORKDIR}/${MY_P}/dialup_admin" + +src_unpack() { + unpack ${A} + cd ${S} + + sed -i -e 's:/usr/local:/usr:' \ + -e 's:/usr/etc/raddb:${general_raddb_dir}:' \ + -e 's:/usr/radiusd::' \ + conf/admin.conf + + #rename files .php3 -> .php + (find . -iname '*.php3' | ( + local PHPFILE + while read PHPFILE; do + mv ${PHPFILE} ${PHPFILE/.php3/.php} + done + )) && \ + (find . -type f | xargs sed -i -e 's:[.]php3:.php:g') || \ + die "failed to replace php3 with php" +} + +src_install() { + webapp_src_preinst + + insinto ${MY_HTDOCSDIR} + doins -r htdocs/* + insinto ${MY_HOSTROOTDIR} + doins -r conf html lib + + insinto ${MY_SQLSCRIPTSDIR} + doins sql/* + + dodoc Changelog README doc/* + + webapp_hook_script ${FILESDIR}/setrootpath + + cd ${D}${MY_HOSTROOTDIR} + local CONFFILE + for CONFFILE in conf/* ; do + webapp_configfile ${MY_HOSTROOTDIR}/${CONFFILE} + done + + webapp_src_install +} diff --git a/www-apps/freeradius-dialupadmin/metadata.xml b/www-apps/freeradius-dialupadmin/metadata.xml new file mode 100644 index 000000000000..5a05df021eee --- /dev/null +++ b/www-apps/freeradius-dialupadmin/metadata.xml @@ -0,0 +1,6 @@ + + + +net-dialup +The FreeRADIUS server comes including a powerfull web interface written in PHP to administer radius users, called dialupadmin. Dialup Admin supports users either in SQL (MySQL or PostgreSQL are supported) or in LDAP. Apart from the web pages, it also includes a number of scripts to make the administrator's life a lot easier. + -- cgit v1.2.3-65-gdbad