Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: app-admin/rsyslog/files/, app-admin/rsyslog/files/8-stable/, app-admin/rsyslog/
Date: Sat, 29 Dec 2018 15:00:34
Message-Id: 1546095576.7676816593b960e7026bc42251b6fc07cc5dd8ea.blueness@gentoo
1 commit: 7676816593b960e7026bc42251b6fc07cc5dd8ea
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 29 14:59:36 2018 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 29 14:59:36 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=76768165
7
8 app-admin/rsyslog: sync with upstream
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 app-admin/rsyslog/Manifest | 8 +-
14 .../files/{8-stable => }/50-default-r1.conf | 0
15 app-admin/rsyslog/files/8-stable/50-default.conf | 95 -----
16 .../files/8-stable/rsyslog-8.18.0-musl-fix.patch | 10 -
17 ...og-8.24.0-fix-tcpflood-without-librelp-r1.patch | 160 -------
18 .../rsyslog-8.26.0-fix-zmq3-format-security.patch | 39 --
19 .../rsyslog-8.27.0-fix-mmnormalize-tests.patch | 23 -
20 ...yslog-8.32.0-fix-building-without-curl-r3.patch | 137 ------
21 .../8-stable/rsyslog-8.34.0-fix-issue2612.patch | 13 -
22 .../rsyslog/files/{8-stable => }/README.gentoo | 0
23 .../files/rsyslog-8.40.0-fix-omusrmsg.patch | 13 +
24 .../rsyslog.logrotate => rsyslog-r1.logrotate} | 12 +-
25 .../rsyslog/files/{8-stable => }/rsyslog.conf | 0
26 .../rsyslog/files/{8-stable => }/rsyslog.confd-r1 | 0
27 .../rsyslog/files/{8-stable => }/rsyslog.initd-r1 | 2 +-
28 app-admin/rsyslog/metadata.xml | 7 +-
29 app-admin/rsyslog/rsyslog-8.32.0-r4.ebuild | 463 --------------------
30 app-admin/rsyslog/rsyslog-8.34.0.ebuild | 468 ---------------------
31 ...g-8.33.1-r1.ebuild => rsyslog-8.40.0-r1.ebuild} | 97 +++--
32 19 files changed, 78 insertions(+), 1469 deletions(-)
33
34 diff --git a/app-admin/rsyslog/Manifest b/app-admin/rsyslog/Manifest
35 index c2217cd..bd5a10e 100644
36 --- a/app-admin/rsyslog/Manifest
37 +++ b/app-admin/rsyslog/Manifest
38 @@ -1,6 +1,2 @@
39 -DIST rsyslog-8.32.0.tar.gz 2478990 BLAKE2B 21bfc93b55da107bec2eddb89cb42d76990ced2675caeb6e73183a109f9bc8293bde43f202bb56007f9ea4e49de385b004c158059cb13e8d3d376bf050ca445a SHA512 eea85d77bf3624fbad6f0838fa2a4af7c14d853c8f120f14cf697cdfda7f7e0692dab684d2ddd07fe44a0bcd50cf91baf69af1bb63dc9d60e19146f1150155ac
40 -DIST rsyslog-8.33.1.tar.gz 2494338 BLAKE2B 680ad2c062386e4e3e6c6e1a83cf0001d63da305edae9df527d1079a2fa13b8715e3cbfa211ca908e0005f1762becfd88369a7cd1488134564980137f0e98d86 SHA512 c4b426409e89463a8e8f7f9d0267f2fa1df1a84e947ce7bf91255db88b4cad5b7e607c476ba2db0543af069c44cdbb35330e0839696bf83668200e8ac009c6a0
41 -DIST rsyslog-8.34.0.tar.gz 2545544 BLAKE2B 66caf277a814563027183ecf267d76067c384adf8d6d7b8543203df9a7c37242722dd35445e4446aacf1e680f5f3957cea40ece8a284ef2a393b4a71e3a2b49c SHA512 69eaececa2f8b98799deac8e6cb2cf635a5117da7a21cbb0b880b7df1d83c6ccf16133dab099a6e5fb865f34c2dad164a1bf1952d16ca116af3b1dd35d15065e
42 -DIST rsyslog-docs-8.32.0.tar.gz 5368254 BLAKE2B 6d1efb191698bb1cfb03660167e5dcf9eea8f2fd2e459c350cd55aa24afcc5fb44d2bc0ef5590c6951326fbd0215aecbd59a6122e88ff449f566b37d1ee00d56 SHA512 e64eba3c40eab35e266826fb7e183418f38eb008f2a21ddf2c523d1e42aacaa20f882a561e5df67a979463048b58232fa82759645a21dc6962f6836ac8f57bce
43 -DIST rsyslog-docs-8.33.1.tar.gz 6770438 BLAKE2B e076688d7559c16986241149c00f6df603e2c90771222f4f91dc944fbdeace3dbc6e47fc82602f852a7407e064fe31df0a1c2940d521ae6ae21f5663518bfeb7 SHA512 fcc8ffee372c0b0dc2ab1b76dcf68a66ce820996cf2d46a2b5c6fd40e6fad5ef3c33da97a2e88956751597c20cf0c4a9b6537c22db0b3b46d1a734a9d9f95df5
44 -DIST rsyslog-docs-8.34.0.tar.gz 7419160 BLAKE2B 928e6a4044d6d2161483f934e6c2cd5e489a3ec95b823419d7d57b98a7dd6c73f4d28d17c238471592fe1c692b626b57c7bf647e926c1c38ff5a774e5d2defd5 SHA512 edf9aa63c777624c3dc27dfd64b38893b9b4c9b56941df1d7a8c6bc3cb4cbbfb83e8c356cbefeab7c688ecb6017b66ed99931cb71b69b7c927b4743548dd40d4
45 +DIST rsyslog-8.40.0.tar.gz 2726022 BLAKE2B 33f7f2018200a20b01dbfabeeab592aa09d530edd313bb13f16c47cf3f67aebd9c465af3f1e468ca3d352cd83e4f4eee567c6fd54bbaee1723bee56f4631b440 SHA512 3d5d4f92e37ad9bf3767d5d7fc87fcb7956656f676a9495c78abd12fe9072ec8763b50543b198308a71d5d919721fb9b84b6725dd83a9d9b8a1639d81382c0dd
46 +DIST rsyslog-doc-8.40.0.tar.gz 7709769 BLAKE2B cda3bbd005120e7100bb36cf4c0f99d3a037525c5451ead5957f4dfe06eaceeba8fb2e266f53203bee6fae97898774ee17862a52ca1dae99aeb3534bbfadcd60 SHA512 2e2f37336948984a8cf0e098eb46e61fe4de6366d63a98204ecd558f4e21b7c1f222659f7bdecdd22e0a61d34c442b4734dbe72a72e8716c768a900b954d473f
47
48 diff --git a/app-admin/rsyslog/files/8-stable/50-default-r1.conf b/app-admin/rsyslog/files/50-default-r1.conf
49 similarity index 100%
50 rename from app-admin/rsyslog/files/8-stable/50-default-r1.conf
51 rename to app-admin/rsyslog/files/50-default-r1.conf
52
53 diff --git a/app-admin/rsyslog/files/8-stable/50-default.conf b/app-admin/rsyslog/files/8-stable/50-default.conf
54 deleted file mode 100644
55 index 9ae8578..0000000
56 --- a/app-admin/rsyslog/files/8-stable/50-default.conf
57 +++ /dev/null
58 @@ -1,95 +0,0 @@
59 -#######################
60 -### DEFAULT ACTIONS ###
61 -#######################
62 -
63 -auth,authpriv.* action(
64 - type="omfile"
65 - File="/var/log/auth.log"
66 - FileCreateMode="0600"
67 - FileOwner="root"
68 - FileGroup="adm"
69 - Sync="off"
70 -)
71 -
72 -cron.* action(
73 - type="omfile"
74 - File="/var/log/cron.log"
75 - FileOwner="root"
76 - FileGroup="adm"
77 -)
78 -
79 -daemon.* action(
80 - type="omfile"
81 - File="/var/log/daemon.log"
82 - FileOwner="root"
83 - FileGroup="adm"
84 -)
85 -
86 -kern.* action(
87 - type="omfile"
88 - File="/var/log/kern.log"
89 - FileOwner="root"
90 - FileGroup="adm"
91 -)
92 -
93 -lpr.* action(
94 - type="omfile"
95 - File="/var/log/lpr.log"
96 - FileOwner="root"
97 - FileGroup="adm"
98 -)
99 -
100 -mail.* action(
101 - type="omfile"
102 - File="/var/log/mail.log"
103 - FileOwner="root"
104 - FileGroup="adm"
105 -)
106 -
107 -news.* action(
108 - type="omfile"
109 - File="/var/log/news.log"
110 - FileOwner="root"
111 - FileGroup="adm"
112 -)
113 -
114 -user.* action(
115 - type="omfile"
116 - File="/var/log/user.log"
117 - FileOwner="root"
118 - FileGroup="adm"
119 -)
120 -
121 -*.=debug;auth,authpriv,news,mail.none action(
122 - type="omfile"
123 - File="/var/log/debug.log"
124 - FileOwner="root"
125 - FileGroup="adm"
126 -)
127 -
128 -*.info;auth,authpriv,cron,daemon,lpr,mail,news.none action(
129 - type="omfile"
130 - File="/var/log/messages"
131 - FileOwner="root"
132 - FileGroup="adm"
133 -)
134 -
135 -# Uncomment the following directive to re-enable the
136 -# deprecated "/var/log/syslog" log file (don't forget to re-enable log
137 -# rotation in "/etc/logrotate.d/rsyslog" if you do that!)
138 -#*.*;auth,authpriv.none action(
139 -# type="omfile"
140 -# File="/var/log/syslog"
141 -# FileOwner="root"
142 -# FileGroup="adm"
143 -#)
144 -
145 -*.emerg action(
146 - type="omusrmsg"
147 - Users="*"
148 - action.execOnlyOnceEveryInterval="10"
149 -)
150 -
151 -# Create an additional socket for the default chroot location
152 -# (used by net-misc/openssh[hpn], see https://bugs.gentoo.org/490744)
153 -input(type="imuxsock" Socket="/var/empty/dev/log")
154
155 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog-8.18.0-musl-fix.patch b/app-admin/rsyslog/files/8-stable/rsyslog-8.18.0-musl-fix.patch
156 deleted file mode 100644
157 index 3c5681d..0000000
158 --- a/app-admin/rsyslog/files/8-stable/rsyslog-8.18.0-musl-fix.patch
159 +++ /dev/null
160 @@ -1,10 +0,0 @@
161 ---- a/runtime/rsyslog.h
162 -+++ b/runtime/rsyslog.h
163 -@@ -643,3 +643,7 @@
164 - #endif
165 -
166 - #endif /* multi-include protection */
167 -+
168 -+#ifndef GLOB_BRACE
169 -+#define GLOB_BRACE 0
170 -+#endif
171
172 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog-8.24.0-fix-tcpflood-without-librelp-r1.patch b/app-admin/rsyslog/files/8-stable/rsyslog-8.24.0-fix-tcpflood-without-librelp-r1.patch
173 deleted file mode 100644
174 index a03a656..0000000
175 --- a/app-admin/rsyslog/files/8-stable/rsyslog-8.24.0-fix-tcpflood-without-librelp-r1.patch
176 +++ /dev/null
177 @@ -1,160 +0,0 @@
178 -Patch to allow building of tcpflood without librelp
179 -
180 -Cherry pick of
181 -https://github.com/rsyslog/rsyslog/commit/73e3b7ab2f8a3974d31844b492ad02d61ed5727f
182 -https://github.com/rsyslog/rsyslog/pull/1493
183 -
184 -
185 -Gentoo-Bug: https://bugs.gentoo.org/613264
186 -Gentoo-Bug: https://bugs.gentoo.org/614424
187 -
188 -diff -u b/tests/tcpflood.c b/tests/tcpflood.c
189 ---- b/tests/tcpflood.c
190 -+++ b/tests/tcpflood.c
191 -@@ -96,7 +96,9 @@
192 - #include <string.h>
193 - #include <netinet/in.h>
194 - #include <pthread.h>
195 -+#ifdef ENABLE_RELP
196 - #include <librelp.h>
197 -+#endif
198 - #include <sys/resource.h>
199 - #include <sys/time.h>
200 - #include <errno.h>
201 -@@ -149,7 +151,9 @@
202 - static int numConnections = 1; /* number of connections to create */
203 - static int softLimitConnections = 0; /* soft connection limit, see -c option description */
204 - static int *sockArray; /* array of sockets to use */
205 -+#ifdef ENABLE_RELP
206 - static relpClt_t **relpCltArray; /* array of sockets to use */
207 -+#endif
208 - static int msgNum = 0; /* initial message number to start with */
209 - static int bShowProgress = 1; /* show progress messages */
210 - static int bSilent = 0; /* completely silent operation */
211 -@@ -216,6 +220,7 @@
212 - static int sendTLS(int i, char *buf, int lenBuf);
213 - static void closeTLSSess(int __attribute__((unused)) i);
214 -
215 -+#ifdef ENABLE_RELP
216 - /* RELP subsystem */
217 - #pragma GCC diagnostic push
218 - #pragma GCC diagnostic ignored "-Wformat-security"
219 -@@ -235,6 +240,7 @@
220 - CHKRELP(relpEngineSetEnableCmd(pRelpEngine, (unsigned char*)"syslog",
221 - eRelpCmdState_Required));
222 - }
223 -+#endif /* #ifdef ENABLE_RELP */
224 -
225 - /* prepare send subsystem for UDP send */
226 - static int
227 -@@ -273,6 +279,7 @@
228 - port = targetPort;
229 - }
230 - if(transport == TP_RELP_PLAIN) {
231 -+ #ifdef ENABLE_RELP
232 - relpRetVal relp_r;
233 - relpClt_t *relpClt;
234 - char relpPort[16];
235 -@@ -286,6 +293,7 @@
236 - return(1);
237 - }
238 - *fd = 1; /* mimic "all ok" state */
239 -+ #endif
240 - } else { /* TCP, with or without TLS */
241 - if((sock=socket(AF_INET, SOCK_STREAM, 0))==-1) {
242 - perror("\nsocket()");
243 -@@ -336,8 +344,10 @@
244 - sessArray = calloc(numConnections, sizeof(gnutls_session_t));
245 - # endif
246 - sockArray = calloc(numConnections, sizeof(int));
247 -+ #ifdef ENABLE_RELP
248 - if(transport == TP_RELP_PLAIN)
249 - relpCltArray = calloc(numConnections, sizeof(relpClt_t*));
250 -+ #endif
251 - for(i = 0 ; i < numConnections ; ++i) {
252 - if(i % 10 == 0) {
253 - if(bShowProgress)
254 -@@ -356,8 +366,10 @@
255 - * at least something.
256 - */
257 - if(transport == TP_RELP_PLAIN) {
258 -+ #ifdef ENABLE_RELP
259 - CHKRELP(relpEngineCltDestruct(pRelpEngine,
260 - relpCltArray+i));
261 -+ #endif
262 - } else { /* TCP and TLS modes */
263 - if(transport == TP_TLS)
264 - closeTLSSess(i);
265 -@@ -403,14 +415,13 @@
266 -
267 - if(bShowProgress)
268 - if(write(1, " close connections", sizeof(" close connections")-1)){}
269 -- //if(transport == TP_RELP_PLAIN)
270 -- //sleep(10); /* we need to let librelp settle a bit */
271 - for(i = 0 ; i < numConnections ; ++i) {
272 - if(i % 10 == 0 && bShowProgress) {
273 - lenMsg = sprintf(msgBuf, "\r%5.5d", i);
274 - if(write(1, msgBuf, lenMsg)){}
275 - }
276 - if(transport == TP_RELP_PLAIN) {
277 -+ #ifdef ENABLE_RELP
278 - relpRetVal relpr;
279 - if(sockArray[i] != -1) {
280 - relpr = relpEngineCltDestruct(pRelpEngine, relpCltArray+i);
281 -@@ -419,6 +430,7 @@
282 - }
283 - sockArray[i] = -1;
284 - }
285 -+ #endif
286 - } else { /* TCP and TLS modes */
287 - if(sockArray[i] != -1) {
288 - /* we try to not overrun the receiver by trying to flush buffers
289 -@@ -610,6 +622,7 @@
290 - offsSendBuf = lenBuf;
291 - }
292 - } else if(transport == TP_RELP_PLAIN) {
293 -+ #ifdef ENABLE_RELP
294 - relpRetVal relp_ret;
295 - if(sockArray[socknum] == -1) {
296 - /* connection was dropped, need to re-establish */
297 -@@ -627,6 +640,7 @@
298 - printf("\nrelpCltSendSyslog() failed with relp error code %d\n",
299 - relp_ret);
300 - }
301 -+ #endif
302 - }
303 - if(lenSend != lenBuf) {
304 - printf("\r%5.5d\n", i);
305 -@@ -1106,7 +1120,9 @@
306 - transport = TP_RELP_PLAIN;
307 - # else
308 - fprintf(stderr, "compiled without RELP support: "
309 -- "\"-Trelp-plain\" not supported!\n");
310 -+ "\"-Trelp-plain\" not supported!\n"
311 -+ "(add --enable-relp to ./configure options "
312 -+ "if desired)\n");
313 - exit(1);
314 - # endif
315 - } else {
316 -@@ -1168,7 +1184,9 @@
317 - if(transport == TP_TLS) {
318 - initTLS();
319 - } else if(transport == TP_RELP_PLAIN) {
320 -+ #ifdef ENABLE_RELP
321 - initRELP_PLAIN();
322 -+ #endif
323 - }
324 -
325 - if(openConnections() != 0) {
326 -@@ -1183,9 +1201,11 @@
327 -
328 - closeConnections(); /* this is important so that we do not finish too early! */
329 -
330 -+ #ifdef ENABLE_RELP
331 - if(transport == TP_RELP_PLAIN) {
332 - CHKRELP(relpEngineDestruct(&pRelpEngine));
333 - }
334 -+ #endif
335 -
336 - if(nConnDrops > 0 && !bSilent)
337 - printf("-D option initiated %ld connection closures\n", nConnDrops);
338
339 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog-8.26.0-fix-zmq3-format-security.patch b/app-admin/rsyslog/files/8-stable/rsyslog-8.26.0-fix-zmq3-format-security.patch
340 deleted file mode 100644
341 index b285798..0000000
342 --- a/app-admin/rsyslog/files/8-stable/rsyslog-8.26.0-fix-zmq3-format-security.patch
343 +++ /dev/null
344 @@ -1,39 +0,0 @@
345 ---- a/contrib/imzmq3/imzmq3.c
346 -+++ b/contrib/imzmq3/imzmq3.c
347 -@@ -403,7 +403,7 @@ static rsRetVal createSocket(instanceConf_t* info, void** sock) {
348 -
349 - /* Do the bind/connect... */
350 - if (info->action==ACTION_CONNECT) {
351 -- rv = zsocket_connect(*sock, info->description);
352 -+ rv = zsocket_connect(*sock, "%s", info->description);
353 - if (rv == -1) {
354 - errmsg.LogError(0,
355 - RS_RET_INVALID_PARAMS,
356 -@@ -413,7 +413,7 @@ static rsRetVal createSocket(instanceConf_t* info, void** sock) {
357 - }
358 - DBGPRINTF("imzmq3: connect for %s successful\n",info->description);
359 - } else {
360 -- rv = zsocket_bind(*sock, info->description);
361 -+ rv = zsocket_bind(*sock, "%s", info->description);
362 - if (rv == -1) {
363 - errmsg.LogError(0,
364 - RS_RET_INVALID_PARAMS,
365 ---- a/contrib/omzmq3/omzmq3.c
366 -+++ b/contrib/omzmq3/omzmq3.c
367 -@@ -242,14 +242,14 @@ static rsRetVal initZMQ(instanceData* pData) {
368 - if (pData->action == ACTION_BIND) {
369 - /* bind asserts, so no need to test return val here
370 - which isn't the greatest api -- oh well */
371 -- if(-1 == zsocket_bind(pData->socket, (char*)pData->description)) {
372 -+ if(-1 == zsocket_bind(pData->socket, "%s", (char*)pData->description)) {
373 - errmsg.LogError(0, RS_RET_NO_ERRCODE, "omzmq3: bind failed for %s: %s",
374 - pData->description, zmq_strerror(errno));
375 - ABORT_FINALIZE(RS_RET_NO_ERRCODE);
376 - }
377 - DBGPRINTF("omzmq3: bind to %s successful\n",pData->description);
378 - } else {
379 -- if(-1 == zsocket_connect(pData->socket, (char*)pData->description)) {
380 -+ if(-1 == zsocket_connect(pData->socket, "%s", (char*)pData->description)) {
381 - errmsg.LogError(0, RS_RET_NO_ERRCODE, "omzmq3: connect failed for %s: %s",
382 - pData->description, zmq_strerror(errno));
383 - ABORT_FINALIZE(RS_RET_NO_ERRCODE);
384
385 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog-8.27.0-fix-mmnormalize-tests.patch b/app-admin/rsyslog/files/8-stable/rsyslog-8.27.0-fix-mmnormalize-tests.patch
386 deleted file mode 100644
387 index 6ef7e64..0000000
388 --- a/app-admin/rsyslog/files/8-stable/rsyslog-8.27.0-fix-mmnormalize-tests.patch
389 +++ /dev/null
390 @@ -1,23 +0,0 @@
391 -https://github.com/rsyslog/rsyslog/pull/1791
392 ----
393 - tests/Makefile.am | 2 +-
394 - 1 file changed, 1 insertion(+), 1 deletion(-)
395 -
396 ---- a/tests/Makefile.am
397 -+++ b/tests/Makefile.am
398 -@@ -498,7 +498,6 @@ TESTS += msgvar-concurrency-array.sh \
399 - mmnormalize_processing_test2.sh \
400 - mmnormalize_processing_test3.sh \
401 - mmnormalize_processing_test4.sh
402 --endif
403 -
404 - if ENABLE_IMPTCP
405 - TESTS += \
406 -@@ -512,6 +511,7 @@ if LOGNORM_REGEX_SUPPORTED
407 - TESTS += \
408 - mmnormalize_regex.sh
409 - endif
410 -+endif
411 -
412 - if ENABLE_MMJSONPARSE
413 - TESTS += \
414
415 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog-8.32.0-fix-building-without-curl-r3.patch b/app-admin/rsyslog/files/8-stable/rsyslog-8.32.0-fix-building-without-curl-r3.patch
416 deleted file mode 100644
417 index 534183a..0000000
418 --- a/app-admin/rsyslog/files/8-stable/rsyslog-8.32.0-fix-building-without-curl-r3.patch
419 +++ /dev/null
420 @@ -1,137 +0,0 @@
421 -https://github.com/rsyslog/rsyslog/commit/d9475f133e3c79875a7c4ccd92038b7123c1f155
422 -https://github.com/rsyslog/rsyslog/commit/468eeb79b8da91fb71dfef6bfb25476b2a37f446
423 -https://github.com/rsyslog/rsyslog/commit/50205ced0fc22e74f26f2a07b557b69c5d30e168
424 -
425 ---- a/grammar/rainerscript.c
426 -+++ b/grammar/rainerscript.c
427 -@@ -1935,6 +1935,7 @@ num2ipv4(struct svar *__restrict__ const sourceVal) {
428 - return(estr);
429 - }
430 -
431 -+#ifdef HAVE_LIBCURL
432 - /* curl callback for doFunc_http_request */
433 - static size_t
434 - curlResult(void *ptr, size_t size, size_t nmemb, void *userdata)
435 -@@ -2010,6 +2011,7 @@ doFunc_http_request(struct cnffunc *__restrict__ const func,
436 - }
437 - RETiRet;
438 - }
439 -+#endif
440 -
441 - static int ATTR_NONNULL(1,3,4)
442 - doFunc_is_time(const char *__restrict__ const str,
443 -@@ -2513,11 +2515,16 @@ doFuncCall(struct cnffunc *__restrict__ const func, struct svar *__restrict__ co
444 - if(bMustFree2) free(str2);
445 - break;
446 - case CNFFUNC_HTTP_REQUEST:
447 -+#ifdef HAVE_LIBCURL
448 - cnfexprEval(func->expr[0], &r[0], usrptr, pWti);
449 - str = (char*) var2CString(&r[0], &bMustFree);
450 - doFunc_http_request(func, ret, str);
451 - if(bMustFree) free(str);
452 - varFreeMembers(&r[0]);
453 -+#else
454 -+ LogError(0, RS_RET_INTERNAL_ERROR,
455 -+ "rainerscript: internal error: HTTP_Fetch not supported, not built with libcurl support");
456 -+#endif
457 - break;
458 - default:
459 - if(Debug) {
460 -
461 ---- a/configure.ac
462 -+++ b/configure.ac
463 -@@ -454,6 +454,8 @@ if test "$enable_libcurl" = "yes"; then
464 - )
465 - fi
466 -
467 -+AM_CONDITIONAL(ENABLE_LIBCURL, test "x${enable_libcurl}" = "xyes")
468 -+
469 - # klog
470 - AC_ARG_ENABLE(klog,
471 - [AS_HELP_STRING([--enable-klog],[Integrated klog functionality @<:@default=yes@:>@])],
472 -
473 ---- a/tests/Makefile.am
474 -+++ b/tests/Makefile.am
475 -@@ -226,7 +226,6 @@ TESTS += \
476 - rscript_contains.sh \
477 - rscript_bare_var_root.sh \
478 - rscript_bare_var_root-empty.sh \
479 -- rscript_http_request.sh \
480 - rscript_ipv42num.sh \
481 - rscript_field.sh \
482 - rscript_stop.sh \
483 -@@ -305,7 +304,11 @@ TESTS += \
484 - lookup_table_rscript_reload.sh \
485 - lookup_table_rscript_reload_without_stub.sh \
486 - multiple_lookup_tables.sh
487 --endif
488 -+if ENABLE_LIBCURL
489 -+TESTS += \
490 -+ rscript_http_request.sh
491 -+endif # ENABLE_LIBCURL
492 -+endif # ENABLE_TESTBENCH2
493 -
494 - if HAVE_VALGRIND
495 - TESTS += \
496 -@@ -313,7 +316,6 @@ TESTS += \
497 - mmexternal-InvldProg-vg.sh \
498 - internal-errmsg-memleak-vg.sh \
499 - rscript_set_memleak-vg.sh \
500 -- rscript_http_request-vg.sh \
501 - no-parser-vg.sh \
502 - discard-rptdmsg-vg.sh \
503 - discard-allmark-vg.sh \
504 -@@ -338,6 +340,10 @@ TESTS += \
505 - multiple_lookup_tables-vg.sh \
506 - fac_local0-vg.sh \
507 - rscript_trim-vg.sh
508 -+if ENABLE_LIBCURL
509 -+TESTS += \
510 -+ rscript_http_request-vg.sh
511 -+endif # ENABLE_LIBCURL
512 - endif # HAVE_VALGRIND
513 -
514 - if ENABLE_ROOT_TESTS
515 -
516 ---- a/grammar/Makefile.am
517 -+++ b/grammar/Makefile.am
518 -@@ -12,8 +12,11 @@ libgrammar_la_SOURCES = \
519 - parserif.h \
520 - grammar.h
521 - libgrammar_la_CPPFLAGS = $(RSRT_CFLAGS) $(LIBLOGGING_STDLOG_CFLAGS)
522 --#libgrammar_la_LIBADD = $(CURL_LIBS) $(RSRT_LIBS) $(SOL_LIBS)
523 --libgrammar_la_LIBADD = $(CURL_LIBS)
524 -+libgrammar_la_LIBADD =
525 -+if ENABLE_LIBCURL
526 -+libgrammar_la_CPPFLAGS += $(CURL_CFLAGS)
527 -+libgrammar_la_LIBADD += $(CURL_LIBS)
528 -+endif
529 -
530 - #testdriver_SOURCES = testdriver.c libgrammar.la
531 - #testdriver_CPPFLAGS = $(RSRT_CFLAGS)
532 -
533 ---- a/plugins/omelasticsearch/Makefile.am
534 -+++ b/plugins/omelasticsearch/Makefile.am
535 -@@ -1,7 +1,7 @@
536 - pkglib_LTLIBRARIES = omelasticsearch.la
537 -
538 - omelasticsearch_la_SOURCES = omelasticsearch.c
539 --omelasticsearch_la_CPPFLAGS = $(RSRT_CFLAGS) $(PTHREADS_CFLAGS)
540 -+omelasticsearch_la_CPPFLAGS = $(RSRT_CFLAGS) $(PTHREADS_CFLAGS) $(CURL_CFLAGS)
541 - omelasticsearch_la_LDFLAGS = -module -avoid-version
542 - omelasticsearch_la_LIBADD = $(CURL_LIBS) $(LIBM)
543 -
544 ---- a/grammar/rainerscript.c
545 -+++ b/grammar/rainerscript.c
546 -@@ -36,7 +36,11 @@
547 - #include <sys/types.h>
548 - #include <libestr.h>
549 - #include <time.h>
550 -+
551 -+#ifdef HAVE_LIBCURL
552 - #include <curl/curl.h>
553 -+#endif
554 -+
555 - #include "rsyslog.h"
556 - #include "rainerscript.h"
557 - #include "conf.h"
558
559 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog-8.34.0-fix-issue2612.patch b/app-admin/rsyslog/files/8-stable/rsyslog-8.34.0-fix-issue2612.patch
560 deleted file mode 100644
561 index 4e9e566..0000000
562 --- a/app-admin/rsyslog/files/8-stable/rsyslog-8.34.0-fix-issue2612.patch
563 +++ /dev/null
564 @@ -1,13 +0,0 @@
565 -https://github.com/rsyslog/rsyslog/issues/2612
566 -
567 ---- a/configure.ac
568 -+++ b/configure.ac
569 -@@ -254,7 +254,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM(, return __builtin_expect(main != 0, 1))],
570 - # speeds up processig.
571 - # note that when automic operations are enabled but not available, they
572 - # will silently NOT be used!
573 --AC_ARG_ENABLE(regexp,
574 -+AC_ARG_ENABLE(atomic_operations,
575 - [AS_HELP_STRING([--enable-atomic-operations],[Enable atomic operation support @<:@default=yes@:>@])],
576 - [case "${enableval}" in
577 - yes) enable_atomic_operations="yes" ;;
578
579 diff --git a/app-admin/rsyslog/files/8-stable/README.gentoo b/app-admin/rsyslog/files/README.gentoo
580 similarity index 100%
581 rename from app-admin/rsyslog/files/8-stable/README.gentoo
582 rename to app-admin/rsyslog/files/README.gentoo
583
584 diff --git a/app-admin/rsyslog/files/rsyslog-8.40.0-fix-omusrmsg.patch b/app-admin/rsyslog/files/rsyslog-8.40.0-fix-omusrmsg.patch
585 new file mode 100644
586 index 0000000..9247d0b
587 --- /dev/null
588 +++ b/app-admin/rsyslog/files/rsyslog-8.40.0-fix-omusrmsg.patch
589 @@ -0,0 +1,13 @@
590 +https://github.com/rsyslog/rsyslog/issues/3346
591 +
592 +--- a/tools/omusrmsg.c
593 ++++ b/tools/omusrmsg.c
594 +@@ -261,7 +261,7 @@ static rsRetVal wallmsg(uchar* pMsg, instanceData *pData)
595 +
596 + /* compute the device name */
597 + strcpy(p, _PATH_DEV);
598 +- memcpy(p, ut.ut_line, UNAMESZ);
599 ++ strncat(p, ut.ut_line, UNAMESZ);
600 +
601 + /* we must be careful when writing to the terminal. A terminal may block
602 + * (for example, a user has pressed <ctl>-s). In that case, we can not
603
604 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog.logrotate b/app-admin/rsyslog/files/rsyslog-r1.logrotate
605 similarity index 52%
606 rename from app-admin/rsyslog/files/8-stable/rsyslog.logrotate
607 rename to app-admin/rsyslog/files/rsyslog-r1.logrotate
608 index 1eae30e..3a92ba3 100644
609 --- a/app-admin/rsyslog/files/8-stable/rsyslog.logrotate
610 +++ b/app-admin/rsyslog/files/rsyslog-r1.logrotate
611 @@ -9,7 +9,11 @@
612 # delaycompress
613 # compress
614 # postrotate
615 -# test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null
616 +# if type -p systemctl 2>&1 1>/dev/null && systemctl is-system-running 2>&1 1>/dev/null ; then
617 +# systemctl kill -s HUP rsyslog.service
618 +# else
619 +# test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) 2>&1 1>/dev/null
620 +# fi
621 # endscript
622 #}
623
624 @@ -32,6 +36,10 @@
625 delaycompress
626 sharedscripts
627 postrotate
628 - test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null
629 + if type -p systemctl 2>&1 1>/dev/null && systemctl is-system-running 2>&1 1>/dev/null ; then
630 + systemctl kill -s HUP rsyslog.service
631 + else
632 + test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) 2>&1 1>/dev/null
633 + fi
634 endscript
635 }
636
637 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog.conf b/app-admin/rsyslog/files/rsyslog.conf
638 similarity index 100%
639 rename from app-admin/rsyslog/files/8-stable/rsyslog.conf
640 rename to app-admin/rsyslog/files/rsyslog.conf
641
642 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog.confd-r1 b/app-admin/rsyslog/files/rsyslog.confd-r1
643 similarity index 100%
644 rename from app-admin/rsyslog/files/8-stable/rsyslog.confd-r1
645 rename to app-admin/rsyslog/files/rsyslog.confd-r1
646
647 diff --git a/app-admin/rsyslog/files/8-stable/rsyslog.initd-r1 b/app-admin/rsyslog/files/rsyslog.initd-r1
648 similarity index 97%
649 rename from app-admin/rsyslog/files/8-stable/rsyslog.initd-r1
650 rename to app-admin/rsyslog/files/rsyslog.initd-r1
651 index 7d7aa4b..8d2ff8e 100644
652 --- a/app-admin/rsyslog/files/8-stable/rsyslog.initd-r1
653 +++ b/app-admin/rsyslog/files/rsyslog.initd-r1
654 @@ -1,5 +1,5 @@
655 #!/sbin/openrc-run
656 -# Copyright 1999-2015 Gentoo Foundation
657 +# Copyright 1999-2018 Gentoo Authors
658 # Distributed under the terms of the GNU General Public License v2
659
660 RSYSLOG_CONFIGFILE=${RSYSLOG_CONFIGFILE:-"/etc/rsyslog.conf"}
661
662 diff --git a/app-admin/rsyslog/metadata.xml b/app-admin/rsyslog/metadata.xml
663 index d785e23..ba4e59d 100644
664 --- a/app-admin/rsyslog/metadata.xml
665 +++ b/app-admin/rsyslog/metadata.xml
666 @@ -10,18 +10,20 @@
667 <flag name="dbi">Build the general database output module (requires <pkg>dev-db/libdbi</pkg>)</flag>
668 <flag name="elasticsearch">Build the Elasticsearch output module (requires <pkg>net-misc/curl</pkg>)</flag>
669 <flag name="gcrypt">Add support for encrypted log files using <pkg>dev-libs/libgcrypt</pkg></flag>
670 + <flag name="gnutls">Build the GnuTLS network stream driver (requires <pkg>net-libs/gnutls</pkg>)</flag>
671 <flag name="grok">Build the grok modify module (requires <pkg>dev-libs/grok</pkg>)</flag>
672 - <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations.</flag>
673 <flag name="kafka">Build the Apache Kafka input/output module (requires <pkg>dev-libs/librdkafka</pkg>)</flag>
674 <flag name="kerberos">Build the GSSAPI input and output module (requires <pkg>virtual/krb5</pkg>)</flag>
675 <flag name="kubernetes">Build the kubernetes modify plugin (requires <pkg>net-misc/curl</pkg>)</flag>
676 - <flag name="libressl">Use <pkg>dev-libs/libressl</pkg> for building the rfc5424hmac modify module (requires rfc5424hmac USE flag)</flag>
677 + <flag name="libressl">Use <pkg>dev-libs/libressl</pkg> instead of <pkg>dev-libs/openssl</pkg> (you still need to enable functionality which requires OpenSSL)</flag>
678 <flag name="mdblookup">Build the MaxMind DB lookup message modify plugin using <pkg>dev-libs/libmaxminddb</pkg></flag>
679 <flag name="mongodb">Build the MongoDB output module (requires <pkg>dev-libs/libmongo-client</pkg>)</flag>
680 <flag name="mysql">Build the MySQL database output module (requires <pkg>virtual/mysql</pkg>)</flag>
681 <flag name="normalize">Build the normalize modify module (requires <pkg>dev-libs/libee</pkg> and <pkg>dev-libs/liblognorm</pkg>)</flag>
682 + <flag name="omhttp">Build the http output module (requires <pkg>net-misc/curl</pkg>)</flag>
683 <flag name="omhttpfs">Build the httpfs output module (requires <pkg>net-misc/curl</pkg>)</flag>
684 <flag name="omudpspoof">Build the udpspoof output module (requires <pkg>net-libs/libnet</pkg>)</flag>
685 + <flag name="openssl">Build the OpenSSL network stream driver (requires <pkg>dev-libs/openssl</pkg>)</flag>
686 <flag name="postgres">Build the PostgreSQL database output module (requires <pkg>dev-db/postgresql</pkg>)</flag>
687 <flag name="rabbitmq">Build the RabbitMQ output module (requires <pkg>net-libs/rabbitmq-c</pkg>)</flag>
688 <flag name="redis">Build the Redis output module using (requires <pkg>dev-libs/hiredis</pkg>)</flag>
689 @@ -33,6 +35,7 @@
690 <flag name="systemd">Build the journal input and output module (requires <pkg>sys-apps/systemd</pkg>)</flag>
691 <flag name="uuid">Include UUIDs in messages (requires <pkg>sys-apps/util-linux</pkg>)</flag>
692 <flag name="usertools">Installs the user tools (rsgtutil, rscryutil...) corresponding to the set USE flags</flag>
693 + <flag name="xxhash">Enable xxHash support in fmhash module (requires <pkg>dev-libs/xxhash</pkg>)</flag>
694 <flag name="zeromq">Build the ZeroMQ input and output modules (requires <pkg>net-libs/czmq</pkg>)</flag>
695 </use>
696 <upstream>
697
698 diff --git a/app-admin/rsyslog/rsyslog-8.32.0-r4.ebuild b/app-admin/rsyslog/rsyslog-8.32.0-r4.ebuild
699 deleted file mode 100644
700 index 908fa22..0000000
701 --- a/app-admin/rsyslog/rsyslog-8.32.0-r4.ebuild
702 +++ /dev/null
703 @@ -1,463 +0,0 @@
704 -# Copyright 1999-2018 Gentoo Foundation
705 -# Distributed under the terms of the GNU General Public License v2
706 -
707 -EAPI="6"
708 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
709 -
710 -inherit autotools eutils linux-info python-any-r1 systemd
711 -
712 -DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
713 -HOMEPAGE="https://www.rsyslog.com/"
714 -
715 -BRANCH="8-stable"
716 -
717 -if [[ ${PV} == "9999" ]]; then
718 - EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"
719 -
720 - DOC_REPO_URI="https://github.com/rsyslog/${PN}-doc.git"
721 -
722 - inherit git-r3
723 -else
724 - MY_PV=${PV%_rc*}
725 - MY_FILENAME="${PN}-${PV}.tar.gz"
726 - MY_FILENAME_DOCS="${PN}-docs-${PV}.tar.gz"
727 - S="${WORKDIR}/${PN}-${MY_PV}"
728 -
729 - # Upstream URL schema:
730 - # RC: http://www.rsyslog.com/files/download/rsyslog/rc/rsyslog-8.18.0.tar.gz
731 - # http://www.rsyslog.com/files/download/rsyslog/rc2/rsyslog-8.18.0.tar.gz
732 - # Release: http://www.rsyslog.com/files/download/rsyslog/rsyslog-8.18.0.tar.gz
733 -
734 - MY_URL_PREFIX=
735 - if [[ ${PV} = *_rc* ]]; then
736 - _tmp_last_index=$(($(get_last_version_component_index ${PV})+1))
737 - _tmp_suffix=$(get_version_component_range ${_tmp_last_index} ${PV})
738 - if [[ ${_tmp_suffix} = *rc* ]]; then
739 - MY_URL_PREFIX="${_tmp_suffix}/"
740 - fi
741 -
742 - # Cleaning up temporary variables
743 - unset _tmp_last_index
744 - unset _tmp_suffix
745 - else
746 - KEYWORDS="amd64 arm arm64 x86"
747 - fi
748 -
749 - SRC_URI="
750 - https://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-${MY_PV}.tar.gz -> ${MY_FILENAME}
751 - doc? ( https://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-doc-${MY_PV}.tar.gz -> ${MY_FILENAME_DOCS} )
752 - "
753 -
754 - PATCHES=(
755 - "${FILESDIR}"/8-stable/${PN}-8.32.0-fix-building-without-curl-r3.patch
756 - "${FILESDIR}"/8-stable/${PN}-8.18.0-musl-fix.patch
757 - )
758 -fi
759 -
760 -LICENSE="GPL-3 LGPL-3 Apache-2.0"
761 -SLOT="0"
762 -IUSE="curl dbi debug doc elasticsearch +gcrypt grok jemalloc kafka kerberos libressl mdblookup mongodb mysql normalize omhttpfs"
763 -IUSE+=" omudpspoof postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools +uuid zeromq"
764 -
765 -RDEPEND="
766 - >=dev-libs/libfastjson-0.99.8:=
767 - >=dev-libs/libestr-0.1.9
768 - >=dev-libs/liblogging-1.0.1:=[stdlog]
769 - >=sys-libs/zlib-1.2.5
770 - curl? ( >=net-misc/curl-7.35.0 )
771 - dbi? ( >=dev-db/libdbi-0.8.3 )
772 - elasticsearch? ( >=net-misc/curl-7.35.0 )
773 - gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= )
774 - grok? ( >=dev-libs/grok-0.9.2 )
775 - jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
776 - kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
777 - kerberos? ( virtual/krb5 )
778 - mdblookup? ( dev-libs/libmaxminddb:= )
779 - mongodb? ( >=dev-libs/mongo-c-driver-1.1.10:= )
780 - mysql? ( virtual/libmysqlclient:= )
781 - normalize? (
782 - >=dev-libs/libee-0.4.0
783 - >=dev-libs/liblognorm-2.0.3:=
784 - )
785 - omhttpfs? ( >=net-misc/curl-7.35.0 )
786 - omudpspoof? ( >=net-libs/libnet-1.1.6 )
787 - postgres? ( >=dev-db/postgresql-8.4.20:= )
788 - rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
789 - redis? ( >=dev-libs/hiredis-0.11.0:= )
790 - relp? ( >=dev-libs/librelp-1.2.14:= )
791 - rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
792 - rfc5424hmac? (
793 - !libressl? ( >=dev-libs/openssl-0.9.8y:0= )
794 - libressl? ( dev-libs/libressl:= )
795 - )
796 - snmp? ( >=net-analyzer/net-snmp-5.7.2 )
797 - ssl? ( >=net-libs/gnutls-2.12.23:0= )
798 - systemd? ( >=sys-apps/systemd-234 )
799 - uuid? ( sys-apps/util-linux:0= )
800 - zeromq? (
801 - >=net-libs/czmq-3.0.2
802 - )"
803 -DEPEND="${RDEPEND}
804 - >=sys-devel/autoconf-archive-2015.02.24
805 - virtual/pkgconfig
806 - elibc_musl? ( sys-libs/queue )
807 - test? (
808 - jemalloc? ( <sys-libs/libfaketime-0.9.7 )
809 - !jemalloc? ( sys-libs/libfaketime )
810 - ${PYTHON_DEPS}
811 - )"
812 -
813 -if [[ ${PV} == "9999" ]]; then
814 - DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
815 - DEPEND+=" >=sys-devel/flex-2.5.39-r1"
816 - DEPEND+=" >=sys-devel/bison-2.4.3"
817 - DEPEND+=" >=dev-python/docutils-0.12"
818 -fi
819 -
820 -CONFIG_CHECK="~INOTIFY_USER"
821 -WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
822 -
823 -pkg_setup() {
824 - use test && python-any-r1_pkg_setup
825 -}
826 -
827 -src_unpack() {
828 - if [[ ${PV} == "9999" ]]; then
829 - git-r3_fetch
830 - git-r3_checkout
831 - else
832 - unpack ${P}.tar.gz
833 - fi
834 -
835 - if use doc; then
836 - if [[ ${PV} == "9999" ]]; then
837 - local _EGIT_BRANCH=
838 - if [[ -n "${EGIT_BRANCH}" ]]; then
839 - # Cannot use rsyslog commits/branches for documentation repository
840 - _EGIT_BRANCH=${EGIT_BRANCH}
841 - unset EGIT_BRANCH
842 - fi
843 -
844 - git-r3_fetch "${DOC_REPO_URI}"
845 - git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs
846 -
847 - if [[ -n "${_EGIT_BRANCH}" ]]; then
848 - # Restore previous EGIT_BRANCH information
849 - EGIT_BRANCH=${_EGIT_BRANCH}
850 - fi
851 - else
852 - cd "${S}" || die "Cannot change dir into '${S}'"
853 - mkdir docs || die "Failed to create docs directory"
854 - cd docs || die "Failed to change dir into '${S}/docs'"
855 - unpack ${MY_FILENAME_DOCS}
856 - fi
857 - fi
858 -}
859 -
860 -src_prepare() {
861 - default
862 -
863 - eautoreconf
864 -}
865 -
866 -src_configure() {
867 - # Maintainer notes:
868 - # * Guardtime support is missing because libgt isn't yet available
869 - # in portage.
870 - # * Hadoop's HDFS file system output module is currently not
871 - # supported in Gentoo because nobody is able to test it
872 - # (JAVA dependency).
873 - # * dev-libs/hiredis doesn't provide pkg-config (see #504614,
874 - # upstream PR 129 and 136) so we need to export HIREDIS_*
875 - # variables because rsyslog's build system depends on pkg-config.
876 -
877 - if use redis; then
878 - export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis"
879 - export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include"
880 - fi
881 -
882 - local myeconfargs=(
883 - --disable-debug-symbols
884 - --disable-generate-man-pages
885 - --without-valgrind-testbench
886 - $(use_enable test testbench)
887 - $(use_enable curl libcurl)
888 - # Input Plugins without depedencies
889 - --enable-imdiag
890 - --enable-imfile
891 - --enable-impstats
892 - --enable-imptcp
893 - # Message Modificiation Plugins without depedencies
894 - --enable-mmanon
895 - --enable-mmaudit
896 - --enable-mmcount
897 - --enable-mmfields
898 - --enable-mmjsonparse
899 - --enable-mmpstrucdata
900 - --enable-mmrm1stspace
901 - --enable-mmsequence
902 - --enable-mmutf8fix
903 - # Output Modification Plugins without dependencies
904 - --enable-mail
905 - --enable-omprog
906 - --enable-omruleset
907 - --enable-omstdout
908 - --enable-omuxsock
909 - # Misc
910 - --enable-pmaixforwardedfrom
911 - --enable-pmciscoios
912 - --enable-pmcisconames
913 - --enable-pmlastmsg
914 - --enable-pmsnare
915 - # DB
916 - $(use_enable dbi libdbi)
917 - $(use_enable mongodb ommongodb)
918 - $(use_enable mysql)
919 - $(use_enable postgres pgsql)
920 - $(use_enable redis omhiredis)
921 - # Debug
922 - $(use_enable debug)
923 - $(use_enable debug diagtools)
924 - $(use_enable debug memcheck)
925 - $(use_enable debug rtinst)
926 - $(use_enable debug valgrind)
927 - # Misc
928 - $(use_enable elasticsearch)
929 - $(use_enable gcrypt libgcrypt)
930 - $(use_enable jemalloc)
931 - $(use_enable kafka imkafka)
932 - $(use_enable kafka omkafka)
933 - $(use_enable kerberos gssapi-krb5)
934 - $(use_enable normalize mmnormalize)
935 - $(use_enable mdblookup mmdblookup)
936 - $(use_enable grok mmgrok)
937 - $(use_enable omhttpfs)
938 - $(use_enable omudpspoof)
939 - $(use_enable rabbitmq omrabbitmq)
940 - $(use_enable relp)
941 - $(use_enable rfc3195)
942 - $(use_enable rfc5424hmac mmrfc5424addhmac)
943 - $(use_enable snmp)
944 - $(use_enable snmp mmsnmptrapd)
945 - $(use_enable ssl gnutls)
946 - $(use_enable systemd imjournal)
947 - $(use_enable systemd omjournal)
948 - $(use_enable usertools)
949 - $(use_enable uuid)
950 - $(use_enable zeromq imczmq)
951 - $(use_enable zeromq omczmq)
952 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
953 - )
954 -
955 - econf "${myeconfargs[@]}"
956 -}
957 -
958 -src_compile() {
959 - default
960 -
961 - if use doc && [[ "${PV}" == "9999" ]]; then
962 - einfo "Building documentation ..."
963 - local doc_dir="${S}/docs"
964 - cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
965 - sphinx-build -b html source build || die "Building documentation failed!"
966 - fi
967 -}
968 -
969 -src_test() {
970 - local _has_increased_ulimit=
971 -
972 - # Sometimes tests aren't executable (i.e. when added via patch)
973 - einfo "Adjusting permissions of test scripts ..."
974 - find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
975 - die "Failed to adjust test scripts permission"
976 -
977 - if ulimit -n 3072; then
978 - _has_increased_ulimit="true"
979 - fi
980 -
981 - if ! emake --jobs 1 check; then
982 - eerror "Test suite failed! :("
983 -
984 - if [[ -z "${_has_increased_ulimit}" ]]; then
985 - eerror "Probably because open file limit couldn't be set to 3072."
986 - fi
987 -
988 - if has userpriv ${FEATURES}; then
989 - eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \
990 - "before you submit a bug report."
991 - fi
992 -
993 - fi
994 -}
995 -
996 -src_install() {
997 - local DOCS=(
998 - AUTHORS
999 - ChangeLog
1000 - "${FILESDIR}"/${BRANCH}/README.gentoo
1001 - )
1002 -
1003 - use doc && local HTML_DOCS=( "${S}/docs/build/." )
1004 -
1005 - default
1006 -
1007 - newconfd "${FILESDIR}/${BRANCH}/${PN}.confd-r1" ${PN}
1008 - newinitd "${FILESDIR}/${BRANCH}/${PN}.initd-r1" ${PN}
1009 -
1010 - keepdir /var/empty/dev
1011 - keepdir /var/spool/${PN}
1012 - keepdir /etc/ssl/${PN}
1013 - keepdir /etc/${PN}.d
1014 -
1015 - insinto /etc
1016 - newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf
1017 -
1018 - insinto /etc/rsyslog.d/
1019 - newins "${FILESDIR}/${BRANCH}/50-default-r1.conf" 50-default.conf
1020 -
1021 - insinto /etc/logrotate.d/
1022 - newins "${FILESDIR}/${BRANCH}/${PN}.logrotate" ${PN}
1023 -
1024 - if use mysql; then
1025 - insinto /usr/share/doc/${PF}/scripts/mysql
1026 - doins plugins/ommysql/createDB.sql
1027 - fi
1028 -
1029 - if use postgres; then
1030 - insinto /usr/share/doc/${PF}/scripts/pgsql
1031 - doins plugins/ompgsql/createDB.sql
1032 - fi
1033 -
1034 - prune_libtool_files --modules
1035 -}
1036 -
1037 -pkg_postinst() {
1038 - local advertise_readme=0
1039 -
1040 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1041 - # This is a new installation
1042 -
1043 - advertise_readme=1
1044 -
1045 - if use mysql || use postgres; then
1046 - echo
1047 - elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:"
1048 - elog " /usr/share/doc/${PF}/scripts"
1049 - fi
1050 -
1051 - if use ssl; then
1052 - echo
1053 - elog "To create a default CA and certificates for your server and clients, run:"
1054 - elog " emerge --config =${PF}"
1055 - elog "on your logging server. You can run it several times,"
1056 - elog "once for each logging client. The client certificates will be signed"
1057 - elog "using the CA certificate generated during the first run."
1058 - fi
1059 - fi
1060 -
1061 - if [[ ${advertise_readme} -gt 0 ]]; then
1062 - # We need to show the README file location
1063 -
1064 - echo ""
1065 - elog "Please read"
1066 - elog ""
1067 - elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
1068 - elog ""
1069 - elog "for more details."
1070 - fi
1071 -}
1072 -
1073 -pkg_config() {
1074 - if ! use ssl ; then
1075 - einfo "There is nothing to configure for rsyslog unless you"
1076 - einfo "used USE=ssl to build it."
1077 - return 0
1078 - fi
1079 -
1080 - # Make sure the certificates directory exists
1081 - local CERTDIR="${EROOT}/etc/ssl/${PN}"
1082 - if [[ ! -d "${CERTDIR}" ]]; then
1083 - mkdir "${CERTDIR}" || die
1084 - fi
1085 - einfo "Your certificates will be stored in ${CERTDIR}"
1086 -
1087 - # Create a default CA if needed
1088 - if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then
1089 - einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..."
1090 - certtool --generate-privkey \
1091 - --outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null
1092 - chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
1093 -
1094 - cat > "${T}/${PF}.$$" <<- _EOF
1095 - cn = Portage automated CA
1096 - ca
1097 - cert_signing_key
1098 - expiration_days = 3650
1099 - _EOF
1100 -
1101 - certtool --generate-self-signed \
1102 - --load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
1103 - --outfile "${CERTDIR}/${PN}_ca.cert.pem" \
1104 - --template "${T}/${PF}.$$" &>/dev/null
1105 - chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
1106 -
1107 - # Create the server certificate
1108 - echo
1109 - einfon "Please type the Common Name of the SERVER you wish to create a certificate for: "
1110 - read -r CN
1111 -
1112 - einfo "Creating private key and certificate for server ${CN}..."
1113 - certtool --generate-privkey \
1114 - --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
1115 - chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
1116 -
1117 - cat > "${T}/${PF}.$$" <<- _EOF
1118 - cn = ${CN}
1119 - tls_www_server
1120 - dns_name = ${CN}
1121 - expiration_days = 3650
1122 - _EOF
1123 -
1124 - certtool --generate-certificate \
1125 - --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
1126 - --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
1127 - --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
1128 - --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
1129 - --template "${T}/${PF}.$$" &>/dev/null
1130 - chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
1131 -
1132 - else
1133 - einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation."
1134 - fi
1135 -
1136 - # Create a client certificate
1137 - echo
1138 - einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: "
1139 - read -r CN
1140 -
1141 - einfo "Creating private key and certificate for client ${CN}..."
1142 - certtool --generate-privkey \
1143 - --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
1144 - chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
1145 -
1146 - cat > "${T}/${PF}.$$" <<- _EOF
1147 - cn = ${CN}
1148 - tls_www_client
1149 - dns_name = ${CN}
1150 - expiration_days = 3650
1151 - _EOF
1152 -
1153 - certtool --generate-certificate \
1154 - --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
1155 - --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
1156 - --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
1157 - --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
1158 - --template "${T}/${PF}.$$" &>/dev/null
1159 - chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
1160 -
1161 - rm -f "${T}/${PF}.$$"
1162 -
1163 - echo
1164 - einfo "Here is the documentation on how to encrypt your log traffic:"
1165 - einfo " http://www.rsyslog.com/doc/rsyslog_tls.html"
1166 -}
1167
1168 diff --git a/app-admin/rsyslog/rsyslog-8.34.0.ebuild b/app-admin/rsyslog/rsyslog-8.34.0.ebuild
1169 deleted file mode 100644
1170 index f47e7b9..0000000
1171 --- a/app-admin/rsyslog/rsyslog-8.34.0.ebuild
1172 +++ /dev/null
1173 @@ -1,468 +0,0 @@
1174 -# Copyright 1999-2018 Gentoo Foundation
1175 -# Distributed under the terms of the GNU General Public License v2
1176 -
1177 -EAPI="6"
1178 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
1179 -
1180 -inherit autotools eutils linux-info python-any-r1 systemd
1181 -
1182 -DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
1183 -HOMEPAGE="https://www.rsyslog.com/"
1184 -
1185 -BRANCH="8-stable"
1186 -
1187 -if [[ ${PV} == "9999" ]]; then
1188 - EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"
1189 -
1190 - DOC_REPO_URI="https://github.com/rsyslog/${PN}-doc.git"
1191 -
1192 - inherit git-r3
1193 -else
1194 - MY_PV=${PV%_rc*}
1195 - MY_FILENAME="${PN}-${PV}.tar.gz"
1196 - MY_FILENAME_DOCS="${PN}-docs-${PV}.tar.gz"
1197 - S="${WORKDIR}/${PN}-${MY_PV}"
1198 -
1199 - # Upstream URL schema:
1200 - # RC: https://www.rsyslog.com/files/download/rsyslog/rc/rsyslog-8.18.0.tar.gz
1201 - # https://www.rsyslog.com/files/download/rsyslog/rc2/rsyslog-8.18.0.tar.gz
1202 - # Release: https://www.rsyslog.com/files/download/rsyslog/rsyslog-8.18.0.tar.gz
1203 -
1204 - MY_URL_PREFIX=
1205 - if [[ ${PV} = *_rc* ]]; then
1206 - _tmp_last_index=$(($(get_last_version_component_index ${PV})+1))
1207 - _tmp_suffix=$(get_version_component_range ${_tmp_last_index} ${PV})
1208 - if [[ ${_tmp_suffix} = *rc* ]]; then
1209 - MY_URL_PREFIX="${_tmp_suffix}/"
1210 - fi
1211 -
1212 - # Cleaning up temporary variables
1213 - unset _tmp_last_index
1214 - unset _tmp_suffix
1215 - else
1216 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
1217 - fi
1218 -
1219 - SRC_URI="
1220 - https://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-${MY_PV}.tar.gz -> ${MY_FILENAME}
1221 - doc? ( https://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-doc-${MY_PV}.tar.gz -> ${MY_FILENAME_DOCS} )
1222 - "
1223 -
1224 - PATCHES=(
1225 - "${FILESDIR}"/${BRANCH}/${PN}-8.34.0-fix-issue2612.patch
1226 - "${FILESDIR}"/8-stable/${PN}-8.18.0-musl-fix.patch
1227 - )
1228 -fi
1229 -
1230 -LICENSE="GPL-3 LGPL-3 Apache-2.0"
1231 -SLOT="0"
1232 -IUSE="curl dbi debug doc elasticsearch +gcrypt grok jemalloc kafka kerberos kubernetes libressl mdblookup mongodb mysql"
1233 -IUSE+=" normalize omhttpfs omudpspoof postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools +uuid zeromq"
1234 -
1235 -RDEPEND="
1236 - >=dev-libs/libfastjson-0.99.8:=
1237 - >=dev-libs/libestr-0.1.9
1238 - >=dev-libs/liblogging-1.0.1:=[stdlog]
1239 - >=sys-libs/zlib-1.2.5
1240 - curl? ( >=net-misc/curl-7.35.0 )
1241 - dbi? ( >=dev-db/libdbi-0.8.3 )
1242 - elasticsearch? ( >=net-misc/curl-7.35.0 )
1243 - gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= )
1244 - grok? ( >=dev-libs/grok-0.9.2 )
1245 - jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
1246 - kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
1247 - kerberos? ( virtual/krb5 )
1248 - kubernetes? ( >=net-misc/curl-7.35.0 )
1249 - mdblookup? ( dev-libs/libmaxminddb:= )
1250 - mongodb? ( >=dev-libs/mongo-c-driver-1.1.10:= )
1251 - mysql? ( virtual/libmysqlclient:= )
1252 - normalize? (
1253 - >=dev-libs/libee-0.4.0
1254 - >=dev-libs/liblognorm-2.0.3:=
1255 - )
1256 - omhttpfs? ( >=net-misc/curl-7.35.0 )
1257 - omudpspoof? ( >=net-libs/libnet-1.1.6 )
1258 - postgres? ( >=dev-db/postgresql-8.4.20:= )
1259 - rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
1260 - redis? ( >=dev-libs/hiredis-0.11.0:= )
1261 - relp? ( >=dev-libs/librelp-1.2.14:= )
1262 - rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
1263 - rfc5424hmac? (
1264 - !libressl? ( >=dev-libs/openssl-0.9.8y:0= )
1265 - libressl? ( dev-libs/libressl:= )
1266 - )
1267 - snmp? ( >=net-analyzer/net-snmp-5.7.2 )
1268 - ssl? ( >=net-libs/gnutls-2.12.23:0= )
1269 - systemd? ( >=sys-apps/systemd-234 )
1270 - uuid? ( sys-apps/util-linux:0= )
1271 - zeromq? (
1272 - >=net-libs/czmq-3.0.2
1273 - )"
1274 -DEPEND="${RDEPEND}
1275 - >=sys-devel/autoconf-archive-2015.02.24
1276 - virtual/pkgconfig
1277 - elibc_musl? ( sys-libs/queue )
1278 - test? (
1279 - jemalloc? ( <sys-libs/libfaketime-0.9.7 )
1280 - !jemalloc? ( sys-libs/libfaketime )
1281 - ${PYTHON_DEPS}
1282 - )"
1283 -
1284 -REQUIRED_USE="kubernetes? ( normalize )"
1285 -
1286 -if [[ ${PV} == "9999" ]]; then
1287 - DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
1288 - DEPEND+=" >=sys-devel/flex-2.5.39-r1"
1289 - DEPEND+=" >=sys-devel/bison-2.4.3"
1290 - DEPEND+=" >=dev-python/docutils-0.12"
1291 -fi
1292 -
1293 -CONFIG_CHECK="~INOTIFY_USER"
1294 -WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
1295 -
1296 -pkg_setup() {
1297 - use test && python-any-r1_pkg_setup
1298 -}
1299 -
1300 -src_unpack() {
1301 - if [[ ${PV} == "9999" ]]; then
1302 - git-r3_fetch
1303 - git-r3_checkout
1304 - else
1305 - unpack ${P}.tar.gz
1306 - fi
1307 -
1308 - if use doc; then
1309 - if [[ ${PV} == "9999" ]]; then
1310 - local _EGIT_BRANCH=
1311 - if [[ -n "${EGIT_BRANCH}" ]]; then
1312 - # Cannot use rsyslog commits/branches for documentation repository
1313 - _EGIT_BRANCH=${EGIT_BRANCH}
1314 - unset EGIT_BRANCH
1315 - fi
1316 -
1317 - git-r3_fetch "${DOC_REPO_URI}"
1318 - git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs
1319 -
1320 - if [[ -n "${_EGIT_BRANCH}" ]]; then
1321 - # Restore previous EGIT_BRANCH information
1322 - EGIT_BRANCH=${_EGIT_BRANCH}
1323 - fi
1324 - else
1325 - cd "${S}" || die "Cannot change dir into '${S}'"
1326 - mkdir docs || die "Failed to create docs directory"
1327 - cd docs || die "Failed to change dir into '${S}/docs'"
1328 - unpack ${MY_FILENAME_DOCS}
1329 - fi
1330 - fi
1331 -}
1332 -
1333 -src_prepare() {
1334 - default
1335 -
1336 - eautoreconf
1337 -}
1338 -
1339 -src_configure() {
1340 - # Maintainer notes:
1341 - # * Guardtime support is missing because libgt isn't yet available
1342 - # in portage.
1343 - # * Hadoop's HDFS file system output module is currently not
1344 - # supported in Gentoo because nobody is able to test it
1345 - # (JAVA dependency).
1346 - # * dev-libs/hiredis doesn't provide pkg-config (see #504614,
1347 - # upstream PR 129 and 136) so we need to export HIREDIS_*
1348 - # variables because rsyslog's build system depends on pkg-config.
1349 -
1350 - if use redis; then
1351 - export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis"
1352 - export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include"
1353 - fi
1354 -
1355 - local myeconfargs=(
1356 - --disable-debug-symbols
1357 - --disable-generate-man-pages
1358 - --without-valgrind-testbench
1359 - $(use_enable test testbench)
1360 - $(use_enable curl libcurl)
1361 - # Input Plugins without depedencies
1362 - --enable-imdiag
1363 - --enable-imfile
1364 - --enable-impstats
1365 - --enable-imptcp
1366 - # Message Modificiation Plugins without depedencies
1367 - --enable-mmanon
1368 - --enable-mmaudit
1369 - --enable-mmcount
1370 - --enable-mmfields
1371 - --enable-mmjsonparse
1372 - --enable-mmpstrucdata
1373 - --enable-mmrm1stspace
1374 - --enable-mmsequence
1375 - --enable-mmutf8fix
1376 - # Output Modification Plugins without dependencies
1377 - --enable-mail
1378 - --enable-omprog
1379 - --enable-omruleset
1380 - --enable-omstdout
1381 - --enable-omuxsock
1382 - # Misc
1383 - --enable-pmaixforwardedfrom
1384 - --enable-pmciscoios
1385 - --enable-pmcisconames
1386 - --enable-pmlastmsg
1387 - --enable-pmsnare
1388 - # DB
1389 - $(use_enable dbi libdbi)
1390 - $(use_enable mongodb ommongodb)
1391 - $(use_enable mysql)
1392 - $(use_enable postgres pgsql)
1393 - $(use_enable redis omhiredis)
1394 - # Debug
1395 - $(use_enable debug)
1396 - $(use_enable debug diagtools)
1397 - $(use_enable debug memcheck)
1398 - $(use_enable debug rtinst)
1399 - $(use_enable debug valgrind)
1400 - # Misc
1401 - $(use_enable curl fmhttp)
1402 - $(use_enable elasticsearch)
1403 - $(use_enable gcrypt libgcrypt)
1404 - $(use_enable jemalloc)
1405 - $(use_enable kafka imkafka)
1406 - $(use_enable kafka omkafka)
1407 - $(use_enable kerberos gssapi-krb5)
1408 - $(use_enable kubernetes mmkubernetes)
1409 - $(use_enable normalize mmnormalize)
1410 - $(use_enable mdblookup mmdblookup)
1411 - $(use_enable grok mmgrok)
1412 - $(use_enable omhttpfs)
1413 - $(use_enable omudpspoof)
1414 - $(use_enable rabbitmq omrabbitmq)
1415 - $(use_enable relp)
1416 - $(use_enable rfc3195)
1417 - $(use_enable rfc5424hmac mmrfc5424addhmac)
1418 - $(use_enable snmp)
1419 - $(use_enable snmp mmsnmptrapd)
1420 - $(use_enable ssl gnutls)
1421 - $(use_enable systemd imjournal)
1422 - $(use_enable systemd omjournal)
1423 - $(use_enable usertools)
1424 - $(use_enable uuid)
1425 - $(use_enable zeromq imczmq)
1426 - $(use_enable zeromq omczmq)
1427 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
1428 - )
1429 -
1430 - econf "${myeconfargs[@]}"
1431 -}
1432 -
1433 -src_compile() {
1434 - default
1435 -
1436 - if use doc && [[ "${PV}" == "9999" ]]; then
1437 - einfo "Building documentation ..."
1438 - local doc_dir="${S}/docs"
1439 - cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
1440 - sphinx-build -b html source build || die "Building documentation failed!"
1441 - fi
1442 -}
1443 -
1444 -src_test() {
1445 - local _has_increased_ulimit=
1446 -
1447 - # Sometimes tests aren't executable (i.e. when added via patch)
1448 - einfo "Adjusting permissions of test scripts ..."
1449 - find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
1450 - die "Failed to adjust test scripts permission"
1451 -
1452 - if ulimit -n 3072; then
1453 - _has_increased_ulimit="true"
1454 - fi
1455 -
1456 - if ! emake --jobs 1 check; then
1457 - eerror "Test suite failed! :("
1458 -
1459 - if [[ -z "${_has_increased_ulimit}" ]]; then
1460 - eerror "Probably because open file limit couldn't be set to 3072."
1461 - fi
1462 -
1463 - if has userpriv ${FEATURES}; then
1464 - eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \
1465 - "before you submit a bug report."
1466 - fi
1467 -
1468 - fi
1469 -}
1470 -
1471 -src_install() {
1472 - local DOCS=(
1473 - AUTHORS
1474 - ChangeLog
1475 - "${FILESDIR}"/${BRANCH}/README.gentoo
1476 - )
1477 -
1478 - use doc && local HTML_DOCS=( "${S}/docs/build/." )
1479 -
1480 - default
1481 -
1482 - newconfd "${FILESDIR}/${BRANCH}/${PN}.confd-r1" ${PN}
1483 - newinitd "${FILESDIR}/${BRANCH}/${PN}.initd-r1" ${PN}
1484 -
1485 - keepdir /var/empty/dev
1486 - keepdir /var/spool/${PN}
1487 - keepdir /etc/ssl/${PN}
1488 - keepdir /etc/${PN}.d
1489 -
1490 - insinto /etc
1491 - newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf
1492 -
1493 - insinto /etc/rsyslog.d/
1494 - newins "${FILESDIR}/${BRANCH}/50-default-r1.conf" 50-default.conf
1495 -
1496 - insinto /etc/logrotate.d/
1497 - newins "${FILESDIR}/${BRANCH}/${PN}.logrotate" ${PN}
1498 -
1499 - if use mysql; then
1500 - insinto /usr/share/doc/${PF}/scripts/mysql
1501 - doins plugins/ommysql/createDB.sql
1502 - fi
1503 -
1504 - if use postgres; then
1505 - insinto /usr/share/doc/${PF}/scripts/pgsql
1506 - doins plugins/ompgsql/createDB.sql
1507 - fi
1508 -
1509 - prune_libtool_files --modules
1510 -}
1511 -
1512 -pkg_postinst() {
1513 - local advertise_readme=0
1514 -
1515 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
1516 - # This is a new installation
1517 -
1518 - advertise_readme=1
1519 -
1520 - if use mysql || use postgres; then
1521 - echo
1522 - elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:"
1523 - elog " /usr/share/doc/${PF}/scripts"
1524 - fi
1525 -
1526 - if use ssl; then
1527 - echo
1528 - elog "To create a default CA and certificates for your server and clients, run:"
1529 - elog " emerge --config =${PF}"
1530 - elog "on your logging server. You can run it several times,"
1531 - elog "once for each logging client. The client certificates will be signed"
1532 - elog "using the CA certificate generated during the first run."
1533 - fi
1534 - fi
1535 -
1536 - if [[ ${advertise_readme} -gt 0 ]]; then
1537 - # We need to show the README file location
1538 -
1539 - echo ""
1540 - elog "Please read"
1541 - elog ""
1542 - elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
1543 - elog ""
1544 - elog "for more details."
1545 - fi
1546 -}
1547 -
1548 -pkg_config() {
1549 - if ! use ssl ; then
1550 - einfo "There is nothing to configure for rsyslog unless you"
1551 - einfo "used USE=ssl to build it."
1552 - return 0
1553 - fi
1554 -
1555 - # Make sure the certificates directory exists
1556 - local CERTDIR="${EROOT}/etc/ssl/${PN}"
1557 - if [[ ! -d "${CERTDIR}" ]]; then
1558 - mkdir "${CERTDIR}" || die
1559 - fi
1560 - einfo "Your certificates will be stored in ${CERTDIR}"
1561 -
1562 - # Create a default CA if needed
1563 - if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then
1564 - einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..."
1565 - certtool --generate-privkey \
1566 - --outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null
1567 - chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
1568 -
1569 - cat > "${T}/${PF}.$$" <<- _EOF
1570 - cn = Portage automated CA
1571 - ca
1572 - cert_signing_key
1573 - expiration_days = 3650
1574 - _EOF
1575 -
1576 - certtool --generate-self-signed \
1577 - --load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
1578 - --outfile "${CERTDIR}/${PN}_ca.cert.pem" \
1579 - --template "${T}/${PF}.$$" &>/dev/null
1580 - chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
1581 -
1582 - # Create the server certificate
1583 - echo
1584 - einfon "Please type the Common Name of the SERVER you wish to create a certificate for: "
1585 - read -r CN
1586 -
1587 - einfo "Creating private key and certificate for server ${CN}..."
1588 - certtool --generate-privkey \
1589 - --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
1590 - chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
1591 -
1592 - cat > "${T}/${PF}.$$" <<- _EOF
1593 - cn = ${CN}
1594 - tls_www_server
1595 - dns_name = ${CN}
1596 - expiration_days = 3650
1597 - _EOF
1598 -
1599 - certtool --generate-certificate \
1600 - --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
1601 - --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
1602 - --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
1603 - --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
1604 - --template "${T}/${PF}.$$" &>/dev/null
1605 - chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
1606 -
1607 - else
1608 - einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation."
1609 - fi
1610 -
1611 - # Create a client certificate
1612 - echo
1613 - einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: "
1614 - read -r CN
1615 -
1616 - einfo "Creating private key and certificate for client ${CN}..."
1617 - certtool --generate-privkey \
1618 - --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null
1619 - chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
1620 -
1621 - cat > "${T}/${PF}.$$" <<- _EOF
1622 - cn = ${CN}
1623 - tls_www_client
1624 - dns_name = ${CN}
1625 - expiration_days = 3650
1626 - _EOF
1627 -
1628 - certtool --generate-certificate \
1629 - --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
1630 - --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
1631 - --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
1632 - --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
1633 - --template "${T}/${PF}.$$" &>/dev/null
1634 - chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
1635 -
1636 - rm -f "${T}/${PF}.$$"
1637 -
1638 - echo
1639 - einfo "Here is the documentation on how to encrypt your log traffic:"
1640 - einfo " https://www.rsyslog.com/doc/rsyslog_tls.html"
1641 -}
1642
1643 diff --git a/app-admin/rsyslog/rsyslog-8.33.1-r1.ebuild b/app-admin/rsyslog/rsyslog-8.40.0-r1.ebuild
1644 similarity index 83%
1645 rename from app-admin/rsyslog/rsyslog-8.33.1-r1.ebuild
1646 rename to app-admin/rsyslog/rsyslog-8.40.0-r1.ebuild
1647 index 9cf86ba..86fbb36 100644
1648 --- a/app-admin/rsyslog/rsyslog-8.33.1-r1.ebuild
1649 +++ b/app-admin/rsyslog/rsyslog-8.40.0-r1.ebuild
1650 @@ -1,16 +1,14 @@
1651 -# Copyright 1999-2018 Gentoo Foundation
1652 +# Copyright 1999-2018 Gentoo Authors
1653 # Distributed under the terms of the GNU General Public License v2
1654
1655 EAPI="6"
1656 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
1657 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
1658
1659 inherit autotools eutils linux-info python-any-r1 systemd
1660
1661 DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
1662 HOMEPAGE="https://www.rsyslog.com/"
1663
1664 -BRANCH="8-stable"
1665 -
1666 if [[ ${PV} == "9999" ]]; then
1667 EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"
1668
1669 @@ -18,50 +16,26 @@ if [[ ${PV} == "9999" ]]; then
1670
1671 inherit git-r3
1672 else
1673 - MY_PV=${PV%_rc*}
1674 - MY_FILENAME="${PN}-${PV}.tar.gz"
1675 - MY_FILENAME_DOCS="${PN}-docs-${PV}.tar.gz"
1676 - S="${WORKDIR}/${PN}-${MY_PV}"
1677 -
1678 - # Upstream URL schema:
1679 - # RC: http://www.rsyslog.com/files/download/rsyslog/rc/rsyslog-8.18.0.tar.gz
1680 - # http://www.rsyslog.com/files/download/rsyslog/rc2/rsyslog-8.18.0.tar.gz
1681 - # Release: http://www.rsyslog.com/files/download/rsyslog/rsyslog-8.18.0.tar.gz
1682 -
1683 - MY_URL_PREFIX=
1684 - if [[ ${PV} = *_rc* ]]; then
1685 - _tmp_last_index=$(($(get_last_version_component_index ${PV})+1))
1686 - _tmp_suffix=$(get_version_component_range ${_tmp_last_index} ${PV})
1687 - if [[ ${_tmp_suffix} = *rc* ]]; then
1688 - MY_URL_PREFIX="${_tmp_suffix}/"
1689 - fi
1690 -
1691 - # Cleaning up temporary variables
1692 - unset _tmp_last_index
1693 - unset _tmp_suffix
1694 - else
1695 - KEYWORDS="~amd64 ~arm ~arm64 ~x86"
1696 - fi
1697 + KEYWORDS="~amd64 ~arm ~x86"
1698
1699 SRC_URI="
1700 - https://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-${MY_PV}.tar.gz -> ${MY_FILENAME}
1701 - doc? ( https://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-doc-${MY_PV}.tar.gz -> ${MY_FILENAME_DOCS} )
1702 + https://www.rsyslog.com/files/download/${PN}/${P}.tar.gz
1703 + doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
1704 "
1705
1706 - PATCHES=(
1707 - "${FILESDIR}"/8-stable/${PN}-8.18.0-musl-fix.patch
1708 - )
1709 + PATCHES=( "${FILESDIR}"/${PN}-8.40.0-fix-omusrmsg.patch )
1710 fi
1711
1712 LICENSE="GPL-3 LGPL-3 Apache-2.0"
1713 SLOT="0"
1714 -IUSE="curl dbi debug doc elasticsearch +gcrypt grok jemalloc kafka kerberos libressl mdblookup mongodb mysql normalize omhttpfs"
1715 -IUSE+=" omudpspoof postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools +uuid zeromq"
1716 +IUSE="curl dbi debug doc elasticsearch +gcrypt grok gnutls jemalloc kafka kerberos kubernetes libressl mdblookup"
1717 +IUSE+=" mongodb mysql normalize omhttp omhttpfs omudpspoof openssl postgres rabbitmq redis relp rfc3195 rfc5424hmac"
1718 +IUSE+=" snmp ssl systemd test usertools +uuid xxhash zeromq"
1719 +RESTRICT="!test? ( test )"
1720
1721 RDEPEND="
1722 >=dev-libs/libfastjson-0.99.8:=
1723 >=dev-libs/libestr-0.1.9
1724 - >=dev-libs/liblogging-1.0.1:=[stdlog]
1725 >=sys-libs/zlib-1.2.5
1726 curl? ( >=net-misc/curl-7.35.0 )
1727 dbi? ( >=dev-db/libdbi-0.8.3 )
1728 @@ -71,6 +45,7 @@ RDEPEND="
1729 jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
1730 kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
1731 kerberos? ( virtual/krb5 )
1732 + kubernetes? ( >=net-misc/curl-7.35.0 )
1733 mdblookup? ( dev-libs/libmaxminddb:= )
1734 mongodb? ( >=dev-libs/mongo-c-driver-1.1.10:= )
1735 mysql? ( virtual/libmysqlclient:= )
1736 @@ -83,16 +58,23 @@ RDEPEND="
1737 postgres? ( >=dev-db/postgresql-8.4.20:= )
1738 rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
1739 redis? ( >=dev-libs/hiredis-0.11.0:= )
1740 - relp? ( >=dev-libs/librelp-1.2.14:= )
1741 + relp? ( >=dev-libs/librelp-1.2.17:= )
1742 rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
1743 rfc5424hmac? (
1744 !libressl? ( >=dev-libs/openssl-0.9.8y:0= )
1745 libressl? ( dev-libs/libressl:= )
1746 )
1747 snmp? ( >=net-analyzer/net-snmp-5.7.2 )
1748 - ssl? ( >=net-libs/gnutls-2.12.23:0= )
1749 + ssl? (
1750 + gnutls? ( >=net-libs/gnutls-2.12.23:0= )
1751 + openssl? (
1752 + !libressl? ( dev-libs/openssl:0= )
1753 + libressl? ( dev-libs/libressl:0= )
1754 + )
1755 + )
1756 systemd? ( >=sys-apps/systemd-234 )
1757 uuid? ( sys-apps/util-linux:0= )
1758 + xxhash? ( dev-libs/xxhash:= )
1759 zeromq? (
1760 >=net-libs/czmq-3.0.2
1761 )"
1762 @@ -101,11 +83,17 @@ DEPEND="${RDEPEND}
1763 virtual/pkgconfig
1764 elibc_musl? ( sys-libs/queue )
1765 test? (
1766 + >=dev-libs/liblogging-1.0.1[stdlog]
1767 jemalloc? ( <sys-libs/libfaketime-0.9.7 )
1768 !jemalloc? ( sys-libs/libfaketime )
1769 ${PYTHON_DEPS}
1770 )"
1771
1772 +REQUIRED_USE="
1773 + kubernetes? ( normalize )
1774 + ssl? ( || ( gnutls openssl ) )
1775 +"
1776 +
1777 if [[ ${PV} == "9999" ]]; then
1778 DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
1779 DEPEND+=" >=sys-devel/flex-2.5.39-r1"
1780 @@ -148,7 +136,7 @@ src_unpack() {
1781 cd "${S}" || die "Cannot change dir into '${S}'"
1782 mkdir docs || die "Failed to create docs directory"
1783 cd docs || die "Failed to change dir into '${S}/docs'"
1784 - unpack ${MY_FILENAME_DOCS}
1785 + unpack ${PN}-doc-${PV}.tar.gz
1786 fi
1787 fi
1788 }
1789 @@ -179,8 +167,10 @@ src_configure() {
1790 --disable-debug-symbols
1791 --disable-generate-man-pages
1792 --without-valgrind-testbench
1793 + --disable-liblogging-stdlog
1794 $(use_enable test testbench)
1795 - $(use_enable curl libcurl)
1796 + $(use_enable test libfaketime)
1797 + $(use_enable test extended-tests)
1798 # Input Plugins without depedencies
1799 --enable-imdiag
1800 --enable-imfile
1801 @@ -203,10 +193,15 @@ src_configure() {
1802 --enable-omstdout
1803 --enable-omuxsock
1804 # Misc
1805 + --enable-fmhash
1806 + $(use_enable xxhash fmhash-xxhash)
1807 --enable-pmaixforwardedfrom
1808 --enable-pmciscoios
1809 --enable-pmcisconames
1810 --enable-pmlastmsg
1811 + $(use_enable normalize pmnormalize)
1812 + --enable-pmnull
1813 + --enable-pmpanngfw
1814 --enable-pmsnare
1815 # DB
1816 $(use_enable dbi libdbi)
1817 @@ -217,19 +212,20 @@ src_configure() {
1818 # Debug
1819 $(use_enable debug)
1820 $(use_enable debug diagtools)
1821 - $(use_enable debug memcheck)
1822 - $(use_enable debug rtinst)
1823 $(use_enable debug valgrind)
1824 # Misc
1825 + $(use_enable curl fmhttp)
1826 $(use_enable elasticsearch)
1827 $(use_enable gcrypt libgcrypt)
1828 $(use_enable jemalloc)
1829 $(use_enable kafka imkafka)
1830 $(use_enable kafka omkafka)
1831 $(use_enable kerberos gssapi-krb5)
1832 + $(use_enable kubernetes mmkubernetes)
1833 $(use_enable normalize mmnormalize)
1834 $(use_enable mdblookup mmdblookup)
1835 $(use_enable grok mmgrok)
1836 + $(use_enable omhttp)
1837 $(use_enable omhttpfs)
1838 $(use_enable omudpspoof)
1839 $(use_enable rabbitmq omrabbitmq)
1840 @@ -238,7 +234,8 @@ src_configure() {
1841 $(use_enable rfc5424hmac mmrfc5424addhmac)
1842 $(use_enable snmp)
1843 $(use_enable snmp mmsnmptrapd)
1844 - $(use_enable ssl gnutls)
1845 + $(use_enable gnutls)
1846 + $(use_enable openssl)
1847 $(use_enable systemd imjournal)
1848 $(use_enable systemd omjournal)
1849 $(use_enable usertools)
1850 @@ -293,15 +290,15 @@ src_install() {
1851 local DOCS=(
1852 AUTHORS
1853 ChangeLog
1854 - "${FILESDIR}"/${BRANCH}/README.gentoo
1855 + "${FILESDIR}"/README.gentoo
1856 )
1857
1858 use doc && local HTML_DOCS=( "${S}/docs/build/." )
1859
1860 default
1861
1862 - newconfd "${FILESDIR}/${BRANCH}/${PN}.confd-r1" ${PN}
1863 - newinitd "${FILESDIR}/${BRANCH}/${PN}.initd-r1" ${PN}
1864 + newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
1865 + newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
1866
1867 keepdir /var/empty/dev
1868 keepdir /var/spool/${PN}
1869 @@ -309,13 +306,13 @@ src_install() {
1870 keepdir /etc/${PN}.d
1871
1872 insinto /etc
1873 - newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf
1874 + newins "${FILESDIR}/${PN}.conf" ${PN}.conf
1875
1876 insinto /etc/rsyslog.d/
1877 - newins "${FILESDIR}/${BRANCH}/50-default-r1.conf" 50-default.conf
1878 + newins "${FILESDIR}/50-default-r1.conf" 50-default.conf
1879
1880 insinto /etc/logrotate.d/
1881 - newins "${FILESDIR}/${BRANCH}/${PN}.logrotate" ${PN}
1882 + newins "${FILESDIR}/${PN}-r1.logrotate" ${PN}
1883
1884 if use mysql; then
1885 insinto /usr/share/doc/${PF}/scripts/mysql
1886 @@ -458,5 +455,5 @@ pkg_config() {
1887
1888 echo
1889 einfo "Here is the documentation on how to encrypt your log traffic:"
1890 - einfo " http://www.rsyslog.com/doc/rsyslog_tls.html"
1891 + einfo " https://www.rsyslog.com/doc/rsyslog_tls.html"
1892 }