diff options
Diffstat (limited to 'app-antivirus/antivir-savapi')
11 files changed, 873 insertions, 0 deletions
diff --git a/app-antivirus/antivir-savapi/ChangeLog b/app-antivirus/antivir-savapi/ChangeLog new file mode 100644 index 0000000..d6677eb --- /dev/null +++ b/app-antivirus/antivir-savapi/ChangeLog @@ -0,0 +1,15 @@ +# ChangeLog for app-antivirus/antivir-savapi +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 02 Jun 2009; Wolfram Schlich <wschlich@gentoo.org> + +files/3.0.5.17/antivir-savapi.conf, +files/3.0.5.17/antivir-savapi.initd, + +files/3.0.5.17/avupdate.conf, +antivir-savapi-3.0.5.17.ebuild: + version bump + + 04 Mar 2009; Wolfram Schlich <wschlich@gentoo.org> + +files/3.0.4_p32/antivir-savapi.conf, + +files/3.0.4_p32/antivir-savapi.initd, +files/3.0.4_p32/avupdate.conf, + +metadata.xml, +antivir-savapi-3.0.4_p32.ebuild: + initial import + diff --git a/app-antivirus/antivir-savapi/Manifest b/app-antivirus/antivir-savapi/Manifest new file mode 100644 index 0000000..0269fdd --- /dev/null +++ b/app-antivirus/antivir-savapi/Manifest @@ -0,0 +1,12 @@ +AUX 3.0.4_p32/antivir-savapi.conf 4060 RMD160 69bcb774bb52a9204f4aea6f46f8edd52cb0eed5 SHA1 688f3a4647f0e9199bf987d6070942e8213e247a SHA256 28ff617e5897f95a5a90c73b6469facd69deda717dd3fb680acdc8f9cf3c8370 +AUX 3.0.4_p32/antivir-savapi.initd 1196 RMD160 998f1e154faea52ee829241dfc7b68c8dc020ed7 SHA1 38edb72f6a5993649eb47140cc125e20f8411d06 SHA256 50e39ef969836c38eacf3aa39ce4bf8266e9ade9107837dd21c85670f35caefb +AUX 3.0.4_p32/avupdate.conf 1818 RMD160 d119181616626b8baa0011e9f5ad65c21cc97ba9 SHA1 73d442a204d1337e214922093c12f9b4b2190c56 SHA256 54a3828786a5168068e663f654c6d9caa7d00fcd3e510d034fbb725915b64c53 +AUX 3.0.5.17/antivir-savapi.conf 4060 RMD160 69bcb774bb52a9204f4aea6f46f8edd52cb0eed5 SHA1 688f3a4647f0e9199bf987d6070942e8213e247a SHA256 28ff617e5897f95a5a90c73b6469facd69deda717dd3fb680acdc8f9cf3c8370 +AUX 3.0.5.17/antivir-savapi.initd 1196 RMD160 998f1e154faea52ee829241dfc7b68c8dc020ed7 SHA1 38edb72f6a5993649eb47140cc125e20f8411d06 SHA256 50e39ef969836c38eacf3aa39ce4bf8266e9ade9107837dd21c85670f35caefb +AUX 3.0.5.17/avupdate.conf 1818 RMD160 5215f87c342e8f46d8a0645d9441c2cd42a760db SHA1 5a0e874d5118dd9897b25c8dfe8f07396acbc072 SHA256 ed27fb1a8b504e9b8511c1077c0faad5e9e9a4b0bb0db9183e43c6a6afe5b070 +DIST antivir-mailgate-prof.tgz 31856751 RMD160 20ad6af92fdef49145bbffdf2376a955110e9892 SHA1 457c617e57d38e8e3d2f95ecc1d16bf347d967d4 SHA256 0df70bb0e4c6612c2c7a678f41648d8d23951c564a0dd4ea52f96f4c656abb0a +DIST antivir-server-prof.tar.gz 44063389 RMD160 ea8ae5318b4a091b0188bfa76e0779d334f5c83b SHA1 73deea933d83759cf78629661a9e2b1054accbbb SHA256 dcf884b8d1fb0ae5d532e226ff82d54d10fb1e4847aa8a7d40b8c84e658893df +EBUILD antivir-savapi-3.0.4_p32.ebuild 3881 RMD160 161f5a458199c4ae0c02bca75b49a5c52b61986d SHA1 27dda7b84e0ada649b2c63fbff993ffa190822f5 SHA256 5f64360c5f33b0e4c896bbd83c4db83b693f38c67dc22f05d15a0944e741f791 +EBUILD antivir-savapi-3.0.5.17.ebuild 3615 RMD160 2eafe87762d43e39d731947e5812911420e379ea SHA1 992327773338f001cde6a69780f39bc4e9207378 SHA256 ca9ef23ed1006214e64d81a4a3556840af2b7d07a237df72c7343fcf7c7f1031 +MISC ChangeLog 576 RMD160 137fce0d351a9af9cd265faabec77c8c965a87cc SHA1 d0d89cacb6530d173bb47f365ea78197ec8df96a SHA256 6e1470342b4964a5f82dd90df1d7a27e37150baf749be713cae07e0d9c1fbd87 +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/app-antivirus/antivir-savapi/antivir-savapi-3.0.4_p32.ebuild b/app-antivirus/antivir-savapi/antivir-savapi-3.0.4_p32.ebuild new file mode 100644 index 0000000..5aaf343 --- /dev/null +++ b/app-antivirus/antivir-savapi/antivir-savapi-3.0.4_p32.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +## +## Created by Wolfram Schlich <wschlich@gentoo.org> +## +## TODO +## - install: shutdown running programs? +## - install: show EULA?! +## - install/config: copy keyfile? +## + +inherit eutils + +DESCRIPTION="AVIRA AntiVir virus scanner (SAVAPI)" +#MY_P="${PN/savapi/mailgate}-prof-${PV/_p/-}" +MY_P="${PN/savapi/mailgate}-prof-3.0.0-14" +MY_P2="${PN/savapi/mailgate}-prof" +SRC_URI="http://dl1.pro.antivir.de/package/mailgate/unix/en/${MY_P2}.tgz" +#SRC_URI="http://storage.bu.avira.com/pub/savapi/2008.10.07/savapi3-${PV/_p/.}-linux_glibc22.zip" +HOMEPAGE="http://www.avira.com/" +LICENSE="AVIRA-AntiVir" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND="" +RDEPEND="" +S="${WORKDIR}/${MY_P}" +#S="${WORKDIR}" +# prevent installation functions from stripping binaries +# otherwise the antivir selfcheck fails. also don't try +# to fetch the distribution tarball from a mirror. +RESTRICT="strip mirror" + +# +# Settings overridable by user supplied environment variables +# + +AVHOMEDIR="${AVHOMEDIR:-/usr/lib/AntiVir}" +AVCONFDIR="${AVCONFDIR:-/etc/avira}" +AVTMPDIR="${AVTMPDIR:-/var/tmp}" +#AVSAVAPISOCKET="${AVSAVAPISOCKET:-/var/run/antivir-savapi/scanner}" +#AVUSER="${AVUSER:-avgate}" +#AVUID="${AVUID:-220}" +#AVSH="${AVSH:--1}" +AVGROUP="${AVGROUP:-antivir}" +AVGID="${AVGID:-220}" + +# +# Standard ebuild functions +# + +pkg_setup() { + + # + # Add USER + GROUP + # + + enewgroup "${AVGROUP}" "${AVGID}" +# enewuser "${AVUSER}" "${AVUID}" "${AVSH}" -1 "${AVGROUP}" -c AntiVir + +} + +src_unpack() { + unpack ${A} + cd "${S}" +# ln -s . bin; ln -s . linux_glibc22 +} + +src_install () { + + # + # Home directory + # + + diropts -oroot -groot -m0755 + dodir "${AVHOMEDIR}" + diropts -oroot -g"${AVGROUP}" -m0770 + insinto "${AVHOMEDIR}" + insopts -oroot -g"${AVGROUP}" -m0644 + + # + # Executables, libraries and misc components + # + + exeinto "${AVHOMEDIR}" + exeopts -oroot -g"${AVGROUP}" -m2755 + doexe bin/linux_glibc22/savapi + doexe bin/linux_glibc22/avupdate.bin + doexe bin/linux_glibc22/avlinfo + exeopts -oroot -g"${AVGROUP}" -m0755 + doexe script/savapi3_reload.sh + doexe script/savapi3_post.sh + doexe script/avupdate + doexe script/post_install.sh + doins bin/linux_glibc22/avupdate_msg.avr + doins bin/linux_glibc22/ae*.so + doins bin/linux_glibc22/ae*.dat + lv=$(cd bin/linux_glibc22; ls -1 libsavapi3.so.*); lv=${lv##*.so.} + doins bin/linux_glibc22/libsavapi3.so.${lv} + dosym libsavapi3.so.${lv} "${AVHOMEDIR}"/libsavapi3.so + diropts "" + dodir "${DESTTREE}/bin" + dosym "${AVHOMEDIR}/savapi" "${DESTTREE}/bin/savapi" + + # + # Init script + # + +# exeopts -oroot -groot -m0755 +# exeinto /etc/init.d +# newexe "${FILESDIR}/${PV}/antivir-savapi.initd" antivir-savapi + + # + # Config + # + + insopts -oroot -g"${AVGROUP}" -m0640 +# insinto "${AVCONFDIR}" +# doins "${FILESDIR}"/${PV}/antivir-savapi.conf +# dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVSAVAPISOCKET%:${AVSAVAPISOCKET}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVUSER%:${AVUSER}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVGROUP%:${AVGROUP}:g" "${AVCONFDIR}/antivir-savapi.conf" + insinto "${AVCONFDIR}" + doins "${FILESDIR}"/${PV}/avupdate.conf + dosed "s:%AVHOMEDIR%:${AVHOMEDIR}:g" "${AVCONFDIR}/avupdate.conf" + dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/avupdate.conf" + +} + +pkg_config () { + + # + # Automatic updates + # Generate a random number between 1 and 59 for the crontab + # + + rand="$$$(date +%s)" + min="$[ ($rand % 59) + 1 ]" + echo + einfo "" + einfo "Using the internet updater" + einfo "==========================" + einfo "" + einfo "Add the following line to your /etc/crontab or a new file" + einfo "in /etc/cron.d/ to make AntiVir check for updates" + einfo "${min} minutes after every full hour:" + einfo "" + einfo "\t${min} * * * * root exec ${AVHOMEDIR}/avupdate --product=scanner >/dev/null" + einfo "" + echo + +} diff --git a/app-antivirus/antivir-savapi/antivir-savapi-3.0.5.17.ebuild b/app-antivirus/antivir-savapi/antivir-savapi-3.0.5.17.ebuild new file mode 100644 index 0000000..08a1da3 --- /dev/null +++ b/app-antivirus/antivir-savapi/antivir-savapi-3.0.5.17.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +## +## Created by Wolfram Schlich <wschlich@gentoo.org> +## +## TODO +## - install: shutdown running programs? +## - install: show EULA?! +## - install/config: copy keyfile? +## + +inherit eutils + +DESCRIPTION="AVIRA AntiVir virus scanner (SAVAPI)" +MY_P="${PN/savapi/server}-prof-3.0.2-5" +SRC_URI="http://dl1.pro.antivir.de/package/srv_avira/unix/en/prof/antivir-server-prof.tar.gz" +HOMEPAGE="http://www.avira.com/" +LICENSE="AVIRA-AntiVir" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND="" +RDEPEND="" +S="${WORKDIR}/${MY_P}" +#S="${WORKDIR}" +# prevent installation functions from stripping binaries +# otherwise the antivir selfcheck fails. also don't try +# to fetch the distribution tarball from a mirror. +RESTRICT="strip mirror binchecks" + +# +# Settings overridable by user supplied environment variables +# + +AVHOMEDIR="${AVHOMEDIR:-/usr/lib/AntiVir}" +AVCONFDIR="${AVCONFDIR:-/etc/avira}" +AVTMPDIR="${AVTMPDIR:-/var/tmp}" +#AVSAVAPISOCKET="${AVSAVAPISOCKET:-/var/run/antivir-savapi/scanner}" +#AVUSER="${AVUSER:-avgate}" +#AVUID="${AVUID:-220}" +#AVSH="${AVSH:--1}" +AVGROUP="${AVGROUP:-antivir}" +AVGID="${AVGID:-220}" + +# +# Standard ebuild functions +# + +pkg_setup() { + + # + # Add USER + GROUP + # + + enewgroup "${AVGROUP}" "${AVGID}" +# enewuser "${AVUSER}" "${AVUID}" "${AVSH}" -1 "${AVGROUP}" -c AntiVir + +} + +src_install () { + + # + # Home directory + # + + diropts -oroot -groot -m0755 + dodir "${AVHOMEDIR}" + diropts -oroot -g"${AVGROUP}" -m0770 + insinto "${AVHOMEDIR}" + insopts -oroot -g"${AVGROUP}" -m0644 + + # + # Executables, libraries and misc components + # + + exeinto "${AVHOMEDIR}" + exeopts -oroot -g"${AVGROUP}" -m2755 + doexe bin/linux_glibc22/savapi + doexe bin/linux_glibc22/avupdate.bin + doexe bin/linux_glibc22/avlinfo + exeopts -oroot -g"${AVGROUP}" -m0755 + doexe script/savapi3_reload.sh + doexe script/savapi3_post.sh + doexe script/avupdate + doexe script/post_install.sh + doins bin/linux_glibc22/avupdate_msg.avr + doins bin/linux_glibc22/ae*.so + doins bin/linux_glibc22/ae*.dat + lv=$(cd bin/linux_glibc22; ls -1 libsavapi3.so.*); lv=${lv##*.so.} + doins bin/linux_glibc22/libsavapi3.so.${lv} + dosym libsavapi3.so.${lv} "${AVHOMEDIR}"/libsavapi3.so + diropts "" + dodir "${DESTTREE}/bin" + dosym "${AVHOMEDIR}/savapi" "${DESTTREE}/bin/savapi" + + # + # Init script + # + +# exeopts -oroot -groot -m0755 +# exeinto /etc/init.d +# newexe "${FILESDIR}/${PV}/antivir-savapi.initd" antivir-savapi + + # + # Config + # + + insopts -oroot -g"${AVGROUP}" -m0640 +# insinto "${AVCONFDIR}" +# doins "${FILESDIR}"/${PV}/antivir-savapi.conf +# dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVSAVAPISOCKET%:${AVSAVAPISOCKET}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVUSER%:${AVUSER}:g" "${AVCONFDIR}/antivir-savapi.conf" +# dosed "s:%AVGROUP%:${AVGROUP}:g" "${AVCONFDIR}/antivir-savapi.conf" + insinto "${AVCONFDIR}" + doins "${FILESDIR}"/${PV}/avupdate.conf + dosed "s:%AVHOMEDIR%:${AVHOMEDIR}:g" "${AVCONFDIR}/avupdate.conf" + dosed "s:%AVTMPDIR%:${AVTMPDIR}:g" "${AVCONFDIR}/avupdate.conf" + +} + +pkg_config () { + + # + # Automatic updates + # + + rand="$(date +%N 2>/dev/null)" + min="$[ (${rand:-${RANDOM}} % 59) + 1 ]" + echo + einfo "" + einfo "Using the internet updater" + einfo "==========================" + einfo "" + einfo "Add the following line to your /etc/crontab or a new file" + einfo "in /etc/cron.d/ to make AntiVir check for updates" + einfo "${min} minutes after every full hour:" + einfo "" + einfo " ${min} * * * * root exec ${AVHOMEDIR}/avupdate --product=signatures >/dev/null" + einfo "" + echo + +} diff --git a/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.conf b/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.conf new file mode 100644 index 0000000..7edf089 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.conf @@ -0,0 +1,149 @@ +# This is the SAVAPI scanner backend configuration file. +# It is used to set values for scanner specific +# options. + +# --------------------------------------------------------------------- +# SocketPermissions [mode] +# +# The permissions of the scanner backend's socket. + +SocketPermissions 0660 + + +# --------------------------------------------------------------------- +# ListenAddress [address] +# +# The socket on which the scanner will listen for scan requests. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "ScannerListenAddress" in MailGate's configuration file +# (default /etc/avmailgate.conf). + +ListenAddress unix:%AVSAVAPISOCKET% + + +# -------------------------------------------------------------------- +# User [user] +# +# The user the scanner runs as. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "User" in MailGate's configuration file +# (default /etc/avmailgate.conf). Changing this option has several +# side effects with MailGate. You have to make sure that all +# directories and files are still accessible to this user. +# Please see the file "MANUAL" in the package for details. + +User %AVUSER% + + +# -------------------------------------------------------------------- +# Group [group] +# +# The group the scanner runs as. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "Group" in MailGate's configuration file +# (default /etc/avmailgate.conf). Changing this option has several +# side effects with MailGate. You have to make sure that all +# directories and files are still accessible to this user. +# Please see the file "MANUAL" in the package for details. + +Group %AVGROUP% + + +# -------------------------------------------------------------------- +# UseSavapiProxy [0|1] +# +# The proxy feature in SAVAPI performs scans more efficiently +# by using and reusing a prepared pool of scanners. While this +# pool increases throughput this feature requires the pool size +# to be wisely chosen -- too many scanners will put load on the +# machine without gaining more performance, too few scanners may +# have the SAVAPI using applications wait unnecessarily. +# +# Default: UseSavapiProxy 0 + +UseSavapiProxy 1 + +# -------------------------------------------------------------------- +# PoolScanners [integer] +# +# The number of prepared AntiVir scanners in the pool. +# See option "UseSavapiProxy". +# +# Default: PoolScanners 24 + +PoolScanners 24 + +# -------------------------------------------------------------------- +# PoolConnections [integer] +# +# The maximum number of simultaneous allowed connections +# from Avira MailGate to the scanner pool. +# +# Default: PoolConnections 8 + +PoolConnections 8 + +# -------------------------------------------------------------------- +# SyslogFacility [facility] +# +# The facility that is used to when logging to syslog. + +SyslogFacility daemon + + +# -------------------------------------------------------------------- +# ReportLevel [integer] +# +# The report level sets the log verbosity of the scanner backend. +# Available values: +# +# 0 Log errors +# 1 Log errors and alerts +# 2 Log errors, alerts and warnings +# 3 Log errors, alerts, warnings and debug messages +# +# ("alerts" is information about potential malicious code). +# +# Default: 0 + +ReportLevel 2 + + +# -------------------------------------------------------------------- +# ScanTemp [path] +# +# The directory used by the scanner to store temporary files like +# extracted files from archives. +# It's also used for other temporary files like lock files. +# +# NOTE: +# +# The scanner backend does not recognize the environment variable +# "TMPDIR". +# +# IMPORTANT: +# +# You should also change the option "TemporaryDir" in MailGate's +# configuration file (default /etc/avmailgate.conf) when changing the +# option "ScanTemp". +# You're then sure that both components use the same temporary +# directory. + +ScanTemp %AVTMPDIR% + + +# -------------------------------------------------------------------- +# LogFileName [path] +# +# Path to a specific log file. + +# Default: LogFileName /path/to/logfile diff --git a/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.initd b/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.initd new file mode 100755 index 0000000..ca475d6 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.4_p32/antivir-savapi.initd @@ -0,0 +1,59 @@ +#!/sbin/runscript + +svc_name="AntiVir SAVAPI" + +## required binaries +antivir_savapi_bin="/usr/lib/AntiVir/savapi" + +## required config files +antivir_savapi_cfg="/etc/antivir-savapi.conf" + +opts="${opts} reload" + +depend() { + need net + use logger dns +} + +checkconfig() { + if [ ! -x "${antivir_savapi_bin}" ]; then + eerror "SAVAPI binary [${antivir_savapi_bin}] missing" + return 1 + fi + if [ ! -r "${antivir_savapi_cfg}" ]; then + eerror "SAVAPI config [${antivir_savapi_cfg}] missing" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --allow-remote-shutdown &>/dev/null + eend $? +} + +stop() { + checkconfig || return 1 + ebegin "Stopping ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --stop &>/dev/null + eend $? +} + +reload() { + checkconfig || return 1 + ebegin "Reloading ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --reload-engine --allow-remote-shutdown &>/dev/null + eend $? +} + +status() { + checkconfig || return 1 + ebegin "Checking status of ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --status &>/dev/null + eend $? +} diff --git a/app-antivirus/antivir-savapi/files/3.0.4_p32/avupdate.conf b/app-antivirus/antivir-savapi/files/3.0.4_p32/avupdate.conf new file mode 100644 index 0000000..c0d1a0a --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.4_p32/avupdate.conf @@ -0,0 +1,61 @@ +# This configuration file updates the Engine and the Signatures automatically + +# The list of Internet update servers. +internet-srvs=http://dl1.pro.antivir.de,http://dl2.pro.antivir.de,http://dl3.pro.antivir.de,http://dl4.pro.antivir.de,http://dl1.antivir.net,http://dl2.antivir.net,http://dl3.antivir.net + +# Specifies the master.idx file. +master-file=/idx/master.idx + +# Specifies the installation directory for updated product files. +install-dir=%AVHOMEDIR% + +# Temporary directory for downloading update files. +temp-dir=%AVTMPDIR% + +# If auth-method is set in avupdate.conf, the Updater requires the smtp login data +#smtp-user= + +# If auth-method is set in avupdate.conf, the Updater requires the smtp login data +#smtp-password= + +# The smtp server for sending email notifications +smtp-server=127.0.0.1 + +# The smtp port for sending email notifications +smtp-port=25 + +# When set in avupdate.conf, the Updater requires the smtp login data: smtp-user +#auth-method= + +# HTTP +#username=http_user +#password=http_pass + +# HTTP proxy +#proxy-host=proxy.example.com +#proxy-port=3128 +#proxy-username=proxy_user +#proxy-password=proxy_pass + +# Requests +connect-timeout=30 +receive-timeout=30 +retries=2 +retry-timeout=60 + +# This option can have one of three values: +# - 0 - no email notifications are sent, +# - 1 - email notifications are sent in case of "successful update", "unsuccessful +# update", or "up to date". +# - 2 - email notification only in case of "unsuccessful update". +notify-when=2 + +# Receiver of the notification emails. +email-to=root@localhost + +# Specify a full path with a filename to which AntiVir Avupdate +# will write its log messages. +log=/var/log/avupdate.log +log-append +#log-rotate +log-template=${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}:${SECOND}; ${FULLHOST}; ${SOURCE}.${LEVEL}; avupdate.bin[${PID}]; ${MSG} diff --git a/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.conf b/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.conf new file mode 100644 index 0000000..7edf089 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.conf @@ -0,0 +1,149 @@ +# This is the SAVAPI scanner backend configuration file. +# It is used to set values for scanner specific +# options. + +# --------------------------------------------------------------------- +# SocketPermissions [mode] +# +# The permissions of the scanner backend's socket. + +SocketPermissions 0660 + + +# --------------------------------------------------------------------- +# ListenAddress [address] +# +# The socket on which the scanner will listen for scan requests. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "ScannerListenAddress" in MailGate's configuration file +# (default /etc/avmailgate.conf). + +ListenAddress unix:%AVSAVAPISOCKET% + + +# -------------------------------------------------------------------- +# User [user] +# +# The user the scanner runs as. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "User" in MailGate's configuration file +# (default /etc/avmailgate.conf). Changing this option has several +# side effects with MailGate. You have to make sure that all +# directories and files are still accessible to this user. +# Please see the file "MANUAL" in the package for details. + +User %AVUSER% + + +# -------------------------------------------------------------------- +# Group [group] +# +# The group the scanner runs as. +# +# IMPORTANT: +# +# When changing this option, you also have to change the option +# "Group" in MailGate's configuration file +# (default /etc/avmailgate.conf). Changing this option has several +# side effects with MailGate. You have to make sure that all +# directories and files are still accessible to this user. +# Please see the file "MANUAL" in the package for details. + +Group %AVGROUP% + + +# -------------------------------------------------------------------- +# UseSavapiProxy [0|1] +# +# The proxy feature in SAVAPI performs scans more efficiently +# by using and reusing a prepared pool of scanners. While this +# pool increases throughput this feature requires the pool size +# to be wisely chosen -- too many scanners will put load on the +# machine without gaining more performance, too few scanners may +# have the SAVAPI using applications wait unnecessarily. +# +# Default: UseSavapiProxy 0 + +UseSavapiProxy 1 + +# -------------------------------------------------------------------- +# PoolScanners [integer] +# +# The number of prepared AntiVir scanners in the pool. +# See option "UseSavapiProxy". +# +# Default: PoolScanners 24 + +PoolScanners 24 + +# -------------------------------------------------------------------- +# PoolConnections [integer] +# +# The maximum number of simultaneous allowed connections +# from Avira MailGate to the scanner pool. +# +# Default: PoolConnections 8 + +PoolConnections 8 + +# -------------------------------------------------------------------- +# SyslogFacility [facility] +# +# The facility that is used to when logging to syslog. + +SyslogFacility daemon + + +# -------------------------------------------------------------------- +# ReportLevel [integer] +# +# The report level sets the log verbosity of the scanner backend. +# Available values: +# +# 0 Log errors +# 1 Log errors and alerts +# 2 Log errors, alerts and warnings +# 3 Log errors, alerts, warnings and debug messages +# +# ("alerts" is information about potential malicious code). +# +# Default: 0 + +ReportLevel 2 + + +# -------------------------------------------------------------------- +# ScanTemp [path] +# +# The directory used by the scanner to store temporary files like +# extracted files from archives. +# It's also used for other temporary files like lock files. +# +# NOTE: +# +# The scanner backend does not recognize the environment variable +# "TMPDIR". +# +# IMPORTANT: +# +# You should also change the option "TemporaryDir" in MailGate's +# configuration file (default /etc/avmailgate.conf) when changing the +# option "ScanTemp". +# You're then sure that both components use the same temporary +# directory. + +ScanTemp %AVTMPDIR% + + +# -------------------------------------------------------------------- +# LogFileName [path] +# +# Path to a specific log file. + +# Default: LogFileName /path/to/logfile diff --git a/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.initd b/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.initd new file mode 100755 index 0000000..ca475d6 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.5.17/antivir-savapi.initd @@ -0,0 +1,59 @@ +#!/sbin/runscript + +svc_name="AntiVir SAVAPI" + +## required binaries +antivir_savapi_bin="/usr/lib/AntiVir/savapi" + +## required config files +antivir_savapi_cfg="/etc/antivir-savapi.conf" + +opts="${opts} reload" + +depend() { + need net + use logger dns +} + +checkconfig() { + if [ ! -x "${antivir_savapi_bin}" ]; then + eerror "SAVAPI binary [${antivir_savapi_bin}] missing" + return 1 + fi + if [ ! -r "${antivir_savapi_cfg}" ]; then + eerror "SAVAPI config [${antivir_savapi_cfg}] missing" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --allow-remote-shutdown &>/dev/null + eend $? +} + +stop() { + checkconfig || return 1 + ebegin "Stopping ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --stop &>/dev/null + eend $? +} + +reload() { + checkconfig || return 1 + ebegin "Reloading ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --reload-engine --allow-remote-shutdown &>/dev/null + eend $? +} + +status() { + checkconfig || return 1 + ebegin "Checking status of ${svc_name}" + "${antivir_savapi_bin}" --config="${antivir_savapi_cfg}" \ + --status &>/dev/null + eend $? +} diff --git a/app-antivirus/antivir-savapi/files/3.0.5.17/avupdate.conf b/app-antivirus/antivir-savapi/files/3.0.5.17/avupdate.conf new file mode 100644 index 0000000..14a1433 --- /dev/null +++ b/app-antivirus/antivir-savapi/files/3.0.5.17/avupdate.conf @@ -0,0 +1,61 @@ +# This configuration file updates the Engine and the Signatures automatically + +# The list of Internet update servers. +internet-srvs=http://dl1.pro.antivir.de,http://dl2.pro.antivir.de,http://dl3.pro.antivir.de,http://dl1.antivir.net,http://dl2.antivir.net,http://dl3.antivir.net + +# Specifies the master.idx file. +master-file=/idx/master.idx + +# Specifies the installation directory for updated product files. +install-dir=%AVHOMEDIR% + +# Temporary directory for downloading update files. +temp-dir=%AVTMPDIR% + +# If auth-method is set in avupdate.conf, the Updater requires the smtp login data +#smtp-user= + +# If auth-method is set in avupdate.conf, the Updater requires the smtp login data +#smtp-password= + +# The smtp server for sending email notifications +smtp-server=127.0.0.1 + +# The smtp port for sending email notifications +smtp-port=25 + +# When set in avupdate.conf, the Updater requires the smtp login data: smtp-user +#auth-method= + +# HTTP +#username=http_user +#password=http_pass + +# HTTP proxy +#proxy-host=proxy.example.com +#proxy-port=3128 +#proxy-username=proxy_user +#proxy-password=proxy_pass + +# Requests +connect-timeout=30 +receive-timeout=30 +retries=2 +retry-timeout=60 + +# This option can have one of three values: +# - 0 - no email notifications are sent, +# - 1 - email notifications are sent in case of "successful update", "unsuccessful +# update", or "up to date". +# - 2 - email notification only in case of "unsuccessful update". +notify-when=2 + +# Receiver of the notification emails. +email-to=root@localhost + +# Specify a full path with a filename to which AntiVir Avupdate +# will write its log messages. +log=/var/log/avupdate.log +log-append +#log-rotate +log-template=${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}:${SECOND}; ${FULLHOST}; ${SOURCE}.${LEVEL}; avupdate.bin[${PID}]; ${MSG} diff --git a/app-antivirus/antivir-savapi/metadata.xml b/app-antivirus/antivir-savapi/metadata.xml new file mode 100644 index 0000000..a7162e9 --- /dev/null +++ b/app-antivirus/antivir-savapi/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>wschlich@gentoo.org</email> + <name>Wolfram Schlich</name> + <description>Primary maintainer</description> +</maintainer> +</pkgmetadata> |