mds/app-admin/mmc-web-base/mmc-web-base-2.3.2_p642.ebuild
2010-01-29 16:30:30 +00:00

45 lines
1.1 KiB
Bash

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils depend.apache depend.php
MY_P="${P/_p/-}"
MY_PV="${PV/_p*/}"
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"
SRC_URI="http://mds.mandriva.org/pub/pulse2/server/sources/1.2.4/3rd_party/MMC-${MY_PV}/${MY_P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
IUSE=""
DEPEND="sys-apps/lsb-release
sys-devel/gettext"
RDEPEND=">=app-admin/mmc-agent-${PV}
dev-lang/php[ldap,xmlrpc,nls]
virtual/cdrtools"
PDEPEND="app-admin/mmc-web-bulkimport"
SLOT="0"
need_php_httpd
S="${WORKDIR}/${PN}-${MY_PV}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.3.2-bulkimport-1.patch
epatch "${FILESDIR}"/${PN}-2.3.2-gentoo-3.patch
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr HTTPDUSER=apache install || die "install failed"
insinto /etc/mmc
doins confs/mmc.ini || die "ini install failed"
insinto /etc/apache2/modules.d
newins confs/apache/mmc.conf 90_mmc.conf
}