2009-02-17 12:32:31 +01:00
|
|
|
# Copyright 1999-2009 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
inherit eutils depend.apache depend.php
|
|
|
|
|
|
|
|
DESCRIPTION="Mandriva Directory Server - Identity and network services management made easy !"
|
|
|
|
HOMEPAGE="http://mds.mandriva.org/"
|
|
|
|
SRC_URI="http://mds.mandriva.org/pub/mds/sources/${PV}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
|
|
|
IUSE=""
|
2009-03-13 08:17:37 +01:00
|
|
|
DEPEND="sys-apps/lsb-release
|
|
|
|
sys-devel/gettext"
|
2009-02-17 12:32:31 +01:00
|
|
|
RDEPEND=">=app-admin/mmc-agent-${PV}"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
need_php_httpd
|
|
|
|
|
|
|
|
pkg_setup() {
|
2009-02-21 08:58:51 +01:00
|
|
|
if ! PHPCHECKNODIE="yes" require_php_with_use ldap xmlrpc nls ; then
|
2009-02-17 12:32:31 +01:00
|
|
|
eerror
|
|
|
|
eerror "${PHP_PKG} needs to be re-installed with all of the following"
|
|
|
|
eerror "USE flags enabled:"
|
|
|
|
eerror
|
2009-02-21 08:58:51 +01:00
|
|
|
eerror "ldap xmlrpc nls"
|
2009-02-17 12:32:31 +01:00
|
|
|
eerror
|
|
|
|
die "Re-install ${PHP_PKG}"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
cd "${S}"
|
2009-02-17 14:15:29 +01:00
|
|
|
epatch "${FILESDIR}"/${PN}-2.3.2-gentoo-2.patch
|
2009-02-17 12:32:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
|
|
|
|
emake DESTDIR="${D}" PREFIX=/usr HTTPDUSER=apache install
|
|
|
|
insinto /etc/mmc
|
|
|
|
doins confs/mmc.ini
|
|
|
|
|
|
|
|
insinto /etc/apache2/modules.d
|
2009-02-17 13:56:49 +01:00
|
|
|
newins confs/apache/mmc.conf 90_mmc.conf
|
2009-02-17 12:32:31 +01:00
|
|
|
}
|