Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/supervisor/
Date: Sat, 27 Feb 2021 00:46:09
Message-Id: 1614386754.d270e4b38c1d850ee96908b1a9fa1eb2fd630133.sbraz@gentoo
1 commit: d270e4b38c1d850ee96908b1a9fa1eb2fd630133
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 00:13:21 2021 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 00:45:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d270e4b3
7
8 app-admin/supervisor: bump to 4.2.2
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 app-admin/supervisor/Manifest | 1 +
14 app-admin/supervisor/supervisor-4.2.2.ebuild | 58 ++++++++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/app-admin/supervisor/Manifest b/app-admin/supervisor/Manifest
18 index 03d5647fd2b..a69d766839e 100644
19 --- a/app-admin/supervisor/Manifest
20 +++ b/app-admin/supervisor/Manifest
21 @@ -1,2 +1,3 @@
22 DIST supervisor-4.2.0.tar.gz 456056 BLAKE2B 51b66cfc34505b937c47c9b510d81bcc777b9372fdeb2e08fc25153d2718cd2682258b812630160954587ceb992e1a528cdd5bf0d270139f7ffac9463ac2f015 SHA512 626d806f4b03be7cbff795afd1bdb3ff5ca5ecf44f035909ea1aa9360da9fa3047b2fe05543190bf1442f01dcdd403be19fcd907519bf7e26615900bc4bf9d0f
23 DIST supervisor-4.2.1.tar.gz 460935 BLAKE2B 0c65f904599c1e8a04cd3a71085e2b2a5460691c2bfd790d3b7c10449cae08472bcd72a870cbe611801434624f405ea3e245f156cab93f25a8df784b58d948d7 SHA512 c560ef959f8d580fb20c1812aa2a838c9feaeb3726a754e8084fa8c7406ff9258139b55b081558b8d8f33e4672cdfad40695170f55412a5e85a6c1aed0f11657
24 +DIST supervisor-4.2.2.tar.gz 463657 BLAKE2B 766feffcbd70b575b6b7dfd6ed98e3510e0fd9362c423b677d44a2b5dd23ded14a349a279d3d28d4fd9e04a2175c8f00e24c07df310b61d34c7f69f60d26a4ac SHA512 f787206e6c6a5d3dfc4284974a4a87cbcaeac0c705afb2b8eae53f066413bd9e68095c5309e29625e01469a4748613370e1ac0d7be84b9d72c3623244bdd2eb3
25
26 diff --git a/app-admin/supervisor/supervisor-4.2.2.ebuild b/app-admin/supervisor/supervisor-4.2.2.ebuild
27 new file mode 100644
28 index 00000000000..281756fef94
29 --- /dev/null
30 +++ b/app-admin/supervisor/supervisor-4.2.2.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( pypy3 python3_{7..9} )
38 +# xml.etree.ElementTree module required.
39 +PYTHON_REQ_USE="xml(+)"
40 +DISTUTILS_USE_SETUPTOOLS=rdepend
41 +
42 +inherit distutils-r1 systemd
43 +
44 +DESCRIPTION="A system for controlling process state under UNIX"
45 +HOMEPAGE="http://supervisord.org/ https://pypi.org/project/supervisor/"
46 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="repoze ZPL BSD HPND GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +RDEPEND="acct-group/supervisor"
53 +
54 +distutils_enable_sphinx docs
55 +distutils_enable_tests pytest
56 +
57 +python_prepare_all() {
58 + # The workaround can be dropped once this is merged:
59 + # https://github.com/Supervisor/supervisor/pull/1413
60 + sed -i "/ setup.py test/d" docs/conf.py || die
61 + distutils-r1_python_prepare_all
62 +}
63 +
64 +python_install_all() {
65 + distutils-r1_python_install_all
66 + newinitd "${FILESDIR}/init.d-r2" supervisord
67 + newconfd "${FILESDIR}/conf.d-r1" supervisord
68 + dodoc supervisor/skel/sample.conf
69 + keepdir /etc/supervisord.d
70 + insinto /etc
71 + doins "${FILESDIR}/supervisord.conf"
72 + keepdir /var/log/supervisor
73 + systemd_dounit "${FILESDIR}/supervisord.service"
74 +}
75 +
76 +pkg_preinst() {
77 + fowners :supervisor /var/log/supervisor
78 + fperms 750 /var/log/supervisor
79 +}
80 +
81 +pkg_postinst() {
82 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
83 + # This is a new installation
84 + elog "You may install your configuration files in ${EROOT}/etc/supervisord.d"
85 + elog "For config examples, see ${EROOT}/usr/share/doc/${PF}/sample.conf.bz2"
86 + elog ""
87 + elog "By default, only members of the supervisor group can run supervisorctl."
88 + fi
89 +}