clamav-update 2 リリース
clamav-update 2がリリースされたそうなので、そのインストールの手順の詳細を書いてみた。
管理者のアカウントで解凍し、install.commandをクリックするとTerminal.appが起動する。実はperlでinstall.shでインストールしている。
以下ターミナルのコピペ。
Last login: Tue Feb 13 10:33:43 on console
Welcome to Darwin!
/Users/foo/Desktop/clamav-update-2.0/install.command; exit
iBookG4:~ foo$ /Users/foo/Desktop/clamav-update-2.0/install.command; exit
Select ClamAV mirror site
[1] Asia: Ishikawa, Japan
[2] Asia: Tainan, Taiwan
[3] Australia: Sydney, Australia
[4] Europe: Amsterdam, The Netherlands
[5] Europe: Brussels, Belgium
[6] Europe: Dublin, Ireland
[7] Europe: Duesseldorf, Germany
[8] Europe: Kent, UK
[9] Europe: Lausanne, Switzerland
[10] Europe: Paris, France
[11] North America: McLean, Virginia
[12] North America: Minneapolis, MN
[13] North America: Phoenix, AZ
[14] North America: Seattle, Washington
[15] South America: Curitiba, Brazil
Input number and type enter key [1]:
ここでClamavをダウンロードするミラーサイトを選ぶ。日本なら1で良いだろう。
Select clamav-update mirror site
[1] Tokyo Japan: OSDN Japan
[2] Keihanna Japan: Kansai Science City Internet Community
[3] Fukuoka Japan: Kyushu GigaPOP Project
Input number and type enter key [1]:
ここでclamav-updateをダウンロードするサイトを選ぶ。
Password:
管理者のパスワードを入れる。おそらくsudoでも使っているのだろう。
- Varigables ----
preifx: /usr/local/clamXav
clamavPrefix: /usr/local/clamXav
UsingClamd: 1
ClamdRestartCommand: [qw(/Library/StartupItems/ClamAntiVirusDaemon/ClamAntiVirusDaemon restart)]
UsingFreshclam: 1
FreshclamRestartCommand: [qw(/Library/StartupItems/FreshClamDaemon/FreshClamDaemon restart)]
ClamavDownloadFrom: http://hoge.dl.sourceforge.net/sourceforge/clamav
DownloadFrom: http://hoge.dl.sourceforge.jp/clamav-update
AdminGroup: admin
- Execute ----
install -Cb -o root -g "admin" -m 0664 "/tmp/install.sh.KCkFo1tt" "/etc/clamav-update-update.conf"
install -Cb -o root -g "admin" -m 0755 "/Users/foo/Desktop/clamav-update-2.0/clamav-update.pl" "/usr/local/clamXav/bin/clamav-update.pl"
install -Cb -o root -g "admin" -m 0664 "/tmp/install.sh.KCkFo1tt" "/usr/local/clamXav/etc/clamav-update.conf"
install -Cb -o root -g "admin" -m 0664 "/Users/foo/Desktop/clamav-update-2.0/clamav-update-update.conf" "/usr/local/clamXav/etc/clamav-update-update.conf"
logout
[Process completed]
Varigables は原文ママです。Variablesです。まあどうでもいいネタですね。(install.shにてミススペルを確認)
これで/etc/clamav-update-update.confが更新される。このファイルを変更していた人は書き直す必要がある。proxyを使っている人は、おそらく、$Setting{option}->{src}の行と最後の1;の間に環境変数のhttp_proxyを書けば良いのだろう。proxy.hostsはproxyサーバー名で0000はポート番号。
ちなみに#記号から行末まではコメントなので何を書いてもok
# clamav-update-update.conf
#
# Enviroment section http_proxy,ftp_proxy
$Setting{option}->{src} = 'http://someware.sourceforge.jp/clamav-update';
$Setting{enviroment}->{http_proxy} = 'proxy.hosts:0000';
$Setting{enviroment}->{ftp_proxy} = 'proxy.hosts:0000';
1;
これでどうでしょうか?
訂正:誤$Setting->{environment} 正:$Setting{environment}