Develop and Download Open Source Software

Browse CVS Repository

Contents of /clamav-update/clamav-update/clamav-update.conf

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Nov 30 08:45:13 2006 UTC (17 years, 4 months ago) by okamura
Branch: MAIN
Changes since 1.1: +5 -5 lines
clamd の再起動を freshclam の再起動の前に移動。
この順序が逆の場合、freshclam 再起動から clamd の再起動までのわずかな間にウィルス定義ファイルの更新があるとそれが clamd に反映されないケースが考えられるため。

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.1 2006/11/18 13:06:38 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 # cons - If clamav-update.pl cannot pass the message to syslogd(8) it will
43 # attempt to write the message to the console.
44 # ndelay - Open the connection to syslogd(8) immediately.
45 # perror - Write the message to standard error output as well to the system log.
46 # pid - Log the process id with each message.
47 #$Setting->{logging}->{openlog}->{logopt} = [qw(cons)];
48
49 # log facility (only syslog)
50 # 'console' - Messages written to /dev/console by the kernel console output
51 # driver.
52 # 'daemon' - System daemons, such as routed(8), that are not provided for
53 # explicitly by other facilities.
54 # 'mail' - The mail system.
55 # 'news' - The network news system.
56 # 'user' - Messages generated by random user processes.
57 # 'local1' - for other purpose.
58 # 'local2' - for other purpose.
59 # 'local3' - for other purpose.
60 # 'local4' - for other purpose.
61 # 'local5' - for other purpose.
62 # 'local6' - for other purpose.
63 # 'local7' - for other purpose.
64 #$Setting->{logging}->{openlog}->{logopt} = 'local6';
65
66
67 #### Environment Variables ####
68 # $Setting->{environment}->{VARNAME} = 'VALUE';
69 #$Setting->{environment}->{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/clamXav/bin';
70
71
72 #### Getting Version Method ####
73 # latest version
74 # command to get
75 #$Setting->{version}->{latest}->{command} = 'host -t txt current.cvd.clamav.net';
76
77 # the regular expression that is applied to command output
78 #$Setting->{version}->{latest}->{regexp} = qr/"(\d+(?:\.\d+)*):\d+:\d+:\d+:[^"]*"\s*$/;
79
80 # current version
81 # command to get
82 #$Setting->{version}->{current}->{command} = 'clamav-config --version';
83
84 # the regular expression that is applied to command output
85 #$Setting->{version}->{current}->{regexp} = qr/^(\d+(?:\.\d+)*)\s*$/;
86
87
88 #### Download Specification ####
89 # download from
90 # 'http://jaist.dl.sourceforge.net/sourceforge/clamav' - Asia: Ishikawa, Japan
91 # 'http://nchc.dl.sourceforge.net/sourceforge/clamav' - Asia: Tainan, Taiwan
92 # 'http://optusnet.dl.sourceforge.net/sourceforge/clamav' - Australia: Sydney, Australia
93 # 'http://surfnet.dl.sourceforge.net/sourceforge/clamav' - Europe: Amsterdam, The Netherlands
94 # 'http://belnet.dl.sourceforge.net/sourceforge/clamav' - Europe: Brussels, Belgium
95 # 'http://heanet.dl.sourceforge.net/sourceforge/clamav' - Europe: Dublin, Ireland
96 # 'http://mesh.dl.sourceforge.net/sourceforge/clamav' - Europe: Duesseldorf, Germany
97 # 'http://kent.dl.sourceforge.net/sourceforge/clamav' - Europe: Kent, UK
98 # 'http://switch.dl.sourceforge.net/sourceforge/clamav' - Europe: Lausanne, Switzerland
99 # 'http://ovh.dl.sourceforge.net/sourceforge/clamav' - Europe: Paris, France
100 # 'http://superb-east.dl.sourceforge.net/sourceforge/clamav' - North America: McLean, Virginia
101 # 'http://umn.dl.sourceforge.net/sourceforge/clamav' - North America: Minneapolis, MN
102 # 'http://easynews.dl.sourceforge.net/sourceforge/clamav' - North America: Phoenix, AZ
103 # 'http://superb-west.dl.sourceforge.net/sourceforge/clamav' - North America: Seattle, Washington
104 # 'http://ufpr.dl.sourceforge.net/sourceforge/clamav' - South America: Curitiba, Brazil
105 #$Setting->{download}->{src} = 'http://jaist.dl.sourceforge.net/sourceforge/clamav';
106
107 # save direcotry
108 #$Setting->{download}->{dst} = '/tmp';
109
110 # package name - don't modify
111 #$Setting->{download}->{name} = 'clamav-%s';
112
113 # package file extension - don't modify
114 #$Setting->{download}->{ext} = '.tar.gz';
115
116
117 #### Build Method ####
118 #$Setting->{build} = [
119 # [qw(./configure --prefix=/usr/local/clamXav)],
120 # [qw(make)],
121 #];
122
123
124 #### Install Method ####
125 # This sequence is securer than ClamXav original one.
126 #$Setting->{install} = [
127 # [qw(make install)],
128 # [qw(chown -R root:admin /usr/local/clamXav)],
129 # [qw(chmod 664 /usr/local/clamXav/etc/freshclam.conf)],
130 # [qw(chown clamav /usr/local/clamXav/bin/freshclam)],
131 # [qw(chmod u+s /usr/local/clamXav/bin/freshclam)],
132 # [qw(touch /usr/local/clamXav/share/clamav/freshclam.log)],
133 # [qw(chmod 664 /usr/local/clamXav/share/clamav/freshclam.log)],
134 # [qw(chown -R clamav:clamav /usr/local/clamXav/share/clamav)],
135 # [qw(chmod -R ug+w /usr/local/clamXav/share/clamav)],
136 #];
137
138
139 #### Daemon Setting and Restart Method ####
140 # The default.
141 #$Setting->{daemon} = [
142 #];
143
144 # using clamd (sample)
145 #push @{$Setting->{daemon}},
146 # [qw(/Library/StartupItems/ClamAntiVirusDaemon/ClamAntiVirusDaemon restart)];
147
148 # using freshclam as a daemon (sample)
149 #push @{$Setting->{daemon}},
150 # [qw(chown root /usr/local/clamXav/bin/freshclam)],
151 # [qw(chmod u-s /usr/local/clamXav/bin/freshclam)],
152 # [qw(/Library/StartupItems/FreshClamDaemon/FreshClamDaemon restart)];
153
154
155 #### Clean Targets ####
156 # downloaded archive file
157 #$Setting->{doClean}->{archive} = 1;
158
159 # builded object files
160 #$Setting->{doClean}->{objects} = 0;
161
162 # extracted directory
163 #$Setting->{doClean}->{dir} = 1;
164
165
166 #### DO NOT EDIT ####
167 1;

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26