diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2013-08-22 07:45:52 +0200 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2013-08-22 07:45:52 +0200 |
commit | 2c8d064b367a44723b9b557fb1edca59387edf49 (patch) | |
tree | 762432f58f66cfa663464bd506f40bd73a8a812d /app-antivirus/antivir-savapi/files | |
parent | initial setup (diff) | |
download | wschlich-2c8d064b367a44723b9b557fb1edca59387edf49.tar.gz wschlich-2c8d064b367a44723b9b557fb1edca59387edf49.tar.bz2 wschlich-2c8d064b367a44723b9b557fb1edca59387edf49.zip |
added all ebuilds from my old svn repository
Diffstat (limited to 'app-antivirus/antivir-savapi/files')
6 files changed, 538 insertions, 0 deletions
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} |