diff options
author | Alin Năstac <mrness@gentoo.org> | 2006-09-09 20:49:56 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2006-09-09 20:49:56 +0000 |
commit | d0b822c63ef2fbbebce27c19a7a3963ca50860d5 (patch) | |
tree | 33ef4b2f9331561a566646a446b05245eb86a7ce /www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild | |
parent | Remove unnecessary dev-libs/popt dependency. (diff) | |
download | gentoo-2-d0b822c63ef2fbbebce27c19a7a3963ca50860d5.tar.gz gentoo-2-d0b822c63ef2fbbebce27c19a7a3963ca50860d5.tar.bz2 gentoo-2-d0b822c63ef2fbbebce27c19a7a3963ca50860d5.zip |
Version bump
(Portage version: 2.1-r2)
Diffstat (limited to 'www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild')
-rw-r--r-- | www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild b/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild new file mode 100644 index 000000000000..45e07712fe86 --- /dev/null +++ b/www-apps/freeradius-dialupadmin/freeradius-dialupadmin-1.70.3.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2006 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.70.3.ebuild,v 1.1 2006/09/09 20:49:56 mrness Exp $ + +inherit eutils webapp +MY_FREERADIUS_P="freeradius-1.1.3" + +DESCRIPTION="Web administration interface of freeradius server" +SRC_URI="ftp://ftp.freeradius.org/pub/radius/${MY_FREERADIUS_P}.tar.gz" +HOMEPAGE="http://www.freeradius.org/dialupadmin.html" + +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +LICENSE="GPL-2" + +DEPEND="virtual/php + dev-perl/DateManip + sys-apps/findutils + >=net-dialup/${MY_FREERADIUS_P}" + +S="${WORKDIR}/${MY_FREERADIUS_P}/dialup_admin" + +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${FILESDIR}/${P}-sqldebug.patch" + + sed -i -e 's:/usr/local:/usr:' \ + -e 's:/usr/etc/raddb:${general_raddb_dir}:' \ + -e 's:/usr/radiusd::' \ + conf/admin.conf + sed -i -e 's:/usr/local:/usr:' bin/* + + #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" + + #fix dangling ../ to deal with the way webapp-config installs files + find . -name '*.php' | xargs sed -i \ + -e 's:../conf/:../../conf/:' \ + -e 's:../html/:../../html/:' \ + -e 's:../lib/:../../lib/:' +} + +src_install() { + webapp_src_preinst + + insinto "${MY_HTDOCSDIR}" + doins -r htdocs/* + insinto "${MY_HOSTROOTDIR}" + doins -r conf html lib + exeinto "${MY_HOSTROOTDIR}/bin" + dodoc bin/*.cron bin/Changelog* + rm bin/*.cron bin/Changelog* + doexe bin/* + + 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}" + webapp_serverowned "${MY_HOSTROOTDIR}/${CONFFILE}" + done + + webapp_src_install +} |