63aea8c078
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2058 6952d904-891a-0410-993b-d76249ca496b
64 lines
1.9 KiB
Bash
64 lines
1.9 KiB
Bash
# Copyright 1999-2010 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
EAPI="2"
|
|
|
|
inherit eutils distutils
|
|
|
|
MY_P="${P/_p/-}"
|
|
MY_PV="${PV/_p*/}"
|
|
|
|
DESCRIPTION="The MMC Agent and its Python plugins."
|
|
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="~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/psycopg-2.0.2
|
|
>=dev-python/pyopenssl-0.6
|
|
>=dev-python/sqlalchemy-0.4.6"
|
|
|
|
DEPEND=">=dev-python/setuptools-0.6_rc1"
|
|
|
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}"/${PN}-2.3.1-kerberos-1.patch
|
|
epatch "${FILESDIR}"/${PN}-2.3.2-printing-1.patch
|
|
epatch "${FILESDIR}"/${PN}-2.3.2-powerdns-2.patch
|
|
epatch "${FILESDIR}"/${PN}-2.3.2-userquota-2.patch
|
|
epatch "${FILESDIR}"/${PN}-2.3.2-bulkimport-2.patch
|
|
}
|
|
|
|
# from marienz's setuptools.eclass:
|
|
src_install() {
|
|
"${python}" setup.py install --root="${D}" --no-compile "$@" || die "install failed"
|
|
dosbin bin/* || die "bin install failed"
|
|
insinto etc/mmc/agent/keys
|
|
doins -r conf/agent/keys/* || die "key install failed"
|
|
insinto etc/mmc/agent
|
|
doins -r conf/agent/*.ini || die "agent ini install failed"
|
|
insinto etc/mmc/plugins
|
|
doins -r conf/plugins/*.ini || die "plugins ini install failed"
|
|
insinto usr/share/doc/${P}
|
|
doins -r contrib || die "ldap schemas install failed"
|
|
dodoc Changelog || die "doc install failed"
|
|
|
|
newinitd "${FILESDIR}"/mmc-agent.initd mmc-agent
|
|
}
|
|
|
|
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."
|
|
}
|