1 |
commit: 03834c86a5048a4217d1f18b42a22d9dcb05e265 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 17 23:04:33 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 17 23:04:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03834c86 |
7 |
|
8 |
app-misc/carbon-c-relay: drop old version |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
app-misc/carbon-c-relay/Manifest | 2 - |
14 |
.../carbon-c-relay/carbon-c-relay-3.5-r1.ebuild | 58 ------------------ |
15 |
.../carbon-c-relay/carbon-c-relay-3.6-r1.ebuild | 63 ------------------- |
16 |
app-misc/carbon-c-relay/files/carbon-c-relay.confd | 15 ----- |
17 |
app-misc/carbon-c-relay/files/carbon-c-relay.initd | 70 ---------------------- |
18 |
5 files changed, 208 deletions(-) |
19 |
|
20 |
diff --git a/app-misc/carbon-c-relay/Manifest b/app-misc/carbon-c-relay/Manifest |
21 |
index 7697a2c0fd6..8753f8c7f5c 100644 |
22 |
--- a/app-misc/carbon-c-relay/Manifest |
23 |
+++ b/app-misc/carbon-c-relay/Manifest |
24 |
@@ -1,3 +1 @@ |
25 |
-DIST carbon-c-relay-3.5.tar.gz 304570 BLAKE2B 4b2595eb3aecab7793e2f8a96a6f0a28b967d5e753ee25b175d70fcd2c9d6c492252b2ece5012fd446ba586da9f82e80cc10a9ed3f520bd6600f17e7137fd5ec SHA512 5461e9c32b2953e2c182f71bcaebde33f571dc9672d63231aedf88aca65b2576d0787ab24e871905d46fd0a4176b31f817f75aee09f93a66a280ca67caf74e66 |
26 |
-DIST carbon-c-relay-3.6.tar.gz 557612 BLAKE2B 9921a6488a0f04d6b8a7bbe54d13d23dcf979331103e1b862a8a504ead92afdc7530c665cd5a8973ac0cee952c7454ca8fcfb7b9e632ebf8c175083e83c10cc1 SHA512 7336e29890610d5248059c9de7653892d761005881897bff8279c0b12396a5d9aaedf4987121338f43951b8d322cddaaab43a2151b89e98eee9e4da8c7188cd4 |
27 |
DIST carbon-c-relay-3.7.2.tar.gz 561080 BLAKE2B 55674699b2afcffa911954a52e3c51b92380c81083db0330e7e6eab495e72938b7761a8c7bc17ac65ea56db1c11f4c360bab3b7442ca13f3466170d6bb3f6fd6 SHA512 dab2eaf2da07afd429012b93f0c826e2fe6e43371afa07d34793dd212820790af2487f5710524deac52c3ed18b874ce8ff54d90b3872e269dc570b7ad30c1826 |
28 |
|
29 |
diff --git a/app-misc/carbon-c-relay/carbon-c-relay-3.5-r1.ebuild b/app-misc/carbon-c-relay/carbon-c-relay-3.5-r1.ebuild |
30 |
deleted file mode 100644 |
31 |
index 4fd7b63ac24..00000000000 |
32 |
--- a/app-misc/carbon-c-relay/carbon-c-relay-3.5-r1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,58 +0,0 @@ |
35 |
-# Copyright 1999-2021 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=6 |
39 |
- |
40 |
-inherit user |
41 |
- |
42 |
-DESCRIPTION="Enhanced C version of Carbon relay, aggregator and rewriter" |
43 |
-HOMEPAGE="https://github.com/grobian/carbon-c-relay" |
44 |
-SRC_URI="https://github.com/grobian/carbon-c-relay/releases/download/v${PV}/${P}.tar.gz" |
45 |
- |
46 |
-LICENSE="Apache-2.0" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="~amd64 ~arm ~ppc64 ~x64-macos ~x64-solaris ~x86-solaris" |
49 |
-IUSE="lz4 snappy zlib ssl pcre pcre2 +oniguruma" |
50 |
- |
51 |
-# ensure only one of pcre, pcre2 and oniguruma is set, or none (libc) |
52 |
-# unforunately pcre is in global USE, so we have to exclude that here |
53 |
-REQUIRED_USE=" |
54 |
- pcre2? ( !oniguruma ) |
55 |
- oniguruma? ( !pcre2 ) |
56 |
-" |
57 |
-RDEPEND="lz4? ( app-arch/lz4 ) |
58 |
- snappy? ( app-arch/snappy ) |
59 |
- zlib? ( app-arch/gzip ) |
60 |
- ssl? ( dev-libs/openssl:0= ) |
61 |
- !oniguruma? ( !pcre2? ( pcre? ( dev-libs/libpcre ) ) ) |
62 |
- pcre2? ( dev-libs/libpcre2 ) |
63 |
- oniguruma? ( dev-libs/oniguruma )" |
64 |
-DEPEND="${RDEPEND}" |
65 |
- |
66 |
-pkg_preinst() { |
67 |
- enewgroup carbon |
68 |
- enewuser carbon -1 -1 -1 carbon |
69 |
-} |
70 |
- |
71 |
-src_configure() { |
72 |
- local pcrecfg |
73 |
- if use !pcre2 && use !oniguruma ; then |
74 |
- pcrecfg=$(use_with pcre) |
75 |
- else |
76 |
- pcrecfg="--without-pcre" |
77 |
- fi |
78 |
- |
79 |
- econf $(use_with lz4) $(use_with snappy) \ |
80 |
- $(use_with ssl) $(use_with zlib gzip) \ |
81 |
- "${pcrecfg}" $(use_with pcre2) $(use_with oniguruma) |
82 |
-} |
83 |
- |
84 |
-src_install() { |
85 |
- default |
86 |
- # rename too generic name |
87 |
- mv "${ED}"/usr/bin/{relay,${PN}} || die |
88 |
- dodoc ChangeLog.md |
89 |
- |
90 |
- newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} |
91 |
- newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN} |
92 |
-} |
93 |
|
94 |
diff --git a/app-misc/carbon-c-relay/carbon-c-relay-3.6-r1.ebuild b/app-misc/carbon-c-relay/carbon-c-relay-3.6-r1.ebuild |
95 |
deleted file mode 100644 |
96 |
index 9a577c441d5..00000000000 |
97 |
--- a/app-misc/carbon-c-relay/carbon-c-relay-3.6-r1.ebuild |
98 |
+++ /dev/null |
99 |
@@ -1,63 +0,0 @@ |
100 |
-# Copyright 1999-2021 Gentoo Authors |
101 |
-# Distributed under the terms of the GNU General Public License v2 |
102 |
- |
103 |
-EAPI=6 |
104 |
- |
105 |
-inherit user |
106 |
- |
107 |
-DESCRIPTION="Enhanced C version of Carbon relay, aggregator and rewriter" |
108 |
-HOMEPAGE="https://github.com/grobian/carbon-c-relay" |
109 |
-SRC_URI="https://github.com/grobian/carbon-c-relay/releases/download/v${PV}/${P}.tar.gz" |
110 |
- |
111 |
-LICENSE="Apache-2.0" |
112 |
-SLOT="0" |
113 |
-KEYWORDS="~amd64 ~arm ~ppc64 ~x64-macos ~x64-solaris ~x86-solaris" |
114 |
-IUSE="lz4 snappy zlib ssl pcre pcre2 +oniguruma" |
115 |
- |
116 |
-# ensure only one of pcre, pcre2 and oniguruma is set, or none (libc) |
117 |
-# unforunately pcre is in global USE, so we have to exclude that here |
118 |
-REQUIRED_USE=" |
119 |
- pcre2? ( !oniguruma ) |
120 |
- oniguruma? ( !pcre2 ) |
121 |
-" |
122 |
-RDEPEND="lz4? ( app-arch/lz4 ) |
123 |
- snappy? ( app-arch/snappy ) |
124 |
- zlib? ( app-arch/gzip ) |
125 |
- ssl? ( dev-libs/openssl:0= ) |
126 |
- !oniguruma? ( !pcre2? ( pcre? ( dev-libs/libpcre ) ) ) |
127 |
- pcre2? ( dev-libs/libpcre2 ) |
128 |
- oniguruma? ( dev-libs/oniguruma )" |
129 |
-DEPEND="${RDEPEND}" |
130 |
- |
131 |
-pkg_preinst() { |
132 |
- enewgroup carbon |
133 |
- enewuser carbon -1 -1 -1 carbon |
134 |
-} |
135 |
- |
136 |
-src_configure() { |
137 |
- local pcrecfg |
138 |
- if use !pcre2 && use !oniguruma ; then |
139 |
- pcrecfg=$(use_with pcre) |
140 |
- else |
141 |
- pcrecfg="--without-pcre" |
142 |
- fi |
143 |
- |
144 |
- econf $(use_with lz4) $(use_with snappy) \ |
145 |
- $(use_with ssl) $(use_with zlib gzip) \ |
146 |
- "${pcrecfg}" $(use_with pcre2) $(use_with oniguruma) |
147 |
-} |
148 |
- |
149 |
-src_install() { |
150 |
- default |
151 |
- |
152 |
- # rename too generic name |
153 |
- mv "${ED}"/usr/bin/{relay,${PN}} || die |
154 |
- |
155 |
- # remove libfaketime, necessary for testing only |
156 |
- rm -f "${ED}"/usr/$(get_libdir)/libfaketime.* |
157 |
- |
158 |
- dodoc ChangeLog.md |
159 |
- |
160 |
- newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} |
161 |
- newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN} |
162 |
-} |
163 |
|
164 |
diff --git a/app-misc/carbon-c-relay/files/carbon-c-relay.confd b/app-misc/carbon-c-relay/files/carbon-c-relay.confd |
165 |
deleted file mode 100644 |
166 |
index d2824644d3c..00000000000 |
167 |
--- a/app-misc/carbon-c-relay/files/carbon-c-relay.confd |
168 |
+++ /dev/null |
169 |
@@ -1,15 +0,0 @@ |
170 |
-# Copyright 1999-2015 Gentoo Foundation |
171 |
-# Distributed under the terms of the GNU General Public License v2 |
172 |
- |
173 |
-# routing file to read |
174 |
-#ROUTES_FILE=/etc/carbon-c-relay.conf |
175 |
- |
176 |
-# where to store the PID-file |
177 |
-#PIDFILE=/run/carbon-c-relay.pid |
178 |
- |
179 |
-# user and group to run carbon-c-relay as |
180 |
-#USER=carbon |
181 |
-#GROUP=carbon |
182 |
- |
183 |
-# any options to use when starting the relay |
184 |
-#EXTRA_OPTS= |
185 |
|
186 |
diff --git a/app-misc/carbon-c-relay/files/carbon-c-relay.initd b/app-misc/carbon-c-relay/files/carbon-c-relay.initd |
187 |
deleted file mode 100644 |
188 |
index 8d39afe05d4..00000000000 |
189 |
--- a/app-misc/carbon-c-relay/files/carbon-c-relay.initd |
190 |
+++ /dev/null |
191 |
@@ -1,70 +0,0 @@ |
192 |
-#!/sbin/openrc-run |
193 |
-# Copyright 1999-2015 Gentoo Foundation |
194 |
-# Distributed under the terms of the GNU General Public License v2 |
195 |
- |
196 |
-extra_commands="configtest" |
197 |
-extra_started_commands="reload" |
198 |
- |
199 |
-description="Lightweight graphite metrics router and aggregator." |
200 |
-description_configtest="Run carbon-c-relay's internal config check." |
201 |
-description_reload="Reload the carbon-c-relay configuration without losing connections." |
202 |
- |
203 |
-routes_config=${ROUTES_FILE:-/etc/${SVCNAME}.conf} |
204 |
- |
205 |
-command="/usr/bin/carbon-c-relay" |
206 |
-command_args="-f ${routes_config} ${EXTRA_OPTS}" |
207 |
-pidfile=${PIDFILE:-/run/${SVCNAME}.pid} |
208 |
-user=${USER:-carbon} |
209 |
-group=${GROUP:-carbon} |
210 |
- |
211 |
-depend() { |
212 |
- need net |
213 |
- use dns |
214 |
-} |
215 |
- |
216 |
-start_pre() { |
217 |
- if [ "${RC_CMD}" != "restart" ]; then |
218 |
- configtest || return 1 |
219 |
- fi |
220 |
- touch /var/log/${SVCNAME}.log |
221 |
- chown ${user}:${group} /var/log/${SVCNAME}.log |
222 |
-} |
223 |
- |
224 |
-stop_pre() { |
225 |
- if [ "${RC_CMD}" = "restart" ]; then |
226 |
- configtest || return 1 |
227 |
- fi |
228 |
-} |
229 |
- |
230 |
-stop_post() { |
231 |
- rm -f ${pidfile} |
232 |
-} |
233 |
- |
234 |
-start() { |
235 |
- ebegin "Starting ${SVCNAME}" |
236 |
- start-stop-daemon --start --background --make-pidfile --pidfile ${pidfile} \ |
237 |
- --stdout /var/log/${SVCNAME}.log \ |
238 |
- --stderr /var/log/${SVCNAME}.log \ |
239 |
- --user ${user} --group ${group} \ |
240 |
- --exec ${command} -- ${command_args} |
241 |
- eend $? |
242 |
-} |
243 |
- |
244 |
-stop() { |
245 |
- ebegin "Stopping ${SVCNAME}" |
246 |
- start-stop-daemon --stop --exec ${command} --pidfile ${pidfile} |
247 |
- eend $? |
248 |
-} |
249 |
- |
250 |
-reload() { |
251 |
- configtest || return 1 |
252 |
- ebegin "Refreshing ${SVCNAME}'s configuration" |
253 |
- kill -HUP $(< ${pidfile}) &>/dev/null |
254 |
- eend $? "Failed to reload ${SVCNAME}" |
255 |
-} |
256 |
- |
257 |
-configtest() { |
258 |
- ebegin "Checking ${SVCNAME}'s configuration" |
259 |
- ${command} -f "${routes_config}" -t < /dev/null > /dev/null |
260 |
- eend $? "failed, please correct errors above" |
261 |
-} |