archboot/lib/initcpio/install/arch_clamav

29 lines
827 B
Text
Raw Normal View History

2009-07-24 13:03:39 +02:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
install ()
{
MODULES=""
2009-07-25 09:18:44 +02:00
BINARIES="clamscan freshclam"
2009-07-24 13:03:39 +02:00
FILES=""
SCRIPT=""
# add /var directories
add_dir "/var/run/clamav"
add_dir "/var/lib/clamav"
add_dir "/var/log/clamav"
2009-07-25 09:18:44 +02:00
add_file "/usr/share/archboot/clamav/etc/clamav/freshclam.conf" "/etc/clamav/freshclam.conf"
# get latest virus definitions
CLAMAV=$(mktemp -d /tmp/clamav.XXXX)
2009-07-25 11:03:02 +02:00
chmod 777 $CLAMAV
2009-07-25 09:18:44 +02:00
freshclam --config-file=/usr/share/archboot/clamav/etc/clamav/freshclam.conf --datadir=$CLAMAV
add_file "$CLAMAV/mirrors.dat" "/var/lib/clamav/mirrors.dat"
add_file "$CLAMAV/main.cvd" "/var/lib/clamav/main.cvd"
2009-07-25 11:14:56 +02:00
add_file "$CLAMAV/daily.cvd" "/var/lib/clamav/daily.cvd"
2009-07-24 13:03:39 +02:00
}
help ()
{
cat<<HELPEOF
This hook includes clamav on an arch boot image.
HELPEOF
}