# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-nds/phpldapadmin/phpldapadmin-0.9.3.ebuild,v 1.4 2004/04/20 18:43:25 rizzo Exp $ inherit webapp-apache DESCRIPTION="phpLDAPadmin is a web-based tool for managing all aspects of your LDAP server." HOMEPAGE="http://phpldapadmin.sourceforge.net" SRC_URI="mirror://sourceforge/phpldapadmin/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~alpha" IUSE="" DEPEND="virtual/php" pkg_setup() { webapp-detect || NO_WEBSERVER=1 # Check for "ldap" in USE vars for mod_php webapp-check-php ldap webapp-pkg_setup "${NO_WEBSERVER}" einfo "Installing for ${WEBAPP_SERVER}" } src_install() { dodir "${HTTPD_ROOT}/phpldapadmin" cp -a * "${D}/${HTTPD_ROOT}/phpldapadmin" dodoc INSTALL LICENSE VERSION doc/CREDITS doc/ChangeLog doc/INSTALL-de.txt doc/INSTALL-es.txt doc/INSTALL-fr.txt doc/ROADMAP chown -R "${HTTPD_USER}:${HTTPD_GROUP}" "${D}/${HTTPD_ROOT}/phpldapadmin" chmod 0775 "${D}/${HTTPD_ROOT}/phpldapadmin" } pkg_postinst() { einfo einfo "phpLDAPadmin is installed. You will need to" einfo "configure it by creating/editing the config.php" einfo "at:" einfo einfo "${HTTPD_ROOT}/phpldapadmin/config.php" einfo einfo "There is a config.php.example for your reference." einfo }