diff options
author | Eray Aslan <eras@gentoo.org> | 2013-02-13 19:01:33 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2013-02-13 19:01:33 +0000 |
commit | 9158a37e7924ab1f9231a8eead8938bff2bec19a (patch) | |
tree | 4740e30216464a947ff5a8bc1bb103df479c4cf7 /app-antivirus/clamav | |
parent | Bump, security fixes for 7, regression fixes for 6 (diff) | |
download | gentoo-2-9158a37e7924ab1f9231a8eead8938bff2bec19a.tar.gz gentoo-2-9158a37e7924ab1f9231a8eead8938bff2bec19a.tar.bz2 gentoo-2-9158a37e7924ab1f9231a8eead8938bff2bec19a.zip |
Remove old
(Portage version: 2.2.0_alpha162/cvs/Linux x86_64, signed Manifest commit with key 0x77F1F175586A3B1F)
Diffstat (limited to 'app-antivirus/clamav')
-rw-r--r-- | app-antivirus/clamav/ChangeLog | 9 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.97.3.ebuild | 121 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.97.4.ebuild | 124 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.97.5.ebuild | 123 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.97.4-gcc47.patch | 24 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamd.rc | 102 |
6 files changed, 7 insertions, 496 deletions
diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog index b71c7c8b221f..f7d8328690bc 100644 --- a/app-antivirus/clamav/ChangeLog +++ b/app-antivirus/clamav/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-antivirus/clamav -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.432 2012/12/11 18:37:59 eras Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.433 2013/02/13 19:01:32 eras Exp $ + + 13 Feb 2013; Eray Aslan <eras@gentoo.org> -clamav-0.97.3.ebuild, + -clamav-0.97.4.ebuild, -clamav-0.97.5.ebuild, + -files/clamav-0.97.4-gcc47.patch, -files/clamd.rc: + Remove old *clamav-0.97.6-r2 (11 Dec 2012) diff --git a/app-antivirus/clamav/clamav-0.97.3.ebuild b/app-antivirus/clamav/clamav-0.97.3.ebuild deleted file mode 100644 index 18135e012936..000000000000 --- a/app-antivirus/clamav/clamav-0.97.3.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.3.ebuild,v 1.11 2012/05/31 03:01:52 zmedico Exp $ - -EAPI=4 - -inherit eutils autotools-utils flag-o-matic user - -DESCRIPTION="Clam Anti-Virus Scanner" -HOMEPAGE="http://www.clamav.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" -IUSE="bzip2 clamdtop iconv ipv6 milter selinux static-libs" - -CDEPEND="bzip2? ( app-arch/bzip2 ) - clamdtop? ( sys-libs/ncurses ) - iconv? ( virtual/libiconv ) - milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) - dev-libs/libtommath - >=sys-libs/zlib-1.2.2 - sys-devel/libtool" -DEPEND="${CDEPEND} - virtual/pkgconfig" -RDEPEND="${CDEPEND} - selinux? ( sec-policy/selinux-clamav )" - -RESTRICT="test" - -DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE ) - -PATCHES=( "${FILESDIR}"/${PN}-0.97-nls.patch ) - -pkg_setup() { - enewgroup clamav - enewuser clamav -1 -1 /dev/null clamav -} - -src_prepare() { - use ppc64 && append-flags -mminimal-toc - autotools-utils_src_prepare -} - -src_configure() { - local myeconfargs=( - --disable-experimental - --enable-id-check - --with-dbdir=/var/lib/clamav - --with-system-tommath - $(use_enable bzip2) - $(use_enable clamdtop) - $(use_enable ipv6) - $(use_enable milter) - $(use_with iconv) - ) - autotools-utils_src_configure -} - -src_install() { - autotools-utils_src_install - - rm -rf "${ED}"/var/lib/clamav - newinitd "${FILESDIR}"/clamd.rc clamd - newconfd "${FILESDIR}"/clamd.conf clamd - - keepdir /var/lib/clamav - fowners clamav:clamav /var/lib/clamav - keepdir /var/run/clamav - fowners clamav:clamav /var/run/clamav - keepdir /var/log/clamav - fowners clamav:clamav /var/log/clamav - - dodir /etc/logrotate.d - insinto /etc/logrotate.d - newins "${FILESDIR}"/clamav.logrotate clamav - - # Modify /etc/{clamd,freshclam}.conf to be usable out of the box - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamd.pid:" \ - -e "s:.*\(LocalSocket\) .*:\1 /var/run/clamav/clamd.sock:" \ - -e "s:.*\(User\) .*:\1 clamav:" \ - -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamd.log:" \ - -e "s:^\#\(LogTime\).*:\1 yes:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - "${ED}"/etc/clamd.conf - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/freshclam.pid:" \ - -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ - -e "s:^\#\(UpdateLogFile\) .*:\1 /var/log/clamav/freshclam.log:" \ - -e "s:^\#\(NotifyClamd\).*:\1 /etc/clamd.conf:" \ - -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - "${ED}"/etc/freshclam.conf - - if use milter ; then - # MilterSocket one to include ' /' because there is a 2nd line for - # inet: which we want to leave - dodoc "${FILESDIR}"/clamav-milter.README.gentoo - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamav-milter.pid:" \ - -e "s+^\#\(ClamdSocket\) .*+\1 unix:/var/run/clamav/clamd.sock+" \ - -e "s:.*\(User\) .*:\1 clamav:" \ - -e "s+^\#\(MilterSocket\) /.*+\1 unix:/var/run/clamav/clamav-milter.sock+" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamav-milter.log:" \ - "${ED}"/etc/clamav-milter.conf - cat > "${ED}"/etc/conf.d/clamd <<-EOF - MILTER_NICELEVEL=19 - START_MILTER=no - EOF - fi -} - -pkg_postinst() { - if use milter ; then - elog "For simple instructions how to setup the clamav-milter read the" - elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" - fi -} diff --git a/app-antivirus/clamav/clamav-0.97.4.ebuild b/app-antivirus/clamav/clamav-0.97.4.ebuild deleted file mode 100644 index 819797be4137..000000000000 --- a/app-antivirus/clamav/clamav-0.97.4.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.4.ebuild,v 1.4 2012/05/31 15:44:58 radhermit Exp $ - -EAPI=4 - -inherit eutils autotools-utils flag-o-matic user - -DESCRIPTION="Clam Anti-Virus Scanner" -HOMEPAGE="http://www.clamav.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="bzip2 clamdtop iconv ipv6 milter selinux static-libs" - -CDEPEND="bzip2? ( app-arch/bzip2 ) - clamdtop? ( sys-libs/ncurses ) - iconv? ( virtual/libiconv ) - milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) - dev-libs/libtommath - >=sys-libs/zlib-1.2.2 - sys-devel/libtool" -DEPEND="${CDEPEND} - virtual/pkgconfig" -RDEPEND="${CDEPEND} - selinux? ( sec-policy/selinux-clamav )" - -RESTRICT="test" - -DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE ) - -PATCHES=( - "${FILESDIR}"/${PN}-0.97-nls.patch - "${FILESDIR}"/${PN}-0.97.4-gcc47.patch -) - -pkg_setup() { - enewgroup clamav - enewuser clamav -1 -1 /dev/null clamav -} - -src_prepare() { - use ppc64 && append-flags -mminimal-toc - autotools-utils_src_prepare -} - -src_configure() { - local myeconfargs=( - --disable-experimental - --enable-id-check - --with-dbdir=/var/lib/clamav - --with-system-tommath - $(use_enable bzip2) - $(use_enable clamdtop) - $(use_enable ipv6) - $(use_enable milter) - $(use_with iconv) - ) - autotools-utils_src_configure -} - -src_install() { - autotools-utils_src_install - - rm -rf "${ED}"/var/lib/clamav - newinitd "${FILESDIR}"/clamd.rc clamd - newconfd "${FILESDIR}"/clamd.conf clamd - - keepdir /var/lib/clamav - fowners clamav:clamav /var/lib/clamav - keepdir /var/run/clamav - fowners clamav:clamav /var/run/clamav - keepdir /var/log/clamav - fowners clamav:clamav /var/log/clamav - - dodir /etc/logrotate.d - insinto /etc/logrotate.d - newins "${FILESDIR}"/clamav.logrotate clamav - - # Modify /etc/{clamd,freshclam}.conf to be usable out of the box - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamd.pid:" \ - -e "s:.*\(LocalSocket\) .*:\1 /var/run/clamav/clamd.sock:" \ - -e "s:.*\(User\) .*:\1 clamav:" \ - -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamd.log:" \ - -e "s:^\#\(LogTime\).*:\1 yes:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - "${ED}"/etc/clamd.conf - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/freshclam.pid:" \ - -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ - -e "s:^\#\(UpdateLogFile\) .*:\1 /var/log/clamav/freshclam.log:" \ - -e "s:^\#\(NotifyClamd\).*:\1 /etc/clamd.conf:" \ - -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - "${ED}"/etc/freshclam.conf - - if use milter ; then - # MilterSocket one to include ' /' because there is a 2nd line for - # inet: which we want to leave - dodoc "${FILESDIR}"/clamav-milter.README.gentoo - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamav-milter.pid:" \ - -e "s+^\#\(ClamdSocket\) .*+\1 unix:/var/run/clamav/clamd.sock+" \ - -e "s:.*\(User\) .*:\1 clamav:" \ - -e "s+^\#\(MilterSocket\) /.*+\1 unix:/var/run/clamav/clamav-milter.sock+" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamav-milter.log:" \ - "${ED}"/etc/clamav-milter.conf - cat > "${ED}"/etc/conf.d/clamd <<-EOF - MILTER_NICELEVEL=19 - START_MILTER=no - EOF - fi -} - -pkg_postinst() { - if use milter ; then - elog "For simple instructions how to setup the clamav-milter read the" - elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" - fi -} diff --git a/app-antivirus/clamav/clamav-0.97.5.ebuild b/app-antivirus/clamav/clamav-0.97.5.ebuild deleted file mode 100644 index 67de6acf7bea..000000000000 --- a/app-antivirus/clamav/clamav-0.97.5.ebuild +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.5.ebuild,v 1.2 2012/06/24 20:07:37 radhermit Exp $ - -EAPI=4 - -inherit eutils flag-o-matic user - -DESCRIPTION="Clam Anti-Virus Scanner" -HOMEPAGE="http://www.clamav.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="bzip2 clamdtop iconv ipv6 milter selinux static-libs" - -CDEPEND="bzip2? ( app-arch/bzip2 ) - clamdtop? ( sys-libs/ncurses ) - iconv? ( virtual/libiconv ) - milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) - dev-libs/libtommath - >=sys-libs/zlib-1.2.2 - sys-devel/libtool" -DEPEND="${CDEPEND} - virtual/pkgconfig" -RDEPEND="${CDEPEND} - selinux? ( sec-policy/selinux-clamav )" - -RESTRICT="test" - -DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE ) - -PATCHES=( - "${FILESDIR}"/${PN}-0.97-nls.patch -) - -pkg_setup() { - enewgroup clamav - enewuser clamav -1 -1 /dev/null clamav -} - -src_prepare() { - use ppc64 && append-flags -mminimal-toc -} - -src_configure() { - econf \ - --disable-experimental \ - --enable-id-check \ - --with-dbdir=/var/lib/clamav \ - --with-system-tommath \ - $(use_enable bzip2) \ - $(use_enable clamdtop) \ - $(use_enable ipv6) \ - $(use_enable milter) \ - $(use_enable static-libs static) \ - $(use_with iconv) -} - -src_install() { - default - - rm -rf "${ED}"/var/lib/clamav - newinitd "${FILESDIR}"/clamd.rc clamd - newconfd "${FILESDIR}"/clamd.conf clamd - - keepdir /var/lib/clamav - fowners clamav:clamav /var/lib/clamav - keepdir /var/run/clamav - fowners clamav:clamav /var/run/clamav - keepdir /var/log/clamav - fowners clamav:clamav /var/log/clamav - - dodir /etc/logrotate.d - insinto /etc/logrotate.d - newins "${FILESDIR}"/clamav.logrotate clamav - - # Modify /etc/{clamd,freshclam}.conf to be usable out of the box - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamd.pid:" \ - -e "s:.*\(LocalSocket\) .*:\1 /var/run/clamav/clamd.sock:" \ - -e "s:.*\(User\) .*:\1 clamav:" \ - -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamd.log:" \ - -e "s:^\#\(LogTime\).*:\1 yes:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - "${ED}"/etc/clamd.conf - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/freshclam.pid:" \ - -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ - -e "s:^\#\(UpdateLogFile\) .*:\1 /var/log/clamav/freshclam.log:" \ - -e "s:^\#\(NotifyClamd\).*:\1 /etc/clamd.conf:" \ - -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - "${ED}"/etc/freshclam.conf - - if use milter ; then - # MilterSocket one to include ' /' because there is a 2nd line for - # inet: which we want to leave - dodoc "${FILESDIR}"/clamav-milter.README.gentoo - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamav-milter.pid:" \ - -e "s+^\#\(ClamdSocket\) .*+\1 unix:/var/run/clamav/clamd.sock+" \ - -e "s:.*\(User\) .*:\1 clamav:" \ - -e "s+^\#\(MilterSocket\) /.*+\1 unix:/var/run/clamav/clamav-milter.sock+" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamav-milter.log:" \ - "${ED}"/etc/clamav-milter.conf - cat > "${ED}"/etc/conf.d/clamd <<-EOF - MILTER_NICELEVEL=19 - START_MILTER=no - EOF - fi - - prune_libtool_files -} - -pkg_postinst() { - if use milter ; then - elog "For simple instructions how to setup the clamav-milter read the" - elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}" - fi -} diff --git a/app-antivirus/clamav/files/clamav-0.97.4-gcc47.patch b/app-antivirus/clamav/files/clamav-0.97.4-gcc47.patch deleted file mode 100644 index d5cbf2eb8f9f..000000000000 --- a/app-antivirus/clamav/files/clamav-0.97.4-gcc47.patch +++ /dev/null @@ -1,24 +0,0 @@ -From bb8ab5ce7ea4e276c310f5a638cd61c0cceb47d1 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?T=C3=B6r=C3=B6k=20Edvin?= <edwin@clamav.net> -Date: Mon, 14 May 2012 20:13:21 +0300 -Subject: [PATCH] Fix build with gcc-4.7 - ---- - .../c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp | 1 + - 1 files changed, 1 insertions(+), 0 deletions(-) - -diff --git a/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp b/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp -index 274f816..a4e7eee 100644 ---- a/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp -+++ b/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp -@@ -19,6 +19,7 @@ - #include "llvm/Support/ErrorHandling.h" - #include "llvm/System/DynamicLibrary.h" - #include "llvm/Config/config.h" -+#include <unistd.h> - using namespace llvm; - - // AtExitHandlers - List of functions to call when the program exits, --- -1.7.8.6 - diff --git a/app-antivirus/clamav/files/clamd.rc b/app-antivirus/clamav/files/clamd.rc deleted file mode 100644 index a1a55c243ad5..000000000000 --- a/app-antivirus/clamav/files/clamd.rc +++ /dev/null @@ -1,102 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc,v 1.18 2011/12/04 11:51:46 swegener Exp $ - -extra_commands="logfix" - -depend() { - use net - provide antivirus -} - -start() { - local clamd_socket=`awk '$1 == "LocalSocket" { print $2 }' /etc/clamd.conf` - - logfix - - if [ "${START_CLAMD}" = "yes" ]; then - if [ -S "${clamd_socket:-/tmp/clamd}" ]; then - rm -f ${clamd_socket:-/tmp/clamd} - fi - ebegin "Starting clamd" - start-stop-daemon --start --quiet \ - --nicelevel ${CLAMD_NICELEVEL:-0} \ - --exec /usr/sbin/clamd - eend $? "Failed to start clamd" - fi - - if [ "${START_FRESHCLAM}" = "yes" ]; then - ebegin "Starting freshclam" - start-stop-daemon --start --quiet \ - --nicelevel ${FRESHCLAM_NICELEVEL:-0} \ - --exec /usr/bin/freshclam -- -d - retcode=$? - if [ ${retcode} = 1 ]; then - eend 0 - einfo "Virus databases are already up to date." - else - eend ${retcode} "Failed to start freshclam" - fi - fi - - if [ "${START_MILTER}" = "yes" ]; then - if [ -z "${MILTER_CONF_FILE}" ]; then - MILTER_CONF_FILE="/etc/clamav-milter.conf" - fi - - ebegin "Starting clamav-milter" - start-stop-daemon --start --quiet \ - --nicelevel ${MILTER_NICELEVEL:-0} \ - --exec /usr/sbin/clamav-milter -- -c ${MILTER_CONF_FILE} - eend $? "Failed to start clamav-milter" - fi -} - -stop() { - if [ "${START_CLAMD}" = "yes" ]; then - ebegin "Stopping clamd" - start-stop-daemon --stop --quiet --name clamd - eend $? "Failed to stop clamd" - fi - if [ "${START_FRESHCLAM}" = "yes" ]; then - ebegin "Stopping freshclam" - start-stop-daemon --stop --quiet --name freshclam - eend $? "Failed to stop freshclam" - fi - if [ "${START_MILTER}" = "yes" ]; then - ebegin "Stopping clamav-milter" - start-stop-daemon --stop --quiet --name clamav-milter - eend $? "Failed to stop clamav-milter" - fi -} - -logfix() { - if [ "${START_CLAMD}" = "yes" ]; then - # fix clamd log permissions - # (might be clobbered by logrotate or something) - local logfile=`awk '$1 == "LogFile" { print $2 }' /etc/clamd.conf` - local clamav_user=`awk '$1 == "User" { print $2 }' /etc/clamd.conf` - if [ -n "${logfile}" ] && [ -n "${clamav_user}" ]; then - if [ ! -f "${logfile}" ]; then - touch ${logfile} - fi - chown ${clamav_user} ${logfile} - chmod 640 ${logfile} - fi - fi - - if [ "${START_FRESHCLAM}" = "yes" ]; then - # fix freshclam log permissions - # (might be clobbered by logrotate or something) - logfile=`awk '$1 == "UpdateLogFile" { print $2 }' /etc/freshclam.conf` - local freshclam_user=`awk '$1 == "DatabaseOwner" { print $2 }' /etc/freshclam.conf` - if [ -n "${logfile}" -a -n "${clamav_user}" ]; then - if [ ! -f "${logfile}" ]; then - touch ${logfile} - fi - chown ${freshclam_user} ${logfile} - chmod 640 ${logfile} - fi - fi -} |