# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp depend.php DESCRIPTION="Phamm (PHP LDAP Virtual Hosting Manager) is a front-end \ written in PHP to manage virtual service's using a LDAP directory backend." HOMEPAGE="http://www.phamm.org/" SRC_URI="http://open.rhx.it/phamm/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" DEPEND="mail-mta/postfix" pkg_setup() { webapp_pkg_setup require_php_with_use ldap } src_unpack() { unpack ${A} cd ${S} # uneeded for us rm -r debian/ rm phamm.spec mv config.inc.php.template config.inc.php for each in "plugins/mail" "plugins/pdns" "plugins/radius" "plugins/rates" \ "plugins/radius_stats"; do mv ${each}/config.inc.php.template ${each}/config.inc.php done } src_install() { webapp_src_preinst dodoc AUTHORS CHANGELOG DOCS.LICENSE IMAGES.LICENSE dodoc INSTALL LICENSE MIGRATE-FROM-JAMM README README.plugins dodoc THANKS mv "${S}/examples" "${D}/usr/share/doc/${PF}/" mv "${S}/schema" "${D}/usr/share/doc/${PF}/" mv "${S}/phamm-http.conf" "${D}/usr/share/doc/${PF}/examples" cp -r . ${D}${MY_HTDOCSDIR} cd ${D}${MY_HTDOCSDIR} for each in "" "plugins/mail" "plugins/pdns" "plugins/radius" "plugins/rates" \ "plugins/radius_stats"; do webapp_configfile ${MY_HTDOCSDIR}/${each}/config.inc.php done webapp_src_install }