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,4 @@
AUX pulse2-launchers.initd 499 RMD160 1f0437bf606ab8e2660b66df2b01abb3dc3c53f7 SHA1 c92c22ab26721d073b0fdb410a39c7d7784217ed SHA256 37e8b59a98a91663a33e1ef404ae1024aa2c96c3228452ea9ed3eb9481d70dd4
DIST pulse2-launcher-1.2.0.tar.gz 54073 RMD160 056181e67629fa4e74d9a4fe9a338de853b3d994 SHA1 000b368a6f988cbe1df5582e4bbded60ad6a65b4 SHA256 6626c3c7e64ca2785fc7d6bdad25829ae7d9737b6fd1a2570f79a6543cb5b118
DIST wol-0.7.1.tar.gz 445648 RMD160 856fefe482db4326df47f10f07ec97396f23870d SHA1 7edd1a8c2d4baffc3b6baf8fcd12e786f9fc1fbd SHA256 e0086c9b9811df2bdf763ec9016dfb1bcb7dba9fa6d7858725b0929069a12622
EBUILD pulse2-launcher-1.2.0.ebuild 1318 RMD160 1efdbf5b17c0a5d3e479b6183738ec988c861bad SHA1 94e0cb959f2021afe2f9ebeff716ed8c4340b121 SHA256 d8fdea6a132c69e5a15c69357a25b5a2d1ae7d60079ae631e03c920e34db811d

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 Launcher"
eval start-stop-daemon --start --quiet --exec /usr/sbin/pulse2-launchers-manager --pidfile /var/run/pulse2-launchers-manager.pid
eend $?
}
stop() {
ebegin "Stopping Pulse2 Launcher"
start-stop-daemon --stop --quiet --pidfile /var/run/pulse2-launchers-manager.pid
eend $?
}

View File

@@ -0,0 +1,53 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit distutils
WOL_PV="0.7.1"
# 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
mirror://sourceforge/ahh/wol-${WOL_PV}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="nls"
SLOT="0"
RDEPEND=">=dev-python/twisted-web-0.7.0
>=app-admin/pulse2-common-1.2.0"
DEPEND=">=dev-python/setuptools-0.6_rc1"
src_compile() {
cd ../wol-${WOL_PV}
econf $(use_enable nls) || die "configure failed"
emake || die "make failed"
}
# from marienz's setuptools.eclass:
src_install() {
"${python}" setup.py install --root="${D}" --no-compile "$@" || die "install failed"
dosbin bin/*
newsbin ../wol-${WOL_PV}/src/wol pulse2-wol
insinto etc/mmc/pulse2/launchers/keys
doins -r conf/launchers/keys/*
insinto etc/mmc/pulse2/launchers
doins -r conf/launchers/*.ini
# insinto etc/pulse2/plugins
# doins -r conf/plugins/*.ini
insinto usr/share/doc/${P}
doins -r contrib
dodoc Changelog
newinitd "${FILESDIR}"/pulse2-launchers.initd pulse2-launchers
}
src_test() {
"${python}" setup.py test || die "tests failed"
}