ports/143799: [MANTAINER UPDATE] sysutils/py-supervisor update
to 3.0a8 bug fix release
Hizel Ildar
hizel at vyborg.ru
Thu Feb 11 12:20:03 UTC 2010
The following reply was made to PR ports/143799; it has been noted by GNATS.
From: Hizel Ildar <hizel at vyborg.ru>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/143799: [MANTAINER UPDATE] sysutils/py-supervisor update
to 3.0a8 bug fix release
Date: Thu, 11 Feb 2010 15:11:19 +0300
sorry, fix patch
diff -urN sysutils/py-supervisor.old/Makefile sysutils/py-supervisor/Makefile
--- sysutils/py-supervisor.old/Makefile 2010-02-11 15:05:33.000000000 +0300
+++ sysutils/py-supervisor/Makefile 2010-02-11 14:21:58.000000000 +0300
@@ -6,7 +6,7 @@
#
PORTNAME= supervisor
-PORTVERSION= 3.0a7
+PORTVERSION= 3.0a8
CATEGORIES= sysutils python
MASTER_SITES= http://dist.supervisord.org/\
CHEESESHOP
@@ -18,8 +18,18 @@
USE_PYTHON= 2.4+
USE_PYDISTUTILS= easy_install
+SUB_LIST= PYTHONVER=${PYTHON_VERSION}
+USE_RC_SUBR= supervisord
+
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}elementtree>=1.2.6:${PORTSDIR}/devel/py-elementtree \
- ${PYTHON_PKGNAMEPREFIX}meld3>=0.6.4:${PORTSDIR}/www/py-meld3 \
- ${PYTHON_PKGNAMEPREFIX}medusa>=0.5.4:${PORTSDIR}/net/py-medusa
+ ${PYTHON_PKGNAMEPREFIX}meld3>=0.6.4:${PORTSDIR}/www/py-meld3
+
+post-install:
+ [ -d /var/run/supervisor ] || ${MKDIR} /var/run/supervisor
+ [ -f ${PREFIX}/etc/supervisord.conf ] || \
+ ( ${PREFIX}/bin/echo_supervisord_conf > ${PREFIX}/etc/supervisord.conf && \
+ ${REINPLACE_CMD} -e 's!/tmp/supervisor.sock!/var/run/supervisor/supervisor.sock!g' \
+ -e 's!/tmp/supervisord.log!/var/log/supervisord.log!g' -e 's!/tmp/supervisord.pid!/var/run/supervisor/supervisord.pid!g' \
+ -e 's!unix:///tmp/supervisor.sock!unix:///var/run/supervisor/supervisor.sock!g' ${PREFIX}/etc/supervisord.conf )
.include <bsd.port.mk>
diff -urN sysutils/py-supervisor.old/distinfo sysutils/py-supervisor/distinfo
--- sysutils/py-supervisor.old/distinfo 2010-02-11 15:05:33.000000000 +0300
+++ sysutils/py-supervisor/distinfo 2010-02-11 13:14:58.000000000 +0300
@@ -1,3 +1,3 @@
-MD5 (supervisor-3.0a7.tar.gz) = d2e6c491fcb2606e4fd0afe4ebfd4b13
-SHA256 (supervisor-3.0a7.tar.gz) = 4c4e48f94298e80e21209458d57471c19c40b3e1993f6e780f31826192eaff99
-SIZE (supervisor-3.0a7.tar.gz) = 292408
+MD5 (supervisor-3.0a8.tar.gz) = 7a775455f3a53c2ea375d18dcfe9e522
+SHA256 (supervisor-3.0a8.tar.gz) = ce61afd01780ffba3e40ec244205b6db309da3b84ef27b5c5b179456050e5b8b
+SIZE (supervisor-3.0a8.tar.gz) = 287705
diff -urN sysutils/py-supervisor.old/files/patch-aa sysutils/py-supervisor/files/patch-aa
--- sysutils/py-supervisor.old/files/patch-aa 1970-01-01 03:00:00.000000000 +0300
+++ sysutils/py-supervisor/files/patch-aa 2010-02-11 14:01:06.000000000 +0300
@@ -0,0 +1,11 @@
+--- src/supervisor/options.py.orig 2010-02-11 13:25:24.000000000 +0300
++++ src/supervisor/options.py 2010-02-11 13:25:55.000000000 +0300
+@@ -105,7 +105,7 @@
+ def default_configfile(self):
+ """Return the name of the found config file or raise. """
+ paths = ['supervisord.conf', 'etc/supervisord.conf',
+- '/etc/supervisord.conf']
++ '/etc/supervisord.conf', '/usr/local/etc/supervisord.conf']
+ config = None
+ for path in paths:
+ if os.path.exists(path):
diff -urN sysutils/py-supervisor.old/files/supervisord.in sysutils/py-supervisor/files/supervisord.in
--- sysutils/py-supervisor.old/files/supervisord.in 1970-01-01 03:00:00.000000000 +0300
+++ sysutils/py-supervisor/files/supervisord.in 2010-02-11 13:21:45.000000000 +0300
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# PROVIDE: supervisord
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable trac:
+# supervisord_enable="YES"
+#
+
+. "/etc/rc.subr"
+
+# Set some defaults
+supervisord_enable=${supervisord_enable:-"NO"}
+supervisord_pid=${supervisord_pid:-"/var/run/supervisor/supervisord.pid"}
+
+name=supervisord
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+pidfile=${supervisord_pid}
+command="%%PREFIX%%/bin/supervisord"
+command_interpreter="/usr/local/bin/%%PYTHONVER%%"
+
+run_rc_command "$1"
+
diff -urN sysutils/py-supervisor.old/pkg-plist sysutils/py-supervisor/pkg-plist
--- sysutils/py-supervisor.old/pkg-plist 2010-02-11 15:05:33.000000000 +0300
+++ sysutils/py-supervisor/pkg-plist 2010-02-11 14:24:34.000000000 +0300
@@ -2,14 +2,6 @@
bin/pidproxy
bin/supervisorctl
bin/supervisord
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/._PKG-INFO
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/._SOURCES.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/._dependency_links.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/._entry_points.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/._namespace_packages.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/._not-zip-safe
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/._requires.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/._top_level.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
@@ -278,6 +270,9 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_childutils.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_childutils.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_childutils.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_confecho.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_confecho.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_confecho.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_datatypes.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_datatypes.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_datatypes.pyo
@@ -293,9 +288,6 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_loggers.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_loggers.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_loggers.pyo
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_memmon.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_memmon.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_memmon.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_options.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_options.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_options.pyo
@@ -308,6 +300,9 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_socket_manager.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_socket_manager.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_socket_manager.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_states.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_states.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_states.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_supervisorctl.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_supervisorctl.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/supervisor/tests/test_supervisorctl.pyo
@@ -359,4 +354,5 @@
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/doc
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
-
+ at stopdaemon supervisord
+ at unexec rm -rf /var/run/supervisor
More information about the freebsd-python
mailing list