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
commitdb59232b0426011db2614cae9e854edda475da45 (patch)
tree2fb0d52c030e467bee607a418afa163481b17b5b /www-apps/freeradius-dialupadmin
parentxml import/export, resolv template correction (diff)
downloadhistorical-db59232b0426011db2614cae9e854edda475da45.tar.gz
historical-db59232b0426011db2614cae9e854edda475da45.tar.bz2
historical-db59232b0426011db2614cae9e854edda475da45.zip
initial version (#84070)
Package-Manager: portage-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/Manifest15
-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, 103 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..f690ba20a56f
--- /dev/null
+++ b/www-apps/freeradius-dialupadmin/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 bd1ad13a61a3ffaf728c71b551e7d40a freeradius-dialupadmin-1.0.2.ebuild 1474
+MD5 d0ebd63b45126726eb1d1cdc08ed0946 ChangeLog 431
+MD5 c4dcaab5383cc9eb6c10a80049cb3f65 metadata.xml 525
+MD5 b6c89912f30dc62dc1471a4e1e9b475b files/setrootpath 138
+MD5 5a26f9881af51aed070957e5fc4ed808 files/digest-freeradius-dialupadmin-1.0.2 69
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.1 (GNU/Linux)
+
+iD8DBQFCSIwfjiC39V7gKu0RApO+AJsFoQdFXToQvknJbPZLW54CwGBzTwCgpkSw
+hn8voiBuOPKEZFIguzzl4jU=
+=rWJG
+-----END PGP SIGNATURE-----
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>