add python part of pulse

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@932 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2009-04-07 14:35:53 +00:00
parent 945bbf7ef3
commit be00bd9b31
15 changed files with 334 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
AUX pulse2-package-server.initd 502 RMD160 d59eabd0b308763f84c5c1122d3be51efa9b936b SHA1 8baca6587a44a0e5a703cbbdcb49d7047bbf830b SHA256 fdbeb24053631223c1634e85712d16b24d177a0309d2bacb28562ca02e7fe4e4
DIST pulse2-package-server-1.2.0.tar.gz 43959 RMD160 8bf50fe814e1d621b5444eecb66ff3028bb262e9 SHA1 1e09bb177d799345cc0d72007694b952f62a7b90 SHA256 6c8f2d900afd14a5edf414305fa5cafc01096eb454d2448b1f7f6903beb21132
EBUILD pulse2-package-server-1.2.0.ebuild 1087 RMD160 c2c587f77fae17fc39e20dfc8e49a6cc569e7a14 SHA1 8689bf368c41c25701d34ccca53c7a214da3f5ac SHA256 884eb19b527ca0fb777c6e41388d5480014425e15dc0adf028d23632ed5eef69

View File

@@ -0,0 +1,20 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net mmc-agent
}
start() {
ebegin "Starting Pulse2 Package Server"
eval start-stop-daemon --start --quiet --exec /usr/sbin/pulse2-package-server --pidfile /var/run/pulse2-package-server.pid
eend $?
}
stop() {
ebegin "Stopping Pulse2 Package Server"
start-stop-daemon --stop --quiet --pidfile /var/run/pulse2-package-server.pid
eend $?
}

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit distutils
# ESVN_REPO_URI="http://mds.mandriva.org/svn/mmc-agent"
DESCRIPTION="The MMC Agent and its Python plugins."
HOMEPAGE="http://mds.mandriva.org/"
SRC_URI="http://mds.mandriva.org/pub/pulse2/sources/${PV}/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE=""
SLOT="0"
RDEPEND=">=dev-python/twisted-web-0.7.0
>=app-admin/pulse2-common-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-package-server
insinto etc/mmc/pulse2/pserver/keys
doins -r conf/keys/*
insinto etc/mmc/pulse2/pserver
doins -r conf/*.ini
# insinto etc/pulse2/plugins
# doins -r conf/plugins/*.ini
insinto usr/share/doc/${P}
doins -r contrib
dodoc Changelog
newinitd "${FILESDIR}"/pulse2-package-server.initd pulse2-package-server
}
src_test() {
"${python}" setup.py test || die "tests failed"
}