| 65 |
#### Environment Variables #### |
#### Environment Variables #### |
| 66 |
# $Setting{environment}->{VARNAME} = 'VALUE'; |
# $Setting{environment}->{VARNAME} = 'VALUE'; |
| 67 |
# PATH |
# PATH |
|
# for ClamXav user |
|
| 68 |
#$Setting{environment}->{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/clamXav/bin'; |
#$Setting{environment}->{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/clamXav/bin'; |
|
# for normal ClamAV user |
|
|
#$Setting{environment}->{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin'; |
|
| 69 |
|
|
| 70 |
|
|
| 71 |
#### Getting Version Method #### |
#### Getting Version Method #### |
| 72 |
# latest version |
# latest version |
| 73 |
# command to get |
# command to get |
| 74 |
#$Setting->{version}->{latest}->{command} = [qw( |
#$Setting->{version}->{latest}->{command} = [qw(host -t txt current.cvd.clamav.net)]; |
|
# host -t txt current.cvd.clamav.net |
|
|
#)]; |
|
| 75 |
|
|
| 76 |
# the regular expression that is applied to command output |
# the regular expression that is applied to command output |
| 77 |
#$Setting->{version}->{latest}->{regexp} = qr/"(\d+(?:\.\d+)*):\d+:\d+:\d+:[^"]*"\s*$/; |
#$Setting->{version}->{latest}->{regexp} = qr/"(\d+(?:\.\d+)*):\d+:\d+:\d+:[^"]*"\s*$/; |
| 119 |
# 'http://easynews.dl.sourceforge.net/sourceforge/clamav' - North America: Phoenix, AZ |
# 'http://easynews.dl.sourceforge.net/sourceforge/clamav' - North America: Phoenix, AZ |
| 120 |
# 'http://superb-west.dl.sourceforge.net/sourceforge/clamav' - North America: Seattle, Washington |
# 'http://superb-west.dl.sourceforge.net/sourceforge/clamav' - North America: Seattle, Washington |
| 121 |
# 'http://ufpr.dl.sourceforge.net/sourceforge/clamav' - South America: Curitiba, Brazil |
# 'http://ufpr.dl.sourceforge.net/sourceforge/clamav' - South America: Curitiba, Brazil |
| 122 |
$Setting{option}->{src} = 'http://jaist.dl.sourceforge.net/sourceforge/clamav'; |
#$Setting{option}->{src} = 'http://jaist.dl.sourceforge.net/sourceforge/clamav'; |
| 123 |
|
|
| 124 |
# download to |
# download to |
| 125 |
#$Setting{option}->{dst} = tempdir(CLEANUP => 1); |
#$Setting{option}->{dst} = tempdir(CLEANUP => 1); |
| 136 |
|
|
| 137 |
#### Update Phases Sepcification #### |
#### Update Phases Sepcification #### |
| 138 |
# phase sequence |
# phase sequence |
| 139 |
|
# each item must be defined as key of %Phase. |
| 140 |
#$Setting{phase}->{sequence} = [qw(download extract build install)]; |
#$Setting{phase}->{sequence} = [qw(download extract build install)]; |
| 141 |
|
|
| 142 |
# custom phase specifier |
# custom phase specifier |
| 143 |
# for ClamXav user |
# built-in specifier: |
| 144 |
#$Setting{phase}->{specifier} = sub { |
# \&PhaseSpecifier4General |
| 145 |
# # use build-in specifier |
# install ClamAV to /usr/local/ from tar.gz file. |
| 146 |
# PhaseSpecifier4ClamAV4ClamXav(); |
# \&PhaseSpecifier4ClamAV4ClamXav |
| 147 |
# |
# install ClamAV to /usr/local/clamXav/ from tar.gz file. |
| 148 |
# # If you use ClamAntiVirusDaemon, uncomment following lines. |
# change owner and group of some files or directories. |
| 149 |
# #push @{$Phase{install}->{method}}, ( |
# \&PhaseSpecifier4PkgOnDmg |
| 150 |
# # [qw(/Library/StartupItems/ClamAntiVirusDaemon/ClamAntiVirusDaemon restart)], |
# install something from pkg file in dmg file. |
| 151 |
# #); |
# (for Mac OS X) |
| 152 |
# |
# \&PhaseSpecifier4ClamavUpdate |
| 153 |
# # If you use FreshClamDaemon, uncomment following lines. |
# install clamav-update to /usr/local/ from tar.gz file. |
| 154 |
# #push @{$Phase{install}->{method}}, ( |
# \&PhaseSpecifier4ClamavUpdate4ClamXav |
| 155 |
# # [qw(chown root /usr/local/clamXav/bin/freshclam)], |
# install clamav-update to /usr/local/clamXav/ from tar.gz file. |
| 156 |
# # [qw(chmod u-s /usr/local/clamXav/bin/freshclam)], |
# (see clamav-update.pl for detail.) |
| 157 |
# # [qw(/Library/StartupItems/FreshClamDaemon/FreshClamDaemon restart)], |
# You can use your no-name function. |
| 158 |
# #); |
# ex) sub { ... } |
| 159 |
# |
# See PhaseSpecifier4General and PhaseSpecifier4ClamAV4ClamXav definition |
| 160 |
# # other customization |
# on clamav-update.pl. They are good samples. |
| 161 |
# |
#$Setting{phase}->{specifier} = \&PhaseSpecifier4ClamAV4ClamXav; |
|
# # return success |
|
|
# 1; |
|
|
#}; |
|
|
|
|
|
# for normal ClamAV user |
|
|
#$Setting{phase}->{specifier} = \&PhaseSpecifier4General; |
|
|
# If you want to customize phase specification, use following instead of |
|
|
# above. |
|
|
#$Setting{phase}->{specifier} = sub { |
|
|
# # use build-in specifier |
|
|
# PhaseSpecifier4General(); |
|
|
# |
|
|
# # If you use /etc/rc.d/init.d/clamd, uncomment following lines. |
|
|
# #push @{$Phase{install}->{method}}, ( |
|
|
# # [qw(/etc/rc.d/init.d/clamd restart)], |
|
|
# #); |
|
|
# |
|
|
# # If you use /etc/rc.d/init.d/freshclam, uncomment following lines. |
|
|
# #push @{$Phase{install}->{method}}, ( |
|
|
# # [qw(/etc/rc.d/init.d/freshclam restart)], |
|
|
# #); |
|
|
# |
|
|
# # other customization |
|
|
# |
|
|
# # return success |
|
|
# 1; |
|
|
#}; |
|
| 162 |
|
|
| 163 |
|
|
| 164 |
#### DO NOT EDIT #### |
#### DO NOT EDIT #### |