summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2010-03-09 13:45:32 +0000
committerDirkjan Ochtman <djc@gentoo.org>2010-03-09 13:45:32 +0000
commitcad3d30e6944d2cdf002980ff9910ae2cf608849 (patch)
treedb860f8bc46c35d75a7f9253b5e384253640afcb /app-admin/supervisor
parentRemove old version, install man pages even with USE=-doc now that they are sh... (diff)
downloadgentoo-2-cad3d30e6944d2cdf002980ff9910ae2cf608849.tar.gz
gentoo-2-cad3d30e6944d2cdf002980ff9910ae2cf608849.tar.bz2
gentoo-2-cad3d30e6944d2cdf002980ff9910ae2cf608849.zip
Initial version of app-admin/supervisor.
(Portage version: 2.1.7.17/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/supervisor')
-rw-r--r--app-admin/supervisor/ChangeLog11
-rw-r--r--app-admin/supervisor/files/conf.d4
-rw-r--r--app-admin/supervisor/files/init.d28
-rw-r--r--app-admin/supervisor/metadata.xml9
-rw-r--r--app-admin/supervisor/supervisor-3.0_alpha8.ebuild39
5 files changed, 91 insertions, 0 deletions
diff --git a/app-admin/supervisor/ChangeLog b/app-admin/supervisor/ChangeLog
new file mode 100644
index 000000000000..67c1a6f60349
--- /dev/null
+++ b/app-admin/supervisor/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-admin/supervisor
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/supervisor/ChangeLog,v 1.1 2010/03/09 13:45:31 djc Exp $
+
+*supervisor-3.0_alpha8 (09 Mar 2010)
+
+ 09 Mar 2010; Dirkjan Ochtman <djc@gentoo.org>
+ +supervisor-3.0_alpha8.ebuild, +files/conf.d, +files/init.d,
+ +metadata.xml:
+ Initial version of the package.
+
diff --git a/app-admin/supervisor/files/conf.d b/app-admin/supervisor/files/conf.d
new file mode 100644
index 000000000000..922f4ce4132f
--- /dev/null
+++ b/app-admin/supervisor/files/conf.d
@@ -0,0 +1,4 @@
+# /etc/conf.d/supervisord
+
+# Options to pass to the supervisord process
+SUPD_OPTS=""
diff --git a/app-admin/supervisor/files/init.d b/app-admin/supervisor/files/init.d
new file mode 100644
index 000000000000..5c5769aaf664
--- /dev/null
+++ b/app-admin/supervisor/files/init.d
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/supervisor/files/init.d,v 1.1 2010/03/09 13:45:32 djc Exp $
+
+checkconfig() {
+ if [ ! -f /etc/supervisord.conf ] ; then
+ eerror "Please create /etc/supervisord.conf:"
+ eerror "echo_supervisord_conf >> /etc/supervisord.conf"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+ ebegin "Starting supervisord"
+ start-stop-daemon --start \
+ --exec /usr/bin/supervisord -b --pidfile /var/run/supervisord.pid \
+ -- -n ${SUPD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping supervisord"
+ start-stop-daemon --stop --pidfile /var/run/supervisord.pid
+ eend $?
+}
diff --git a/app-admin/supervisor/metadata.xml b/app-admin/supervisor/metadata.xml
new file mode 100644
index 000000000000..0b4a8d1ce384
--- /dev/null
+++ b/app-admin/supervisor/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <maintainer>
+ <email>djc@gentoo.org</email>
+ <name>Dirkjan Ochtman</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-admin/supervisor/supervisor-3.0_alpha8.ebuild b/app-admin/supervisor/supervisor-3.0_alpha8.ebuild
new file mode 100644
index 000000000000..67fdfd358660
--- /dev/null
+++ b/app-admin/supervisor/supervisor-3.0_alpha8.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/supervisor/supervisor-3.0_alpha8.ebuild,v 1.1 2010/03/09 13:45:31 djc Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils versionator eutils
+
+MY_PV="${PV/_alpha/a}"
+
+DESCRIPTION="A system for controlling process state under UNIX"
+HOMEPAGE="http://supervisord.org/ http://pypi.python.org/pypi/supervisor"
+SRC_URI="http://dist.supervisord.org/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="repoze ZPL BSD as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="dev-python/setuptools
+ test? ( dev-python/mock )"
+RDEPEND="dev-python/meld3"
+RESTRICT_PYTHON_ABIS="3.*"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_install() {
+ distutils_src_install
+ newinitd "${FILESDIR}"/init.d supervisord
+ newconfd "${FILESDIR}"/conf.d supervisord
+}
+
+src_test() {
+ testing() {
+ "$(PYTHON)" setup.py test
+ }
+ python_execute_function testing
+}