1 |
commit: 865d33fa1c82dc1f6fed608780ea5c911087b6a1 |
2 |
Author: callmetango <callmetango <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Thu Mar 30 07:29:34 2017 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Mar 31 05:28:30 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=865d33fa |
7 |
|
8 |
app-admin/rsyslog: version bump to 8.25.0-r1 |
9 |
|
10 |
app-admin/rsyslog/Manifest | 3 +- |
11 |
...yslog-8.24.0-fix-tcpflood-without-librelp.patch | 152 +++++++++++++++++++++ |
12 |
...slog-8.25.0.ebuild => rsyslog-8.25.0-r1.ebuild} | 12 +- |
13 |
3 files changed, 160 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/rsyslog/Manifest b/app-admin/rsyslog/Manifest |
16 |
index 1d71d97..91e9443 100644 |
17 |
--- a/app-admin/rsyslog/Manifest |
18 |
+++ b/app-admin/rsyslog/Manifest |
19 |
@@ -2,11 +2,12 @@ AUX 8-stable/50-default.conf 1701 SHA256 61c1dd1450f574a21a8d8375faaf3e42f9856df |
20 |
AUX 8-stable/50-rsyslog-8.18.0-musl-fix.patch 300 SHA256 5b8420570bef57aeba55965bbbddb29f966b60a33ef9e7fc5f921820274080b0 SHA512 20967235e8233588210071a7157a81fe02a1e88d7c7f55855fcc2fe34295269a6e3e3bfccb3d4dd83a6a48da28948c92d6ce47a0c5d817f6b6a4030635f4f896 WHIRLPOOL e8a07737f7e282905bf92112b2d94303605cb2f8da0d5c0598f41bdb8d060a18f5d6f2b70a8f5f3feec5cb0a24109fdf4f2e1ebd0517e8063d72c763e345501f |
21 |
AUX 8-stable/50-rsyslog-8.18.0-musl-imptcp-queue.patch 20588 SHA256 8d6dda439c79dffac2a5d17e3d9a28355cfb8fc264175a871e27304ace259daa SHA512 de8b82781af2dfef67b2215782721cca2ee5db9d08ed3260f4e3390353a59bf4bd76701df682c4bf537ce817eabf79b062c4b2a3e20e4175e7d77ca08c5a700f WHIRLPOOL cf1d3c2e434c7843e9874b8138ecb3777cc4e384477b2c3936b9d5c10e13e2493461c433c58760a35ba20638c5acd1e03c7fae718f5d2a6b0017ea34e66b0a67 |
22 |
AUX 8-stable/README.gentoo 1126 SHA256 29b4c68f521f2f1f138f44c4635da1a270fed9cbd4a780569754080987aa777c SHA512 46fdf3350e2005d3ef588d50dfc6d474a1b5d3010329b656879a43cbbd7be0cd91944b88d3838f45f69c830fc28c42e7fac2cd52e0a4b24bb6780562d59ae384 WHIRLPOOL a1a3ec8b887110a01e8c1c1320f25493dd8ff343e4b08780c30c9bc3bb842afa0ef79db08195db876697c1a69807f49a8b3793609d25f78559fa534507fc195e |
23 |
+AUX 8-stable/rsyslog-8.24.0-fix-tcpflood-without-librelp.patch 5081 SHA256 a851f854e232276a60ea85dbb42d61218f2b3056c57a6421043b2263946d26bc SHA512 70487aa33dcb5c541620e04cc11003b74acb1047c40b984e14a9f95b1d9c19cbbb47b5948d9b5a7ccb053af77e309c3f613dfa7439dcc75b51a6da3b3a54d2ff WHIRLPOOL ffa2f35565afe13e632466c43bdca64dddf09abed93947407372b697810ef097c8501e6c8d1cda16db7adf5b89a85664bc24fdbcad97f284b71388d4b650763a |
24 |
AUX 8-stable/rsyslog.conf 1562 SHA256 fc70a94213b5eb519febf9aa7d758ee9526433bcc5683bcb7451d16e65a2f5b0 SHA512 1720174fab020e2de590f3d6bbb03784aca1928fe05f7e75e02fb4597cb8b2ee755e6deb8e8f989060511044ae483f791f496f24e0eecaf27eb9e0b5e20a2c7a WHIRLPOOL 97cf3fdee62a9339b412ebe93b71b2d6804df60aad9cb7e71779fcaddb01d489e38bbb353557864ea38aba384e664e6da636812c3c078ed9e22e261ed7b78cba |
25 |
AUX 8-stable/rsyslog.confd-r1 1145 SHA256 0be3575df8010523de6b37e98c417192e8ec481292ca9fb47c8d2211795e03a6 SHA512 a7f8621bdd490596b09f9a7583dd0c992006c55335b2e6e687bef4141bb18cd4bb43e23f590a138e9c8d5a3cbac0cc46c3b01c7d3ff9f9dd3c53418b13b0dd4a WHIRLPOOL 05079ab1a55aca9b68c81c8b7da66ff029f72c7168bd15faebf7d7172dddc69f6ffb2864e1fcd8c1f2dbb51416bea89fab3667a34ed7295b3abafc6a93883d3e |
26 |
AUX 8-stable/rsyslog.initd-r1 1765 SHA256 2c8800c31b8411899b49036bd51ed58a625ee8b7bd523b18d6ad8b7399da0324 SHA512 07a73ddd6e50b9d4ae7d9633c71b6e96e86f3348e242506d9f6a86a0f367e6bc671bed559f9d69232096e7dce7a062be7107794fc2564829d53f42d4d30d8daf WHIRLPOOL 734780723ae73f573c3104c35460e8ef9e5915433012c1a2ca987bea7de37a3a423315ca6f1da06dbf0af6fabc14051c89f7e682592d6ccaa1e39432d5648477 |
27 |
AUX 8-stable/rsyslog.logrotate 682 SHA256 89cc8f13c1f7a3ae446b40da7b31cdf471e2c9e2d3d5b8f48e524f7a82fbff89 SHA512 6c58abd2f02157177a61695f53eccbf201c514821b0c551a4812621e8d3dd2da9b5cd651d93860cb51ebdbdc7056d0ef0dde99c2a57ac3c43aa968a141805912 WHIRLPOOL 9d29c2c9351252887c3dad78962df942bb1cd7387eb44e3c98764319f82d90c42d255a5642c55bb37811fb903e1c5314ca536bc9d32ccfd0535f0579f4e25ff0 |
28 |
DIST rsyslog-8.25.0.tar.gz 2386720 SHA256 c756f16a083e5d4081fb9bfb236303a839cdca0a2c00017bd770b2e2e9677427 SHA512 0e97db84cc8fe9fd6e3ffb5a78b32fd213e22833c6ed605329c579132d127b7d65b3f66c64e6bddeb1967aa9ed90645a7c24b9d5e643f95bdaf48ed9fc82cb5f WHIRLPOOL 2c4925fda01e49f95ed3d2f43898cdf8f6d679ace5c2a1d1d330dfc422936ae7751cfefa480359b26d2cb782a8217865336f5e04e65e81ffce565b3388c2ff01 |
29 |
DIST rsyslog-docs-8.25.0.tar.gz 4359583 SHA256 3fa96f85ca31b09b16dcc4b184f9beeb5fb06ba463b0ced7046ec2a471b7d3ad SHA512 e0068ec00bbda2d1cf7f14105ad83e82bea9291ed5d5fda3ffcff2db32747b65e7b6d65743a3221aeca03be9c6efcee1db7f03c2da115a3aed60848556befa71 WHIRLPOOL 8c2ae0afe5fb1f81b33ecb83df420a7bbc8c147eac5854a57ba1c5341bb42d9dd4a3976a472445d19a45eb09258bc3be1b9065d79fd679095cbf24cbfddb1756 |
30 |
-EBUILD rsyslog-8.25.0.ebuild 12626 SHA256 b785b88911eee95aad965342ad1f61724c43fd55feb9a0e3f7afe6b43f81ccc0 SHA512 07ab08de84f75614fc13d050688ea07723ec46abf17a21d135e07ded3c8e4aa2c34934651c127a52c700da7082afbb831365620bc128bdd0556012fba7243cae WHIRLPOOL 33b784d382a10957a2c1156c223c7477f0ac7fb0fca0fe9cd3a61317ebde9c1b701ab25c128fcc275c5e00d5cbfb6b03189f30667fd4257dbe69a6523a839b96 |
31 |
+EBUILD rsyslog-8.25.0-r1.ebuild 12696 SHA256 1f320048f4015489ced52a06975657aa3fe2fe78ffa81bce6462842fc56d9c8a SHA512 5609c411a8148bf2acdb6ce572e178b1e40834269a36d4a406eaa9776df5c134d66a9d5bacaa84874b0da2879046b7ea42713d8faff1f7e40267dc1c0bbdc187 WHIRLPOOL caf8faee011a243ee31a688d240c3fa039b71cc51b2997837bc18eced808802f8af950ffca24191dbc4e335339b97d0ce662aeb9086ce572745c21fb159b0fa3 |
32 |
MISC metadata.xml 3329 SHA256 c757c77e3d9c766d901ac9737ea16ecd4bc836585df84c745d9ab2b160baebce SHA512 a128d327fdd7e46e9fc22605589d0a05462dce15870e3a9371a83d47e2616eb0ea4e54c6f813eb7c87d24ad8cc456883a145c73425e6bd9483f4dfd82c4377cd WHIRLPOOL 921eb979cdf8efdf2bb0fab33e6b4d774a870a86e243af21b73a127376d843bf1400007d1f72026713f344ce1ee67456d5a7d1f182d8f5ef59679debc178a357 |
33 |
|
34 |
diff --git a/app-admin/rsyslog/files/8-stable/rsyslog-8.24.0-fix-tcpflood-without-librelp.patch b/app-admin/rsyslog/files/8-stable/rsyslog-8.24.0-fix-tcpflood-without-librelp.patch |
35 |
new file mode 100644 |
36 |
index 0000000..c328706 |
37 |
--- /dev/null |
38 |
+++ b/app-admin/rsyslog/files/8-stable/rsyslog-8.24.0-fix-tcpflood-without-librelp.patch |
39 |
@@ -0,0 +1,152 @@ |
40 |
+From 73e3b7ab2f8a3974d31844b492ad02d61ed5727f Mon Sep 17 00:00:00 2001 |
41 |
+From: Rainer Gerhards <rgerhards@×××××××.com> |
42 |
+Date: Thu, 23 Feb 2017 13:18:44 +0100 |
43 |
+Subject: [PATCH] testbench: tcpflood failed to build if RELP support was |
44 |
+ disabled |
45 |
+ |
46 |
+closes https://github.com/rsyslog/rsyslog/issues/1426 |
47 |
+--- |
48 |
+ tests/tcpflood.c | 24 +++++++++++++++++++++--- |
49 |
+ 1 file changed, 21 insertions(+), 3 deletions(-) |
50 |
+ |
51 |
+diff --git a/tests/tcpflood.c b/tests/tcpflood.c |
52 |
+index c500a51..aa79794 100644 |
53 |
+--- a/tests/tcpflood.c |
54 |
++++ b/tests/tcpflood.c |
55 |
+@@ -149,7 +149,9 @@ static int numMsgsToSend = 1; /* number of messages to send */ |
56 |
+ static int numConnections = 1; /* number of connections to create */ |
57 |
+ static int softLimitConnections = 0; /* soft connection limit, see -c option description */ |
58 |
+ static int *sockArray; /* array of sockets to use */ |
59 |
++#ifdef ENABLE_RELP |
60 |
+ static relpClt_t **relpCltArray; /* array of sockets to use */ |
61 |
++#endif |
62 |
+ static int msgNum = 0; /* initial message number to start with */ |
63 |
+ static int bShowProgress = 1; /* show progress messages */ |
64 |
+ static int bSilent = 0; /* completely silent operation */ |
65 |
+@@ -216,6 +218,7 @@ static void initTLSSess(int); |
66 |
+ static int sendTLS(int i, char *buf, int lenBuf); |
67 |
+ static void closeTLSSess(int __attribute__((unused)) i); |
68 |
+ |
69 |
++#ifdef ENABLE_RELP |
70 |
+ /* RELP subsystem */ |
71 |
+ #pragma GCC diagnostic push |
72 |
+ #pragma GCC diagnostic ignored "-Wformat-security" |
73 |
+@@ -235,6 +238,7 @@ initRELP_PLAIN(void) |
74 |
+ CHKRELP(relpEngineSetEnableCmd(pRelpEngine, (unsigned char*)"syslog", |
75 |
+ eRelpCmdState_Required)); |
76 |
+ } |
77 |
++#endif /* #ifdef ENABLE_RELP */ |
78 |
+ |
79 |
+ /* prepare send subsystem for UDP send */ |
80 |
+ static int |
81 |
+@@ -273,6 +277,7 @@ int openConn(int *fd, const int connIdx) |
82 |
+ port = targetPort; |
83 |
+ } |
84 |
+ if(transport == TP_RELP_PLAIN) { |
85 |
++ #ifdef ENABLE_RELP |
86 |
+ relpRetVal relp_r; |
87 |
+ relpClt_t *relpClt; |
88 |
+ char relpPort[16]; |
89 |
+@@ -286,6 +291,7 @@ int openConn(int *fd, const int connIdx) |
90 |
+ return(1); |
91 |
+ } |
92 |
+ *fd = 1; /* mimic "all ok" state */ |
93 |
++ #endif |
94 |
+ } else { /* TCP, with or without TLS */ |
95 |
+ if((sock=socket(AF_INET, SOCK_STREAM, 0))==-1) { |
96 |
+ perror("\nsocket()"); |
97 |
+@@ -336,8 +342,10 @@ int openConnections(void) |
98 |
+ sessArray = calloc(numConnections, sizeof(gnutls_session_t)); |
99 |
+ # endif |
100 |
+ sockArray = calloc(numConnections, sizeof(int)); |
101 |
++ #ifdef ENABLE_RELP |
102 |
+ if(transport == TP_RELP_PLAIN) |
103 |
+ relpCltArray = calloc(numConnections, sizeof(relpClt_t*)); |
104 |
++ #endif |
105 |
+ for(i = 0 ; i < numConnections ; ++i) { |
106 |
+ if(i % 10 == 0) { |
107 |
+ if(bShowProgress) |
108 |
+@@ -356,8 +364,10 @@ int openConnections(void) |
109 |
+ * at least something. |
110 |
+ */ |
111 |
+ if(transport == TP_RELP_PLAIN) { |
112 |
++ #ifdef ENABLE_RELP |
113 |
+ CHKRELP(relpEngineCltDestruct(pRelpEngine, |
114 |
+ relpCltArray+i)); |
115 |
++ #endif |
116 |
+ } else { /* TCP and TLS modes */ |
117 |
+ if(transport == TP_TLS) |
118 |
+ closeTLSSess(i); |
119 |
+@@ -403,14 +413,13 @@ void closeConnections(void) |
120 |
+ |
121 |
+ if(bShowProgress) |
122 |
+ if(write(1, " close connections", sizeof(" close connections")-1)){} |
123 |
+- //if(transport == TP_RELP_PLAIN) |
124 |
+- //sleep(10); /* we need to let librelp settle a bit */ |
125 |
+ for(i = 0 ; i < numConnections ; ++i) { |
126 |
+ if(i % 10 == 0 && bShowProgress) { |
127 |
+ lenMsg = sprintf(msgBuf, "\r%5.5d", i); |
128 |
+ if(write(1, msgBuf, lenMsg)){} |
129 |
+ } |
130 |
+ if(transport == TP_RELP_PLAIN) { |
131 |
++ #ifdef ENABLE_RELP |
132 |
+ relpRetVal relpr; |
133 |
+ if(sockArray[i] != -1) { |
134 |
+ relpr = relpEngineCltDestruct(pRelpEngine, relpCltArray+i); |
135 |
+@@ -419,6 +428,7 @@ void closeConnections(void) |
136 |
+ } |
137 |
+ sockArray[i] = -1; |
138 |
+ } |
139 |
++ #endif |
140 |
+ } else { /* TCP and TLS modes */ |
141 |
+ if(sockArray[i] != -1) { |
142 |
+ /* we try to not overrun the receiver by trying to flush buffers |
143 |
+@@ -610,6 +620,7 @@ int sendMessages(struct instdata *inst) |
144 |
+ offsSendBuf = lenBuf; |
145 |
+ } |
146 |
+ } else if(transport == TP_RELP_PLAIN) { |
147 |
++ #ifdef ENABLE_RELP |
148 |
+ relpRetVal relp_ret; |
149 |
+ if(sockArray[socknum] == -1) { |
150 |
+ /* connection was dropped, need to re-establish */ |
151 |
+@@ -627,6 +638,7 @@ int sendMessages(struct instdata *inst) |
152 |
+ printf("\nrelpCltSendSyslog() failed with relp error code %d\n", |
153 |
+ relp_ret); |
154 |
+ } |
155 |
++ #endif |
156 |
+ } |
157 |
+ if(lenSend != lenBuf) { |
158 |
+ printf("\r%5.5d\n", i); |
159 |
+@@ -1106,7 +1118,9 @@ int main(int argc, char *argv[]) |
160 |
+ transport = TP_RELP_PLAIN; |
161 |
+ # else |
162 |
+ fprintf(stderr, "compiled without RELP support: " |
163 |
+- "\"-Trelp-plain\" not supported!\n"); |
164 |
++ "\"-Trelp-plain\" not supported!\n" |
165 |
++ "(add --enable-relp to ./configure options " |
166 |
++ "if desired)\n"); |
167 |
+ exit(1); |
168 |
+ # endif |
169 |
+ } else { |
170 |
+@@ -1168,7 +1182,9 @@ int main(int argc, char *argv[]) |
171 |
+ if(transport == TP_TLS) { |
172 |
+ initTLS(); |
173 |
+ } else if(transport == TP_RELP_PLAIN) { |
174 |
++ #ifdef ENABLE_RELP |
175 |
+ initRELP_PLAIN(); |
176 |
++ #endif |
177 |
+ } |
178 |
+ |
179 |
+ if(openConnections() != 0) { |
180 |
+@@ -1183,9 +1199,11 @@ int main(int argc, char *argv[]) |
181 |
+ |
182 |
+ closeConnections(); /* this is important so that we do not finish too early! */ |
183 |
+ |
184 |
++ #ifdef ENABLE_RELP |
185 |
+ if(transport == TP_RELP_PLAIN) { |
186 |
+ CHKRELP(relpEngineDestruct(&pRelpEngine)); |
187 |
+ } |
188 |
++ #endif |
189 |
+ |
190 |
+ if(nConnDrops > 0 && !bSilent) |
191 |
+ printf("-D option initiated %ld connection closures\n", nConnDrops); |
192 |
|
193 |
diff --git a/app-admin/rsyslog/rsyslog-8.25.0.ebuild b/app-admin/rsyslog/rsyslog-8.25.0-r1.ebuild |
194 |
similarity index 98% |
195 |
rename from app-admin/rsyslog/rsyslog-8.25.0.ebuild |
196 |
rename to app-admin/rsyslog/rsyslog-8.25.0-r1.ebuild |
197 |
index 0ec7494..0b079ae 100644 |
198 |
--- a/app-admin/rsyslog/rsyslog-8.25.0.ebuild |
199 |
+++ b/app-admin/rsyslog/rsyslog-8.25.0-r1.ebuild |
200 |
@@ -1,6 +1,5 @@ |
201 |
# Copyright 1999-2017 Gentoo Foundation |
202 |
# Distributed under the terms of the GNU General Public License v2 |
203 |
-# $Id$ |
204 |
|
205 |
EAPI="6" |
206 |
|
207 |
@@ -53,6 +52,12 @@ else |
208 |
http://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-${MY_PV}.tar.gz -> ${MY_FILENAME} |
209 |
doc? ( http://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-doc-${MY_PV}.tar.gz -> ${MY_FILENAME_DOCS} ) |
210 |
" |
211 |
+ |
212 |
+ PATCHES=( |
213 |
+ "${FILESDIR}/8-stable/${PN}-8.24.0-fix-tcpflood-without-librelp.patch" |
214 |
+ "${FILESDIR}/8-stable/50-${PN}-8.18.0-musl-fix.patch" |
215 |
+ "${FILESDIR}/8-stable/50-${PN}-8.18.0-musl-imptcp-queue.patch" |
216 |
+ ) |
217 |
fi |
218 |
|
219 |
LICENSE="GPL-3 LGPL-3 Apache-2.0" |
220 |
@@ -110,11 +115,6 @@ if [[ ${PV} == "9999" ]]; then |
221 |
DEPEND+=" >=dev-python/docutils-0.12" |
222 |
fi |
223 |
|
224 |
-PATCHES=( |
225 |
- "${FILESDIR}/8-stable/50-${PN}-8.18.0-musl-fix.patch" |
226 |
- "${FILESDIR}/8-stable/50-${PN}-8.18.0-musl-imptcp-queue.patch" |
227 |
-) |
228 |
- |
229 |
CONFIG_CHECK="~INOTIFY_USER" |
230 |
WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!" |