new lib pyrowl for http://prowlapp.com pushes messages to your iDevice.
This commit is contained in:
parent
27dffdec40
commit
4f5218cb2a
2
dev-python/pyrowl/Manifest
Normal file
2
dev-python/pyrowl/Manifest
Normal 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
|
32
dev-python/pyrowl/pyrowl-20110221.ebuild
Normal file
32
dev-python/pyrowl/pyrowl-20110221.ebuild
Normal 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
|
||||
}
|
@ -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
|
||||
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 $?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user