1 |
ultrabug 14/05/22 11:15:49 |
2 |
|
3 |
Added: rsyslog.initd-r1 bugfix_73.patch rsyslog.conf |
4 |
rsyslog.confd-r1 50-default.conf README.gentoo |
5 |
rsyslog.logrotate-r1 bugfix_52.patch |
6 |
fix-omruleset-default-value.patch |
7 |
Log: |
8 |
version bump fix #501988 #501982 #501986 #490744 thx to @Whissi |
9 |
|
10 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B658FA13) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 app-admin/rsyslog/files/7-stable/rsyslog.initd-r1 |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.initd-r1?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.initd-r1?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: rsyslog.initd-r1 |
19 |
=================================================================== |
20 |
#!/sbin/runscript |
21 |
# Copyright 1999-2014 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.initd-r1,v 1.1 2014/05/22 11:15:49 ultrabug Exp $ |
24 |
|
25 |
RSYSLOG_CONFIGFILE=${RSYSLOG_CONFIGFILE:-"/etc/rsyslog.conf"} |
26 |
RSYSLOG_PIDFILE=${RSYSLOG_PIDFILE:-"/run/rsyslogd.pid"} |
27 |
|
28 |
command="/usr/sbin/rsyslogd" |
29 |
command_args="${RSYSLOG_OPTS} -f ${RSYSLOG_CONFIGFILE} -i ${RSYSLOG_PIDFILE}" |
30 |
start_stop_daemon_args="${RSYSLOG_SSDARGS}" |
31 |
pidfile="${RSYSLOG_PIDFILE}" |
32 |
retry="${RSYSLOG_TERMTIMEOUT}" |
33 |
|
34 |
required_files=( "${RSYSLOG_CONFIGFILE}" ) |
35 |
|
36 |
description="RSYSLOG is the rocket-fast system for log processing (syslog replacement)." |
37 |
|
38 |
extra_commands="configtest" |
39 |
extra_started_commands="rotate" |
40 |
|
41 |
description_configtest="Run rsyslogd's internal config check." |
42 |
|
43 |
description_rotate="Sends rsyslogd a signal to re-open its log files." |
44 |
|
45 |
depend() { |
46 |
need clock hostname localmount |
47 |
provide logger |
48 |
} |
49 |
|
50 |
start_pre() { |
51 |
if [ "${RC_CMD}" != "restart" ]; then |
52 |
configtest || return 1 |
53 |
fi |
54 |
} |
55 |
|
56 |
stop_pre() { |
57 |
if [ "${RC_CMD}" = "restart" ]; then |
58 |
configtest || return 1 |
59 |
fi |
60 |
} |
61 |
|
62 |
stop_post() { |
63 |
rm -f ${RSYSLOG_PIDFILE} |
64 |
} |
65 |
|
66 |
configtest() { |
67 |
# This will currently only detect fatal errors |
68 |
# See https://github.com/rsyslog/rsyslog/issues/79 |
69 |
|
70 |
local _test_command="${command} -N 999 -f ${RSYSLOG_CONFIGFILE}" |
71 |
local _retval=0 |
72 |
|
73 |
ebegin "Checking rsyslogd's configuration" |
74 |
${_test_command} &>/dev/null |
75 |
_retval=$? |
76 |
|
77 |
if [ ${_retval} -ne 0 ]; then |
78 |
${_test_command} |
79 |
fi |
80 |
|
81 |
eend ${_retval} "failed, please correct errors above" |
82 |
} |
83 |
|
84 |
rotate() { |
85 |
ebegin "Re-opening rsyslogd logs" |
86 |
start-stop-daemon --signal SIGHUP --pidfile "${RSYSLOG_PIDFILE}" |
87 |
eend $? |
88 |
} |
89 |
|
90 |
|
91 |
|
92 |
1.1 app-admin/rsyslog/files/7-stable/bugfix_73.patch |
93 |
|
94 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/bugfix_73.patch?rev=1.1&view=markup |
95 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/bugfix_73.patch?rev=1.1&content-type=text/plain |
96 |
|
97 |
Index: bugfix_73.patch |
98 |
=================================================================== |
99 |
This patch will update the pre-generated rscryutil man page from the release |
100 |
tarball so we don't need to depend on dev-python/docutils. |
101 |
|
102 |
https://github.com/rsyslog/rsyslog/issues/73 |
103 |
|
104 |
diff -rupN old/rsyslog-7.6.3/tools/rscryutil.1 new/rsyslog-7.6.3/tools/rscryutil.1 |
105 |
--- old/rsyslog-7.6.3/tools/rscryutil.1 2013-10-29 16:31:21.000000000 +0100 |
106 |
+++ new/rsyslog-7.6.3/tools/rscryutil.1 2014-05-03 20:41:46.143825094 +0200 |
107 |
@@ -1,4 +1,4 @@ |
108 |
-.\" Man page generated from reStructeredText. |
109 |
+.\" Man page generated from reStructuredText. |
110 |
. |
111 |
.TH RSCRYUTIL 1 "2013-04-15" "" "" |
112 |
.SH NAME |
113 |
@@ -31,12 +31,16 @@ level margin: \\n[rst2man-indent\\n[rst2 |
114 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
115 |
.. |
116 |
.SH SYNOPSIS |
117 |
+.INDENT 0.0 |
118 |
+.INDENT 3.5 |
119 |
.sp |
120 |
.nf |
121 |
.ft C |
122 |
rscryutil [OPTIONS] [FILE] ... |
123 |
.ft P |
124 |
.fi |
125 |
+.UNINDENT |
126 |
+.UNINDENT |
127 |
.SH DESCRIPTION |
128 |
.sp |
129 |
This tool performs various operations on encrypted log files. |
130 |
@@ -44,46 +48,46 @@ Most importantly, it provides the abilit |
131 |
.SH OPTIONS |
132 |
.INDENT 0.0 |
133 |
.TP |
134 |
-.B \-d, \-\-decrypt |
135 |
+.B \-d\fP,\fB \-\-decrypt |
136 |
Select decryption mode. This is the default mode. |
137 |
.TP |
138 |
-.BI \-W, \-\-write\-keyfile \ <file> |
139 |
+.BI \-W\fP,\fB \-\-write\-keyfile \ <file> |
140 |
Utility function to write a key to a keyfile. The key can be obtained |
141 |
via any method. |
142 |
.TP |
143 |
-.B \-v, \-\-verbose |
144 |
+.B \-v\fP,\fB \-\-verbose |
145 |
Select verbose mode. |
146 |
.TP |
147 |
-.B \-f, \-\-force |
148 |
+.B \-f\fP,\fB \-\-force |
149 |
Forces operations that otherwise would fail. |
150 |
.TP |
151 |
-.BI \-k, \-\-keyfile \ <file> |
152 |
+.BI \-k\fP,\fB \-\-keyfile \ <file> |
153 |
Reads the key from <file>. File _must_ contain the key, only, no headers |
154 |
or other meta information. Keyfiles can be generated via the |
155 |
\fI\-\-write\-keyfile\fP option. |
156 |
.TP |
157 |
-.BI \-p, \-\-key\-program \ <path\-to\-program> |
158 |
+.BI \-p\fP,\fB \-\-key\-program \ <path\-to\-program> |
159 |
In this mode, the key is provided by a so\-called "key program". This program |
160 |
is executed and must return the key to (as well as some meta information) |
161 |
via stdout. The core idea of key programs is that using this interface the |
162 |
user can implement as complex (and secure) method to obtain keys as |
163 |
desired, all without the need to make modifications to rsyslog. |
164 |
.TP |
165 |
-.BI \-K, \-\-key \ <KEY> |
166 |
+.BI \-K\fP,\fB \-\-key \ <KEY> |
167 |
TESTING AID, NOT FOR PRODUCTION USE. This uses the KEY specified |
168 |
on the command line. This is the actual key, and as such this mode |
169 |
is highly insecure. However, it can be useful for intial testing |
170 |
steps. This option may be removed in the future. |
171 |
.TP |
172 |
-.BI \-a, \-\-algo \ <algo> |
173 |
+.BI \-a\fP,\fB \-\-algo \ <algo> |
174 |
Sets the encryption algorightm (cipher) to be used. See below |
175 |
for supported algorithms. The default is "AES128". |
176 |
.TP |
177 |
-.BI \-m, \-\-mode \ <mode> |
178 |
+.BI \-m\fP,\fB \-\-mode \ <mode> |
179 |
Sets the ciphermode to be used. See below for supported modes. |
180 |
The default is "CBC". |
181 |
.TP |
182 |
-.BI \-r, \-\-generate\-random\-key \ <bytes> |
183 |
+.BI \-r\fP,\fB \-\-generate\-random\-key \ <bytes> |
184 |
Generates a random key of length <bytes>. This option is |
185 |
meant to be used together with \fI\-\-write\-keyfile\fP (and it is hard |
186 |
to envision any other valid use for it). |
187 |
@@ -97,7 +101,7 @@ multiple operations mode are set on the |
188 |
unpredictable. |
189 |
.SS decrypt |
190 |
.sp |
191 |
-The provided log files are decrypted. Note that the \fI.encinfo\fP side files |
192 |
+The provided log files are decrypted. Note that the \fI\&.encinfo\fP side files |
193 |
must exist and be accessible in order for decryption to to work. |
194 |
.SS write\-keyfile |
195 |
.sp |
196 |
@@ -198,5 +202,4 @@ LGPLv2. |
197 |
.SH AUTHOR |
198 |
Rainer Gerhards <rgerhards@×××××××.com> |
199 |
.\" Generated by docutils manpage writer. |
200 |
-.\" |
201 |
. |
202 |
|
203 |
|
204 |
|
205 |
1.1 app-admin/rsyslog/files/7-stable/rsyslog.conf |
206 |
|
207 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.conf?rev=1.1&view=markup |
208 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.conf?rev=1.1&content-type=text/plain |
209 |
|
210 |
Index: rsyslog.conf |
211 |
=================================================================== |
212 |
# /etc/rsyslog.conf |
213 |
# |
214 |
# This configuration is based on RainerScript, the new recommended syntax |
215 |
# for RSYSLOG. See http://www.rsyslog.com/doc/rainerscript.html for further |
216 |
# details. |
217 |
# |
218 |
# But if you don't want to learn something new at moment, don't worry: The |
219 |
# legacy syntax is still supported. |
220 |
# |
221 |
# You may want to use the new RSYSLOG configuration builder to create your |
222 |
# own more advanced configuration: http://www.rsyslog.com/rsyslog-configuration-builder/ |
223 |
|
224 |
# Check config syntax on startup and abort if unclean (default: off) |
225 |
#$AbortOnUncleanConfig on |
226 |
|
227 |
|
228 |
############### |
229 |
### MODULES ### |
230 |
############### |
231 |
|
232 |
# Read syslog messages from default Unix socket /dev/log (e.g. via logger command) |
233 |
module(load="imuxsock") |
234 |
|
235 |
# Read messages from the kernel log and submits them to the syslog engine |
236 |
module(load="imklog") |
237 |
|
238 |
# Inject "--MARK--" messages every $Interval (seconds) |
239 |
#module(load="immark" Interval="600") |
240 |
|
241 |
# Read syslog messages from UDP |
242 |
#module(load="imudp") |
243 |
#input(type="imudp" port="514") |
244 |
|
245 |
# Read syslog messages from TCP |
246 |
#module(load="imtcp") |
247 |
#input(type="imtcp" port="514") |
248 |
|
249 |
|
250 |
######################### |
251 |
### GLOBAL DIRECTIVES ### |
252 |
######################### |
253 |
|
254 |
# Where to place spool and state files |
255 |
$WorkDirectory /var/spool/rsyslog |
256 |
|
257 |
# Reduce repeating messages (default: off) |
258 |
#$RepeatedMsgReduction on |
259 |
|
260 |
# Set defaults for every output file |
261 |
$Umask 0022 |
262 |
|
263 |
module( |
264 |
load="builtin:omfile" |
265 |
Template="RSYSLOG_TraditionalFileFormat" |
266 |
FileCreateMode="0644" |
267 |
DirCreateMode="0755" |
268 |
) |
269 |
|
270 |
|
271 |
# Include all conf files in /etc/rsyslog.d/ |
272 |
$IncludeConfig /etc/rsyslog.d/*.conf |
273 |
|
274 |
|
275 |
|
276 |
1.1 app-admin/rsyslog/files/7-stable/rsyslog.confd-r1 |
277 |
|
278 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.confd-r1?rev=1.1&view=markup |
279 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.confd-r1?rev=1.1&content-type=text/plain |
280 |
|
281 |
Index: rsyslog.confd-r1 |
282 |
=================================================================== |
283 |
# /etc/conf.d/rsyslog |
284 |
|
285 |
# Configuration file |
286 |
RSYSLOG_CONFIGFILE="/etc/rsyslog.conf" |
287 |
|
288 |
# PID file |
289 |
# If you should ever change this, remember to update |
290 |
# "/etc/logrotate.d/rsyslog", too. |
291 |
RSYSLOG_PIDFILE="/run/rsyslogd.pid" |
292 |
|
293 |
# You can use this configuration option to pass additional options to the |
294 |
# start-stop-daemon, see start-stop-daemon(8) for more details. |
295 |
# Per default we wait 1000ms after we have started the service to ensure |
296 |
# that the daemon is really up and running. |
297 |
RSYSLOG_SSDARGS="--wait 1000" |
298 |
|
299 |
# The termination timeout (start-stop-daemon parameter "retry") ensures |
300 |
# that the service will be terminated within a given time (60 + 5 seconds |
301 |
# per default) when you are stopping the service. |
302 |
# You need to increase the value when you are working with a large queue. |
303 |
# See http://www.rsyslog.com/doc/queues.html for further information. |
304 |
RSYSLOG_TERMTIMEOUT="TERM/60/KILL/5" |
305 |
|
306 |
|
307 |
# Options to rsyslogd |
308 |
# See rsyslogd(8) for more details |
309 |
# Notes: |
310 |
# * Do not specify another PIDFILE but use the variable above to change the location |
311 |
# * Do not specify another CONFIGFILE but use the variable above to change the location |
312 |
RSYSLOG_OPTS="" |
313 |
|
314 |
|
315 |
|
316 |
1.1 app-admin/rsyslog/files/7-stable/50-default.conf |
317 |
|
318 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/50-default.conf?rev=1.1&view=markup |
319 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/50-default.conf?rev=1.1&content-type=text/plain |
320 |
|
321 |
Index: 50-default.conf |
322 |
=================================================================== |
323 |
####################### |
324 |
### DEFAULT ACTIONS ### |
325 |
####################### |
326 |
|
327 |
auth,authpriv.* action( |
328 |
type="omfile" |
329 |
File="/var/log/auth.log" |
330 |
FileCreateMode="0600" |
331 |
FileOwner="root" |
332 |
FileGroup="adm" |
333 |
Sync="off" |
334 |
) |
335 |
|
336 |
cron.* action( |
337 |
type="omfile" |
338 |
File="/var/log/cron.log" |
339 |
FileOwner="root" |
340 |
FileGroup="adm" |
341 |
) |
342 |
|
343 |
daemon.* action( |
344 |
type="omfile" |
345 |
File="/var/log/daemon.log" |
346 |
FileOwner="root" |
347 |
FileGroup="adm" |
348 |
) |
349 |
|
350 |
kern.* action( |
351 |
type="omfile" |
352 |
File="/var/log/kern.log" |
353 |
FileOwner="root" |
354 |
FileGroup="adm" |
355 |
) |
356 |
|
357 |
lpr.* action( |
358 |
type="omfile" |
359 |
File="/var/log/lpr.log" |
360 |
FileOwner="root" |
361 |
FileGroup="adm" |
362 |
) |
363 |
|
364 |
mail.* action( |
365 |
type="omfile" |
366 |
File="/var/log/mail.log" |
367 |
FileOwner="root" |
368 |
FileGroup="adm" |
369 |
) |
370 |
|
371 |
news.* action( |
372 |
type="omfile" |
373 |
File="/var/log/news.log" |
374 |
FileOwner="root" |
375 |
FileGroup="adm" |
376 |
) |
377 |
|
378 |
user.* action( |
379 |
type="omfile" |
380 |
File="/var/log/user.log" |
381 |
FileOwner="root" |
382 |
FileGroup="adm" |
383 |
) |
384 |
|
385 |
*.=debug;auth,authpriv,news,mail.none action( |
386 |
type="omfile" |
387 |
File="/var/log/debug.log" |
388 |
FileOwner="root" |
389 |
FileGroup="adm" |
390 |
) |
391 |
|
392 |
*.info;auth,authpriv,cron,daemon,lpr,mail,news.none action( |
393 |
type="omfile" |
394 |
File="/var/log/messages" |
395 |
FileOwner="root" |
396 |
FileGroup="adm" |
397 |
) |
398 |
|
399 |
# Uncomment the following directive to re-enable the |
400 |
# deprecated "/var/log/syslog" log file (don't forget to re-enable log |
401 |
# rotation in "/etc/logrotate.d/rsyslog" if you do that!) |
402 |
#*.*;auth,authpriv.none action( |
403 |
# type="omfile" |
404 |
# File="/var/log/syslog" |
405 |
# FileOwner="root" |
406 |
# FileGroup="adm" |
407 |
#) |
408 |
|
409 |
*.emerg action( |
410 |
type="omusrmsg" |
411 |
Users="*" |
412 |
action.execOnlyOnceEveryInterval="10" |
413 |
) |
414 |
|
415 |
# Create an additional socket for the default chroot location |
416 |
# (used by net-misc/openssh[hpn], see https://bugs.gentoo.org/490744) |
417 |
input(type="imuxsock" Socket="/var/empty/dev/log") |
418 |
|
419 |
|
420 |
|
421 |
1.1 app-admin/rsyslog/files/7-stable/README.gentoo |
422 |
|
423 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/README.gentoo?rev=1.1&view=markup |
424 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/README.gentoo?rev=1.1&content-type=text/plain |
425 |
|
426 |
Index: README.gentoo |
427 |
=================================================================== |
428 |
Introduction |
429 |
============ |
430 |
|
431 |
Since rsyslog version 7.6 we are shipping a new default Gentoo |
432 |
configuration. See bug #501982 to learn more about what we were trying to |
433 |
achieve by rewriting the entire configuration. |
434 |
|
435 |
|
436 |
Important changes |
437 |
================= |
438 |
|
439 |
1. "/var/log/syslog" log file is now deprecated |
440 |
|
441 |
Beginning with rsyslog-7.6, the "/var/log/syslog" log file will no |
442 |
longer being written per default. We are considering this file as |
443 |
deprecated/obsolet for the typical user/system. |
444 |
The content from this log file is still availble through other |
445 |
(dedicated) log files, see |
446 |
|
447 |
- /var/log/cron.log |
448 |
- /var/log/daemon.log |
449 |
- /var/log/mail.log |
450 |
- /var/log/messages |
451 |
|
452 |
If you really need the old "/var/log/syslog" log file, all you have to |
453 |
do is uncommenting the corresponding configuration directive in |
454 |
"/etc/rsyslog.d/50-default.conf". |
455 |
|
456 |
If you do so, don't forget to re-enable log rotation in |
457 |
"/etc/logrotate.d/rsyslog", too. |
458 |
|
459 |
|
460 |
2. An additional input socket in "/var/empty/dev/log" (default chroot |
461 |
location) will be created per default |
462 |
|
463 |
See bug #490744 for further details. |
464 |
|
465 |
|
466 |
|
467 |
1.1 app-admin/rsyslog/files/7-stable/rsyslog.logrotate-r1 |
468 |
|
469 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.logrotate-r1?rev=1.1&view=markup |
470 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.logrotate-r1?rev=1.1&content-type=text/plain |
471 |
|
472 |
Index: rsyslog.logrotate-r1 |
473 |
=================================================================== |
474 |
# Uncomment the following directive if you have re-enabled |
475 |
# "/var/log/syslog" in "/etc/rsyslog.d/50-default.conf" |
476 |
#/var/log/syslog |
477 |
#{ |
478 |
# rotate 7 |
479 |
# daily |
480 |
# missingok |
481 |
# notifempty |
482 |
# delaycompress |
483 |
# compress |
484 |
# postrotate |
485 |
# test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null |
486 |
# endscript |
487 |
#} |
488 |
|
489 |
/var/log/auth.log |
490 |
/var/log/cron.log |
491 |
/var/log/daemon.log |
492 |
/var/log/kern.log |
493 |
/var/log/lpr.log |
494 |
/var/log/mail.log |
495 |
/var/log/news.log |
496 |
/var/log/user.log |
497 |
/var/log/debug.log |
498 |
/var/log/messages |
499 |
{ |
500 |
rotate 4 |
501 |
weekly |
502 |
missingok |
503 |
notifempty |
504 |
compress |
505 |
delaycompress |
506 |
sharedscripts |
507 |
postrotate |
508 |
test -r /run/rsyslogd.pid && kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null |
509 |
endscript |
510 |
} |
511 |
|
512 |
|
513 |
|
514 |
1.1 app-admin/rsyslog/files/7-stable/bugfix_52.patch |
515 |
|
516 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/bugfix_52.patch?rev=1.1&view=markup |
517 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/bugfix_52.patch?rev=1.1&content-type=text/plain |
518 |
|
519 |
Index: bugfix_52.patch |
520 |
=================================================================== |
521 |
From b017e29aad70702c69e6016b07a932b7825a83e5 Mon Sep 17 00:00:00 2001 |
522 |
From: Thomas D <whissi@××××××.de> |
523 |
Date: Sat, 3 May 2014 14:45:25 +0200 |
524 |
Subject: [PATCH] Remove "--enable-cached-man-pages" switch and make rst2man |
525 |
optional when required man pages already exist |
526 |
|
527 |
This commit backports the bugfix for issue #52 for the v7-stable branch. |
528 |
--- |
529 |
configure.ac | 61 +++++++++++++++++++++++++++++++++++------------------------- |
530 |
1 file changed, 36 insertions(+), 25 deletions(-) |
531 |
|
532 |
diff --git a/configure.ac b/configure.ac |
533 |
index 0dd40c2..07d96dd 100644 |
534 |
--- a/configure.ac |
535 |
+++ b/configure.ac |
536 |
@@ -1087,30 +1087,6 @@ fi |
537 |
AM_CONDITIONAL(ENABLE_GUARDTIME, test x$enable_guardtime = xyes) |
538 |
|
539 |
|
540 |
-# Support using cached man file copies, to avoid the need for rst2man |
541 |
-# in the build environment |
542 |
-AC_ARG_ENABLE(cached_man_pages, |
543 |
- [AS_HELP_STRING([--enable-cached-man-pages],[Enable using cached versions of man files (avoid rst2man) @<:@default=no@:>@])], |
544 |
- [case "${enableval}" in |
545 |
- yes) enable_cached_man_pages="yes" ;; |
546 |
- no) enable_cached_man_pages="no" ;; |
547 |
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-cached-man-pages) ;; |
548 |
- esac], |
549 |
- [enable_cached_man_pages=no] |
550 |
-) |
551 |
-if test "x$enable_cached_man_pages" = "xno"; then |
552 |
-# obtain path for rst2man |
553 |
- if test "x$enable_libgcrypt" = "xyes" || \ |
554 |
- test "x$enable_guardtime" = "xyes"; then |
555 |
- AC_PATH_PROG([RST2MAN], [rst2man]) |
556 |
- if test "x${RST2MAN}" == "x"; then |
557 |
- AC_MSG_FAILURE([rst2man not found in PATH]) |
558 |
- fi |
559 |
- fi |
560 |
-fi |
561 |
- |
562 |
- |
563 |
- |
564 |
# RFC 3195 support |
565 |
AC_ARG_ENABLE(rfc3195, |
566 |
[AS_HELP_STRING([--enable-rfc3195],[Enable RFC3195 support @<:@default=no@:>@])], |
567 |
@@ -1519,6 +1495,41 @@ AM_CONDITIONAL(ENABLE_OMHIREDIS, test x$enable_omhiredis = xyes) |
568 |
|
569 |
# END HIREDIS SUPPORT |
570 |
|
571 |
+ |
572 |
+AC_CHECKING([if required man pages already exist]) |
573 |
+have_to_generate_man_pages="no" |
574 |
+ |
575 |
+# man pages for libgcrypt module |
576 |
+if test "x$enable_usertools" = "xyes" && test "x$enable_libgcrypt" = "xyes"; then |
577 |
+ AC_CHECK_FILES(["tools/rscryutil.1" "tools/rsgtutil.1"], |
578 |
+ [], |
579 |
+ [have_to_generate_man_pages="yes"] |
580 |
+ ) |
581 |
+fi |
582 |
+ |
583 |
+# man pages for GuardTime module |
584 |
+if test "x$enable_usertools" = "xyes" && test "x$enable_guardtime" = "xyes"; then |
585 |
+ AC_CHECK_FILES(["tools/rscryutil.1" "tools/rsgtutil.1"], |
586 |
+ [], |
587 |
+ [have_to_generate_man_pages="yes"] |
588 |
+ ) |
589 |
+fi |
590 |
+ |
591 |
+if test "x$have_to_generate_man_pages" = "xyes"; then |
592 |
+ AC_MSG_RESULT([Some man pages are missing. We need rst2man to generate the missing man pages from source...]) |
593 |
+else |
594 |
+ AC_MSG_RESULT([All required man pages found. We don't need rst2man!]) |
595 |
+fi |
596 |
+ |
597 |
+if test "x$have_to_generate_man_pages" = "xyes"; then |
598 |
+ # We need rst2man to generate our man pages |
599 |
+ AC_CHECK_PROGS([RST2MAN], [rst2man rst2man.py], []) |
600 |
+ if test -z "$RST2MAN"; then |
601 |
+ AC_MSG_ERROR([rst2man is required to build man pages. You can use the release tarball with pregenerated man pages to avoid this depedency.]) |
602 |
+ fi |
603 |
+fi |
604 |
+ |
605 |
+ |
606 |
AC_CONFIG_FILES([Makefile \ |
607 |
runtime/Makefile \ |
608 |
compat/Makefile \ |
609 |
@@ -1594,7 +1605,7 @@ echo " Zlib compression support enabled: $enable_zlib" |
610 |
echo " rsyslog runtime will be built: $enable_rsyslogrt" |
611 |
echo " rsyslogd will be built: $enable_rsyslogd" |
612 |
echo " GUI components will be built: $enable_gui" |
613 |
-echo " cached man files will be used: $enable_cached_man_pages" |
614 |
+echo " have to generate man pages: $have_to_generate_man_pages" |
615 |
echo " Unlimited select() support enabled: $enable_unlimited_select" |
616 |
echo " uuid support enabled: $enable_uuid" |
617 |
echo " Log file signing support: $enable_guardtime" |
618 |
-- |
619 |
1.9.2 |
620 |
|
621 |
|
622 |
|
623 |
|
624 |
1.1 app-admin/rsyslog/files/7-stable/fix-omruleset-default-value.patch |
625 |
|
626 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/fix-omruleset-default-value.patch?rev=1.1&view=markup |
627 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/7-stable/fix-omruleset-default-value.patch?rev=1.1&content-type=text/plain |
628 |
|
629 |
Index: fix-omruleset-default-value.patch |
630 |
=================================================================== |
631 |
From 14f3b45151864aa4170de515f406a69ad2931eba Mon Sep 17 00:00:00 2001 |
632 |
From: Rainer Gerhards <rgerhards@×××××××.com> |
633 |
Date: Thu, 31 Oct 2013 18:21:47 +0100 |
634 |
Subject: [PATCH] module omruleset is no longer enabled by default. |
635 |
|
636 |
Note that it has been deprecated in v7 and been replaced by the "call" |
637 |
statement. Also, it can still be build without problems, the option must |
638 |
just explicitely be given. |
639 |
--- |
640 |
diff --git a/configure.ac b/configure.ac |
641 |
index 3abd559..de4c3ea 100644 |
642 |
--- a/configure.ac |
643 |
+++ b/configure.ac |
644 |
@@ -1353,7 +1353,7 @@ AC_ARG_ENABLE(omruleset, |
645 |
no) enable_omruleset="no" ;; |
646 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-omruleset) ;; |
647 |
esac], |
648 |
- [enable_omruleset=yes] |
649 |
+ [enable_omruleset=no] |
650 |
) |
651 |
AM_CONDITIONAL(ENABLE_OMRULESET, test x$enable_omruleset = xyes) |
652 |
|
653 |
-- |
654 |
1.9.1 |