blob: 564779e039d8e0d06f9f96104de9a2a373f92388 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2004 Gentoo Foundation
# 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.5 2004/06/25 00:23:31 agriffis 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
}
|