summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-03-28 22:58:29 +0000
committerAlin Năstac <mrness@gentoo.org>2005-03-28 22:58:29 +0000
commit6880b716995bf325143a8d0b4fe9f1286f043492 (patch)
treee3883bbde61726777b13acbfdefbbcd660091729 /www-apps/freeradius-dialupadmin
parentxml import/export, resolv template correction (diff)
downloadgentoo-2-6880b716995bf325143a8d0b4fe9f1286f043492.tar.gz
gentoo-2-6880b716995bf325143a8d0b4fe9f1286f043492.tar.bz2
gentoo-2-6880b716995bf325143a8d0b4fe9f1286f043492.zip
initial version (#84070)
(Portage version: 2.0.51.19)
Diffstat (limited to 'www-apps/freeradius-dialupadmin')
-rw-r--r--www-apps/freeradius-dialupadmin/ChangeLog10
-rw-r--r--www-apps/freeradius-dialupadmin/Manifest2
-rw-r--r--www-apps/freeradius-dialupadmin/files/digest-freeradius-dialupadmin-1.0.21
-rw-r--r--www-apps/freeradius-dialupadmin/files/setrootpath5
-rw-r--r--www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.0.2.ebuild66
-rw-r--r--www-apps/freeradius-dialupadmin/metadata.xml6
6 files changed, 90 insertions, 0 deletions
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 <mrness@gentoo.org> +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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-dialup</herd>
+<longdescription>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.</longdescription>
+</pkgmetadata>