mds/app-admin/mmc-core/mmc-core-3.0.2.ebuild
geos_one a2f6be0039 app-admin/mmc-core: add depend on gettext
(Portage version: 2.1.10.7/svn/Linux x86_64, RepoMan options: --force)

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2995 6952d904-891a-0410-993b-d76249ca496b
2011-07-30 11:29:45 +00:00

62 lines
1.5 KiB
Bash

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
inherit eutils autotools flag-o-matic
MY_P="${P/_p/-}"
MY_PV="${PV/_p*/}"
DESCRIPTION="The MMC Agent and its Core Python plugins."
HOMEPAGE="http://mds.mandriva.org/"
SRC_URI="http://mds.mandriva.org/pub/mmc-core/sources//${PV}/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE=""
SLOT="0"
RDEPEND=">=dev-python/twisted-web-0.7.0
>=dev-python/python-ldap-2.2.1
>=dev-python/mysql-python-1.2.0
>=dev-python/sqlalchemy-0.6.1
>=dev-python/pyopenssl-0.10
>=net-nds/openldap-2.4.26
!app-admin/mmc-web-core
!app-admin/mmc-agent"
DEPEND="$RDEPEND
sys-apps/lsb-release
sys-devel/gettext"
src_prepare() {
epatch "${FILESDIR}"/${PN}-3.0.2-kerberos-1.patch
epatch "${FILESDIR}"/${PN}-3.0.2-gentoo-1.patch
eautoreconf
}
src_configure() {
append-flags -U_FORTIFY_SOURCE
econf --enable-check-password --with-ldap-confdir=/etc/openldap --with-ldap-libdir=/usr/$(get_libdir)/openldap/openldap
}
src_install() {
emake install DESTDIR=${D} || die "install failed"
newinitd "${FILESDIR}"/mmc-agent.initd mmc-agent
keepdir /var/log/mmc
insinto etc/apache2/modules.d
newins ${D}/etc/mmc/apache/mmc.conf 90_mmc.conf
rm -rf ${D}/etc/mmc/apache
}
pkg_postinst() {
elog "To disable some plugin in your mmc environments, you have to set"
elog "disable to 1 in /etc/mmc/plugins/*.ini"
elog "(one config file per service)"
elog "You can't disable the base plugin."
}