new lib pyrowl for http://prowlapp.com pushes messages to your iDevice.

This commit is contained in:
Micha Glave 2011-07-11 13:01:38 +02:00
parent 27dffdec40
commit 4f5218cb2a
3 changed files with 53 additions and 7 deletions

View File

@ -0,0 +1,2 @@
DIST babs-pyrowl-c5aed5d.tar.gz 4214 RMD160 f5d1bc827fd52e85c18c4b68cf393b17dbd28408 SHA1 118c4731fd6f995644672c1e8e9f77acc078d5be SHA256 4c77243143a12c8665d07ebeee56144bca27cbf6da7865bb2cf6db00420eb6df
EBUILD pyrowl-20110221.ebuild 652 RMD160 7b8539a26d3c84eee7377260747f04944b5344aa SHA1 9a2d94ca98c88c92a5dc4012d403baef0646add0 SHA256 d34635c5cbd29b1917bb8c9fd7be13daca648eedfa9d4a517b2065ee75911928

View File

@ -0,0 +1,32 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit python
DESCRIPTION="Python lib for prowl-api."
GITHUB_USER="babs"
GITHUB_TAG="c5aed5d"
HOMEPAGE="https://github.com/${GITHUB_USER}/${PN}"
SRC_URI="https://github.com/${GITHUB_USER}/${PN}/tarball/${GITHUB_TAG} ->
${GITHUB_USER}-${PN}-${GITHUB_TAG}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="dev-lang/python"
S=${WORKDIR}/${GITHUB_USER}-${PN}-${GITHUB_TAG}
src_prepare() {
python_convert_shebangs -r 2 .
}
src_install() {
insinto "$(python_get_sitedir)/${PN}"
doins ${PN}/*.py
}

View File

@ -16,23 +16,35 @@ eval CONFIGFILE="\${${_MODULE}CFG}"
eval PIDFILE="\${${_MODULE}PID}"
SHINKENM="/usr/bin/shinken-${MODULE}"
if [ $MODULE = "arbiter" ]; then
CONFIGFILE="${CONFIGFILE} -c ${SHINKENSPECIFICCFG}"
CONFIGFILE="${SHINKENCFG} --config ${SHINKENSPECIFICCFG}"
fi
NEED="net"
depend() {
need net
if [ $SVCNAME = "shinken" ]; then
NEED="$NEED shinken.arbiter shinken.broker shinken.scheduler"
ebegin "show $NEED"
fi
need $NEED
}
start() {
ebegin "${SVCNAME} ${MODULE} ${PIDFILE}"
if [ $SVCNAME = "shinken" ]; then
ebegin "all shinken-services started"
return 0
fi
ebegin "starting shinken ${MODULE}"
start-stop-daemon --start --exec ${SHINKENM} --pidfile "${PIDFILE}" \
-- --config ${CONFIGFILE} --daemon
-- --config ${CONFIGFILE} --daemon
eend $?
}
stop() {
local X RETVAL=0
ebegin "Stopping shinken application ${MODULE}"
if [ $SVCNAME = "shinken" ]; then
ebegin "all shinken-services stopped"
return 0
fi
ebegin "Stopping shinken ${MODULE}"
start-stop-daemon --stop --exec ${SHINKENM} --pidfile ${PIDFILE}
eend $?
}