1 |
commit: e1a19e35b2cbe62c9f107ab3f83a143d4e394d5d |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 24 00:56:39 2016 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 24 00:57:23 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1a19e35 |
7 |
|
8 |
app-admin/rsyslog: Drop old version |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
app-admin/rsyslog/Manifest | 2 - |
13 |
.../8-stable/50-rsyslog-8.18.0-issue963.patch | 482 --------------------- |
14 |
.../8-stable/50-rsyslog-8.18.0-issue964.patch | 46 -- |
15 |
app-admin/rsyslog/rsyslog-8.18.0.ebuild | 454 ------------------- |
16 |
4 files changed, 984 deletions(-) |
17 |
|
18 |
diff --git a/app-admin/rsyslog/Manifest b/app-admin/rsyslog/Manifest |
19 |
index 91908c0..ea50d7e 100644 |
20 |
--- a/app-admin/rsyslog/Manifest |
21 |
+++ b/app-admin/rsyslog/Manifest |
22 |
@@ -1,8 +1,6 @@ |
23 |
DIST rsyslog-8.16.0.tar.gz 2132012 SHA256 4fe4f97c10899086d98b9401d7e8d2bcff61c7c3f7cde8627891e36fc6ec1b76 SHA512 e45acc16078d83937edd7e22f916fe050b62aa057ca4dd980823850f2195213c12db36f759c528b5fe6f1b061a61e2117fca6086245bc248392cc4e61b2383dc WHIRLPOOL 809035873565645cea5896fb19882239a0d70776ea0b948739440f7a28baf6df4bf4e958de7506d289355eadc26e1fba7e9cd8df315339f18f89acaecc462eaa |
24 |
-DIST rsyslog-8.18.0.tar.gz 2261731 SHA256 94346237ecfa22c9f78cebc3f18d59056f5d9846eb906c75beaa7e486f02c695 SHA512 6b159ba23100b4675576f5b247d2bf482bab0beaa071c26c692c99e50f202b0b272b7a64ba2b7c726390d663677b7a6d68666b06f73825e35605b13ae0930fc7 WHIRLPOOL 8efa5d7639b2c5978bdbbcf9837ca87d91a1ccf37dfa5b66e5aa05221d4a31ff57093eb5d604d036f3fd7cafb394f25eaf9302cf2143402d2a9255f4fc53b196 |
25 |
DIST rsyslog-8.19.0.tar.gz 2279714 SHA256 3379b30f2e6ef05a0f1c7327c73923fa5877a80b984506cdf48ed068c94a575e SHA512 77c40c9d76591ed3561ec76242be2c647848533df5599320ea988cbc200614c47930e0b63f190d31a0c1cec2443d57ca374f07e0909f11eba8a4bd4b8eee0e44 WHIRLPOOL 3f7d7134a0c6a475453828440a87d0fa68e7afc583ef12556f3b60f3e07621011b4f48e8c4dfbe46cef2bf2decee3827c42bd4ba481611e7cb76a695dcec5c7b |
26 |
DIST rsyslog-8.21.0.tar.gz 2290993 SHA256 bdb1fde87b75107b58d1cd5d00408822fb15b9f3efb8d9dbb93a1dee128339ab SHA512 f56b4227d535a6d354082e2c138feb1d1bb1010a3a780cf23d54e882cfaa893cd7d90f29da29b925957192d3e3c617cadede8938c3e1b162bfc4c6cf65a592a9 WHIRLPOOL f1ab94924e21a5dfa29d29f29b95e2bb9892e8a4ad23452753decfc69bffaef3bfd448edee8fd733f54858c189e2c6b9504da5f2dda8a6296f6a6a11d1b2a60e |
27 |
DIST rsyslog-doc-8.16.0.tar.gz 4174347 SHA256 03033d264b29fd791299d5d618bd061853c008ac8087f3b6c4870e1b8f6abc39 SHA512 746e4de102f15ea10085ca21eeed74dd8264742ba7029cb54caf87b72070ab6a73e79af46d97717323be1e68d9d1fa78807d5d4446d15524aa4c565650f7b0d0 WHIRLPOOL ff8dfcc3dd7e87a7316f94a3b8f199cd902cbf99772bb97147b9af37b8c6941f13341438450b3dbf3139d5518488e74df6b77c1eec3182e92a9476ccb951ec5b |
28 |
-DIST rsyslog-docs-8.18.0.tar.gz 4269339 SHA256 8de82dece85a9a83d9c1feaf7fdfb883c2bfe5a82d84b846161bec0b9dba22c6 SHA512 c560f6a8c05f951d245b8bf96e3c58f9023761edf0e5e25b4a01dab934c1db8ad74baf7e90bd1139d3c6b5af396fca525a7818e87fcbf161317c21e005aae0b2 WHIRLPOOL 2d133a86d3a2abf5f4e3c57e0b65015ed3ad4770b4dfcd34420395fc11ab7d5752811afcb83a776bc51d665b75729bd76a0d94793d508e28aebeb815884dceff |
29 |
DIST rsyslog-docs-8.19.0.tar.gz 4271094 SHA256 f76958d2fbcbb3a2db531ec3878d6d9a8c4a622e457b9c97b7c7dcca0ddd6512 SHA512 120f229a641119649fc897948fb0934039a95d0ef63e68b10ab635620d84988d794fd5dc33617353028e786513a86b3a1cd0c4fef9c755dab5bedd8e0246532e WHIRLPOOL fc0642eef4e686fc653db6a654f96fd9037e083a02e06d64b7b2a2e0292d745ca6e24821df3b9825e0eba2c4808b2755dfaeb90b62a49662ab22a171ffe2e63b |
30 |
DIST rsyslog-docs-8.21.0.tar.gz 4289500 SHA256 0a98557083e5f9ce92dbd5ea3d6f4b7d1fa123e181c9597c344cc1be064c93af SHA512 ff1bfb5f3816ff30d8584d9afce0195b76adccb230c705be79b99f889e35bfd41d9079ff457866a474b023352108c67af85add1dad46ebc2e20be3a3c99ed907 WHIRLPOOL 5efa5561377cfc3d35958cb1b71c0b96e210b9f9bc6213774294d22714c1928d7e0bc0eac1f96632554011a6522b009bdfee440fe59fe1f8306f54f2006e1ce7 |
31 |
|
32 |
diff --git a/app-admin/rsyslog/files/8-stable/50-rsyslog-8.18.0-issue963.patch b/app-admin/rsyslog/files/8-stable/50-rsyslog-8.18.0-issue963.patch |
33 |
deleted file mode 100644 |
34 |
index e1f6a32..00000000 |
35 |
--- a/app-admin/rsyslog/files/8-stable/50-rsyslog-8.18.0-issue963.patch |
36 |
+++ /dev/null |
37 |
@@ -1,482 +0,0 @@ |
38 |
-From b81d6dd36545f79c46e0a3488a9b26d0db75646a Mon Sep 17 00:00:00 2001 |
39 |
-From: Thomas D. |
40 |
-Date: Tue, 19 Apr 2016 02:09:18 +0200 |
41 |
-Subject: [PATCH 2/2] testbench: Use LD_PRELOAD=libfaketime.so instead of |
42 |
- faketime binary |
43 |
- |
44 |
-Fixes: https://github.com/rsyslog/rsyslog/issues/963 |
45 |
---- |
46 |
- tests/faketime_common.sh | 20 +++++++------------- |
47 |
- tests/now-utc-casecmp.sh | 2 +- |
48 |
- tests/now-utc-ymd.sh | 2 +- |
49 |
- tests/now-utc.sh | 2 +- |
50 |
- tests/now_family_utc.sh | 2 +- |
51 |
- tests/timegenerated-dateordinal-invld.sh | 8 ++++---- |
52 |
- tests/timegenerated-dateordinal.sh | 28 ++++++++++++++-------------- |
53 |
- tests/timegenerated-utc-legacy.sh | 2 +- |
54 |
- tests/timegenerated-utc.sh | 2 +- |
55 |
- tests/timegenerated-uxtimestamp-invld.sh | 8 ++++---- |
56 |
- tests/timegenerated-uxtimestamp.sh | 26 ++++++++++++-------------- |
57 |
- tests/timegenerated-ymd.sh | 2 +- |
58 |
- 12 files changed, 48 insertions(+), 56 deletions(-) |
59 |
- |
60 |
-diff --git a/tests/faketime_common.sh b/tests/faketime_common.sh |
61 |
-index 10e0128..432ade6 100644 |
62 |
---- a/tests/faketime_common.sh |
63 |
-+++ b/tests/faketime_common.sh |
64 |
-@@ -4,26 +4,20 @@ |
65 |
- # faketime is missing or the system isn't year-2038 complaint. |
66 |
- # This script can be sourced to prevent duplicated code. |
67 |
- |
68 |
--if ! hash faketime 2>/dev/null ; then |
69 |
-- echo "faketime command missing, skipping test" |
70 |
-+faketime_testtime=$(LD_PRELOAD=libfaketime.so FAKETIME="1991-08-25 20:57:08" TZ=GMT date +%s 2>/dev/null) |
71 |
-+if [ ${faketime_testtime} -ne 683153828 ] ; then |
72 |
-+ echo "libfaketime.so missing, skipping test" |
73 |
- exit 77 |
74 |
- fi |
75 |
- |
76 |
--export TZ=UTC+01:00 |
77 |
-- |
78 |
--faketime -f '2016-03-11 16:00:00' date 1>/dev/null 2>&1 |
79 |
--if [ $? -ne 0 ]; then |
80 |
-- # Safe-guard -- should never happen! |
81 |
-- echo "faketime command not working as expected. Check faketime binary in path!" |
82 |
-- exit 1 |
83 |
--fi |
84 |
-- |
85 |
--faketime '2040-01-01 16:00:00' date 1>/dev/null 2>&1 |
86 |
--if [ $? -ne 0 ]; then |
87 |
-+# GMT-1 (POSIX TIME) is GMT+1 in "Human Time" |
88 |
-+faketime_testtime=$(LD_PRELOAD=libfaketime.so FAKETIME="2040-01-01 16:00:00" TZ=GMT-1 date +%s 2>/dev/null) |
89 |
-+if [ ${faketime_testtime} -eq -1 ]; then |
90 |
- # System isn't year-2038 compatible |
91 |
- RSYSLOG_TESTBENCH_Y2K38_INCOMPATIBLE="yes" |
92 |
- fi |
93 |
- |
94 |
-+export LD_PRELOAD=libfaketime.so |
95 |
- |
96 |
- rsyslog_testbench_require_y2k38_support() { |
97 |
- if [ -n "${RSYSLOG_TESTBENCH_Y2K38_INCOMPATIBLE}" ]; then |
98 |
-diff --git a/tests/now-utc-casecmp.sh b/tests/now-utc-casecmp.sh |
99 |
-index 8f8d6a0..26bb7ee 100755 |
100 |
---- a/tests/now-utc-casecmp.sh |
101 |
-+++ b/tests/now-utc-casecmp.sh |
102 |
-@@ -19,7 +19,7 @@ template(name="outfmt" type="string" |
103 |
- :msg, contains, "msgnum:" action(type="omfile" template="outfmt" |
104 |
- file="rsyslog.out.log") |
105 |
- ' |
106 |
--faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup |
107 |
-+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup |
108 |
- # what we send actually is irrelevant, as we just use system properties. |
109 |
- # but we need to send one message in order to gain output! |
110 |
- . $srcdir/diag.sh tcpflood -m1 |
111 |
-diff --git a/tests/now-utc-ymd.sh b/tests/now-utc-ymd.sh |
112 |
-index c327983..6e2d183 100755 |
113 |
---- a/tests/now-utc-ymd.sh |
114 |
-+++ b/tests/now-utc-ymd.sh |
115 |
-@@ -19,7 +19,7 @@ template(name="outfmt" type="string" |
116 |
- :msg, contains, "msgnum:" action(type="omfile" template="outfmt" |
117 |
- file="rsyslog.out.log") |
118 |
- ' |
119 |
--faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup |
120 |
-+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup |
121 |
- # what we send actually is irrelevant, as we just use system properties. |
122 |
- # but we need to send one message in order to gain output! |
123 |
- . $srcdir/diag.sh tcpflood -m1 |
124 |
-diff --git a/tests/now-utc.sh b/tests/now-utc.sh |
125 |
-index ed83948..69fd4fd 100755 |
126 |
---- a/tests/now-utc.sh |
127 |
-+++ b/tests/now-utc.sh |
128 |
-@@ -9,7 +9,7 @@ echo \[now-utc\]: test \$NOW-UTC |
129 |
- export TZ=TEST-02:00 |
130 |
- |
131 |
- . $srcdir/diag.sh init |
132 |
--faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup now-utc.conf |
133 |
-+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup now-utc.conf |
134 |
- # what we send actually is irrelevant, as we just use system properties. |
135 |
- # but we need to send one message in order to gain output! |
136 |
- . $srcdir/diag.sh tcpflood -m1 |
137 |
-diff --git a/tests/now_family_utc.sh b/tests/now_family_utc.sh |
138 |
-index caba0f9..e791cbf 100755 |
139 |
---- a/tests/now_family_utc.sh |
140 |
-+++ b/tests/now_family_utc.sh |
141 |
-@@ -9,7 +9,7 @@ echo \[now_family_utc\]: test \$NOW family of system properties |
142 |
- export TZ=TEST+06:30 |
143 |
- |
144 |
- . $srcdir/diag.sh init |
145 |
--faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup now_family_utc.conf |
146 |
-+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup now_family_utc.conf |
147 |
- # what we send actually is irrelevant, as we just use system properties. |
148 |
- # but we need to send one message in order to gain output! |
149 |
- . $srcdir/diag.sh tcpflood -m1 |
150 |
-diff --git a/tests/timegenerated-dateordinal-invld.sh b/tests/timegenerated-dateordinal-invld.sh |
151 |
-index bac5d4e..dc5e14c 100755 |
152 |
---- a/tests/timegenerated-dateordinal-invld.sh |
153 |
-+++ b/tests/timegenerated-dateordinal-invld.sh |
154 |
-@@ -25,7 +25,7 @@ template(name="outfmt" type="string" |
155 |
- |
156 |
- echo "***SUBTEST: check 1800-01-01" |
157 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
158 |
--faketime -f '1800-01-01 00:00:00' $srcdir/diag.sh startup |
159 |
-+FAKETIME='1800-01-01 00:00:00' $srcdir/diag.sh startup |
160 |
- . $srcdir/diag.sh tcpflood -m1 |
161 |
- . $srcdir/diag.sh shutdown-when-empty |
162 |
- . $srcdir/diag.sh wait-shutdown |
163 |
-@@ -40,7 +40,7 @@ fi; |
164 |
- |
165 |
- echo "***SUBTEST: check 1960-01-01" |
166 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
167 |
--faketime -f '1960-01-01 00:00:00' $srcdir/diag.sh startup |
168 |
-+FAKETIME='1960-01-01 00:00:00' $srcdir/diag.sh startup |
169 |
- . $srcdir/diag.sh tcpflood -m1 |
170 |
- . $srcdir/diag.sh shutdown-when-empty |
171 |
- . $srcdir/diag.sh wait-shutdown |
172 |
-@@ -55,7 +55,7 @@ fi; |
173 |
- |
174 |
- echo "***SUBTEST: check 2101-01-01" |
175 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
176 |
--faketime -f '2101-01-01 00:00:00' $srcdir/diag.sh startup |
177 |
-+FAKETIME='2101-01-01 00:00:00' $srcdir/diag.sh startup |
178 |
- . $srcdir/diag.sh tcpflood -m1 |
179 |
- . $srcdir/diag.sh shutdown-when-empty |
180 |
- . $srcdir/diag.sh wait-shutdown |
181 |
-@@ -70,7 +70,7 @@ fi; |
182 |
- |
183 |
- echo "***SUBTEST: check 2500-01-01" |
184 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
185 |
--faketime -f '2500-01-01 00:00:00' $srcdir/diag.sh startup |
186 |
-+FAKETIME='2500-01-01 00:00:00' $srcdir/diag.sh startup |
187 |
- . $srcdir/diag.sh tcpflood -m1 |
188 |
- . $srcdir/diag.sh shutdown-when-empty |
189 |
- . $srcdir/diag.sh wait-shutdown |
190 |
-diff --git a/tests/timegenerated-dateordinal.sh b/tests/timegenerated-dateordinal.sh |
191 |
-index ace1c16..1164e53 100755 |
192 |
---- a/tests/timegenerated-dateordinal.sh |
193 |
-+++ b/tests/timegenerated-dateordinal.sh |
194 |
-@@ -25,7 +25,7 @@ template(name="outfmt" type="string" |
195 |
- |
196 |
- echo "***SUBTEST: check 1970-01-01" |
197 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
198 |
--faketime -f '1970-01-01 00:00:00' $srcdir/diag.sh startup |
199 |
-+FAKETIME='1970-01-01 00:00:00' $srcdir/diag.sh startup |
200 |
- . $srcdir/diag.sh tcpflood -m1 |
201 |
- . $srcdir/diag.sh shutdown-when-empty |
202 |
- . $srcdir/diag.sh wait-shutdown |
203 |
-@@ -39,7 +39,7 @@ fi; |
204 |
- |
205 |
- echo "***SUBTEST: check 2000-03-01" |
206 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
207 |
--faketime -f '2000-03-01 12:00:00' $srcdir/diag.sh startup |
208 |
-+FAKETIME='2000-03-01 12:00:00' $srcdir/diag.sh startup |
209 |
- . $srcdir/diag.sh tcpflood -m1 |
210 |
- . $srcdir/diag.sh shutdown-when-empty |
211 |
- . $srcdir/diag.sh wait-shutdown |
212 |
-@@ -53,7 +53,7 @@ fi; |
213 |
- |
214 |
- echo "***SUBTEST: check 2016-01-01" |
215 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
216 |
--faketime -f '2016-01-01 12:00:00' $srcdir/diag.sh startup |
217 |
-+FAKETIME='2016-01-01 12:00:00' $srcdir/diag.sh startup |
218 |
- . $srcdir/diag.sh tcpflood -m1 |
219 |
- . $srcdir/diag.sh shutdown-when-empty |
220 |
- . $srcdir/diag.sh wait-shutdown |
221 |
-@@ -67,7 +67,7 @@ fi; |
222 |
- |
223 |
- echo "***SUBTEST: check 2016-02-29" |
224 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
225 |
--faketime -f '2016-02-29 12:00:00' $srcdir/diag.sh startup |
226 |
-+FAKETIME='2016-02-29 12:00:00' $srcdir/diag.sh startup |
227 |
- . $srcdir/diag.sh tcpflood -m1 |
228 |
- . $srcdir/diag.sh shutdown-when-empty |
229 |
- . $srcdir/diag.sh wait-shutdown |
230 |
-@@ -81,7 +81,7 @@ fi; |
231 |
- |
232 |
- echo "***SUBTEST: check 2016-03-01" |
233 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
234 |
--faketime -f '2016-03-01 12:00:00' $srcdir/diag.sh startup |
235 |
-+FAKETIME='2016-03-01 12:00:00' $srcdir/diag.sh startup |
236 |
- . $srcdir/diag.sh tcpflood -m1 |
237 |
- . $srcdir/diag.sh shutdown-when-empty |
238 |
- . $srcdir/diag.sh wait-shutdown |
239 |
-@@ -95,7 +95,7 @@ fi; |
240 |
- |
241 |
- echo "***SUBTEST: check 2016-03-03" |
242 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
243 |
--faketime -f '2016-03-03 12:00:00' $srcdir/diag.sh startup |
244 |
-+FAKETIME='2016-03-03 12:00:00' $srcdir/diag.sh startup |
245 |
- . $srcdir/diag.sh tcpflood -m1 |
246 |
- . $srcdir/diag.sh shutdown-when-empty |
247 |
- . $srcdir/diag.sh wait-shutdown |
248 |
-@@ -109,7 +109,7 @@ fi; |
249 |
- |
250 |
- echo "***SUBTEST: check 2016-12-31" |
251 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
252 |
--faketime -f '2016-12-31 12:00:00' $srcdir/diag.sh startup |
253 |
-+FAKETIME='2016-12-31 12:00:00' $srcdir/diag.sh startup |
254 |
- . $srcdir/diag.sh tcpflood -m1 |
255 |
- . $srcdir/diag.sh shutdown-when-empty |
256 |
- . $srcdir/diag.sh wait-shutdown |
257 |
-@@ -123,7 +123,7 @@ fi; |
258 |
- |
259 |
- echo "***SUBTEST: check 2017-01-01" |
260 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
261 |
--faketime -f '2017-01-01 12:00:00' $srcdir/diag.sh startup |
262 |
-+FAKETIME='2017-01-01 12:00:00' $srcdir/diag.sh startup |
263 |
- . $srcdir/diag.sh tcpflood -m1 |
264 |
- . $srcdir/diag.sh shutdown-when-empty |
265 |
- . $srcdir/diag.sh wait-shutdown |
266 |
-@@ -137,7 +137,7 @@ fi; |
267 |
- |
268 |
- echo "***SUBTEST: check 2020-03-01" |
269 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
270 |
--faketime -f '2020-03-01 12:00:00' $srcdir/diag.sh startup |
271 |
-+FAKETIME='2020-03-01 12:00:00' $srcdir/diag.sh startup |
272 |
- . $srcdir/diag.sh tcpflood -m1 |
273 |
- . $srcdir/diag.sh shutdown-when-empty |
274 |
- . $srcdir/diag.sh wait-shutdown |
275 |
-@@ -151,7 +151,7 @@ fi; |
276 |
- |
277 |
- echo "***SUBTEST: check 2038-01-01" |
278 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
279 |
--faketime -f '2038-01-01 12:00:00' $srcdir/diag.sh startup |
280 |
-+FAKETIME='2038-01-01 12:00:00' $srcdir/diag.sh startup |
281 |
- . $srcdir/diag.sh tcpflood -m1 |
282 |
- . $srcdir/diag.sh shutdown-when-empty |
283 |
- . $srcdir/diag.sh wait-shutdown |
284 |
-@@ -168,7 +168,7 @@ rsyslog_testbench_require_y2k38_support |
285 |
- |
286 |
- echo "***SUBTEST: check 2038-12-31" |
287 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
288 |
--faketime -f '2038-12-31 12:00:00' $srcdir/diag.sh startup |
289 |
-+FAKETIME='2038-12-31 12:00:00' $srcdir/diag.sh startup |
290 |
- . $srcdir/diag.sh tcpflood -m1 |
291 |
- . $srcdir/diag.sh shutdown-when-empty |
292 |
- . $srcdir/diag.sh wait-shutdown |
293 |
-@@ -182,7 +182,7 @@ fi; |
294 |
- |
295 |
- echo "***SUBTEST: check 2040-01-01" |
296 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
297 |
--faketime -f '2040-01-01 12:00:00' $srcdir/diag.sh startup |
298 |
-+FAKETIME='2040-01-01 12:00:00' $srcdir/diag.sh startup |
299 |
- . $srcdir/diag.sh tcpflood -m1 |
300 |
- . $srcdir/diag.sh shutdown-when-empty |
301 |
- . $srcdir/diag.sh wait-shutdown |
302 |
-@@ -196,7 +196,7 @@ fi; |
303 |
- |
304 |
- echo "***SUBTEST: check 2040-12-31" |
305 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
306 |
--faketime -f '2040-12-31 12:00:00' $srcdir/diag.sh startup |
307 |
-+FAKETIME='2040-12-31 12:00:00' $srcdir/diag.sh startup |
308 |
- . $srcdir/diag.sh tcpflood -m1 |
309 |
- . $srcdir/diag.sh shutdown-when-empty |
310 |
- . $srcdir/diag.sh wait-shutdown |
311 |
-@@ -210,7 +210,7 @@ fi; |
312 |
- |
313 |
- echo "***SUBTEST: check 2100-01-01" |
314 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
315 |
--faketime -f '2100-01-01 12:00:00' $srcdir/diag.sh startup |
316 |
-+FAKETIME='2100-01-01 12:00:00' $srcdir/diag.sh startup |
317 |
- . $srcdir/diag.sh tcpflood -m1 |
318 |
- . $srcdir/diag.sh shutdown-when-empty |
319 |
- . $srcdir/diag.sh wait-shutdown |
320 |
-diff --git a/tests/timegenerated-utc-legacy.sh b/tests/timegenerated-utc-legacy.sh |
321 |
-index f893377..60296d3 100755 |
322 |
---- a/tests/timegenerated-utc-legacy.sh |
323 |
-+++ b/tests/timegenerated-utc-legacy.sh |
324 |
-@@ -26,7 +26,7 @@ template(name="outfmt" type="string" |
325 |
- |
326 |
- echo "***SUBTEST: check 2016-03-01" |
327 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
328 |
--faketime -f '2016-03-01 12:00:00' $srcdir/diag.sh startup |
329 |
-+FAKETIME='2016-03-01 12:00:00' $srcdir/diag.sh startup |
330 |
- . $srcdir/diag.sh tcpflood -m1 |
331 |
- . $srcdir/diag.sh shutdown-when-empty |
332 |
- . $srcdir/diag.sh wait-shutdown |
333 |
-diff --git a/tests/timegenerated-utc.sh b/tests/timegenerated-utc.sh |
334 |
-index 651408c..5d32e36 100755 |
335 |
---- a/tests/timegenerated-utc.sh |
336 |
-+++ b/tests/timegenerated-utc.sh |
337 |
-@@ -28,7 +28,7 @@ template(name="outfmt" type="list") { |
338 |
- |
339 |
- echo "***SUBTEST: check 2016-03-01" |
340 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
341 |
--faketime -f '2016-03-01 12:00:00' $srcdir/diag.sh startup |
342 |
-+FAKETIME='2016-03-01 12:00:00' $srcdir/diag.sh startup |
343 |
- . $srcdir/diag.sh tcpflood -m1 |
344 |
- . $srcdir/diag.sh shutdown-when-empty |
345 |
- . $srcdir/diag.sh wait-shutdown |
346 |
-diff --git a/tests/timegenerated-uxtimestamp-invld.sh b/tests/timegenerated-uxtimestamp-invld.sh |
347 |
-index 90bcf74..76a353c 100755 |
348 |
---- a/tests/timegenerated-uxtimestamp-invld.sh |
349 |
-+++ b/tests/timegenerated-uxtimestamp-invld.sh |
350 |
-@@ -25,7 +25,7 @@ template(name="outfmt" type="string" |
351 |
- |
352 |
- echo "***SUBTEST: check 1800-01-01" |
353 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
354 |
--faketime -f '1800-01-01 00:00:00' $srcdir/diag.sh startup |
355 |
-+FAKETIME='1800-01-01 00:00:00' $srcdir/diag.sh startup |
356 |
- . $srcdir/diag.sh tcpflood -m1 |
357 |
- . $srcdir/diag.sh shutdown-when-empty |
358 |
- . $srcdir/diag.sh wait-shutdown |
359 |
-@@ -40,7 +40,7 @@ fi; |
360 |
- |
361 |
- echo "***SUBTEST: check 1960-01-01" |
362 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
363 |
--faketime -f '1960-01-01 00:00:00' $srcdir/diag.sh startup |
364 |
-+FAKETIME='1960-01-01 00:00:00' $srcdir/diag.sh startup |
365 |
- . $srcdir/diag.sh tcpflood -m1 |
366 |
- . $srcdir/diag.sh shutdown-when-empty |
367 |
- . $srcdir/diag.sh wait-shutdown |
368 |
-@@ -55,7 +55,7 @@ fi; |
369 |
- |
370 |
- echo "***SUBTEST: check 2101-01-01" |
371 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
372 |
--faketime -f '2101-01-01 00:00:00' $srcdir/diag.sh startup |
373 |
-+FAKETIME='2101-01-01 00:00:00' $srcdir/diag.sh startup |
374 |
- . $srcdir/diag.sh tcpflood -m1 |
375 |
- . $srcdir/diag.sh shutdown-when-empty |
376 |
- . $srcdir/diag.sh wait-shutdown |
377 |
-@@ -70,7 +70,7 @@ fi; |
378 |
- |
379 |
- echo "***SUBTEST: check 2500-01-01" |
380 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
381 |
--faketime -f '2500-01-01 00:00:00' $srcdir/diag.sh startup |
382 |
-+FAKETIME='2500-01-01 00:00:00' $srcdir/diag.sh startup |
383 |
- . $srcdir/diag.sh tcpflood -m1 |
384 |
- . $srcdir/diag.sh shutdown-when-empty |
385 |
- . $srcdir/diag.sh wait-shutdown |
386 |
-diff --git a/tests/timegenerated-uxtimestamp.sh b/tests/timegenerated-uxtimestamp.sh |
387 |
-index b24f9c7..0eb2812 100755 |
388 |
---- a/tests/timegenerated-uxtimestamp.sh |
389 |
-+++ b/tests/timegenerated-uxtimestamp.sh |
390 |
-@@ -25,7 +25,7 @@ template(name="outfmt" type="string" |
391 |
- |
392 |
- echo "***SUBTEST: check 1970-01-01" |
393 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
394 |
--faketime -f '1970-01-01 00:00:00' $srcdir/diag.sh startup |
395 |
-+FAKETIME='1970-01-01 00:00:00' $srcdir/diag.sh startup |
396 |
- . $srcdir/diag.sh tcpflood -m1 |
397 |
- . $srcdir/diag.sh shutdown-when-empty |
398 |
- . $srcdir/diag.sh wait-shutdown |
399 |
-@@ -40,7 +40,7 @@ fi; |
400 |
- |
401 |
- echo "***SUBTEST: check 2000-03-01" |
402 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
403 |
--faketime -f '2000-03-01 12:00:00' $srcdir/diag.sh startup |
404 |
-+FAKETIME='2000-03-01 12:00:00' $srcdir/diag.sh startup |
405 |
- . $srcdir/diag.sh tcpflood -m1 |
406 |
- . $srcdir/diag.sh shutdown-when-empty |
407 |
- . $srcdir/diag.sh wait-shutdown |
408 |
-@@ -55,7 +55,7 @@ fi; |
409 |
- |
410 |
- echo "***SUBTEST: check 2016-01-01" |
411 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
412 |
--faketime -f '2016-01-01 12:00:00' $srcdir/diag.sh startup |
413 |
-+FAKETIME='2016-01-01 12:00:00' $srcdir/diag.sh startup |
414 |
- . $srcdir/diag.sh tcpflood -m1 |
415 |
- . $srcdir/diag.sh shutdown-when-empty |
416 |
- . $srcdir/diag.sh wait-shutdown |
417 |
-@@ -70,7 +70,7 @@ fi; |
418 |
- |
419 |
- echo "***SUBTEST: check 2016-02-29" |
420 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
421 |
--faketime -f '2016-02-29 12:00:00' $srcdir/diag.sh startup |
422 |
-+FAKETIME='2016-02-29 12:00:00' $srcdir/diag.sh startup |
423 |
- . $srcdir/diag.sh tcpflood -m1 |
424 |
- . $srcdir/diag.sh shutdown-when-empty |
425 |
- . $srcdir/diag.sh wait-shutdown |
426 |
-@@ -85,7 +85,7 @@ fi; |
427 |
- |
428 |
- echo "***SUBTEST: check 2016-03-01" |
429 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
430 |
--faketime -f '2016-03-01 12:00:00' $srcdir/diag.sh startup |
431 |
-+FAKETIME='2016-03-01 12:00:00' $srcdir/diag.sh startup |
432 |
- . $srcdir/diag.sh tcpflood -m1 |
433 |
- . $srcdir/diag.sh shutdown-when-empty |
434 |
- . $srcdir/diag.sh wait-shutdown |
435 |
-@@ -100,7 +100,7 @@ fi; |
436 |
- |
437 |
- echo "***SUBTEST: check 2016-03-03" |
438 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
439 |
--faketime -f '2016-03-03 12:00:00' $srcdir/diag.sh startup |
440 |
-+FAKETIME='2016-03-03 12:00:00' $srcdir/diag.sh startup |
441 |
- . $srcdir/diag.sh tcpflood -m1 |
442 |
- . $srcdir/diag.sh shutdown-when-empty |
443 |
- . $srcdir/diag.sh wait-shutdown |
444 |
-@@ -115,7 +115,7 @@ fi; |
445 |
- |
446 |
- echo "***SUBTEST: check 2016-12-31" |
447 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
448 |
--faketime -f '2016-12-31 12:00:00' $srcdir/diag.sh startup |
449 |
-+FAKETIME='2016-12-31 12:00:00' $srcdir/diag.sh startup |
450 |
- . $srcdir/diag.sh tcpflood -m1 |
451 |
- . $srcdir/diag.sh shutdown-when-empty |
452 |
- . $srcdir/diag.sh wait-shutdown |
453 |
-@@ -130,7 +130,7 @@ fi; |
454 |
- |
455 |
- echo "***SUBTEST: check 2017-01-01" |
456 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
457 |
--faketime -f '2017-01-01 12:00:00' $srcdir/diag.sh startup |
458 |
-+FAKETIME='2017-01-01 12:00:00' $srcdir/diag.sh startup |
459 |
- . $srcdir/diag.sh tcpflood -m1 |
460 |
- . $srcdir/diag.sh shutdown-when-empty |
461 |
- . $srcdir/diag.sh wait-shutdown |
462 |
-@@ -145,7 +145,7 @@ fi; |
463 |
- |
464 |
- echo "***SUBTEST: check 2020-03-01" |
465 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
466 |
--faketime -f '2020-03-01 12:00:00' $srcdir/diag.sh startup |
467 |
-+FAKETIME='2020-03-01 12:00:00' $srcdir/diag.sh startup |
468 |
- . $srcdir/diag.sh tcpflood -m1 |
469 |
- . $srcdir/diag.sh shutdown-when-empty |
470 |
- . $srcdir/diag.sh wait-shutdown |
471 |
-@@ -160,7 +160,7 @@ fi; |
472 |
- |
473 |
- echo "***SUBTEST: check 2038-01-01" |
474 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
475 |
--faketime -f '2038-01-01 12:00:00' $srcdir/diag.sh startup |
476 |
-+FAKETIME='2038-01-01 12:00:00' $srcdir/diag.sh startup |
477 |
- . $srcdir/diag.sh tcpflood -m1 |
478 |
- . $srcdir/diag.sh shutdown-when-empty |
479 |
- . $srcdir/diag.sh wait-shutdown |
480 |
-@@ -172,13 +172,11 @@ if [ ! $? -eq 0 ]; then |
481 |
- exit 1 |
482 |
- fi; |
483 |
- |
484 |
-- |
485 |
- rsyslog_testbench_require_y2k38_support |
486 |
- |
487 |
-- |
488 |
- echo "***SUBTEST: check 2040-01-01" |
489 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
490 |
--faketime -f '2040-01-01 12:00:00' $srcdir/diag.sh startup |
491 |
-+FAKETIME='2040-01-01 12:00:00' $srcdir/diag.sh startup |
492 |
- . $srcdir/diag.sh tcpflood -m1 |
493 |
- . $srcdir/diag.sh shutdown-when-empty |
494 |
- . $srcdir/diag.sh wait-shutdown |
495 |
-@@ -193,7 +191,7 @@ fi; |
496 |
- |
497 |
- echo "***SUBTEST: check 2100-01-01" |
498 |
- rm -f rsyslog.out.log # do cleanup of previous subtest |
499 |
--faketime -f '2100-01-01 12:00:00' $srcdir/diag.sh startup |
500 |
-+FAKETIME='2100-01-01 12:00:00' $srcdir/diag.sh startup |
501 |
- . $srcdir/diag.sh tcpflood -m1 |
502 |
- . $srcdir/diag.sh shutdown-when-empty |
503 |
- . $srcdir/diag.sh wait-shutdown |
504 |
-diff --git a/tests/timegenerated-ymd.sh b/tests/timegenerated-ymd.sh |
505 |
-index 66b364b..f5f9213 100755 |
506 |
---- a/tests/timegenerated-ymd.sh |
507 |
-+++ b/tests/timegenerated-ymd.sh |
508 |
-@@ -19,7 +19,7 @@ template(name="outfmt" type="string" |
509 |
- :msg, contains, "msgnum:" action(type="omfile" template="outfmt" |
510 |
- file="rsyslog.out.log") |
511 |
- ' |
512 |
--faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup |
513 |
-+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup |
514 |
- # what we send actually is irrelevant, as we just use system properties. |
515 |
- # but we need to send one message in order to gain output! |
516 |
- . $srcdir/diag.sh tcpflood -m1 |
517 |
--- |
518 |
-2.8.1 |
519 |
- |
520 |
|
521 |
diff --git a/app-admin/rsyslog/files/8-stable/50-rsyslog-8.18.0-issue964.patch b/app-admin/rsyslog/files/8-stable/50-rsyslog-8.18.0-issue964.patch |
522 |
deleted file mode 100644 |
523 |
index 1148c04..00000000 |
524 |
--- a/app-admin/rsyslog/files/8-stable/50-rsyslog-8.18.0-issue964.patch |
525 |
+++ /dev/null |
526 |
@@ -1,46 +0,0 @@ |
527 |
-From 35b838b13e838cfe81bf565163bc892dd4347f68 Mon Sep 17 00:00:00 2001 |
528 |
-From: Thomas D. |
529 |
-Date: Tue, 19 Apr 2016 00:00:00 +0200 |
530 |
-Subject: [PATCH 1/2] testbench: Add missing exit calls to |
531 |
- {faketime,privdrop}_common.sh |
532 |
- |
533 |
-"diag.sh exit" just cleans up so we still have to end the tests when skipping |
534 |
-with a real exit on our own. |
535 |
---- |
536 |
- tests/faketime_common.sh | 9 +++++---- |
537 |
- tests/privdrop_common.sh | 1 + |
538 |
- 2 files changed, 6 insertions(+), 4 deletions(-) |
539 |
- |
540 |
-diff --git a/tests/faketime_common.sh b/tests/faketime_common.sh |
541 |
-index 5e868bc..10e0128 100644 |
542 |
---- a/tests/faketime_common.sh |
543 |
-+++ b/tests/faketime_common.sh |
544 |
-@@ -26,8 +26,9 @@ fi |
545 |
- |
546 |
- |
547 |
- rsyslog_testbench_require_y2k38_support() { |
548 |
-- if [ -n "${RSYSLOG_TESTBENCH_Y2K38_INCOMPATIBLE}" ]; then |
549 |
-- echo "Skipping further tests because system doesn't support year 2038 ..." |
550 |
-- . $srcdir/diag.sh exit |
551 |
-- fi |
552 |
-+ if [ -n "${RSYSLOG_TESTBENCH_Y2K38_INCOMPATIBLE}" ]; then |
553 |
-+ echo "Skipping further tests because system doesn't support year 2038 ..." |
554 |
-+ . $srcdir/diag.sh exit |
555 |
-+ exit 0 |
556 |
-+ fi |
557 |
- } |
558 |
-diff --git a/tests/privdrop_common.sh b/tests/privdrop_common.sh |
559 |
-index a0994ec..203a23b 100755 |
560 |
---- a/tests/privdrop_common.sh |
561 |
-+++ b/tests/privdrop_common.sh |
562 |
-@@ -52,6 +52,7 @@ rsyslog_testbench_setup_testuser() { |
563 |
- if [ -z "${testgroupname}" ]; then |
564 |
- echo "Skipping ... please set RSYSLOG_TESTUSER or make sure the user running the testbench has a primary group!" |
565 |
- . $srcdir/diag.sh exit |
566 |
-+ exit 0 |
567 |
- else |
568 |
- has_testuser="${EUID}" |
569 |
- fi |
570 |
--- |
571 |
-2.8.1 |
572 |
- |
573 |
|
574 |
diff --git a/app-admin/rsyslog/rsyslog-8.18.0.ebuild b/app-admin/rsyslog/rsyslog-8.18.0.ebuild |
575 |
deleted file mode 100644 |
576 |
index 0b12c85..00000000 |
577 |
--- a/app-admin/rsyslog/rsyslog-8.18.0.ebuild |
578 |
+++ /dev/null |
579 |
@@ -1,454 +0,0 @@ |
580 |
-# Copyright 1999-2016 Gentoo Foundation |
581 |
-# Distributed under the terms of the GNU General Public License v2 |
582 |
-# $Id$ |
583 |
- |
584 |
-EAPI=6 |
585 |
- |
586 |
-inherit autotools eutils linux-info systemd |
587 |
- |
588 |
-DESCRIPTION="An enhanced multi-threaded syslogd with database support and more" |
589 |
-HOMEPAGE="http://www.rsyslog.com/" |
590 |
- |
591 |
-BRANCH="8-stable" |
592 |
- |
593 |
-if [[ ${PV} == "9999" ]]; then |
594 |
- EGIT_REPO_URI=" |
595 |
- git://github.com/rsyslog/${PN}.git |
596 |
- https://github.com/rsyslog/${PN}.git |
597 |
- " |
598 |
- |
599 |
- DOC_REPO_URI=" |
600 |
- git://github.com/rsyslog/${PN}-doc.git |
601 |
- https://github.com/rsyslog/${PN}-doc.git |
602 |
- " |
603 |
- |
604 |
- inherit git-r3 |
605 |
-else |
606 |
- MY_PV=${PV%_rc*} |
607 |
- MY_FILENAME="${PN}-${PV}.tar.gz" |
608 |
- MY_FILENAME_DOCS="${PN}-docs-${PV}.tar.gz" |
609 |
- S="${WORKDIR}/${PN}-${MY_PV}" |
610 |
- |
611 |
- # Upstream URL schema: |
612 |
- # RC: http://www.rsyslog.com/files/download/rsyslog/rc/rsyslog-8.18.0.tar.gz |
613 |
- # http://www.rsyslog.com/files/download/rsyslog/rc2/rsyslog-8.18.0.tar.gz |
614 |
- # Release: http://www.rsyslog.com/files/download/rsyslog/rsyslog-8.18.0.tar.gz |
615 |
- |
616 |
- MY_URL_PREFIX= |
617 |
- if [[ ${PV} = *_rc* ]]; then |
618 |
- _tmp_last_index=$(($(get_last_version_component_index ${PV})+1)) |
619 |
- _tmp_suffix=$(get_version_component_range ${_tmp_last_index} ${PV}) |
620 |
- if [[ ${_tmp_suffix} = *rc* ]]; then |
621 |
- MY_URL_PREFIX="${_tmp_suffix}/" |
622 |
- fi |
623 |
- |
624 |
- # Cleaning up temporary variables |
625 |
- unset _tmp_last_index |
626 |
- unset _tmp_suffix |
627 |
- else |
628 |
- KEYWORDS="~amd64 ~arm ~hppa ~x86" |
629 |
- fi |
630 |
- |
631 |
- SRC_URI=" |
632 |
- http://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-${MY_PV}.tar.gz -> ${MY_FILENAME} |
633 |
- doc? ( http://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-doc-${MY_PV}.tar.gz -> ${MY_FILENAME_DOCS} ) |
634 |
- " |
635 |
-fi |
636 |
- |
637 |
-LICENSE="GPL-3 LGPL-3 Apache-2.0" |
638 |
-SLOT="0" |
639 |
-IUSE="dbi debug doc elasticsearch +gcrypt grok jemalloc kafka kerberos libressl mongodb mysql normalize omhttpfs" |
640 |
-IUSE+=" omudpspoof postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd test usertools zeromq" |
641 |
- |
642 |
-RDEPEND=" |
643 |
- >=dev-libs/libfastjson-0.99.2:= |
644 |
- >=dev-libs/libestr-0.1.9 |
645 |
- >=dev-libs/liblogging-1.0.1:=[stdlog] |
646 |
- >=sys-libs/zlib-1.2.5 |
647 |
- dbi? ( >=dev-db/libdbi-0.8.3 ) |
648 |
- elasticsearch? ( >=net-misc/curl-7.35.0 ) |
649 |
- gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= ) |
650 |
- grok? ( >=dev-libs/grok-0.9.2 ) |
651 |
- jemalloc? ( >=dev-libs/jemalloc-3.3.1:= ) |
652 |
- kafka? ( >=dev-libs/librdkafka-0.9.0.99:= ) |
653 |
- kerberos? ( virtual/krb5 ) |
654 |
- mongodb? ( >=dev-libs/libmongo-client-0.1.4 ) |
655 |
- mysql? ( virtual/mysql ) |
656 |
- normalize? ( |
657 |
- >=dev-libs/libee-0.4.0 |
658 |
- >=dev-libs/liblognorm-1.1.2:= |
659 |
- ) |
660 |
- omhttpfs? ( >=net-misc/curl-7.35.0 ) |
661 |
- omudpspoof? ( >=net-libs/libnet-1.1.6 ) |
662 |
- postgres? ( >=dev-db/postgresql-8.4.20:= ) |
663 |
- rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= ) |
664 |
- redis? ( >=dev-libs/hiredis-0.11.0 ) |
665 |
- relp? ( >=dev-libs/librelp-1.2.5:= ) |
666 |
- rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] ) |
667 |
- rfc5424hmac? ( |
668 |
- !libressl? ( >=dev-libs/openssl-0.9.8y:0= ) |
669 |
- libressl? ( dev-libs/libressl:= ) |
670 |
- ) |
671 |
- snmp? ( >=net-analyzer/net-snmp-5.7.2 ) |
672 |
- ssl? ( >=net-libs/gnutls-2.12.23:0= ) |
673 |
- systemd? ( >=sys-apps/systemd-208 ) |
674 |
- zeromq? ( |
675 |
- >=net-libs/zeromq-4.1.1:= |
676 |
- >=net-libs/czmq-3.0.0 |
677 |
- )" |
678 |
-DEPEND="${RDEPEND} |
679 |
- virtual/pkgconfig |
680 |
- test? ( sys-libs/libfaketime )" |
681 |
- |
682 |
-if [[ ${PV} == "9999" ]]; then |
683 |
- DEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )" |
684 |
- DEPEND+=" >=sys-devel/flex-2.5.39-r1" |
685 |
- DEPEND+=" >=sys-devel/bison-2.4.3" |
686 |
- DEPEND+=" >=dev-python/docutils-0.12" |
687 |
-fi |
688 |
- |
689 |
-CONFIG_CHECK="~INOTIFY_USER" |
690 |
-WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!" |
691 |
- |
692 |
-src_unpack() { |
693 |
- if [[ ${PV} == "9999" ]]; then |
694 |
- git-r3_fetch |
695 |
- git-r3_checkout |
696 |
- else |
697 |
- unpack ${P}.tar.gz |
698 |
- fi |
699 |
- |
700 |
- if use doc; then |
701 |
- if [[ ${PV} == "9999" ]]; then |
702 |
- local _EGIT_BRANCH= |
703 |
- if [[ -n "${EGIT_BRANCH}" ]]; then |
704 |
- # Cannot use rsyslog commits/branches for documentation repository |
705 |
- _EGIT_BRANCH=${EGIT_BRANCH} |
706 |
- unset EGIT_BRANCH |
707 |
- fi |
708 |
- |
709 |
- git-r3_fetch "${DOC_REPO_URI}" |
710 |
- git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs |
711 |
- |
712 |
- if [[ -n "${_EGIT_BRANCH}" ]]; then |
713 |
- # Restore previous EGIT_BRANCH information |
714 |
- EGIT_BRANCH=${_EGIT_BRANCH} |
715 |
- fi |
716 |
- else |
717 |
- cd "${S}" || die "Cannot change dir into '${S}'" |
718 |
- mkdir docs || die "Failed to create docs directory" |
719 |
- cd docs || die "Failed to change dir into '${S}/docs'" |
720 |
- unpack ${MY_FILENAME_DOCS} |
721 |
- fi |
722 |
- fi |
723 |
-} |
724 |
- |
725 |
-src_prepare() { |
726 |
- if [[ ! ${PV} == "9999" ]]; then |
727 |
- eapply -p1 "${FILESDIR}"/8-stable/50-rsyslog-8.18.0-issue964.patch |
728 |
- eapply -p1 "${FILESDIR}"/8-stable/50-rsyslog-8.18.0-issue963.patch |
729 |
- fi |
730 |
- |
731 |
- default |
732 |
- |
733 |
- eautoreconf |
734 |
-} |
735 |
- |
736 |
-src_configure() { |
737 |
- # Maintainer notes: |
738 |
- # * Guardtime support is missing because libgt isn't yet available |
739 |
- # in portage. |
740 |
- # * Hadoop's HDFS file system output module is currently not |
741 |
- # supported in Gentoo because nobody is able to test it |
742 |
- # (JAVA dependency). |
743 |
- # * dev-libs/hiredis doesn't provide pkg-config (see #504614, |
744 |
- # upstream PR 129 and 136) so we need to export HIREDIS_* |
745 |
- # variables because rsyslog's build system depends on pkg-config. |
746 |
- |
747 |
- if use redis; then |
748 |
- export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis" |
749 |
- export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include" |
750 |
- fi |
751 |
- |
752 |
- local myeconfargs=( |
753 |
- --disable-debug-symbols |
754 |
- --disable-generate-man-pages |
755 |
- --without-valgrind-testbench |
756 |
- $(use_enable test testbench) |
757 |
- # Input Plugins without depedencies |
758 |
- --enable-imdiag |
759 |
- --enable-imfile |
760 |
- --enable-impstats |
761 |
- --enable-imptcp |
762 |
- # Message Modificiation Plugins without depedencies |
763 |
- --enable-mmanon |
764 |
- --enable-mmaudit |
765 |
- --enable-mmcount |
766 |
- --enable-mmfields |
767 |
- --enable-mmjsonparse |
768 |
- --enable-mmpstrucdata |
769 |
- --enable-mmsequence |
770 |
- --enable-mmutf8fix |
771 |
- # Output Modification Plugins without dependencies |
772 |
- --enable-mail |
773 |
- --enable-omprog |
774 |
- --enable-omruleset |
775 |
- --enable-omstdout |
776 |
- --enable-omuxsock |
777 |
- # Misc |
778 |
- --enable-pmaixforwardedfrom |
779 |
- --enable-pmciscoios |
780 |
- --enable-pmcisconames |
781 |
- --enable-pmlastmsg |
782 |
- --enable-pmsnare |
783 |
- # DB |
784 |
- $(use_enable dbi libdbi) |
785 |
- $(use_enable mongodb ommongodb) |
786 |
- $(use_enable mysql) |
787 |
- $(use_enable postgres pgsql) |
788 |
- $(use_enable redis omhiredis) |
789 |
- # Debug |
790 |
- $(use_enable debug) |
791 |
- $(use_enable debug diagtools) |
792 |
- $(use_enable debug memcheck) |
793 |
- $(use_enable debug rtinst) |
794 |
- $(use_enable debug valgrind) |
795 |
- # Misc |
796 |
- $(use_enable elasticsearch) |
797 |
- $(use_enable gcrypt libgcrypt) |
798 |
- $(use_enable jemalloc) |
799 |
- $(use_enable kafka omkafka) |
800 |
- $(use_enable kerberos gssapi-krb5) |
801 |
- $(use_enable normalize mmnormalize) |
802 |
- $(use_enable grok mmgrok) |
803 |
- $(use_enable omhttpfs) |
804 |
- $(use_enable omudpspoof) |
805 |
- $(use_enable rabbitmq omrabbitmq) |
806 |
- $(use_enable relp) |
807 |
- $(use_enable rfc3195) |
808 |
- $(use_enable rfc5424hmac mmrfc5424addhmac) |
809 |
- $(use_enable snmp) |
810 |
- $(use_enable snmp mmsnmptrapd) |
811 |
- $(use_enable ssl gnutls) |
812 |
- $(use_enable systemd imjournal) |
813 |
- $(use_enable systemd omjournal) |
814 |
- $(use_enable usertools) |
815 |
- $(use_enable zeromq imczmq) |
816 |
- $(use_enable zeromq imzmq3) |
817 |
- $(use_enable zeromq omczmq) |
818 |
- $(use_enable zeromq omzmq3) |
819 |
- --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
820 |
- ) |
821 |
- |
822 |
- econf "${myeconfargs[@]}" |
823 |
-} |
824 |
- |
825 |
-src_compile() { |
826 |
- default |
827 |
- |
828 |
- if use doc && [[ "${PV}" == "9999" ]]; then |
829 |
- einfo "Building documentation ..." |
830 |
- local doc_dir="${S}/docs" |
831 |
- cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!" |
832 |
- sphinx-build -b html source build || die "Building documentation failed!" |
833 |
- fi |
834 |
-} |
835 |
- |
836 |
-src_test() { |
837 |
- local _has_increased_ulimit= |
838 |
- |
839 |
- # Sometimes tests aren't executable (i.e. when added via patch) |
840 |
- einfo "Adjusting permissions of test scripts ..." |
841 |
- find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \ |
842 |
- die "Failed to adjust test scripts permission" |
843 |
- |
844 |
- if ulimit -n 3072; then |
845 |
- _has_increased_ulimit="true" |
846 |
- fi |
847 |
- |
848 |
- if ! emake --jobs 1 check; then |
849 |
- eerror "Test suite failed! :(" |
850 |
- |
851 |
- if [[ -z "${_has_increased_ulimit}" ]]; then |
852 |
- eerror "Probably because open file limit couldn't be set to 3072." |
853 |
- fi |
854 |
- |
855 |
- if has userpriv ${FEATURES}; then |
856 |
- eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \ |
857 |
- "before you submit a bug report." |
858 |
- fi |
859 |
- |
860 |
- fi |
861 |
-} |
862 |
- |
863 |
-src_install() { |
864 |
- local DOCS=( |
865 |
- AUTHORS |
866 |
- ChangeLog |
867 |
- "${FILESDIR}"/${BRANCH}/README.gentoo |
868 |
- ) |
869 |
- |
870 |
- use doc && local HTML_DOCS=( "${S}/docs/build/." ) |
871 |
- |
872 |
- default |
873 |
- |
874 |
- newconfd "${FILESDIR}/${BRANCH}/${PN}.confd-r1" ${PN} |
875 |
- newinitd "${FILESDIR}/${BRANCH}/${PN}.initd-r1" ${PN} |
876 |
- |
877 |
- keepdir /var/empty/dev |
878 |
- keepdir /var/spool/${PN} |
879 |
- keepdir /etc/ssl/${PN} |
880 |
- keepdir /etc/${PN}.d |
881 |
- |
882 |
- insinto /etc |
883 |
- newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf |
884 |
- |
885 |
- insinto /etc/rsyslog.d/ |
886 |
- doins "${FILESDIR}/${BRANCH}/50-default.conf" |
887 |
- |
888 |
- insinto /etc/logrotate.d/ |
889 |
- newins "${FILESDIR}/${BRANCH}/${PN}.logrotate" ${PN} |
890 |
- |
891 |
- if use mysql; then |
892 |
- insinto /usr/share/doc/${PF}/scripts/mysql |
893 |
- doins plugins/ommysql/createDB.sql |
894 |
- fi |
895 |
- |
896 |
- if use postgres; then |
897 |
- insinto /usr/share/doc/${PF}/scripts/pgsql |
898 |
- doins plugins/ompgsql/createDB.sql |
899 |
- fi |
900 |
- |
901 |
- prune_libtool_files --modules |
902 |
-} |
903 |
- |
904 |
-pkg_postinst() { |
905 |
- local advertise_readme=0 |
906 |
- |
907 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
908 |
- # This is a new installation |
909 |
- |
910 |
- advertise_readme=1 |
911 |
- |
912 |
- if use mysql || use postgres; then |
913 |
- echo |
914 |
- elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:" |
915 |
- elog " /usr/share/doc/${PF}/scripts" |
916 |
- fi |
917 |
- |
918 |
- if use ssl; then |
919 |
- echo |
920 |
- elog "To create a default CA and certificates for your server and clients, run:" |
921 |
- elog " emerge --config =${PF}" |
922 |
- elog "on your logging server. You can run it several times," |
923 |
- elog "once for each logging client. The client certificates will be signed" |
924 |
- elog "using the CA certificate generated during the first run." |
925 |
- fi |
926 |
- fi |
927 |
- |
928 |
- if [[ ${advertise_readme} -gt 0 ]]; then |
929 |
- # We need to show the README file location |
930 |
- |
931 |
- echo "" |
932 |
- elog "Please read" |
933 |
- elog "" |
934 |
- elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*" |
935 |
- elog "" |
936 |
- elog "for more details." |
937 |
- fi |
938 |
-} |
939 |
- |
940 |
-pkg_config() { |
941 |
- if ! use ssl ; then |
942 |
- einfo "There is nothing to configure for rsyslog unless you" |
943 |
- einfo "used USE=ssl to build it." |
944 |
- return 0 |
945 |
- fi |
946 |
- |
947 |
- # Make sure the certificates directory exists |
948 |
- local CERTDIR="${EROOT}/etc/ssl/${PN}" |
949 |
- if [[ ! -d "${CERTDIR}" ]]; then |
950 |
- mkdir "${CERTDIR}" || die |
951 |
- fi |
952 |
- einfo "Your certificates will be stored in ${CERTDIR}" |
953 |
- |
954 |
- # Create a default CA if needed |
955 |
- if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then |
956 |
- einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..." |
957 |
- certtool --generate-privkey \ |
958 |
- --outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null |
959 |
- chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" |
960 |
- |
961 |
- cat > "${T}/${PF}.$$" <<- _EOF |
962 |
- cn = Portage automated CA |
963 |
- ca |
964 |
- cert_signing_key |
965 |
- expiration_days = 3650 |
966 |
- _EOF |
967 |
- |
968 |
- certtool --generate-self-signed \ |
969 |
- --load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ |
970 |
- --outfile "${CERTDIR}/${PN}_ca.cert.pem" \ |
971 |
- --template "${T}/${PF}.$$" &>/dev/null |
972 |
- chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" |
973 |
- |
974 |
- # Create the server certificate |
975 |
- echo |
976 |
- einfon "Please type the Common Name of the SERVER you wish to create a certificate for: " |
977 |
- read -r CN |
978 |
- |
979 |
- einfo "Creating private key and certificate for server ${CN}..." |
980 |
- certtool --generate-privkey \ |
981 |
- --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null |
982 |
- chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" |
983 |
- |
984 |
- cat > "${T}/${PF}.$$" <<- _EOF |
985 |
- cn = ${CN} |
986 |
- tls_www_server |
987 |
- dns_name = ${CN} |
988 |
- expiration_days = 3650 |
989 |
- _EOF |
990 |
- |
991 |
- certtool --generate-certificate \ |
992 |
- --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ |
993 |
- --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ |
994 |
- --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ |
995 |
- --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ |
996 |
- --template "${T}/${PF}.$$" &>/dev/null |
997 |
- chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" |
998 |
- |
999 |
- else |
1000 |
- einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation." |
1001 |
- fi |
1002 |
- |
1003 |
- # Create a client certificate |
1004 |
- echo |
1005 |
- einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: " |
1006 |
- read -r CN |
1007 |
- |
1008 |
- einfo "Creating private key and certificate for client ${CN}..." |
1009 |
- certtool --generate-privkey \ |
1010 |
- --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null |
1011 |
- chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" |
1012 |
- |
1013 |
- cat > "${T}/${PF}.$$" <<- _EOF |
1014 |
- cn = ${CN} |
1015 |
- tls_www_client |
1016 |
- dns_name = ${CN} |
1017 |
- expiration_days = 3650 |
1018 |
- _EOF |
1019 |
- |
1020 |
- certtool --generate-certificate \ |
1021 |
- --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ |
1022 |
- --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ |
1023 |
- --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ |
1024 |
- --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ |
1025 |
- --template "${T}/${PF}.$$" &>/dev/null |
1026 |
- chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" |
1027 |
- |
1028 |
- rm -f "${T}/${PF}.$$" |
1029 |
- |
1030 |
- echo |
1031 |
- einfo "Here is the documentation on how to encrypt your log traffic:" |
1032 |
- einfo " http://www.rsyslog.com/doc/rsyslog_tls.html" |
1033 |
-} |