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
commit78582624d6d63d58282d947e3d680d94a1903fca (patch)
treee7a9e5571c1877487fcdf0edf578506e6a4aa64e /app-admin/supervisor
parentRemove old version, install man pages even with USE=-doc now that they are sh... (diff)
downloadhistorical-78582624d6d63d58282d947e3d680d94a1903fca.tar.gz
historical-78582624d6d63d58282d947e3d680d94a1903fca.tar.bz2
historical-78582624d6d63d58282d947e3d680d94a1903fca.zip
Initial version of app-admin/supervisor.
Package-Manager: portage-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/Manifest6
-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
6 files changed, 97 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/Manifest b/app-admin/supervisor/Manifest
new file mode 100644
index 000000000000..b75d1b621a4b
--- /dev/null
+++ b/app-admin/supervisor/Manifest
@@ -0,0 +1,6 @@
+AUX conf.d 85 RMD160 f147f3b47c11337cb06f887dbdedeb3711e9734f SHA1 efa92ca887b8a8393038e5ab5875dfd315c631d8 SHA256 312ec20f53a96a4daf6f49c2928c4d1243a527ac8e32ecd882ec1a7a3d6b72eb
+AUX init.d 734 RMD160 a66d8d2c10a1e8b14ee3191bd84b3d2e3ac9500d SHA1 102c61cfea9b7c095c16a0f0096e3acb71f15f17 SHA256 089fab0a143af0b1d68b3edd442ec4c1267129585f30250261adfd0839f78506
+DIST supervisor-3.0a8.tar.gz 287705 RMD160 1dda7a52b3fb24b790de14e7b8644d4b713f646f SHA1 f3905d105e99127253dcb34a091495630a7fb947 SHA256 ce61afd01780ffba3e40ec244205b6db309da3b84ef27b5c5b179456050e5b8b
+EBUILD supervisor-3.0_alpha8.ebuild 965 RMD160 44d42669c73666d6d2dcd03ec555eb9e600e37ff SHA1 f14f48faf371c3a76a17dd64e3dbc2d5bd4ec8e9 SHA256 93f44f38cacbd3a85f053d3b242bb2d9e197b9714bd8061e80c7a28af7616b8d
+MISC ChangeLog 411 RMD160 c0a468269773722519f45bbcdb8bb1019144d4e6 SHA1 b508abbd556c73337cb55d2a4c80c145d566ebf7 SHA256 e81af977f4e1836be6e8d5b3aa933b273d48734cd49eddc17e435e43f3edb190
+MISC metadata.xml 259 RMD160 4b781a038008fac445e4154045f964b64ad59e75 SHA1 9809d89f3360f9f7537c2bb480d6bcbe942c6ea0 SHA256 0fb1da675767b69b5bd240d135effe2fc500e8b997a5f4eed212e5b26d027972
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
+}