# Sample clamav-update.conf
#   In the default, put this file to /usr/local/clamXav/etc/ .
#   If you want to use the other file, issue clamav-update.pl with --config
#   option.
#       ex) clamav-update.pl --config /etc/clamav-update.conf

# $Id: clamav-update.conf,v 1.10 2007/12/26 07:06:54 okamura Exp $

#### Logging ####
# log destination
#   GLOB destinations
#       \*STDOUT  - standerd output
#       \*STDERR  - standerd error output
#   Syslog destinations
#       'unix'    - unix domain socket
#       ['stream', 'FILE_PATH'] - the file of which path name is FILE_PATH
#       'inet'    - INET socket (either tcp or udp, tried in that order) returned by getservbyname()
#       'tcp'     - tcp socket returned by getservbyname()
#       'udp'     - udp socket returned by getservbyname()
#       'console' - console
#$Setting{logging}->{setlogsock} = \*STDERR;

# log level
#   'emerg'   - A panic condition.
#   'alert'   - A condition that should be corrected immediately.
#   'crit'    - Critical conditions.
#   'err'     - Errors.
#   'warning' - Warning messages.
#   'notice'  - Conditions that are not error conditions, but should possibly be
#               handled specially.
#   'info'    - Informational messages.
#   'debug'   - Messages that contain information normally of use only when
#               debugging a program.
#$Setting{logging}->{setlogmask} = 'warning';

# log identity (only syslog)
#   'NAME' - NAME is prepended to every message.
#$Setting{logging}->{openlog}->{ident} = 'clamav-update';

# log options (only syslog)
#   ['OPTION1', 'OPTION2' ...] or [qw(OPTION1 OPTION2 ...)]
#   ndelay - Open the connection to syslogd(8) immediately.
#   perror - Write the message to standard error output as well to the system log.
#   pid    - Log the process id with each message.
#$Setting{logging}->{openlog}->{logopt} = [qw()];

# log facility (only syslog)
#   'console' - Messages written to /dev/console by the kernel console output
#               driver.
#   'daemon'  - System daemons, such as routed(8), that are not provided for
#               explicitly by other facilities.
#   'mail'    - The mail system.
#   'news'    - The network news system.
#   'user'    - Messages generated by random user processes.
#   'local1'  - for other purpose.
#   'local2'  - for other purpose.
#   'local3'  - for other purpose.
#   'local4'  - for other purpose.
#   'local5'  - for other purpose.
#   'local6'  - for other purpose.
#   'local7'  - for other purpose.
#$Setting{logging}->{openlog}->{facility} = 'local6';


#### Environment Variables ####
#   $Setting{environment}->{VARNAME} = 'VALUE';
# PATH
#$Setting{environment}->{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/clamXav/bin';


#### Getting Version Method ####
# latest version
#   command to get
#$Setting{version}->{latest}->{command} = [qw(host -t txt current.cvd.clamav.net)];

#   the regular expression that is applied to command output
#$Setting{version}->{latest}->{regexp} = qr/"(\d+(?:\.\d+)*):\d+:\d+:\d+:[^"]*"\s*$/;

# current version
#   command to get
#$Setting{version}->{current}->{command} = [qw(clamav-config --version)];

#   the regular expression that is applied to command output
#$Setting{version}->{current}->{regexp} = qr/^(\d+(?:\.\d+)*)\s*$/;

# version string compare function
#$Setting{version}->{compare} = sub {
#   my  ($a, $b) = @_;
#   my  @a = reverse(split(/\./, $a));
#   my  @b = reverse(split(/\./, $b));
#
#   while (0 < scalar(@a) and 0 < scalar(@b)) {
#       $a = pop @a;
#       $b = pop @b;
#       return -1   if ($a < $b);
#       return  1   if ($a > $b);
#   }
#   return  1   if (0 < scalar(@a));
#   return -1   if (0 < scalar(@b));
#   return  0;
#};


