@@ -205,10 +205,10 @@
if [ -d $dir ]; then
- if [ ! -d $cleaned ]; then
-- mkdir $cleaned \
-+ install -d $cleaned \
+ if [ ! -d "$cleaned" ]; then
+- mkdir "$cleaned" \
++ install -d "$cleaned" \
|| error "Could not make dir $cleaned for cleaned rulefiles."
fi
-- for rulefile in $(run-parts --list $dir); do
-+ for rulefile in $(run-parts -u $dir); do
- rulefile=$(basename $rulefile)
- if [ -f ${dir}/${rulefile} ]; then
+- for rulefile in $(run-parts --list "$dir"); do
++ for rulefile in $(run-parts -u "$dir"); do
+ rulefile="$(basename "$rulefile")"
+ if [ -f "${dir}/${rulefile}" ]; then
debug "cleanrules: ${dir}/${rulefile}"
@@ -623,7 +623,7 @@
debug "Trying to get lockfile: $LOCKFILE.lock"
- if [ ! -d $LOCKDIR ]; then
-- mkdir -m 0755 $LOCKDIR
-+ install -d -m 0755 $LOCKDIR
+ if [ ! -d "$LOCKDIR" ]; then
+- mkdir -m 0755 "$LOCKDIR"
++ install -d -m 0755 "$LOCKDIR"
fi
- lockfile-create --retry 1 $LOCKFILE > /dev/null 2>&1
+ lockfile-create --retry 1 "$LOCKFILE" > /dev/null 2>&1
@@ -661,7 +661,7 @@
# Get the list of log files from config file
# Handle log rotation correctly, idea taken from Wiktor Niesiobedzki.
--mkdir $TMPDIR/logoutput \
-+install -d $TMPDIR/logoutput \
+-mkdir "$TMPDIR/logoutput" \
++install -d "$TMPDIR/logoutput" \
|| error "Could not mkdir for log files"
if [ ! $LOGFILE ] && [ -r $LOGFILES_LIST ]; then
for file in $(egrep --text -v "(^#|^[[:space:]]*$)" $LOGFILES_LIST); do
Summary: Mails anomalies in the system logfiles to the administrator
Summary(pl.UTF-8): Wysyłanie anomalii w logach systemowych pocztą do administratora
Name: logcheck
-Version: 1.3.1
+Version: 1.3.14
Release: 1
License: GPL
Group: Applications/System
Source0: http://ftp.debian.org/debian/pool/main/l/logcheck/%{name}_%{version}.tar.gz
-# Source0-md5: 1b000602ef86eebc30a60340484d79d7
+# Source0-md5: cbd32dbdcb877f267636205f33ede790
Patch0: %{name}-pld.patch
Patch1: %{name}-command_correct.patch
Source1: %{name}.cron
przeczytane.
%prep
-%setup -q -n %{name}
+%setup -q
%patch0 -p1
%patch1 -p1
%attr(640,root,logcheck) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/header.txt
%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
%attr(755,root,root) %{_sbindir}/logcheck
+%attr(755,root,root) %{_bindir}/logcheck-test
%dir %attr(770,root,logcheck) /var/lib/logcheck
%dir %attr(770,root,logcheck) /var/lock/logcheck