main/sysklogd: fix log rotating

ref #408
(cherry picked from commit 1a27133d79e1de4818ccc4323bb7223680e2725c)
This commit is contained in:
Natanael Copa 2010-12-08 15:56:26 +00:00
parent 9ac1f490fb
commit 12a6e9a87e
2 changed files with 8 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sysklogd
pkgver=1.5
pkgrel=9
pkgrel=10
pkgdesc="System and kernel log daemons"
url="http://www.infodrom.org/projects/sysklogd/"
license="GPL BSD"
@ -48,7 +48,7 @@ build ()
}
md5sums="e053094e8103165f98ddafe828f6ae4b sysklogd-1.5.tar.gz
6bc1d1c65076b104a8f78d0fb4f21db7 sysklogd.logrotate
d66d2ad2c4d0905b42963af9e86edacb sysklogd.daily
dcda8ba997e79a90fdf4ab61f6e5a42b sysklogd.daily
1ea1768fbfc6165e3a73490d98d47799 sysklogd.initd
e25d7b583b7e4bd8be503b89e1771e90 sysklogd.confd
3b7ba3aa6519f96f11165a7d5900a8b1 sysklogd-1.4.2-caen-owl-klogd-drop-root.diff

View File

@ -15,18 +15,19 @@ syslogd_listfiles() {
# the while loop joins lines that end in "\"
# the sed (in order)-
# strips comments;
# collapses spaces/tabs to 1 space;
# strips comments;
# remove empty lines;
# collapses spaces/tabs to 1 space;
# deletes the "-" in front of the filename;
# deletes whitespace before ';'
# deletes lines that have/dont have the "auth" facility
# deletes the facility (leaving just the filename)
# deletes lines that are not filenames with leading "/"
# deletes lines that are not filenames with leading "/"
# print it
while read a ; do echo "$a"; done < $CONF |\
sed -n -e "s/\#.*//" \
-e "/^\s*$/D" \
-e "s/\s\+/ /g" \
-e "/^[[:space:]]*$/D" \
-e "s/[[:space:]]\+/ /g" \
-e "s: -/: /:g" \
-e "s/ *; */;/" \
-e "/^.*\(auth\)[^ ]* /${skip}D" \