mds/app-admin/pulse2-inventory-server/pulse2-inventory-server-1.2.0-r1.ebuild
2010-02-18 18:15:37 +00:00

40 lines
1.2 KiB
Bash

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit distutils
DESCRIPTION="The pulse2 inventory server and its Python plugins."
HOMEPAGE="http://pulse2.mandriva.org/"
SRC_URI="http://pulse2.mandriva.org/pub/pulse2/sources/${PV}/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd"
IUSE=""
SLOT="0"
RDEPEND=">=dev-python/twisted-web-0.7.0
>=dev-python/sqlalchemy-0.5.2
>=app-admin/pulse2-common-1.2.0
>=app-admin/pulse2-mmc-plugins-1.2.0"
DEPEND=">=dev-python/setuptools-0.6_rc1"
# from marienz's setuptools.eclass:
src_install() {
"${python}" setup.py install --root="${D}" --no-compile "$@" || die "install failed"
dosbin bin/pulse2-inventory-server bin/pulse2-inventory-ssl-proxy || die "bin install failed"
insinto etc/mmc/pulse2/inventory-server/keys
doins -r conf/keys/* || die "key install failed"
insinto etc/mmc/pulse2/inventory-server
doins -r conf/inventory-server/*.ini || die "ini install failed"
insinto usr/share/doc/${P}
doins -r contrib || die "config sample install failed"
dodoc Changelog
newinitd "${FILESDIR}"/pulse2-inventory-server.initd pulse2-inventory-server
}