1 |
commit: dbd18f8b618ea0a3d44697bcf37722f0abb03144 |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 22 11:25:14 2014 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 22 11:25:14 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=dbd18f8b |
7 |
|
8 |
rsyslog bumped in g-x86 |
9 |
|
10 |
--- |
11 |
app-admin/rsyslog/Manifest | 13 - |
12 |
app-admin/rsyslog/files/7-stable/50-default.conf | 95 ------ |
13 |
app-admin/rsyslog/files/7-stable/README.gentoo | 36 --- |
14 |
app-admin/rsyslog/files/7-stable/bugfix_52.patch | 100 ------- |
15 |
app-admin/rsyslog/files/7-stable/bugfix_73.patch | 103 ------- |
16 |
.../7-stable/fix-omruleset-default-value.patch | 25 -- |
17 |
.../files/7-stable/rsyslog-7.x-mmjsonparse.patch | 26 -- |
18 |
app-admin/rsyslog/files/7-stable/rsyslog.conf | 61 ---- |
19 |
app-admin/rsyslog/files/7-stable/rsyslog.confd-r1 | 30 -- |
20 |
app-admin/rsyslog/files/7-stable/rsyslog.initd-r1 | 69 ----- |
21 |
.../rsyslog/files/7-stable/rsyslog.logrotate-r1 | 37 --- |
22 |
app-admin/rsyslog/metadata.xml | 41 --- |
23 |
app-admin/rsyslog/rsyslog-7.6.3.ebuild | 327 --------------------- |
24 |
13 files changed, 963 deletions(-) |
25 |
|
26 |
diff --git a/app-admin/rsyslog/Manifest b/app-admin/rsyslog/Manifest |
27 |
deleted file mode 100644 |
28 |
index d06c4dd..0000000 |
29 |
--- a/app-admin/rsyslog/Manifest |
30 |
+++ /dev/null |
31 |
@@ -1,13 +0,0 @@ |
32 |
-AUX 7-stable/50-default.conf 1701 SHA256 61c1dd1450f574a21a8d8375faaf3e42f9856df91011150ff13c0cfddc86ed41 SHA512 33e4e63239b9112fec1a37115ac80ab8dbd6e7189d9d29b1bc743c433e0124ea0d1a4cf6f7ada9e5b92e9b0025b6617a1a16f4c491e743bbf4327a5f376a1ea9 WHIRLPOOL d33b83bb690e78b5e5f7cfc090d21da03615c891a287b1f3a92a51514dcad1f5dfe8d2ceed867b3007768d47f48d207fac43a1ff33a85b24c21a5531cdf9d311 |
33 |
-AUX 7-stable/README.gentoo 1126 SHA256 29b4c68f521f2f1f138f44c4635da1a270fed9cbd4a780569754080987aa777c SHA512 46fdf3350e2005d3ef588d50dfc6d474a1b5d3010329b656879a43cbbd7be0cd91944b88d3838f45f69c830fc28c42e7fac2cd52e0a4b24bb6780562d59ae384 WHIRLPOOL a1a3ec8b887110a01e8c1c1320f25493dd8ff343e4b08780c30c9bc3bb842afa0ef79db08195db876697c1a69807f49a8b3793609d25f78559fa534507fc195e |
34 |
-AUX 7-stable/bugfix_52.patch 3776 SHA256 756f7630fa2c14d9605ce560f608acdc66277abb4592feec11dc05ef9ecc01cc SHA512 1b4fb7efd2a9e3a5b16003124e63ff5434512d9d103d938d2cfaf9ceb6087bad83d5141c21bd1d13b8dad7c67b58e0359fc836dc8263652eafd5404d181b0a4f WHIRLPOOL f0062ca640e11957da6621d8e73189e6be9eca275adfff32e3f701235682535cc42d34709a9c912541764af3d74073afd82c8d8048a3521eab9b70f8198ea02d |
35 |
-AUX 7-stable/bugfix_73.patch 3575 SHA256 f621d578f730c8d633e42af977077f3c67e894acd4e8c7702dd6a41e85232062 SHA512 67996a804673214e4c23ceaf8c0092a1cf8288024180c047b96b773ee55db05e95b8da4b73ea0db5cdfabc8b49a632d6b313cf54dad23a80d9fd1bf243590971 WHIRLPOOL 371ded4813d1f3b65e570eefd366c1ca9ffabf38b1b5b5b80d6d632b3574bea272a8a802ec2b956d69359ac8f44c5b66d0c0ed66d898dbe96784a9090c4585a3 |
36 |
-AUX 7-stable/fix-omruleset-default-value.patch 834 SHA256 9b9506a1141ef8619ba98e4bb8e2c8ad23e6a51e64d971db8ee461c073ef1ae0 SHA512 64113caf4ec31100f1ad4dbfef27ac39e6be09f0560b1a77ad54b2c7aaf8469780b4ba17ef892cbcf80931a4d7070b40b4ca22265553568d2302eaf5ab976e5e WHIRLPOOL 7aa020772813d2611c90f7605497ece6f1ed32c1e3b75f0fc7360492186dfe0b522275d128c185013c1849b64c7c1550f1752397239609f18583a475f44361cf |
37 |
-AUX 7-stable/rsyslog-7.x-mmjsonparse.patch 952 SHA256 8db6b4c0001ae53306ceb685ef245c6978e143c71c9642e634cbed98e6d2dde8 SHA512 4446349f75ff5726d1bffe261f607dd8710c31d1254925928ffcc825a0f86d96b281962150bfa8e85846b94610d0a15f0932ef6b041d390bd4402657ad0f47b7 WHIRLPOOL 1ba7a6db2cb753953f0ae8e701a9b7150b99bf553b653ba2b82c6f6d1bf76461efa1cbfb1d026e5e459069cbfc6e868d46743e38c9a01583b1ff4f7a4225ed69 |
38 |
-AUX 7-stable/rsyslog.conf 1562 SHA256 fc70a94213b5eb519febf9aa7d758ee9526433bcc5683bcb7451d16e65a2f5b0 SHA512 1720174fab020e2de590f3d6bbb03784aca1928fe05f7e75e02fb4597cb8b2ee755e6deb8e8f989060511044ae483f791f496f24e0eecaf27eb9e0b5e20a2c7a WHIRLPOOL 97cf3fdee62a9339b412ebe93b71b2d6804df60aad9cb7e71779fcaddb01d489e38bbb353557864ea38aba384e664e6da636812c3c078ed9e22e261ed7b78cba |
39 |
-AUX 7-stable/rsyslog.confd-r1 1140 SHA256 f0b15a0334f6177a6cf23cb9b169302c75745dc30857f24a7d11892feb6b1ee4 SHA512 8501be8d0abc166994863db61afa5a4ef120aaec601d86fb71711b557741d39b29b96a4d688e7af6ad8d5d15a1257821ca299c5f7391f2ce66cd95e33ea2ff7c WHIRLPOOL 0a3617defa10acfa693a3339e1f7ec69c9272b44aac6fda30b49452f32ea7037743acfd871cea025f1e584639725588286056db6e17663c2806ed47088600d35 |
40 |
-AUX 7-stable/rsyslog.initd-r1 1597 SHA256 30615d3d29155675e09fa1082a5851fb6e260e1f914d899b7fd23430a2b95249 SHA512 5dd92f557831e6ecd9c6acfea2a7168fbc40cca10c7dd9241097c58dd7369e39fab7c7f988d0e4450c258c18886e3769715d0b6feb632023daa8f6d178cae18f WHIRLPOOL 61ca87c8f21ccbabc449fe0dc4743cbaa259a12e903ae8ba5c01b04e7a21dc867fc37334350c78e1d3a5a2c7233b880c6affe00f205384c57fe79e0ed3a1512a |
41 |
-AUX 7-stable/rsyslog.logrotate-r1 682 SHA256 89cc8f13c1f7a3ae446b40da7b31cdf471e2c9e2d3d5b8f48e524f7a82fbff89 SHA512 6c58abd2f02157177a61695f53eccbf201c514821b0c551a4812621e8d3dd2da9b5cd651d93860cb51ebdbdc7056d0ef0dde99c2a57ac3c43aa968a141805912 WHIRLPOOL 9d29c2c9351252887c3dad78962df942bb1cd7387eb44e3c98764319f82d90c42d255a5642c55bb37811fb903e1c5314ca536bc9d32ccfd0535f0579f4e25ff0 |
42 |
-DIST rsyslog-7.6.3.tar.gz 3052448 SHA256 013359035f8b6e5a4328edaffbda1120974accaba36ddc5de66a582fa588f5ec SHA512 f5bafbf7e40011e583a01d20beb1a98b78512cd537128c8f925c27b1906b22471b98d11e58c41256570fc205ec7ca756219d5cf44041ffe4e613fbd802d1f309 WHIRLPOOL 23719d6451eec4d21b022dfc2701726a00adeb132f8fe7e93826fba8693edbf949d7b6a9f3fac358482ee86b65fbccfd25330a6bbbd522e92bfc659bf01ec243 |
43 |
-EBUILD rsyslog-7.6.3.ebuild 9198 SHA256 e477a6511cc50f29d0a124ff6c071ef3d44929b2366d4157f6c021a9cbd1e5be SHA512 04eb75d3667b357091e4189d258c45a71b7806df0edc4c3f17228e7253740e22337f93e682854ed15df17afd96bb6df0726e94c4b6974e1d9c6b718589534c80 WHIRLPOOL 4880f7e37d0a8651645958c5139dbf741f47e17ac3c8cd5448783c5392bf4d7071d30347d9d42fd8ce3063387053bc3bb4200e13bcceb5e7f94b8ac50f4bd35a |
44 |
-MISC metadata.xml 2941 SHA256 3d75473e17679907bf3170ec29f377f6eac2ee67408685015de41584713a68c1 SHA512 57b479b75864889ce2b143921c7e717229ba88f1eb470db0c6d2b151a5061b2b6fc5138b50c6e96c1d715ac0d05d48ed4c34375d42c0ea9cc3703c4f92625c44 WHIRLPOOL 70bfd3127b8f630e009d5226de5fc39b42a6f188069f68aead8986661516b171879bccb82cf1d444c150dd004cddddf9402e60e2d3ce43f1108171ffe84ec304 |
45 |
|
46 |
diff --git a/app-admin/rsyslog/files/7-stable/50-default.conf b/app-admin/rsyslog/files/7-stable/50-default.conf |
47 |
deleted file mode 100644 |
48 |
index 9ae8578..0000000 |
49 |
--- a/app-admin/rsyslog/files/7-stable/50-default.conf |
50 |
+++ /dev/null |
51 |
@@ -1,95 +0,0 @@ |
52 |
-####################### |
53 |
-### DEFAULT ACTIONS ### |
54 |
-####################### |
55 |
- |
56 |
-auth,authpriv.* action( |
57 |
- type="omfile" |
58 |
- File="/var/log/auth.log" |
59 |
- FileCreateMode="0600" |
60 |
- FileOwner="root" |
61 |
- FileGroup="adm" |
62 |
- Sync="off" |
63 |
-) |
64 |
- |
65 |
-cron.* action( |
66 |
- type="omfile" |
67 |
- File="/var/log/cron.log" |
68 |
- FileOwner="root" |
69 |
- FileGroup="adm" |
70 |
-) |
71 |
- |
72 |
-daemon.* action( |
73 |
- type="omfile" |
74 |
- File="/var/log/daemon.log" |
75 |
- FileOwner="root" |
76 |
- FileGroup="adm" |
77 |
-) |
78 |
- |
79 |
-kern.* action( |
80 |
- type="omfile" |
81 |
- File="/var/log/kern.log" |
82 |
- FileOwner="root" |
83 |
- FileGroup="adm" |
84 |
-) |
85 |
- |
86 |
-lpr.* action( |
87 |
- type="omfile" |
88 |
- File="/var/log/lpr.log" |
89 |
- FileOwner="root" |
90 |
- FileGroup="adm" |
91 |
-) |
92 |
- |
93 |
-mail.* action( |
94 |
- type="omfile" |
95 |
- File="/var/log/mail.log" |
96 |
- FileOwner="root" |
97 |
- FileGroup="adm" |
98 |
-) |
99 |
- |
100 |
-news.* action( |
101 |
- type="omfile" |
102 |
- File="/var/log/news.log" |
103 |
- FileOwner="root" |
104 |
- FileGroup="adm" |
105 |
-) |
106 |
- |
107 |
-user.* action( |
108 |
- type="omfile" |
109 |
- File="/var/log/user.log" |
110 |
- FileOwner="root" |
111 |
- FileGroup="adm" |
112 |
-) |
113 |
- |
114 |
-*.=debug;auth,authpriv,news,mail.none action( |
115 |
- type="omfile" |
116 |
- File="/var/log/debug.log" |
117 |
- FileOwner="root" |
118 |
- FileGroup="adm" |
119 |
-) |
120 |
- |
121 |
-*.info;auth,authpriv,cron,daemon,lpr,mail,news.none action( |
122 |
- type="omfile" |
123 |
- File="/var/log/messages" |
124 |
- FileOwner="root" |
125 |
- FileGroup="adm" |
126 |
-) |
127 |
- |
128 |
-# Uncomment the following directive to re-enable the |
129 |
-# deprecated "/var/log/syslog" log file (don't forget to re-enable log |
130 |
-# rotation in "/etc/logrotate.d/rsyslog" if you do that!) |
131 |
-#*.*;auth,authpriv.none action( |
132 |
-# type="omfile" |
133 |
-# File="/var/log/syslog" |
134 |
-# FileOwner="root" |
135 |
-# FileGroup="adm" |
136 |
-#) |
137 |
- |
138 |
-*.emerg action( |
139 |
- type="omusrmsg" |
140 |
- Users="*" |
141 |
- action.execOnlyOnceEveryInterval="10" |
142 |
-) |
143 |
- |
144 |
-# Create an additional socket for the default chroot location |
145 |
-# (used by net-misc/openssh[hpn], see https://bugs.gentoo.org/490744) |
146 |
-input(type="imuxsock" Socket="/var/empty/dev/log") |
147 |
|
148 |
diff --git a/app-admin/rsyslog/files/7-stable/README.gentoo b/app-admin/rsyslog/files/7-stable/README.gentoo |
149 |
deleted file mode 100644 |
150 |
index 9f0666c..0000000 |
151 |
--- a/app-admin/rsyslog/files/7-stable/README.gentoo |
152 |
+++ /dev/null |
153 |
@@ -1,36 +0,0 @@ |
154 |
-Introduction |
155 |
-============ |
156 |
- |
157 |
-Since rsyslog version 7.6 we are shipping a new default Gentoo |
158 |
-configuration. See bug #501982 to learn more about what we were trying to |
159 |
-achieve by rewriting the entire configuration. |
160 |
- |
161 |
- |
162 |
-Important changes |
163 |
-================= |
164 |
- |
165 |
-1. "/var/log/syslog" log file is now deprecated |
166 |
- |
167 |
- Beginning with rsyslog-7.6, the "/var/log/syslog" log file will no |
168 |
- longer being written per default. We are considering this file as |
169 |
- deprecated/obsolet for the typical user/system. |
170 |
- The content from this log file is still availble through other |
171 |
- (dedicated) log files, see |
172 |
- |
173 |
- - /var/log/cron.log |
174 |
- - /var/log/daemon.log |
175 |
- - /var/log/mail.log |
176 |
- - /var/log/messages |
177 |
- |
178 |
- If you really need the old "/var/log/syslog" log file, all you have to |
179 |
- do is uncommenting the corresponding configuration directive in |
180 |
- "/etc/rsyslog.d/50-default.conf". |
181 |
- |
182 |
- If you do so, don't forget to re-enable log rotation in |
183 |
- "/etc/logrotate.d/rsyslog", too. |
184 |
- |
185 |
- |
186 |
-2. An additional input socket in "/var/empty/dev/log" (default chroot |
187 |
- location) will be created per default |
188 |
- |
189 |
- See bug #490744 for further details. |
190 |
|
191 |
diff --git a/app-admin/rsyslog/files/7-stable/bugfix_52.patch b/app-admin/rsyslog/files/7-stable/bugfix_52.patch |
192 |
deleted file mode 100644 |
193 |
index f5da7b9..0000000 |
194 |
--- a/app-admin/rsyslog/files/7-stable/bugfix_52.patch |
195 |
+++ /dev/null |
196 |
@@ -1,100 +0,0 @@ |
197 |
-From b017e29aad70702c69e6016b07a932b7825a83e5 Mon Sep 17 00:00:00 2001 |
198 |
-From: Thomas D <whissi@××××××.de> |
199 |
-Date: Sat, 3 May 2014 14:45:25 +0200 |
200 |
-Subject: [PATCH] Remove "--enable-cached-man-pages" switch and make rst2man |
201 |
- optional when required man pages already exist |
202 |
- |
203 |
-This commit backports the bugfix for issue #52 for the v7-stable branch. |
204 |
---- |
205 |
- configure.ac | 61 +++++++++++++++++++++++++++++++++++------------------------- |
206 |
- 1 file changed, 36 insertions(+), 25 deletions(-) |
207 |
- |
208 |
-diff --git a/configure.ac b/configure.ac |
209 |
-index 0dd40c2..07d96dd 100644 |
210 |
---- a/configure.ac |
211 |
-+++ b/configure.ac |
212 |
-@@ -1087,30 +1087,6 @@ fi |
213 |
- AM_CONDITIONAL(ENABLE_GUARDTIME, test x$enable_guardtime = xyes) |
214 |
- |
215 |
- |
216 |
--# Support using cached man file copies, to avoid the need for rst2man |
217 |
--# in the build environment |
218 |
--AC_ARG_ENABLE(cached_man_pages, |
219 |
-- [AS_HELP_STRING([--enable-cached-man-pages],[Enable using cached versions of man files (avoid rst2man) @<:@default=no@:>@])], |
220 |
-- [case "${enableval}" in |
221 |
-- yes) enable_cached_man_pages="yes" ;; |
222 |
-- no) enable_cached_man_pages="no" ;; |
223 |
-- *) AC_MSG_ERROR(bad value ${enableval} for --enable-cached-man-pages) ;; |
224 |
-- esac], |
225 |
-- [enable_cached_man_pages=no] |
226 |
--) |
227 |
--if test "x$enable_cached_man_pages" = "xno"; then |
228 |
--# obtain path for rst2man |
229 |
-- if test "x$enable_libgcrypt" = "xyes" || \ |
230 |
-- test "x$enable_guardtime" = "xyes"; then |
231 |
-- AC_PATH_PROG([RST2MAN], [rst2man]) |
232 |
-- if test "x${RST2MAN}" == "x"; then |
233 |
-- AC_MSG_FAILURE([rst2man not found in PATH]) |
234 |
-- fi |
235 |
-- fi |
236 |
--fi |
237 |
-- |
238 |
-- |
239 |
-- |
240 |
- # RFC 3195 support |
241 |
- AC_ARG_ENABLE(rfc3195, |
242 |
- [AS_HELP_STRING([--enable-rfc3195],[Enable RFC3195 support @<:@default=no@:>@])], |
243 |
-@@ -1519,6 +1495,41 @@ AM_CONDITIONAL(ENABLE_OMHIREDIS, test x$enable_omhiredis = xyes) |
244 |
- |
245 |
- # END HIREDIS SUPPORT |
246 |
- |
247 |
-+ |
248 |
-+AC_CHECKING([if required man pages already exist]) |
249 |
-+have_to_generate_man_pages="no" |
250 |
-+ |
251 |
-+# man pages for libgcrypt module |
252 |
-+if test "x$enable_usertools" = "xyes" && test "x$enable_libgcrypt" = "xyes"; then |
253 |
-+ AC_CHECK_FILES(["tools/rscryutil.1" "tools/rsgtutil.1"], |
254 |
-+ [], |
255 |
-+ [have_to_generate_man_pages="yes"] |
256 |
-+ ) |
257 |
-+fi |
258 |
-+ |
259 |
-+# man pages for GuardTime module |
260 |
-+if test "x$enable_usertools" = "xyes" && test "x$enable_guardtime" = "xyes"; then |
261 |
-+ AC_CHECK_FILES(["tools/rscryutil.1" "tools/rsgtutil.1"], |
262 |
-+ [], |
263 |
-+ [have_to_generate_man_pages="yes"] |
264 |
-+ ) |
265 |
-+fi |
266 |
-+ |
267 |
-+if test "x$have_to_generate_man_pages" = "xyes"; then |
268 |
-+ AC_MSG_RESULT([Some man pages are missing. We need rst2man to generate the missing man pages from source...]) |
269 |
-+else |
270 |
-+ AC_MSG_RESULT([All required man pages found. We don't need rst2man!]) |
271 |
-+fi |
272 |
-+ |
273 |
-+if test "x$have_to_generate_man_pages" = "xyes"; then |
274 |
-+ # We need rst2man to generate our man pages |
275 |
-+ AC_CHECK_PROGS([RST2MAN], [rst2man rst2man.py], []) |
276 |
-+ if test -z "$RST2MAN"; then |
277 |
-+ AC_MSG_ERROR([rst2man is required to build man pages. You can use the release tarball with pregenerated man pages to avoid this depedency.]) |
278 |
-+ fi |
279 |
-+fi |
280 |
-+ |
281 |
-+ |
282 |
- AC_CONFIG_FILES([Makefile \ |
283 |
- runtime/Makefile \ |
284 |
- compat/Makefile \ |
285 |
-@@ -1594,7 +1605,7 @@ echo " Zlib compression support enabled: $enable_zlib" |
286 |
- echo " rsyslog runtime will be built: $enable_rsyslogrt" |
287 |
- echo " rsyslogd will be built: $enable_rsyslogd" |
288 |
- echo " GUI components will be built: $enable_gui" |
289 |
--echo " cached man files will be used: $enable_cached_man_pages" |
290 |
-+echo " have to generate man pages: $have_to_generate_man_pages" |
291 |
- echo " Unlimited select() support enabled: $enable_unlimited_select" |
292 |
- echo " uuid support enabled: $enable_uuid" |
293 |
- echo " Log file signing support: $enable_guardtime" |
294 |
--- |
295 |
-1.9.2 |
296 |
- |
297 |
|
298 |
diff --git a/app-admin/rsyslog/files/7-stable/bugfix_73.patch b/app-admin/rsyslog/files/7-stable/bugfix_73.patch |
299 |
deleted file mode 100644 |
300 |
index cc295d6..0000000 |
301 |
--- a/app-admin/rsyslog/files/7-stable/bugfix_73.patch |
302 |
+++ /dev/null |
303 |
@@ -1,103 +0,0 @@ |
304 |
-This patch will update the pre-generated rscryutil man page from the release |
305 |
-tarball so we don't need to depend on dev-python/docutils. |
306 |
- |
307 |
-https://github.com/rsyslog/rsyslog/issues/73 |
308 |
- |
309 |
-diff -rupN old/rsyslog-7.6.3/tools/rscryutil.1 new/rsyslog-7.6.3/tools/rscryutil.1 |
310 |
---- old/rsyslog-7.6.3/tools/rscryutil.1 2013-10-29 16:31:21.000000000 +0100 |
311 |
-+++ new/rsyslog-7.6.3/tools/rscryutil.1 2014-05-03 20:41:46.143825094 +0200 |
312 |
-@@ -1,4 +1,4 @@ |
313 |
--.\" Man page generated from reStructeredText. |
314 |
-+.\" Man page generated from reStructuredText. |
315 |
- . |
316 |
- .TH RSCRYUTIL 1 "2013-04-15" "" "" |
317 |
- .SH NAME |
318 |
-@@ -31,12 +31,16 @@ level margin: \\n[rst2man-indent\\n[rst2 |
319 |
- .in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
320 |
- .. |
321 |
- .SH SYNOPSIS |
322 |
-+.INDENT 0.0 |
323 |
-+.INDENT 3.5 |
324 |
- .sp |
325 |
- .nf |
326 |
- .ft C |
327 |
- rscryutil [OPTIONS] [FILE] ... |
328 |
- .ft P |
329 |
- .fi |
330 |
-+.UNINDENT |
331 |
-+.UNINDENT |
332 |
- .SH DESCRIPTION |
333 |
- .sp |
334 |
- This tool performs various operations on encrypted log files. |
335 |
-@@ -44,46 +48,46 @@ Most importantly, it provides the abilit |
336 |
- .SH OPTIONS |
337 |
- .INDENT 0.0 |
338 |
- .TP |
339 |
--.B \-d, \-\-decrypt |
340 |
-+.B \-d\fP,\fB \-\-decrypt |
341 |
- Select decryption mode. This is the default mode. |
342 |
- .TP |
343 |
--.BI \-W, \-\-write\-keyfile \ <file> |
344 |
-+.BI \-W\fP,\fB \-\-write\-keyfile \ <file> |
345 |
- Utility function to write a key to a keyfile. The key can be obtained |
346 |
- via any method. |
347 |
- .TP |
348 |
--.B \-v, \-\-verbose |
349 |
-+.B \-v\fP,\fB \-\-verbose |
350 |
- Select verbose mode. |
351 |
- .TP |
352 |
--.B \-f, \-\-force |
353 |
-+.B \-f\fP,\fB \-\-force |
354 |
- Forces operations that otherwise would fail. |
355 |
- .TP |
356 |
--.BI \-k, \-\-keyfile \ <file> |
357 |
-+.BI \-k\fP,\fB \-\-keyfile \ <file> |
358 |
- Reads the key from <file>. File _must_ contain the key, only, no headers |
359 |
- or other meta information. Keyfiles can be generated via the |
360 |
- \fI\-\-write\-keyfile\fP option. |
361 |
- .TP |
362 |
--.BI \-p, \-\-key\-program \ <path\-to\-program> |
363 |
-+.BI \-p\fP,\fB \-\-key\-program \ <path\-to\-program> |
364 |
- In this mode, the key is provided by a so\-called "key program". This program |
365 |
- is executed and must return the key to (as well as some meta information) |
366 |
- via stdout. The core idea of key programs is that using this interface the |
367 |
- user can implement as complex (and secure) method to obtain keys as |
368 |
- desired, all without the need to make modifications to rsyslog. |
369 |
- .TP |
370 |
--.BI \-K, \-\-key \ <KEY> |
371 |
-+.BI \-K\fP,\fB \-\-key \ <KEY> |
372 |
- TESTING AID, NOT FOR PRODUCTION USE. This uses the KEY specified |
373 |
- on the command line. This is the actual key, and as such this mode |
374 |
- is highly insecure. However, it can be useful for intial testing |
375 |
- steps. This option may be removed in the future. |
376 |
- .TP |
377 |
--.BI \-a, \-\-algo \ <algo> |
378 |
-+.BI \-a\fP,\fB \-\-algo \ <algo> |
379 |
- Sets the encryption algorightm (cipher) to be used. See below |
380 |
- for supported algorithms. The default is "AES128". |
381 |
- .TP |
382 |
--.BI \-m, \-\-mode \ <mode> |
383 |
-+.BI \-m\fP,\fB \-\-mode \ <mode> |
384 |
- Sets the ciphermode to be used. See below for supported modes. |
385 |
- The default is "CBC". |
386 |
- .TP |
387 |
--.BI \-r, \-\-generate\-random\-key \ <bytes> |
388 |
-+.BI \-r\fP,\fB \-\-generate\-random\-key \ <bytes> |
389 |
- Generates a random key of length <bytes>. This option is |
390 |
- meant to be used together with \fI\-\-write\-keyfile\fP (and it is hard |
391 |
- to envision any other valid use for it). |
392 |
-@@ -97,7 +101,7 @@ multiple operations mode are set on the |
393 |
- unpredictable. |
394 |
- .SS decrypt |
395 |
- .sp |
396 |
--The provided log files are decrypted. Note that the \fI.encinfo\fP side files |
397 |
-+The provided log files are decrypted. Note that the \fI\&.encinfo\fP side files |
398 |
- must exist and be accessible in order for decryption to to work. |
399 |
- .SS write\-keyfile |
400 |
- .sp |
401 |
-@@ -198,5 +202,4 @@ LGPLv2. |
402 |
- .SH AUTHOR |
403 |
- Rainer Gerhards <rgerhards@×××××××.com> |
404 |
- .\" Generated by docutils manpage writer. |
405 |
--.\" |
406 |
- . |
407 |
|
408 |
diff --git a/app-admin/rsyslog/files/7-stable/fix-omruleset-default-value.patch b/app-admin/rsyslog/files/7-stable/fix-omruleset-default-value.patch |
409 |
deleted file mode 100644 |
410 |
index 816471c..0000000 |
411 |
--- a/app-admin/rsyslog/files/7-stable/fix-omruleset-default-value.patch |
412 |
+++ /dev/null |
413 |
@@ -1,25 +0,0 @@ |
414 |
-From 14f3b45151864aa4170de515f406a69ad2931eba Mon Sep 17 00:00:00 2001 |
415 |
-From: Rainer Gerhards <rgerhards@×××××××.com> |
416 |
-Date: Thu, 31 Oct 2013 18:21:47 +0100 |
417 |
-Subject: [PATCH] module omruleset is no longer enabled by default. |
418 |
- |
419 |
-Note that it has been deprecated in v7 and been replaced by the "call" |
420 |
-statement. Also, it can still be build without problems, the option must |
421 |
-just explicitely be given. |
422 |
---- |
423 |
-diff --git a/configure.ac b/configure.ac |
424 |
-index 3abd559..de4c3ea 100644 |
425 |
---- a/configure.ac |
426 |
-+++ b/configure.ac |
427 |
-@@ -1353,7 +1353,7 @@ AC_ARG_ENABLE(omruleset, |
428 |
- no) enable_omruleset="no" ;; |
429 |
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-omruleset) ;; |
430 |
- esac], |
431 |
-- [enable_omruleset=yes] |
432 |
-+ [enable_omruleset=no] |
433 |
- ) |
434 |
- AM_CONDITIONAL(ENABLE_OMRULESET, test x$enable_omruleset = xyes) |
435 |
- |
436 |
--- |
437 |
-1.9.1 |
438 |
- |
439 |
|
440 |
diff --git a/app-admin/rsyslog/files/7-stable/rsyslog-7.x-mmjsonparse.patch b/app-admin/rsyslog/files/7-stable/rsyslog-7.x-mmjsonparse.patch |
441 |
deleted file mode 100644 |
442 |
index ad5c8ea..0000000 |
443 |
--- a/app-admin/rsyslog/files/7-stable/rsyslog-7.x-mmjsonparse.patch |
444 |
+++ /dev/null |
445 |
@@ -1,26 +0,0 @@ |
446 |
-From d6f5d5aae579455badb2d546f8ef292956720824 Mon Sep 17 00:00:00 2001 |
447 |
-From: Thomas D <whissi@××××××.de> |
448 |
-Date: Tue, 15 Apr 2014 17:56:05 +0200 |
449 |
-Subject: [PATCH] Fix for https://github.com/rsyslog/rsyslog/issues/61 |
450 |
- |
451 |
-Based on Maxim Koltsov proposed patch from https://bugs.gentoo.org/show_bug.cgi?id=507730 |
452 |
---- |
453 |
- plugins/mmjsonparse/mmjsonparse.c | 2 +- |
454 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
455 |
- |
456 |
-diff --git a/plugins/mmjsonparse/mmjsonparse.c b/plugins/mmjsonparse/mmjsonparse.c |
457 |
-index b16aef0..a5bfaa2 100644 |
458 |
---- a/plugins/mmjsonparse/mmjsonparse.c |
459 |
-+++ b/plugins/mmjsonparse/mmjsonparse.c |
460 |
-@@ -146,7 +146,7 @@ processJSON(instanceData *pData, msg_t *pMsg, char *buf, size_t lenBuf) |
461 |
- |
462 |
- err = pData->tokener->err; |
463 |
- if(err != json_tokener_continue) |
464 |
-- errMsg = json_tokener_errors[err]; |
465 |
-+ errMsg = json_tokener_error_desc(err); |
466 |
- else |
467 |
- errMsg = "Unterminated input"; |
468 |
- } else if((size_t)pData->tokener->char_offset < lenBuf) |
469 |
--- |
470 |
-1.9.1 |
471 |
- |
472 |
|
473 |
diff --git a/app-admin/rsyslog/files/7-stable/rsyslog.conf b/app-admin/rsyslog/files/7-stable/rsyslog.conf |
474 |
deleted file mode 100644 |
475 |
index da48459..0000000 |
476 |
--- a/app-admin/rsyslog/files/7-stable/rsyslog.conf |
477 |
+++ /dev/null |
478 |
@@ -1,61 +0,0 @@ |
479 |
-# /etc/rsyslog.conf |
480 |
-# |
481 |
-# This configuration is based on RainerScript, the new recommended syntax |
482 |
-# for RSYSLOG. See http://www.rsyslog.com/doc/rainerscript.html for further |
483 |
-# details. |
484 |
-# |
485 |
-# But if you don't want to learn something new at moment, don't worry: The |
486 |
-# legacy syntax is still supported. |
487 |
-# |
488 |
-# You may want to use the new RSYSLOG configuration builder to create your |
489 |
-# own more advanced configuration: http://www.rsyslog.com/rsyslog-configuration-builder/ |
490 |
- |
491 |
-# Check config syntax on startup and abort if unclean (default: off) |
492 |
-#$AbortOnUncleanConfig on |
493 |
- |
494 |
- |
495 |
-############### |
496 |
-### MODULES ### |
497 |
-############### |
498 |
- |
499 |
-# Read syslog messages from default Unix socket /dev/log (e.g. via logger command) |
500 |
-module(load="imuxsock") |
501 |
- |
502 |
-# Read messages from the kernel log and submits them to the syslog engine |
503 |
-module(load="imklog") |
504 |
- |
505 |
-# Inject "--MARK--" messages every $Interval (seconds) |
506 |
-#module(load="immark" Interval="600") |
507 |
- |
508 |
-# Read syslog messages from UDP |
509 |
-#module(load="imudp") |
510 |
-#input(type="imudp" port="514") |
511 |
- |
512 |
-# Read syslog messages from TCP |
513 |
-#module(load="imtcp") |
514 |
-#input(type="imtcp" port="514") |
515 |
- |
516 |
- |
517 |
-######################### |
518 |
-### GLOBAL DIRECTIVES ### |
519 |
-######################### |
520 |
- |
521 |
-# Where to place spool and state files |
522 |
-$WorkDirectory /var/spool/rsyslog |
523 |
- |
524 |
-# Reduce repeating messages (default: off) |
525 |
-#$RepeatedMsgReduction on |
526 |
- |
527 |
-# Set defaults for every output file |
528 |
-$Umask 0022 |
529 |
- |
530 |
-module( |
531 |
- load="builtin:omfile" |
532 |
- Template="RSYSLOG_TraditionalFileFormat" |
533 |
- FileCreateMode="0644" |
534 |
- DirCreateMode="0755" |
535 |
-) |
536 |
- |
537 |
- |
538 |
-# Include all conf files in /etc/rsyslog.d/ |
539 |
-$IncludeConfig /etc/rsyslog.d/*.conf |
540 |
|
541 |
diff --git a/app-admin/rsyslog/files/7-stable/rsyslog.confd-r1 b/app-admin/rsyslog/files/7-stable/rsyslog.confd-r1 |
542 |
deleted file mode 100644 |
543 |
index d8cbe87..0000000 |
544 |
--- a/app-admin/rsyslog/files/7-stable/rsyslog.confd-r1 |
545 |
+++ /dev/null |
546 |
@@ -1,30 +0,0 @@ |
547 |
-# /etc/conf.d/rsyslog |
548 |
- |
549 |
-# Configuration file |
550 |
-RSYSLOG_CONFIGFILE="/etc/rsyslog.conf" |
551 |
- |
552 |
-# PID file |
553 |
-# If you should ever change this, remember to update |
554 |
-# "/etc/logrotate.d/rsyslog", too. |
555 |
-RSYSLOG_PIDFILE="/run/rsyslogd.pid" |
556 |
- |
557 |
-# You can use this configuration option to pass additional options to the |
558 |
-# start-stop-daemon, see start-stop-daemon(8) for more details. |
559 |
-# Per default we wait 1000ms after we have started the service to ensure |
560 |
-# that the daemon is really up and running. |
561 |
-RSYSLOG_SSDARGS="--wait 1000" |
562 |
- |
563 |
-# The termination timeout (start-stop-daemon parameter "retry") ensures |
564 |
-# that the service will be terminated within a given time (60 + 5 seconds |
565 |
-# per default) when you are stopping the service. |
566 |
-# You need to increase the value when you are working with a large queue. |
567 |
-# See http://www.rsyslog.com/doc/queues.html for further information. |
568 |
-RSYSLOG_TERMTIMEOUT="TERM/60/KILL/5" |
569 |
- |
570 |
- |
571 |
-# Options to rsyslogd |
572 |
-# See rsyslogd(8) for more details |
573 |
-# Notes: |
574 |
-# * Do not specify another PIDFILE but use the variable above to change the location |
575 |
-# * Do not specify another CONFIGFILE but use the variable above to change the location |
576 |
-RSYSLOG_OPTS="" |
577 |
|
578 |
diff --git a/app-admin/rsyslog/files/7-stable/rsyslog.initd-r1 b/app-admin/rsyslog/files/7-stable/rsyslog.initd-r1 |
579 |
deleted file mode 100644 |
580 |
index bc326f4..0000000 |
581 |
--- a/app-admin/rsyslog/files/7-stable/rsyslog.initd-r1 |
582 |
+++ /dev/null |
583 |
@@ -1,69 +0,0 @@ |
584 |
-#!/sbin/runscript |
585 |
-# Copyright 1999-2014 Gentoo Foundation |
586 |
-# Distributed under the terms of the GNU General Public License v2 |
587 |
-# $Header: $ |
588 |
- |
589 |
-RSYSLOG_CONFIGFILE=${RSYSLOG_CONFIGFILE:-"/etc/rsyslog.conf"} |
590 |
-RSYSLOG_PIDFILE=${RSYSLOG_PIDFILE:-"/run/rsyslogd.pid"} |
591 |
- |
592 |
-command="/usr/sbin/rsyslogd" |
593 |
-command_args="${RSYSLOG_OPTS} -f ${RSYSLOG_CONFIGFILE} -i ${RSYSLOG_PIDFILE}" |
594 |
-start_stop_daemon_args="${RSYSLOG_SSDARGS}" |
595 |
-pidfile="${RSYSLOG_PIDFILE}" |
596 |
-retry="${RSYSLOG_TERMTIMEOUT}" |
597 |
- |
598 |
-required_files=( "${RSYSLOG_CONFIGFILE}" ) |
599 |
- |
600 |
-description="RSYSLOG is the rocket-fast system for log processing (syslog replacement)." |
601 |
- |
602 |
-extra_commands="configtest" |
603 |
-extra_started_commands="rotate" |
604 |
- |
605 |
-description_configtest="Run rsyslogd's internal config check." |
606 |
- |
607 |
-description_rotate="Sends rsyslogd a signal to re-open its log files." |
608 |
- |
609 |
-depend() { |
610 |
- need clock hostname localmount |
611 |
- provide logger |
612 |
-} |
613 |
- |
614 |
-start_pre() { |
615 |
- if [ "${RC_CMD}" != "restart" ]; then |
616 |
- configtest || return 1 |
617 |
- fi |
618 |
-} |
619 |
- |
620 |
-stop_pre() { |
621 |
- if [ "${RC_CMD}" = "restart" ]; then |
622 |
- configtest || return 1 |
623 |
- fi |
624 |
-} |
625 |
- |
626 |
-stop_post() { |
627 |
- rm -f ${RSYSLOG_PIDFILE} |
628 |
-} |
629 |
- |
630 |
-configtest() { |
631 |
- # This will currently only detect fatal errors |
632 |
- # See https://github.com/rsyslog/rsyslog/issues/79 |
633 |
- |
634 |
- local _test_command="${command} -N 999 -f ${RSYSLOG_CONFIGFILE}" |
635 |
- local _retval=0 |
636 |
- |
637 |
- ebegin "Checking rsyslogd's configuration" |
638 |
- ${_test_command} &>/dev/null |
639 |
- _retval=$? |
640 |
- |
641 |
- if [ ${_retval} -ne 0 ]; then |
642 |
- ${_test_command} |
643 |
- fi |
644 |
- |
645 |
- eend ${_retval} "failed, please correct errors above" |
646 |
-} |
647 |
- |
648 |
-rotate() { |
649 |
- ebegin "Re-opening rsyslogd logs" |
650 |
- start-stop-daemon --signal SIGHUP --pidfile "${RSYSLOG_PIDFILE}" |
651 |
- eend $? |
652 |
-} |
653 |
|
654 |
diff --git a/app-admin/rsyslog/files/7-stable/rsyslog.logrotate-r1 b/app-admin/rsyslog/files/7-stable/rsyslog.logrotate-r1 |
655 |
deleted file mode 100644 |
656 |
index 1eae30e..0000000 |
657 |
--- a/app-admin/rsyslog/files/7-stable/rsyslog.logrotate-r1 |
658 |
+++ /dev/null |
659 |
@@ -1,37 +0,0 @@ |
660 |
-# Uncomment the following directive if you have re-enabled |
661 |
-# "/var/log/syslog" in "/etc/rsyslog.d/50-default.conf" |
662 |
-#/var/log/syslog |
663 |
-#{ |
664 |
-# rotate 7 |
665 |
-# daily |
666 |
-# missingok |
667 |
-# notifempty |
668 |
-# delaycompress |
669 |
-# compress |
670 |
-# postrotate |
671 |
-# test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null |
672 |
-# endscript |
673 |
-#} |
674 |
- |
675 |
-/var/log/auth.log |
676 |
-/var/log/cron.log |
677 |
-/var/log/daemon.log |
678 |
-/var/log/kern.log |
679 |
-/var/log/lpr.log |
680 |
-/var/log/mail.log |
681 |
-/var/log/news.log |
682 |
-/var/log/user.log |
683 |
-/var/log/debug.log |
684 |
-/var/log/messages |
685 |
-{ |
686 |
- rotate 4 |
687 |
- weekly |
688 |
- missingok |
689 |
- notifempty |
690 |
- compress |
691 |
- delaycompress |
692 |
- sharedscripts |
693 |
- postrotate |
694 |
- test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null |
695 |
- endscript |
696 |
-} |
697 |
|
698 |
diff --git a/app-admin/rsyslog/metadata.xml b/app-admin/rsyslog/metadata.xml |
699 |
deleted file mode 100644 |
700 |
index 6f23de3..0000000 |
701 |
--- a/app-admin/rsyslog/metadata.xml |
702 |
+++ /dev/null |
703 |
@@ -1,41 +0,0 @@ |
704 |
-<?xml version="1.0" encoding="UTF-8"?> |
705 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
706 |
-<pkgmetadata> |
707 |
- <maintainer> |
708 |
- <email>ultrabug@g.o</email> |
709 |
- <name>Ultrabug</name> |
710 |
- <description>Primary Maintainer</description> |
711 |
- </maintainer> |
712 |
- <maintainer> |
713 |
- <email>whissi@××××××.de</email> |
714 |
- <name>Thomas D. (Whissi)</name> |
715 |
- <description>Proxy-Maintainer, CC. bugs</description> |
716 |
- </maintainer> |
717 |
- <use> |
718 |
- <flag name="dbi">Build the general database output module (requires <pkg>dev-db/libdbi</pkg>)</flag> |
719 |
- <flag name="elasticsearch">Build the Elasticsearch output module (requires <pkg>net-misc/curl</pkg>)</flag> |
720 |
- <flag name="extras">Add support for the UDP spoofing module (omudpspoof) using <pkg>net-libs/libnet</pkg></flag> |
721 |
- <flag name="gcrypt">Add support for encrypted log files using <pkg>dev-libs/libgcrypt</pkg></flag> |
722 |
- <flag name="kerberos">Build the GSSAPI input and output module (requires <pkg>virtual/krb5</pkg>)</flag> |
723 |
- <flag name="mongodb">Build the MongoDB output module (requires <pkg>dev-libs/libmongo-client</pkg>)</flag> |
724 |
- <flag name="mysql">Build the MySQL databse output module (requires <pkg>virtual/mysql</pkg>)</flag> |
725 |
- <flag name="normalize">Build the normalize modify module (requires <pkg>dev-libs/libee</pkg> and <pkg>dev-libs/liblognorm</pkg>)</flag> |
726 |
- <flag name="omudpspoof">Build the udpspoof output module (requires <pkg>net-libs/libnet</pkg>)</flag> |
727 |
- <flag name="oracle">Build the Oracle database output module (requires <pkg>dev-db/oracle-instantclient-basic</pkg>)</flag> |
728 |
- <flag name="postgres">Build the PostgreSQL database output module (requires <pkg>dev-db/postgresql-base</pkg>)</flag> |
729 |
- <flag name="rabbitmq">Build the RabbitMQ output module (requires <pkg>net-libs/rabbitmq-c</pkg>)</flag> |
730 |
- <flag name="redis">Build the Redis output module using (requires <pkg>dev-libs/hiredis</pkg>)</flag> |
731 |
- <flag name="relp">Build the Reliable Event Logging Protocol (RELP) output module (requires <pkg>dev-libs/librelp</pkg>)</flag> |
732 |
- <flag name="rfc3195">Build the rfc3195 input module (requires <pkg>dev-libs/liblogging</pkg>)</flag> |
733 |
- <flag name="rfc5424hmac">Build the rfc5424hmac modify module (requires <pkg>dev-libs/openssl</pkg>)</flag> |
734 |
- <flag name="snmp">Build the snmp modify and output module (requires <pkg>net-analyzer/net-snmp</pkg>)</flag> |
735 |
- <flag name="ssl">Add support for encrypted client/server communication (requires <pkg>net-libs/gnutls</pkg>)</flag> |
736 |
- <flag name="systemd">Build the journal input and output module (requires <pkg>sys-apps/systemd</pkg>)</flag> |
737 |
- <flag name="usertools">Installs the user tools (rsgtutil, rscryutil...) corresponding to the set USE flags</flag> |
738 |
- <flag name="zeromq">Build the ZeroMQ input and output modules (requires <pkg>net-libs/zeromq</pkg>)</flag> |
739 |
- </use> |
740 |
- <upstream> |
741 |
- <bugs-to>https://github.com/rsyslog/rsyslog/issues</bugs-to> |
742 |
- <remote-id type="cpe">cpe:/a:rsyslog:rsyslog</remote-id> |
743 |
- </upstream> |
744 |
-</pkgmetadata> |
745 |
|
746 |
diff --git a/app-admin/rsyslog/rsyslog-7.6.3.ebuild b/app-admin/rsyslog/rsyslog-7.6.3.ebuild |
747 |
deleted file mode 100644 |
748 |
index c73667a..0000000 |
749 |
--- a/app-admin/rsyslog/rsyslog-7.6.3.ebuild |
750 |
+++ /dev/null |
751 |
@@ -1,327 +0,0 @@ |
752 |
-# Copyright 1999-2014 Gentoo Foundation |
753 |
-# Distributed under the terms of the GNU General Public License v2 |
754 |
-# $Header: $ |
755 |
- |
756 |
-EAPI=5 |
757 |
-AUTOTOOLS_AUTORECONF=1 |
758 |
- |
759 |
-inherit autotools-utils eutils systemd |
760 |
- |
761 |
-DESCRIPTION="An enhanced multi-threaded syslogd with database support and more" |
762 |
-HOMEPAGE="http://www.rsyslog.com/" |
763 |
-SRC_URI="http://www.rsyslog.com/files/download/${PN}/${P}.tar.gz" |
764 |
- |
765 |
-LICENSE="GPL-3 LGPL-3 Apache-2.0" |
766 |
-KEYWORDS="~amd64 ~x86" |
767 |
-SLOT="0" |
768 |
-IUSE="dbi debug doc elasticsearch +gcrypt kerberos mongodb mysql normalize omudpspoof oracle postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp ssl systemd usertools zeromq" |
769 |
- |
770 |
-RDEPEND=" |
771 |
- >=dev-libs/json-c-0.11:= |
772 |
- >=dev-libs/libestr-0.1.9 |
773 |
- >=dev-libs/liblogging-1.0.1:=[stdlog] |
774 |
- >=sys-libs/zlib-1.2.5 |
775 |
- dbi? ( >=dev-db/libdbi-0.8.3 ) |
776 |
- elasticsearch? ( >=net-misc/curl-7.35.0 ) |
777 |
- gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= ) |
778 |
- kerberos? ( virtual/krb5 ) |
779 |
- mongodb? ( >=dev-libs/libmongo-client-0.1.4 ) |
780 |
- mysql? ( virtual/mysql ) |
781 |
- normalize? ( |
782 |
- >=dev-libs/libee-0.4.0 |
783 |
- >=dev-libs/liblognorm-0.3.1:= |
784 |
- !>=dev-libs/liblognorm-1.0.0 |
785 |
- ) |
786 |
- omudpspoof? ( >=net-libs/libnet-1.1.6 ) |
787 |
- oracle? ( >=dev-db/oracle-instantclient-basic-10.2 ) |
788 |
- postgres? ( >=dev-db/postgresql-base-8.4.20 ) |
789 |
- rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0 ) |
790 |
- redis? ( >=dev-libs/hiredis-0.11.0 ) |
791 |
- relp? ( >=dev-libs/librelp-1.2.5 ) |
792 |
- rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] ) |
793 |
- rfc5424hmac? ( >=dev-libs/openssl-0.9.8y ) |
794 |
- snmp? ( >=net-analyzer/net-snmp-5.7.2 ) |
795 |
- ssl? ( >=net-libs/gnutls-2.12.23 ) |
796 |
- systemd? ( >=sys-apps/systemd-208 ) |
797 |
- zeromq? ( >=net-libs/czmq-1.2.0 )" |
798 |
-DEPEND="${RDEPEND} |
799 |
- virtual/pkgconfig" |
800 |
- |
801 |
-BRANCH="7-stable" |
802 |
- |
803 |
-# Test suite requires a special setup or will always fail |
804 |
-RESTRICT="test" |
805 |
- |
806 |
-# Maitainer note : open a bug to upstream |
807 |
-# showing that building in a separate dir fails |
808 |
-AUTOTOOLS_IN_SOURCE_BUILD=1 |
809 |
- |
810 |
-AUTOTOOLS_PRUNE_LIBTOOL_FILES="modules" |
811 |
- |
812 |
-DOCS=( |
813 |
- AUTHORS |
814 |
- ChangeLog |
815 |
- doc/rsyslog-example.conf |
816 |
- "${FILESDIR}"/${BRANCH}/README.gentoo |
817 |
-) |
818 |
- |
819 |
-PATCHES=( |
820 |
- "${FILESDIR}"/${BRANCH}/${PN}-7.x-mmjsonparse.patch |
821 |
- "${FILESDIR}"/${BRANCH}/fix-omruleset-default-value.patch |
822 |
- "${FILESDIR}"/${BRANCH}/bugfix_52.patch |
823 |
- "${FILESDIR}"/${BRANCH}/bugfix_73.patch |
824 |
-) |
825 |
- |
826 |
-src_configure() { |
827 |
- # Maintainer notes: |
828 |
- # * Guardtime support is missing because libgt isn't yet available |
829 |
- # in portage. |
830 |
- # * Hadoop's HDFS file system output module is currently not |
831 |
- # supported in Gentoo because nobody is able to test it |
832 |
- # (JAVA dependency). |
833 |
- # * dev-libs/hiredis doesn't provide pkg-config (see #504614, |
834 |
- # upstream PR 129 and 136) so we need to export HIREDIS_* |
835 |
- # variables because rsyslog's build system depends on pkg-config. |
836 |
- |
837 |
- if use redis; then |
838 |
- export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis" |
839 |
- export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include" |
840 |
- fi |
841 |
- |
842 |
- local myeconfargs=( |
843 |
- # Input Plugins without depedencies |
844 |
- --enable-imfile |
845 |
- --enable-impstats |
846 |
- --enable-imptcp |
847 |
- --enable-imttcp |
848 |
- # Message Modificiation Plugins without depedencies |
849 |
- --enable-mmanon |
850 |
- --enable-mmaudit |
851 |
- --enable-mmcount |
852 |
- --enable-mmfields |
853 |
- --enable-mmjsonparse |
854 |
- --enable-mmpstrucdata |
855 |
- --enable-mmsequence |
856 |
- --enable-mmutf8fix |
857 |
- # Output Modification Plugins without dependencies |
858 |
- --enable-mail |
859 |
- --enable-omprog |
860 |
- --enable-omruleset |
861 |
- --enable-omstdout |
862 |
- --enable-omuxsock |
863 |
- # Misc |
864 |
- --enable-pmaixforwardedfrom |
865 |
- --enable-pmcisconames |
866 |
- --enable-pmlastmsg |
867 |
- --enable-pmrfc3164sd |
868 |
- --enable-pmsnare |
869 |
- --enable-sm_cust_bindcdr |
870 |
- # DB |
871 |
- $(use_enable dbi libdbi) |
872 |
- $(use_enable mongodb ommongodb) |
873 |
- $(use_enable mysql) |
874 |
- $(use_enable oracle) |
875 |
- $(use_enable postgres pgsql) |
876 |
- $(use_enable redis omhiredis) |
877 |
- # Debug |
878 |
- $(use_enable debug) |
879 |
- $(use_enable debug diagtools) |
880 |
- $(use_enable debug imdiag) |
881 |
- $(use_enable debug memcheck) |
882 |
- $(use_enable debug rtinst) |
883 |
- $(use_enable debug valgrind) |
884 |
- # Misc |
885 |
- $(use_enable elasticsearch) |
886 |
- $(use_enable gcrypt libgcrypt) |
887 |
- $(use_enable kerberos gssapi-krb5) |
888 |
- $(use_enable normalize mmnormalize) |
889 |
- $(use_enable omudpspoof) |
890 |
- $(use_enable rabbitmq omrabbitmq) |
891 |
- $(use_enable relp) |
892 |
- $(use_enable rfc3195) |
893 |
- $(use_enable rfc5424hmac mmrfc5424addhmac) |
894 |
- $(use_enable snmp) |
895 |
- $(use_enable snmp mmsnmptrapd) |
896 |
- $(use_enable ssl gnutls) |
897 |
- $(use_enable systemd imjournal) |
898 |
- $(use_enable systemd omjournal) |
899 |
- $(use_enable usertools) |
900 |
- $(use_enable zeromq imzmq3) |
901 |
- $(use_enable zeromq omzmq3) |
902 |
- "$(systemd_with_unitdir)" |
903 |
- ) |
904 |
- |
905 |
- autotools-utils_src_configure |
906 |
-} |
907 |
- |
908 |
-src_install() { |
909 |
- use doc && HTML_DOCS=( "${S}"/doc/ ) |
910 |
- autotools-utils_src_install |
911 |
- |
912 |
- newconfd "${FILESDIR}/${BRANCH}/${PN}.confd-r1" ${PN} |
913 |
- newinitd "${FILESDIR}/${BRANCH}/${PN}.initd-r1" ${PN} |
914 |
- |
915 |
- keepdir /var/empty/dev |
916 |
- keepdir /var/spool/${PN} |
917 |
- keepdir /etc/ssl/${PN} |
918 |
- keepdir /etc/${PN}.d |
919 |
- |
920 |
- insinto /etc |
921 |
- newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf |
922 |
- |
923 |
- insinto /etc/rsyslog.d/ |
924 |
- doins "${FILESDIR}/${BRANCH}/50-default.conf" |
925 |
- |
926 |
- insinto /etc/logrotate.d/ |
927 |
- newins "${FILESDIR}/${BRANCH}/${PN}.logrotate-r1" ${PN} |
928 |
- |
929 |
- if use mysql; then |
930 |
- insinto /usr/share/doc/${PF}/scripts/mysql |
931 |
- doins plugins/ommysql/{createDB.sql,contrib/delete_mysql} |
932 |
- fi |
933 |
- |
934 |
- if use postgres; then |
935 |
- insinto /usr/share/doc/${PF}/scripts/pgsql |
936 |
- doins plugins/ompgsql/createDB.sql |
937 |
- fi |
938 |
-} |
939 |
- |
940 |
-pkg_postinst() { |
941 |
- local advertise_readme=0 |
942 |
- |
943 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
944 |
- # This is a new installation |
945 |
- |
946 |
- advertise_readme=1 |
947 |
- |
948 |
- if use mysql || use postgres; then |
949 |
- echo |
950 |
- elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:" |
951 |
- elog " /usr/share/doc/${PF}/scripts" |
952 |
- fi |
953 |
- |
954 |
- if use ssl; then |
955 |
- echo |
956 |
- elog "To create a default CA and certificates for your server and clients, run:" |
957 |
- elog " emerge --config =${PF}" |
958 |
- elog "on your logging server. You can run it several times," |
959 |
- elog "once for each logging client. The client certificates will be signed" |
960 |
- elog "using the CA certificate generated during the first run." |
961 |
- fi |
962 |
- fi |
963 |
- |
964 |
- if [[ -z "${REPLACING_VERSIONS}" ]] || [[ ${REPLACING_VERSIONS} < 8.0 ]]; then |
965 |
- # Show this message until rsyslog-8.x |
966 |
- echo |
967 |
- elog "Since ${PN}-7.6.3 we no longer use the catch-all log target" |
968 |
- elog "\"/var/log/syslog\" due to its redundancy to the other log targets." |
969 |
- |
970 |
- advertise_readme=1 |
971 |
- fi |
972 |
- |
973 |
- if [[ ${advertise_readme} -gt 0 ]]; then |
974 |
- # We need to show the README file location |
975 |
- |
976 |
- echo "" |
977 |
- elog "Please read" |
978 |
- elog "" |
979 |
- elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*" |
980 |
- elog "" |
981 |
- elog "for more details." |
982 |
- fi |
983 |
-} |
984 |
- |
985 |
-pkg_config() { |
986 |
- if ! use ssl ; then |
987 |
- einfo "There is nothing to configure for rsyslog unless you" |
988 |
- einfo "used USE=ssl to build it." |
989 |
- return 0 |
990 |
- fi |
991 |
- |
992 |
- # Make sure the certificates directory exists |
993 |
- CERTDIR="${EROOT}/etc/ssl/${PN}" |
994 |
- if [ ! -d "${CERTDIR}" ]; then |
995 |
- mkdir "${CERTDIR}" || die |
996 |
- fi |
997 |
- einfo "Your certificates will be stored in ${CERTDIR}" |
998 |
- |
999 |
- # Create a default CA if needed |
1000 |
- if [ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]; then |
1001 |
- einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..." |
1002 |
- certtool --generate-privkey \ |
1003 |
- --outfile "${CERTDIR}/${PN}_ca.privkey.pem" &>/dev/null |
1004 |
- chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" |
1005 |
- |
1006 |
- cat > "${T}/${PF}.$$" <<- _EOF |
1007 |
- cn = Portage automated CA |
1008 |
- ca |
1009 |
- cert_signing_key |
1010 |
- expiration_days = 3650 |
1011 |
- _EOF |
1012 |
- |
1013 |
- certtool --generate-self-signed \ |
1014 |
- --load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ |
1015 |
- --outfile "${CERTDIR}/${PN}_ca.cert.pem" \ |
1016 |
- --template "${T}/${PF}.$$" &>/dev/null |
1017 |
- chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem" |
1018 |
- |
1019 |
- # Create the server certificate |
1020 |
- echo |
1021 |
- einfon "Please type the Common Name of the SERVER you wish to create a certificate for: " |
1022 |
- read -r CN |
1023 |
- |
1024 |
- einfo "Creating private key and certificate for server ${CN}..." |
1025 |
- certtool --generate-privkey \ |
1026 |
- --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null |
1027 |
- chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" |
1028 |
- |
1029 |
- cat > "${T}/${PF}.$$" <<- _EOF |
1030 |
- cn = ${CN} |
1031 |
- tls_www_server |
1032 |
- dns_name = ${CN} |
1033 |
- expiration_days = 3650 |
1034 |
- _EOF |
1035 |
- |
1036 |
- certtool --generate-certificate \ |
1037 |
- --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ |
1038 |
- --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ |
1039 |
- --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ |
1040 |
- --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ |
1041 |
- --template "${T}/${PF}.$$" &>/dev/null |
1042 |
- chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" |
1043 |
- |
1044 |
- else |
1045 |
- einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation." |
1046 |
- fi |
1047 |
- |
1048 |
- # Create a client certificate |
1049 |
- echo |
1050 |
- einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: " |
1051 |
- read -r CN |
1052 |
- |
1053 |
- einfo "Creating private key and certificate for client ${CN}..." |
1054 |
- certtool --generate-privkey \ |
1055 |
- --outfile "${CERTDIR}/${PN}_${CN}.key.pem" &>/dev/null |
1056 |
- chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem" |
1057 |
- |
1058 |
- cat > "${T}/${PF}.$$" <<- _EOF |
1059 |
- cn = ${CN} |
1060 |
- tls_www_client |
1061 |
- dns_name = ${CN} |
1062 |
- expiration_days = 3650 |
1063 |
- _EOF |
1064 |
- |
1065 |
- certtool --generate-certificate \ |
1066 |
- --outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \ |
1067 |
- --load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \ |
1068 |
- --load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \ |
1069 |
- --load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \ |
1070 |
- --template "${T}/${PF}.$$" &>/dev/null |
1071 |
- chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem" |
1072 |
- |
1073 |
- rm -f "${T}/${PF}.$$" |
1074 |
- |
1075 |
- echo |
1076 |
- einfo "Here is the documentation on how to encrypt your log traffic:" |
1077 |
- einfo " http://www.rsyslog.com/doc/rsyslog_tls.html" |
1078 |
-} |