app-antivirus/skyldav: adjust default config

Package-Manager: portage-2.2.27
This commit is contained in:
Wolfram Schlich
2016-02-01 14:23:07 +01:00
parent b1e67e57ad
commit f9e12fafac
2 changed files with 10 additions and 8 deletions

View File

@@ -1,11 +1,13 @@
diff -urN skyldav-0.5.orig/examples/etc/skyldav.conf skyldav-0.5/examples/etc/skyldav.conf
--- skyldav-0.5.orig/examples/etc/skyldav.conf 2015-02-15 20:32:57.000000000 +0100
+++ skyldav-0.5/examples/etc/skyldav.conf 2016-01-21 14:02:27.656666425 +0100
@@ -19,14 +19,21 @@
+++ skyldav-0.5/examples/etc/skyldav.conf 2016-02-01 11:29:19.449054900 +0100
@@ -19,14 +19,23 @@
# Directories that shall not be scanned (including subdirectories)
# EXCLUDE_PATH = /var/noscan, /opt/noscan
+EXCLUDE_PATH = /usr/portage, /var/db/pkg, /var/tmp/portage, /var/tmp/binpkgs
+#
+# Exclude various portage directories for performance reasons
+EXCLUDE_PATH = /usr/portage, /var/cache/edb, /var/db/pkg, /var/tmp/portage, /var/tmp/binpkgs, /var/log/portage
# File systems that are local, virus scan results may be cached.
# LOCAL_FS = ext3, ext4, iso9660, tmpfs, vfat

View File

@@ -49,7 +49,7 @@ DOCS=( AUTHORS NEWS README )
PATCHES=(
"${FILESDIR}/${P}-syslog.patch"
"${FILESDIR}/${P}-examples.patch"
"${FILESDIR}/${P}-conf.patch"
"${FILESDIR}/${P}-conf-r1.patch"
)
pkg_setup() {
@@ -60,18 +60,18 @@ pkg_setup() {
## define contents for README.gentoo
if use systemd; then
DOC_CONTENTS='SkyldAV provides a systemd service.'$'\n'
DOC_CONTENTS='Skyld AV provides a systemd service.'$'\n'
DOC_CONTENTS+='Please edit the systemd service config file to match your needs:'$'\n'
DOC_CONTENTS+='/etc/systemd/system/skyldav.service.d/00gentoo.conf'$'\n'
DOC_CONTENTS+='# systemctl daemon-reload'$'\n'
DOC_CONTENTS+='# systemctl restart skyldav.service'$'\n'
DOC_CONTENTS+='Example for enabling the SkyldAV service:'$'\n'
DOC_CONTENTS+='Example for enabling the Skyld AV service:'$'\n'
DOC_CONTENTS+='# systemctl enable skyldav.service'$'\n'
else
DOC_CONTENTS='SkyldAV provides an init script for OpenRC.'$'\n'
DOC_CONTENTS='Skyld AV provides an init script for OpenRC.'$'\n'
DOC_CONTENTS+='Please edit the init script config file to match your needs:'$'\n'
DOC_CONTENTS+='/etc/conf.d/skyldav'$'\n'
DOC_CONTENTS+='Example for enabling the SkyldAV init script:'$'\n'
DOC_CONTENTS+='Example for enabling the Skyld AV init script:'$'\n'
DOC_CONTENTS+='# rc-update add skyldav default'$'\n'
fi
}