From 348e57cb304fa67e943cb9a10201826c98d91a2d Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Wed, 12 Sep 2012 15:54:29 -0500 Subject: system/clamav: Fixed logrotate script (added "su" directive) This commit also notes the need for a clamav user and group. Signed-off-by: Robby Workman --- system/clamav/README | 2 ++ system/clamav/clamav.SlackBuild | 2 +- system/clamav/logrotate.clamav | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/system/clamav/README b/system/clamav/README index 22f1a5c71f2c..13e6dd0bc3f7 100644 --- a/system/clamav/README +++ b/system/clamav/README @@ -10,4 +10,6 @@ argument to the COUNTRY variable when running the build script (this will default to "us" if nothing is specified). For example: COUNTRY=nl ./clamav.SlackBuild +You need a "clamav" user and group - we suggest uid=210 and gid=210. + See README.SLACKWARE for configuration help. diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild index fd88cb06436b..c58f67b906de 100644 --- a/system/clamav/clamav.SlackBuild +++ b/system/clamav/clamav.SlackBuild @@ -28,7 +28,7 @@ PRGNAM=clamav VERSION=${VERSION:-0.97.5} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then diff --git a/system/clamav/logrotate.clamav b/system/clamav/logrotate.clamav index 29b860baa08d..77c96733009f 100644 --- a/system/clamav/logrotate.clamav +++ b/system/clamav/logrotate.clamav @@ -1,4 +1,5 @@ /var/log/clamav/*.log { + su clamav clamav weekly rotate 5 compress -- cgit v1.2.3