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.6 - (show annotations) (download)
Sat Feb 3 12:20:18 2007 UTC (17 years, 2 months ago) by okamura
Branch: MAIN
Changes since 1.5: +83 -176 lines
2.0rc2

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.5 2007/01/31 23:49:15 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}->{facility} = 'local6';
63
64
65 #### Environment Variables ####
66 # $Setting{environment}->{VARNAME} = 'VALUE';
67 # PATH
68 # for ClamXav user
69 #$Setting{environment}->{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/clamXav/bin';
70 # for normal ClamAV user
71 #$Setting{environment}->{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin';
72
73
74 #### Getting Version Method ####
75 # latest version
76 # command to get
77 #$Setting->{version}->{latest}->{command} = [qw(
78 # host -t txt current.cvd.clamav.net
79 #)];
80
81 # the regular expression that is applied to command output
82 #$Setting->{version}->{latest}->{regexp} = qr/"(\d+(?:\.\d+)*):\d+:\d+:\d+:[^"]*"\s*$/;
83
84 # current version
85 # command to get
86 #$Setting->{version}->{current}->{command} = [qw(clamav-config --version)];
87
88 # the regular expression that is applied to command output
89 #$Setting->{version}->{current}->{regexp} = qr/^(\d+(?:\.\d+)*)\s*$/;
90
91 # version string compare function
92 #$Setting->{version}->{compare} = sub {
93 # my ($a, $b) = @_;
94 # my @a = reverse(split(/\./, $a));
95 # my @b = reverse(split(/\./, $b));
96 #
97 # while (0 < scalar(@a) and 0 < scalar(@b)) {
98 # $a = pop @a;
99 # $b = pop @b;
100 # return -1 if ($a < $b);
101 # return 1 if ($a > $b);
102 # }
103 # return 1 if (0 < scalar(@a));
104 # return -1 if (0 < scalar(@b));
105 # return 0;
106 #};
107
108
109 #### Options ####
110 # These settings will be overwrited with command line options.
111 # download from
112 # 'http://jaist.dl.sourceforge.net/sourceforge/clamav' - Asia: Ishikawa, Japan
113 # 'http://nchc.dl.sourceforge.net/sourceforge/clamav' - Asia: Tainan, Taiwan
114 # 'http://optusnet.dl.sourceforge.net/sourceforge/clamav' - Australia: Sydney, Australia
115 # 'http://surfnet.dl.sourceforge.net/sourceforge/clamav' - Europe: Amsterdam, The Netherlands
116 # 'http://belnet.dl.sourceforge.net/sourceforge/clamav' - Europe: Brussels, Belgium
117 # 'http://heanet.dl.sourceforge.net/sourceforge/clamav' - Europe: Dublin, Ireland
118 # 'http://mesh.dl.sourceforge.net/sourceforge/clamav' - Europe: Duesseldorf, Germany
119 # 'http://kent.dl.sourceforge.net/sourceforge/clamav' - Europe: Kent, UK
120 # 'http://switch.dl.sourceforge.net/sourceforge/clamav' - Europe: Lausanne, Switzerland
121 # 'http://ovh.dl.sourceforge.net/sourceforge/clamav' - Europe: Paris, France
122 # 'http://superb-east.dl.sourceforge.net/sourceforge/clamav' - North America: McLean, Virginia
123 # 'http://umn.dl.sourceforge.net/sourceforge/clamav' - North America: Minneapolis, MN
124 # 'http://easynews.dl.sourceforge.net/sourceforge/clamav' - North America: Phoenix, AZ
125 # 'http://superb-west.dl.sourceforge.net/sourceforge/clamav' - North America: Seattle, Washington
126 # 'http://ufpr.dl.sourceforge.net/sourceforge/clamav' - South America: Curitiba, Brazil
127 $Setting{option}->{src} = 'http://jaist.dl.sourceforge.net/sourceforge/clamav';
128
129 # download to
130 #$Setting{option}->{dst} = tempdir(CLEANUP => 1);
131
132 # package name (don't change for clamav)
133 #$Setting{option}->{name} = 'clamav';
134
135 # archive file extention (don't change for clamav)
136 #$Setting{option}->{ext} = 'tar.gz';
137
138 # force install
139 #$Setting{option}->{force} = 0;
140
141
142 #### Update Phases Sepcification ####
143 # phase sequence
144 #$Setting{phase}->{sequence} = [qw(download extract build install)];
145
146 # custom phase specifier
147 # for ClamXav user
148 #$Setting{phase}->{specifier} = sub {
149 # # use build-in specifier
150 # PhaseSpecifier4ClamAV4ClamXav();
151 #
152 # # If you use ClamAntiVirusDaemon, uncomment following lines.
153 # #push @{$Phase{install}->{method}}, (
154 # # [qw(/Library/StartupItems/ClamAntiVirusDaemon/ClamAntiVirusDaemon restart)],
155 # #);
156 #
157 # # If you use FreshClamDaemon, uncomment following lines.
158 # #push @{$Phase{install}->{method}}, (
159 # # [qw(chown root /usr/local/clamXav/bin/freshclam)],
160 # # [qw(chmod u-s /usr/local/clamXav/bin/freshclam)],
161 # # [qw(/Library/StartupItems/FreshClamDaemon/FreshClamDaemon restart)],
162 # #);
163 #
164 # # other customization
165 #
166 # # return success
167 # 1;
168 #};
169
170 # for normal ClamAV user
171 #$Setting{phase}->{specifier} = \&PhaseSpecifier4General;
172 # If you want to customize phase specification, use following instead of
173 # above.
174 #$Setting{phase}->{specifier} = sub {
175 # # use build-in specifier
176 # PhaseSpecifier4General();
177 #
178 # # If you use /etc/rc.d/init.d/clamd, uncomment following lines.
179 # #push @{$Phase{install}->{method}}, (
180 # # [qw(/etc/rc.d/init.d/clamd restart)],
181 # #);
182 #
183 # # If you use /etc/rc.d/init.d/freshclam, uncomment following lines.
184 # #push @{$Phase{install}->{method}}, (
185 # # [qw(/etc/rc.d/init.d/freshclam restart)],
186 # #);
187 #
188 # # other customization
189 #
190 # # return success
191 # 1;
192 #};
193
194
195 #### DO NOT EDIT ####
196 1;

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