1 |
commit: a7e3de6fd952a17c3f895a2923f505a73357e9fd |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 3 20:05:00 2020 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 3 20:07:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7e3de6f |
7 |
|
8 |
app-admin/supervisor: bump to 4.2.0, skip a failing test |
9 |
|
10 |
Closes: https://bugs.gentoo.org/711538 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
13 |
|
14 |
app-admin/supervisor/Manifest | 1 + |
15 |
app-admin/supervisor/supervisor-4.2.0.ebuild | 62 ++++++++++++++++++++++++++++ |
16 |
2 files changed, 63 insertions(+) |
17 |
|
18 |
diff --git a/app-admin/supervisor/Manifest b/app-admin/supervisor/Manifest |
19 |
index 9f8a8819e14..6d9daeb6899 100644 |
20 |
--- a/app-admin/supervisor/Manifest |
21 |
+++ b/app-admin/supervisor/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST supervisor-4.0.4.tar.gz 437708 BLAKE2B 211726da07ce31c00da0d6edba57942d78ee5d2757927b22afe569364c29aaf55375d4895b381f06071bc6b6c39a926ca2073e8fcb8e0ea9673a89aafd08b346 SHA512 22a38f759b0584310f5e16acbfc7b0c4cc59f3206fbfaf6295bd40a826d50ad02c8b0093821362c5038dd987a6599879d82dcefe948a2eda702b89e9f92e471e |
24 |
DIST supervisor-4.1.0.tar.gz 459020 BLAKE2B 0c4bdc2c89f54c08ad536b43852941f1aadb0173013e0f73337302f500b779023bfa0fcf8cc3ace4968cfc724998a08ea5a63680e290051d13c7cd8ac788dd24 SHA512 1ae343293707ebf33d0a0c0bda2c6cc78278e12737940a79e51b2365e7a20b07d9f5e50134ed2abbf8e7af1ebd8f1746002a159cde1cfc35e83fda0a77dae9c5 |
25 |
+DIST supervisor-4.2.0.tar.gz 456056 BLAKE2B 51b66cfc34505b937c47c9b510d81bcc777b9372fdeb2e08fc25153d2718cd2682258b812630160954587ceb992e1a528cdd5bf0d270139f7ffac9463ac2f015 SHA512 626d806f4b03be7cbff795afd1bdb3ff5ca5ecf44f035909ea1aa9360da9fa3047b2fe05543190bf1442f01dcdd403be19fcd907519bf7e26615900bc4bf9d0f |
26 |
|
27 |
diff --git a/app-admin/supervisor/supervisor-4.2.0.ebuild b/app-admin/supervisor/supervisor-4.2.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..607c6838302 |
30 |
--- /dev/null |
31 |
+++ b/app-admin/supervisor/supervisor-4.2.0.ebuild |
32 |
@@ -0,0 +1,62 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) |
39 |
+# xml.etree.ElementTree module required. |
40 |
+PYTHON_REQ_USE="xml(+)" |
41 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
42 |
+ |
43 |
+inherit distutils-r1 systemd |
44 |
+ |
45 |
+MY_PV="${PV/_beta/b}" |
46 |
+ |
47 |
+DESCRIPTION="A system for controlling process state under UNIX" |
48 |
+HOMEPAGE="http://supervisord.org/ https://pypi.org/project/supervisor/" |
49 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" |
50 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
51 |
+ |
52 |
+LICENSE="repoze ZPL BSD HPND GPL-2" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+ |
56 |
+RDEPEND="acct-group/supervisor" |
57 |
+ |
58 |
+distutils_enable_sphinx docs |
59 |
+distutils_enable_tests pytest |
60 |
+ |
61 |
+python_prepare_all() { |
62 |
+ # Skip one test that currently fails |
63 |
+ # https://github.com/Supervisor/supervisor/issues/1346 |
64 |
+ sed -i 's/test_prepare_socket/_&/' \ |
65 |
+ supervisor/tests/test_socket_manager.py || die |
66 |
+ distutils-r1_python_prepare_all |
67 |
+} |
68 |
+ |
69 |
+python_install_all() { |
70 |
+ distutils-r1_python_install_all |
71 |
+ newinitd "${FILESDIR}/init.d-r2" supervisord |
72 |
+ newconfd "${FILESDIR}/conf.d-r1" supervisord |
73 |
+ dodoc supervisor/skel/sample.conf |
74 |
+ keepdir /etc/supervisord.d |
75 |
+ insinto /etc |
76 |
+ doins "${FILESDIR}/supervisord.conf" |
77 |
+ keepdir /var/log/supervisor |
78 |
+ systemd_dounit "${FILESDIR}/supervisord.service" |
79 |
+} |
80 |
+ |
81 |
+pkg_preinst() { |
82 |
+ fowners :supervisor /var/log/supervisor |
83 |
+ fperms 750 /var/log/supervisor |
84 |
+} |
85 |
+ |
86 |
+pkg_postinst() { |
87 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
88 |
+ # This is a new installation |
89 |
+ elog "You may install your configuration files in ${EROOT}/etc/supervisord.d" |
90 |
+ elog "For config examples, see ${EROOT}/usr/share/doc/${PF}/sample.conf.bz2" |
91 |
+ elog "" |
92 |
+ elog "By default, only members of the supervisor group can run supervisorctl." |
93 |
+ fi |
94 |
+} |