head 1.16; access; symbols pkgsrc-2023Q4:1.16.0.4 pkgsrc-2023Q4-base:1.16 pkgsrc-2023Q3:1.16.0.2 pkgsrc-2023Q3-base:1.16 pkgsrc-2023Q2:1.14.0.2 pkgsrc-2023Q2-base:1.14 pkgsrc-2023Q1:1.13.0.2 pkgsrc-2023Q1-base:1.13 pkgsrc-2022Q4:1.12.0.8 pkgsrc-2022Q4-base:1.12 pkgsrc-2022Q3:1.12.0.6 pkgsrc-2022Q3-base:1.12 pkgsrc-2022Q2:1.12.0.4 pkgsrc-2022Q2-base:1.12 pkgsrc-2022Q1:1.12.0.2 pkgsrc-2022Q1-base:1.12 pkgsrc-2021Q4:1.9.0.8 pkgsrc-2021Q4-base:1.9 pkgsrc-2021Q3:1.9.0.6 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.9.0.4 pkgsrc-2021Q2-base:1.9 pkgsrc-2021Q1:1.9.0.2 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.8.0.4 pkgsrc-2020Q4-base:1.8 pkgsrc-2020Q3:1.8.0.2 pkgsrc-2020Q3-base:1.8 pkgsrc-2020Q2:1.7.0.2 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.6.0.2 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.5.0.10 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.6 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.4 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.2 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.4.0.8 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.6 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.4 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.2 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.3.0.6 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.4 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.1.0.2 pkgsrc-2017Q2-base:1.1; locks; strict; comment @# @; 1.16 date 2023.07.19.12.48.21; author wiz; state Exp; branches; next 1.15; commitid 67MsLE1IL4F4CpxE; 1.15 date 2023.07.03.13.04.57; author wiz; state Exp; branches; next 1.14; commitid GK2CEy8xw7q0emvE; 1.14 date 2023.03.29.09.34.13; author wiz; state Exp; branches; next 1.13; commitid dE79P0WicMkX80jE; 1.13 date 2022.12.29.12.35.41; author adam; state Exp; branches; next 1.12; commitid FW8HEWFPG8oC2s7E; 1.12 date 2022.01.05.15.41.22; author wiz; state Exp; branches; next 1.11; commitid FQ77UruBIUsgzsnD; 1.11 date 2022.01.04.20.54.50; author wiz; state Exp; branches; next 1.10; commitid CYyhdK9qtoffkmnD; 1.10 date 2021.12.31.13.28.23; author adam; state Exp; branches; next 1.9; commitid UFii5oEoKkw60OmD; 1.9 date 2021.02.27.09.59.54; author adam; state Exp; branches; next 1.8; commitid NjuErH6b3yLoIkJC; 1.8 date 2020.09.10.10.24.30; author adam; state Exp; branches; next 1.7; commitid KHkWInu9JkgCjunC; 1.7 date 2020.05.27.14.56.15; author adam; state Exp; branches; next 1.6; commitid aKzA8VFyLTUZdT9C; 1.6 date 2020.03.02.20.33.30; author adam; state Exp; branches; next 1.5; commitid YTPw3XjLcORPQRYB; 1.5 date 2019.01.08.09.42.26; author adam; state Exp; branches; next 1.4; commitid tlojraCccmaGIX6B; 1.4 date 2018.02.26.09.11.47; author adam; state Exp; branches; next 1.3; commitid iWaF3gFu8EbUHlsA; 1.3 date 2017.07.25.08.17.08; author adam; state Exp; branches; next 1.2; commitid YyGPmsPZ9d5OlA0A; 1.2 date 2017.07.20.17.43.02; author adam; state Exp; branches; next 1.1; commitid tc5QVyjfuZYWDZZz; 1.1 date 2017.04.28.14.52.29; author wiz; state Exp; branches; next ; commitid yYw0OSxWlTwTmjPz; desc @@ 1.16 log @py-supervisor: improvements for running this Install example config file in expect location. Adapt paths in example config for pkgsrc. Add rc.d script and install it. Bump PKGREVISION. @ text @# $NetBSD: Makefile,v 1.15 2023/07/03 13:04:57 wiz Exp $ DISTNAME= supervisor-4.2.5 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} PKGREVISION= 1 CATEGORIES= sysutils python MASTER_SITES= ${MASTER_SITE_PYPI:=s/supervisor/} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= http://supervisord.org/ COMMENT= System for controlling process state under UNIX LICENSE= original-bsd DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools PYTHON_VERSIONS_INCOMPATIBLE= 27 REPLACE_PYTHON+= supervisor/scripts/*.py PYTHON_SELF_CONFLICT= yes USE_PKG_RESOURCES= yes SUBST_CLASSES+= python SUBST_STAGE.python= pre-build SUBST_MESSAGE.python= Fixing Python path. SUBST_FILES.python+= supervisor/tests/fixtures/unkillable_spew.py SUBST_FILES.python+= supervisor/tests/fixtures/spew.py SUBST_SED.python+= -e "s,<>,${PYTHONBIN}," SUBST_CLASSES+= varbase SUBST_STAGE.varbase= pre-build SUBST_MESSAGE.varbase= Fixing /var path. SUBST_VARS.varbase+= VARBASE SUBST_FILES.varbase+= supervisor/skel/sample.conf FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} EGDIR= share/examples/supervisor RCD_SCRIPTS= supervisord INSTALLATION_DIRS+= ${EGDIR} share/examples/rc.d CONF_FILES+= ${EGDIR}/supervisord.conf ${PKG_SYSCONFDIR}/supervisord.conf post-install: .for bin in echo_supervisord_conf pidproxy supervisorctl supervisord cd ${DESTDIR}${PREFIX}/bin && \ ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE} .endfor ${INSTALL_DATA} ${WRKSRC}/supervisor/skel/sample.conf \ ${DESTDIR}${PREFIX}/share/examples/supervisor/supervisord.conf .include "../../lang/python/application.mk" .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" @ 1.15 log @py-supervisor: not for Python 2 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2023/03/29 09:34:13 wiz Exp $ d5 1 d19 1 d30 13 d48 2 @ 1.14 log @*: use PYTHON_VERSION instead of _PYTHON_VERSION @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2022/12/29 12:35:41 adam Exp $ d15 1 a15 5 .include "../../lang/python/pyversion.mk" .if ${PYTHON_VERSION} == 207 TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock .endif @ 1.13 log @py-supervisor: updated to 4.2.5 4.2.5 (2022-12-23) ------------------ - Fixed a bug where the XML-RPC method ``supervisor.startProcess()`` would return 500 Internal Server Error instead of an XML-RPC fault response if the command could not be parsed. Patch by Julien Le Cléach. - Fixed a bug on Python 2.7 where a ``UnicodeDecodeError`` may have occurred when using the web interface. Patch by Vinay Sajip. - Removed use of ``urllib.parse`` functions ``splithost``, ``splitport``, and ``splittype`` deprecated in Python 3.8. - Removed use of ``asynchat`` and ``asyncore`` deprecated in Python 3.10. - The return value of the XML-RPC method ``supervisor.getAllConfigInfo()`` now includes the ``directory``, ``uid``, and ``serverurl`` of the program. Patch by Yellmean. - If a subprocess exits with a unexpected exit code (one not listed in ``exitcodes=`` in a ``[program:x]`` section) then the exit will now be logged at the ``WARN`` level instead of ``INFO``. Patch by Precy Lee. - ``supervisorctl shutdown`` now shows an error message if an argument is given. - File descriptors are now closed using the faster ``os.closerange()`` instead of calling ``os.close()`` in a loop. Patch by tyong920. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2022/01/05 15:41:22 wiz Exp $ d16 2 a17 1 .if ${_PYTHON_VERSION} == 27 @ 1.12 log @python: egg.mk: add USE_PKG_RESOURCES flag This flag should be set for packages that import pkg_resources and thus need setuptools after the build step. Set this flag for packages that need it and bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2022/01/04 20:54:50 wiz Exp $ d3 1 a3 1 DISTNAME= supervisor-4.2.4 a4 1 PKGREVISION= 2 @ 1.11 log @*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2021/12/31 13:28:23 adam Exp $ d5 1 a5 1 PKGREVISION= 1 d23 2 @ 1.10 log @py-supervisor: updated to 4.2.4 4.2.4 (2021-12-30) Fixed a bug where the --identifier command line argument was ignored. It was broken since at least 3.0a7 (released in 2009) and probably earlier. Patch by Julien Le Cléach. 4.2.3 (2021-12-27) Fixed a race condition where an rpcinterface extension that subscribed to events would not see the correct process state if it accessed the the state attribute on a Subprocess instance immediately in the event callback. Patch by Chao Wang. Added the setuptools package to the list of dependencies in setup.py because it is a runtime dependency. Patch by Louis Sautier. The web interface will now return a 404 Not Found response if a log file is missing. Previously, it would return 410 Gone. It was changed because 410 is intended to mean that the condition is likely to be permanent. A log file missing is usually temporary, e.g. a process that was never started will not have a log file but will have one as soon as it is started. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2021/02/27 09:59:54 adam Exp $ d5 1 @ 1.9 log @py-supervisor: updated to 4.2.2 4.2.2 (2021-02-26) ------------------ - Fixed a bug where ``supervisord`` could crash if a subprocess exited immediately before trying to kill it. - Fixed a bug where the ``stdout_syslog`` and ``stderr_syslog`` options of a ``[program:x]`` section could not be used unless file logging for the same program had also been configured. The file and syslog options can now be used independently. Patch by Scott Stroupe. - Fixed a bug where the ``logfile`` option in the ``[supervisord]`` section would not log to syslog when the special filename of ``syslog`` was supplied, as is supported by all other log filename options. Patch by Franck Cuny. - Fixed a bug where environment variables defined in ``environment=`` in the ``[supervisord]`` section or a ``[program:x]`` section could not be used in ``%(ENV_x)s`` expansions. Patch by MythRen. - The ``supervisorctl signal`` command now allows a signal to be sent when a process is in the ``STOPPING`` state. Patch by Mike Gould. - ``supervisorctl`` and ``supervisord`` now print help when given ``-?`` in addition to the existing ``-h``/``--help``. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2020/09/10 10:24:30 adam Exp $ d3 1 a3 1 DISTNAME= supervisor-4.2.2 d13 2 @ 1.8 log @py-supervisor: updated to 4.2.1 4.2.1 - Fixed a bug on Python 3 where a network error could cause ``supervisord`` to crash with the error ``:can't concat str to bytes``. Patch by Vinay Sajip. - Fixed a bug where a test would fail on systems with glibc 2.3.1 because the default value of SOMAXCONN changed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2020/05/27 14:56:15 adam Exp $ d3 1 a3 1 DISTNAME= supervisor-4.2.1 @ 1.7 log @py-supervisor: updated to 4.2.0 4.2.0: - When ``supervisord`` is run in the foreground, a new ``--silent`` option suppresses the main log from being echoed to ``stdout`` as it normally would. - Parsing ``command=`` now supports a new expansion, ``%(numprocs)d``, that expands to the value of ``numprocs=`` in the same section. - Web UI buttons no longer use background images. - The Web UI now has a link to view ``tail -f stderr`` for a process in addition to the existing ``tail -f stdout`` link. Based on a patch by OuroborosCoding. - The HTTP server will now send an ``X-Accel-Buffering: no`` header in logtail responses to fix Nginx proxy buffering. - When ``supervisord`` reaps an unknown PID, it will now log a description of the ``waitpid`` status. - Fixed a bug introduced in 4.0.3 where ``supervisorctl tail -f foo | grep bar`` would fail with the error ``NoneType object has no attribute 'lower'``. This only occurred on Python 2.7 and only when piped. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2020/03/02 20:33:30 adam Exp $ d3 1 a3 1 DISTNAME= supervisor-4.2.0 @ 1.6 log @py-supervisor: updated to 4.1.0 4.1.0: - Fixed a bug on Python 3 only where logging to syslog did not work and would log the exception ``TypeError: a bytes-like object is required, not 'str'`` to the main ``supervisord`` log file. - Fixed a Python 3.8 compatibility issue caused by the removal of ``cgi.escape()``. - The ``meld3`` package is no longer a dependency. A version of ``meld3`` is now included within the ``supervisor`` package itself. 4.0.4: - Fixed a bug where ``supervisorctl tail stdout`` would actually tail ``stderr``. Note that ``tail `` without the explicit ``stdout`` correctly tailed ``stdout``. The bug existed since 3.0a3 (released in 2007). - Improved the warning message added in 4.0.3 so it is now emitted for both ``tail`` and ``tail -f``. - CVE-2019-12105. Documentation addition only, no code changes. This CVE states that ``inet_http_server`` does not use authentication by default (`details `_). Note that ``inet_http_server`` is not enabled by default, and is also not enabled in the example configuration output by ``echo_supervisord_conf``. The behavior of the ``inet_http_server`` options have been correctly documented, and have not changed, since the feature was introduced in 2006. A new `warning message `_ was added to the documentation. 4.0.3: - Fixed an issue on Python 2 where running ``supervisorctl tail -f `` would fail with the message ``Cannot connect, error: `` where it may have worked on Supervisor 3.x. The issue was introduced in Supervisor 4.0.0 due to new bytes/strings conversions necessary to add Python 3 support. For ``supervisorctl`` to correctly display logs with Unicode characters, the terminal encoding specified by the environment must support it. If not, the ``UnicodeEncodeError`` may still occur on either Python 2 or 3. A new warning message is now printed if a problematic terminal encoding is detected. 4.0.2: - Fixed a bug where inline comments in the config file were not parsed correctly such that the comments were included as part of the values. This only occurred on Python 2, and only where the environment had an extra ``configparser`` module installed. The bug was introduced in Supervisor 4.0.0 because of Python 2/3 compatibility code that expected a Python 2 environment to only have a ``ConfigParser`` module. 4.0.1: - Fixed an issue on Python 3 where an ``OSError: [Errno 29] Illegal seek`` would occur if ``logfile`` in the ``[supervisord]`` section was set to a special file like ``/dev/stdout`` that was not seekable, even if ``logfile_maxbytes = 0`` was set to disable rotation. The issue only affected the main log and not child logs. 4.0.0: - Support for Python 3 has been added. On Python 3, Supervisor requires Python 3.4 or later. Many thanks to Vinay Sajip, Scott Maxwell, Palm Kevin, Tres Seaver, Marc Abramowitz, Son Nguyen, Shane Hathaway, Evan Andrews, and Ethan Hann who all made major contributions to the Python 3 porting effort. Thanks also to all contributors who submitted issue reports and patches towards this effort. - Support for Python 2.4, 2.5, and 2.6 has been dropped. On Python 2, Supervisor now requires Python 2.7. - The ``supervisor`` package is no longer a namespace package. - The behavior of the config file expansion ``%(here)s`` has changed. In previous versions, a bug caused ``%(here)s`` to always expand to the directory of the root config file. Now, when ``%(here)s`` is used inside a file included via ``[include]``, it will expand to the directory of that file. Thanks to Alex Eftimie and Zoltan Toth-Czifra for the patches. - The default value for the config file setting ``exitcodes=``, the expected exit codes of a program, has changed. In previous versions, it was ``0,2``. This caused issues with Golang programs where ``panic()`` causes the exit code to be ``2``. The default value for ``exitcodes`` is now ``0``. - An undocumented feature where multiple ``supervisorctl`` commands could be combined on a single line separated by semicolons has been removed. - ``supervisorctl`` will now set its exit code to a non-zero value when an error condition occurs. Previous versions did not set the exit code for most error conditions so it was almost always 0. - Added new ``stdout_syslog`` and ``stderr_syslog`` options to the config file. These are boolean options that indicate whether process output will be sent to syslog. Supervisor can now log to both files and syslog at the same time. Specifying a log filename of ``syslog`` is still supported but deprecated. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2019/01/08 09:42:26 adam Exp $ d3 1 a3 1 DISTNAME= supervisor-4.1.0 @ 1.5 log @py-supervisor: updated to 3.3.5 3.3.5: Fixed a race condition where supervisord would cancel a shutdown already in progress if it received SIGHUP. Now, supervisord will ignore SIGHUP if shutdown is already in progress. Fixed a bug where searching for a relative command ignored changes to PATH made in environment=. childutils.ProcessCommunicationsProtocol now does an explit flush() after writing to stdout. A more descriptive error message is now emitted if a name in the config file contains a disallowed character. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2018/02/26 09:11:47 adam Exp $ d3 1 a3 1 DISTNAME= supervisor-3.3.5 d13 2 a14 1 DEPENDS+= ${PYPKGPREFIX}-meld3>=0.6.5:../../www/py-meld3 d16 1 a16 3 # as of 3.3.1, explicitly only supports 2.x PYTHON_VERSIONS_ACCEPTED= 27 d21 4 d26 6 a31 3 SUBST_FILES.python+= supervisor/tests/fixtures/*.py SUBST_MESSAGE.python= Fixing path to python. SUBST_STAGE.python= pre-build @ 1.4 log @py-supervisor: updated to 3.3.4 3.3.4: Fixed a bug where rereading the configuration would not detect changes to eventlisteners. Fixed a bug where the warning Supervisord is running as root and it is searching for its config file may have been incorrectly shown by supervisorctl if its executable name was changed. Fixed a bug in the web interface where redirect URLs did not have a slash between the host and query string, which caused issues when proxying with Nginx. When supervisord successfully drops privileges during startup, it is now logged at the INFO level instead of CRIT. The HTTP server now returns a Content-Type header specifying UTF-8 encoding. This may fix display issues in some browsers. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2017/07/25 08:17:08 adam Exp $ d3 1 a3 1 DISTNAME= supervisor-3.3.4 d14 1 a14 2 # TEST_DEPENDS BUILD_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock d20 1 @ 1.3 log @3.3.3: - Fixed CVE-2017-11610. A vulnerability was found where an authenticated client can send a malicious XML-RPC request to ``supervisord`` that will run arbitrary shell commands on the server. The commands will be run as the same user as ``supervisord``. Depending on how ``supervisord`` has been configured, this may be root. See https://github.com/Supervisor/supervisor/issues/964 for details. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2017/07/20 17:43:02 adam Exp $ d3 1 a3 1 DISTNAME= supervisor-3.3.3 d5 1 a5 1 CATEGORIES= sysutils @ 1.2 log @3.3.2: Fixed a bug introduced in 3.3.0 where the supervisorctl reload command would crash supervisord with the error OSError: [Errno 9] Bad file descriptor if the kqueue poller was used. Patch by Jared Suttles. Fixed a bug introduced in 3.3.0 where supervisord could get stuck in a polling loop after the web interface was used, causing high CPU usage. Patch by Jared Suttles. Fixed a bug where if supervisord attempted to start but aborted due to another running instance of supervisord with the same config, the pidfile of the running instance would be deleted. Patch by coldnight. Fixed a bug where supervisorctl fg would swallow most XML-RPC faults. fg now prints the fault and exits. Parsing the config file will now fail with an error message if a process or group name contains a forward slash character (/) since it would break the URLs used by the web interface. supervisorctl reload now shows an error message if an argument is given. Patch by Joel Krauska. supervisorctl commands avail, reread, and version now show an error message if an argument is given. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2017/04/28 14:52:29 wiz Exp $ d3 1 a3 1 DISTNAME= supervisor-3.3.2 @ 1.1 log @Import py-supervisor-3.3.1 as sysutils/py-supervisor. Supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems. @ text @d1 1 a1 1 # $NetBSD$ d3 1 a3 1 DISTNAME= supervisor-3.3.1 d13 1 a13 1 DEPENDS+= ${PYPKGPREFIX}-meld3-[0-9]*:../../www/py-meld3 @