1 |
commit: 799401bea340239aa253d4d6ed3a10f786183b6b |
2 |
Author: Anton Fischl <github <AT> fischl-online <DOT> de> |
3 |
AuthorDate: Thu Jun 2 05:36:39 2022 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 6 13:12:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=799401be |
7 |
|
8 |
dev-python/carbon: bump 1.1.10 |
9 |
|
10 |
Signed-off-by: Anton Fischl <github <AT> fischl-online.de> |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
dev-python/carbon/Manifest | 1 + |
14 |
dev-python/carbon/carbon-1.1.10.ebuild | 62 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 63 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/carbon/Manifest b/dev-python/carbon/Manifest |
18 |
index 538ec9058f80..b6548c3067d2 100644 |
19 |
--- a/dev-python/carbon/Manifest |
20 |
+++ b/dev-python/carbon/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST carbon-1.1.10.tar.gz 77091 BLAKE2B 367beb81a4dcf4c5fff6bf9884c7accb8aea9daa88d6d890bb977c926268b7ae041c9ac8e4b537f07d08d6c970f536ccc87ae6b4caef555883aadeab155fedce SHA512 a5c8d730e311bb65682c701b79a5e3e02e35eec5c0d923fece3f63d7036ca1f85775100fba9a2090487f2cf75bae7708dae9580deccd8fc586f2820b03e14b4c |
23 |
DIST carbon-1.1.8.tar.gz 72452 BLAKE2B d76a281925645ebf6f74ff83f8ea6a52016f29ae0e35143e48e9aa0f2fcc267ceee1b5040ad756bbab8b2c1ffde5040231b8e0b581bd177bfb31ddf33fab7933 SHA512 b679d0329a5c8701af8aad3bdc51d64fbab7d05214c09368a218f1c925593002596a04b50fd2aadf26bd21ea7ef4b8262ae7f8169ef0d6ee40dccbc933539161 |
24 |
|
25 |
diff --git a/dev-python/carbon/carbon-1.1.10.ebuild b/dev-python/carbon/carbon-1.1.10.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..52f67e9dfa62 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/carbon/carbon-1.1.10.ebuild |
30 |
@@ -0,0 +1,62 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..11} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Backend data caching and persistence daemon for Graphite" |
42 |
+HOMEPAGE="https://graphiteapp.org/" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+SLOT="0" |
46 |
+LICENSE="Apache-2.0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+ |
49 |
+# whisper appears to have been missed from listing in install_requires in setup.py |
50 |
+RDEPEND=" |
51 |
+ dev-python/twisted[${PYTHON_USEDEP}] |
52 |
+ dev-python/cachetools[${PYTHON_USEDEP}] |
53 |
+ dev-python/urllib3[${PYTHON_USEDEP}] |
54 |
+ =dev-python/whisper-${PV}*[${PYTHON_USEDEP}]" |
55 |
+ |
56 |
+python_prepare_all() { |
57 |
+ # Do not install the configuration and data files. We install them |
58 |
+ # somewhere sensible by hand. |
59 |
+ sed -i -e '/data_files=install_files,/d' setup.py || die |
60 |
+ # We want FHS-style paths instead of /opt/graphite |
61 |
+ export GRAPHITE_NO_PREFIX=yes |
62 |
+ distutils-r1_python_prepare_all |
63 |
+} |
64 |
+ |
65 |
+python_install_all() { |
66 |
+ distutils-r1_python_install_all |
67 |
+ |
68 |
+ insinto /etc/carbon |
69 |
+ doins conf/* |
70 |
+ |
71 |
+ keepdir /var/log/carbon /var/lib/carbon/{whisper,lists,rrd} |
72 |
+ |
73 |
+ newinitd "${FILESDIR}"/carbon.initd2 carbon-cache |
74 |
+ newinitd "${FILESDIR}"/carbon.initd2 carbon-relay |
75 |
+ newinitd "${FILESDIR}"/carbon.initd2 carbon-aggregator |
76 |
+ |
77 |
+ newconfd "${FILESDIR}"/carbon.confd carbon-cache |
78 |
+ newconfd "${FILESDIR}"/carbon.confd carbon-relay |
79 |
+ newconfd "${FILESDIR}"/carbon.confd carbon-aggregator |
80 |
+} |
81 |
+ |
82 |
+pkg_postinst() { |
83 |
+ einfo 'This ebuild installs carbon into FHS-style paths.' |
84 |
+ einfo 'You will probably have to set GRAPHITE_CONF_DIR to /etc/carbon' |
85 |
+ einfo 'and GRAPHITE_STORAGE_DIR to /var/lib/carbon to make use of this' |
86 |
+ einfo '(see /etc/carbon/carbon.conf.example).' |
87 |
+ einfo ' ' |
88 |
+ einfo 'OpenRC init script supports multiple instances !' |
89 |
+ einfo 'Example to run an instance b of carbon-cache :' |
90 |
+ einfo ' ln -s /etc/init.d/carbon-cache /etc/init.d/carbon-cache.b' |
91 |
+ einfo ' cp /etc/conf.d/carbon-cache /etc/conf.d/carbon-cache.b' |
92 |
+} |