| 1 |
# Sample clamav-update.conf |
| 2 |
# In the default, put this file to /usr/local/clamXav/etc/ . |
| 3 |
# If you want to use the other file, issue clamav-update.pl with --config |
| 4 |
# option. |
| 5 |
# ex) clamav-update.pl --config /etc/clamav-update.conf |
| 6 |
|
| 7 |
# $Id: clamav-update.conf,v 1.2 2006/11/30 08:45:13 okamura Exp $ |
| 8 |
|
| 9 |
#### Logging #### |
| 10 |
# log destination |
| 11 |
# GLOB destinations |
| 12 |
# \*STDOUT - standerd output |
| 13 |
# \*STDERR - standerd error output |
| 14 |
# Syslog destinations |
| 15 |
# 'unix' - unix domain socket |
| 16 |
# ['stream', 'FILE_PATH'] - the file of which path name is FILE_PATH |
| 17 |
# 'inet' - INET socket (either tcp or udp, tried in that order) returned by getservbyname() |
| 18 |
# 'tcp' - tcp socket returned by getservbyname() |
| 19 |
# 'udp' - udp socket returned by getservbyname() |
| 20 |
# 'console' - console |
| 21 |
#$Setting->{logging}->{setlogsock} = \*STDERR; |
| 22 |
|
| 23 |
# log level |
| 24 |
# 'emerg' - A panic condition. |
| 25 |
# 'alert' - A condition that should be corrected immediately. |
| 26 |
# 'crit' - Critical conditions. |
| 27 |
# 'err' - Errors. |
| 28 |
# 'warning' - Warning messages. |
| 29 |
# 'notice' - Conditions that are not error conditions, but should possibly be |
| 30 |
# handled specially. |
| 31 |
# 'info' - Informational messages. |
| 32 |
# 'debug' - Messages that contain information normally of use only when |
| 33 |
# debugging a program. |
| 34 |
#$Setting->{logging}->{setlogmask} = 'warning'; |
| 35 |
|
| 36 |
# log identity (only syslog) |
| 37 |
# 'NAME' - NAME is prepended to every message. |
| 38 |
#$Setting->{logging}->{openlog}->{ident} = 'clamav-update'; |
| 39 |
|
| 40 |
# log options (only syslog) |
| 41 |
# ['OPTION1', 'OPTION2' ...] or [qw(OPTION1 OPTION2 ...)] |
| 42 |
# ndelay - Open the connection to syslogd(8) immediately. |
| 43 |
# perror - Write the message to standard error output as well to the system log. |
| 44 |
# pid - Log the process id with each message. |
| 45 |
#$Setting->{logging}->{openlog}->{logopt} = [qw()]; |
| 46 |
|
| 47 |
# log facility (only syslog) |
| 48 |
# 'console' - Messages written to /dev/console by the kernel console output |
| 49 |
# driver. |
| 50 |
# 'daemon' - System daemons, such as routed(8), that are not provided for |
| 51 |
# explicitly by other facilities. |
| 52 |
# 'mail' - The mail system. |
| 53 |
# 'news' - The network news system. |
| 54 |
# 'user' - Messages generated by random user processes. |
| 55 |
# 'local1' - for other purpose. |
| 56 |
# 'local2' - for other purpose. |
| 57 |
# 'local3' - for other purpose. |
| 58 |
# 'local4' - for other purpose. |
| 59 |
# 'local5' - for other purpose. |
| 60 |
# 'local6' - for other purpose. |
| 61 |
# 'local7' - for other purpose. |
| 62 |
#$Setting->{logging}->{openlog}->{logopt} = 'local6'; |
| 63 |
|
| 64 |
|
| 65 |
#### Environment Variables #### |
| 66 |
# $Setting->{environment}->{VARNAME} = 'VALUE'; |
| 67 |
#$Setting->{environment}->{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/clamXav/bin'; |
| 68 |
|
| 69 |
|
| 70 |
#### Getting Version Method #### |
| 71 |
# latest version |
| 72 |
# command to get |
| 73 |
#$Setting->{version}->{latest}->{command} = 'host -t txt current.cvd.clamav.net'; |
| 74 |
|
| 75 |
# the regular expression that is applied to command output |
| 76 |
#$Setting->{version}->{latest}->{regexp} = qr/"(\d+(?:\.\d+)*):\d+:\d+:\d+:[^"]*"\s*$/; |
| 77 |
|
| 78 |
# current version |
| 79 |
# command to get |
| 80 |
#$Setting->{version}->{current}->{command} = 'clamav-config --version'; |
| 81 |
|
| 82 |
# the regular expression that is applied to command output |
| 83 |
#$Setting->{version}->{current}->{regexp} = qr/^(\d+(?:\.\d+)*)\s*$/; |
| 84 |
|
| 85 |
|
| 86 |
#### Download Specification #### |
| 87 |
# download from |
| 88 |
# 'http://jaist.dl.sourceforge.net/sourceforge/clamav' - Asia: Ishikawa, Japan |
| 89 |
# 'http://nchc.dl.sourceforge.net/sourceforge/clamav' - Asia: Tainan, Taiwan |
| 90 |
# 'http://optusnet.dl.sourceforge.net/sourceforge/clamav' - Australia: Sydney, Australia |
| 91 |
# 'http://surfnet.dl.sourceforge.net/sourceforge/clamav' - Europe: Amsterdam, The Netherlands |
| 92 |
# 'http://belnet.dl.sourceforge.net/sourceforge/clamav' - Europe: Brussels, Belgium |
| 93 |
# 'http://heanet.dl.sourceforge.net/sourceforge/clamav' - Europe: Dublin, Ireland |
| 94 |
# 'http://mesh.dl.sourceforge.net/sourceforge/clamav' - Europe: Duesseldorf, Germany |
| 95 |
# 'http://kent.dl.sourceforge.net/sourceforge/clamav' - Europe: Kent, UK |
| 96 |
# 'http://switch.dl.sourceforge.net/sourceforge/clamav' - Europe: Lausanne, Switzerland |
| 97 |
# 'http://ovh.dl.sourceforge.net/sourceforge/clamav' - Europe: Paris, France |
| 98 |
# 'http://superb-east.dl.sourceforge.net/sourceforge/clamav' - North America: McLean, Virginia |
| 99 |
# 'http://umn.dl.sourceforge.net/sourceforge/clamav' - North America: Minneapolis, MN |
| 100 |
# 'http://easynews.dl.sourceforge.net/sourceforge/clamav' - North America: Phoenix, AZ |
| 101 |
# 'http://superb-west.dl.sourceforge.net/sourceforge/clamav' - North America: Seattle, Washington |
| 102 |
# 'http://ufpr.dl.sourceforge.net/sourceforge/clamav' - South America: Curitiba, Brazil |
| 103 |
#$Setting->{download}->{src} = 'http://jaist.dl.sourceforge.net/sourceforge/clamav'; |
| 104 |
|
| 105 |
# save direcotry |
| 106 |
#$Setting->{download}->{dst} = '/tmp'; |
| 107 |
|
| 108 |
# package name - don't modify |
| 109 |
#$Setting->{download}->{name} = 'clamav-%s'; |
| 110 |
|
| 111 |
# package file extension - don't modify |
| 112 |
#$Setting->{download}->{ext} = '.tar.gz'; |
| 113 |
|
| 114 |
|
| 115 |
#### Build Method #### |
| 116 |
#$Setting->{build} = [ |
| 117 |
# [qw(./configure --prefix=/usr/local/clamXav)], |
| 118 |
# [qw(make)], |
| 119 |
#]; |
| 120 |
|
| 121 |
|
| 122 |
#### Install Method #### |
| 123 |
# This sequence is securer than ClamXav original one. |
| 124 |
#$Setting->{install} = [ |
| 125 |
# [qw(make install)], |
| 126 |
# [qw(chown -R root:admin /usr/local/clamXav)], |
| 127 |
# [qw(chmod 664 /usr/local/clamXav/etc/freshclam.conf)], |
| 128 |
# [qw(chown clamav /usr/local/clamXav/bin/freshclam)], |
| 129 |
# [qw(chmod u+s /usr/local/clamXav/bin/freshclam)], |
| 130 |
# [qw(touch /usr/local/clamXav/share/clamav/freshclam.log)], |
| 131 |
# [qw(chmod 664 /usr/local/clamXav/share/clamav/freshclam.log)], |
| 132 |
# [qw(chown -R clamav:clamav /usr/local/clamXav/share/clamav)], |
| 133 |
# [qw(chmod -R ug+w /usr/local/clamXav/share/clamav)], |
| 134 |
#]; |
| 135 |
|
| 136 |
|
| 137 |
#### Daemon Setting and Restart Method #### |
| 138 |
# The default. |
| 139 |
#$Setting->{daemon} = [ |
| 140 |
#]; |
| 141 |
|
| 142 |
# using clamd (sample) |
| 143 |
#push @{$Setting->{daemon}}, |
| 144 |
# [qw(/Library/StartupItems/ClamAntiVirusDaemon/ClamAntiVirusDaemon restart)]; |
| 145 |
|
| 146 |
# using freshclam as a daemon (sample) |
| 147 |
#push @{$Setting->{daemon}}, |
| 148 |
# [qw(chown root /usr/local/clamXav/bin/freshclam)], |
| 149 |
# [qw(chmod u-s /usr/local/clamXav/bin/freshclam)], |
| 150 |
# [qw(/Library/StartupItems/FreshClamDaemon/FreshClamDaemon restart)]; |
| 151 |
|
| 152 |
|
| 153 |
#### Clean Targets #### |
| 154 |
# downloaded archive file |
| 155 |
#$Setting->{doClean}->{archive} = 1; |
| 156 |
|
| 157 |
# builded object files |
| 158 |
#$Setting->{doClean}->{objects} = 0; |
| 159 |
|
| 160 |
# extracted directory |
| 161 |
#$Setting->{doClean}->{dir} = 1; |
| 162 |
|
| 163 |
|
| 164 |
#### DO NOT EDIT #### |
| 165 |
1; |