summaryrefslogtreecommitdiffstats
path: root/main/sysklogd
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-06-11 15:10:46 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-06-11 15:11:31 +0300
commitf29fb9c595a8147b34c334cccc254a77b10b8a6e (patch)
tree30c191ae45f4793c7fee64ed8881fc0e45a28713 /main/sysklogd
parent5b5a67b0cc5f016c1fe0ba86236a4b599298026c (diff)
downloadaports-f29fb9c595a8147b34c334cccc254a77b10b8a6e.tar.bz2
aports-f29fb9c595a8147b34c334cccc254a77b10b8a6e.tar.xz
main/sysklogd: fix rotation of log files
fixes #358
Diffstat (limited to 'main/sysklogd')
-rw-r--r--main/sysklogd/APKBUILD2
-rwxr-xr-xmain/sysklogd/sysklogd.daily7
2 files changed, 5 insertions, 4 deletions
diff --git a/main/sysklogd/APKBUILD b/main/sysklogd/APKBUILD
index 681ac7d89..d4615ff81 100644
--- a/main/sysklogd/APKBUILD
+++ b/main/sysklogd/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sysklogd
pkgver=1.5
-pkgrel=5
+pkgrel=6
pkgdesc="System and kernel log daemons"
url="http://www.infodrom.org/projects/sysklogd/"
license="GPL BSD"
diff --git a/main/sysklogd/sysklogd.daily b/main/sysklogd/sysklogd.daily
index 79e85fb46..ccd63d61e 100755
--- a/main/sysklogd/sysklogd.daily
+++ b/main/sysklogd/sysklogd.daily
@@ -17,13 +17,14 @@ syslogd_listfiles() {
# the sed (in order)-
# strips comments;
# collapses spaces/tabs to 1 space;
- # deletes the "-" in front of the filename;
+ # deletes the "-" in front of the filename;
+ # deletes whitespace before ';'
# deletes lines that have the "skip" facility
# deletes the facility (leaving just the filename)
# deletes lines that are not filenames with leading "/"
while read a ; do echo "$a"; done < $CONF |\
- sed -n "/^ *#/D; /^[ ]*$/D; s/[ ]\+/ /g; \
- s+ -/+ /+g; /^.*\($skip\)[^ ]* /D; \
+ sed -n "/^[ \t]*#/D; /^[ \t]*$/D; s/[ \t]\+/ /g; \
+ s+ -/+ /+g; s/ *; */;/; /^.*\($skip\)[^ ]* /D; \
s/^[^ ]* //; /^[^\\/]/D; P" |\
sort | uniq
}