#### Options ####
# These settings will be overwrited with command line options.
# download from
#   'http://jaist.dl.sourceforge.net/sourceforge/clamav'       - Asia: Ishikawa, Japan
#   'http://nchc.dl.sourceforge.net/sourceforge/clamav'        - Asia: Tainan, Taiwan
#   'http://optusnet.dl.sourceforge.net/sourceforge/clamav'    - Australia: Sydney, Australia
#   'http://belnet.dl.sourceforge.net/sourceforge/clamav'      - Europe: Brussels, Belgium
#   'http://switch.dl.sourceforge.net/sourceforge/clamav'      - Europe: Lausanne, Switzerland
#   'http://puzzle.dl.sourceforge.net/sourceforge/clamav'      - Europe: Bern, Switzerland
#   'http://mesh.dl.sourceforge.net/sourceforge/clamav'        - Europe: Duesseldorf, Germany
#   'http://dfn.dl.sourceforge.net/sourceforge/clamav'         - Europe: Berlin, Germany
#   'http://heanet.dl.sourceforge.net/sourceforge/clamav'      - Europe: Dublin, Ireland
#   'http://garr.dl.sourceforge.net/sourceforge/clamav'        - Europe: Bologna, Italy
#   'http://surfnet.dl.sourceforge.net/sourceforge/clamav'     - Europe: Amsterdam, The Netherlands
#   'http://kent.dl.sourceforge.net/sourceforge/clamav'        - Europe: Kent, UK
#   'http://superb-east.dl.sourceforge.net/sourceforge/clamav' - North America: McLean, Virginia
#   'http://superb-west.dl.sourceforge.net/sourceforge/clamav' - North America: Seattle, Washington
#   'http://internap.dl.sourceforge.net/sourceforge/clamav'    - North America: San Jose, CA
#   'http://easynews.dl.sourceforge.net/sourceforge/clamav'    - North America: Phoenix, AZ
#   'http://ufpr.dl.sourceforge.net/sourceforge/clamav'        - South America: Curitiba, Brazil
#$Setting{option}->{src} = 'http://jaist.dl.sourceforge.net/sourceforge/clamav';

#   download to
#$Setting{option}->{dst} = tempdir(CLEANUP => 1);

#   package name (don't change for clamav)
#$Setting{option}->{name} = 'clamav';

#   archive file extention (don't change for clamav)
#$Setting{option}->{ext} = 'tar.gz';

#   force install
#$Setting{option}->{force} = 0;

#	update limit
#		version supremum
#$Setting{option}->{limit}->{version} = undef;

#		phase name for limited action
#$Setting{option}->{limit}->{action} = undef;


#### Update Phases Sepcification ####
# phase sequence
#     each item must be defined as key of %Phase.
#$Setting{phase}->{sequence} = [qw(download extract build install)];

# custom phase specifier
#    built-in specifier:
#        \&PhaseSpecifier4General
#            install ClamAV to /usr/local/ from tar.gz file.
#        \&PhaseSpecifier4ClamAV4ClamXav
#            install ClamAV to /usr/local/clamXav/ from tar.gz file.
#            change owner and group of some files or directories.
#        \&PhaseSpecifier4PkgOnDmg
#            install something from pkg file in dmg file.
#            (for Mac OS X)
#        \&PhaseSpecifier4ClamavUpdate
#            install clamav-update to /usr/local/ from tar.gz file.
#        \&PhaseSpecifier4ClamavUpdate4ClamXav
#            install clamav-update to /usr/local/clamXav/ from tar.gz file.
#        (see clamav-update.pl for detail.)
#    You can use your no-name function.
#        ex) sub { ... }
#        See PhaseSpecifier4General and PhaseSpecifier4ClamAV4ClamXav definition
#        on clamav-update.pl. They are good samples.
#$Setting{phase}->{specifier} = \&PhaseSpecifier4ClamAV4ClamXav;


#### DO NOT EDIT ####
1;