2012-05-26 12:07:05 +02:00
|
|
|
#!/bin/bash
|
2009-07-24 13:03:39 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2009-07-24 13:03:39 +02:00
|
|
|
{
|
2012-05-26 12:07:05 +02:00
|
|
|
add_binary "/usr/bin/clamscan"
|
2012-05-31 08:06:54 +02:00
|
|
|
add_binary "/usr/bin/freshclam"
|
2009-07-24 13:03:39 +02:00
|
|
|
# add /var directories
|
|
|
|
add_dir "/var/log/clamav"
|
2012-08-15 20:36:06 +02:00
|
|
|
add_file "/etc/clamav/freshclam.conf"
|
2009-07-25 13:11:24 +02:00
|
|
|
# add unrar support
|
2010-12-11 01:13:36 +01:00
|
|
|
for i in $(pacman -Ql clamav | cut -d ' ' -f2 | grep /usr/lib/libclamunrar); do
|
|
|
|
add_file "$i"
|
|
|
|
done
|
2012-05-26 12:07:05 +02:00
|
|
|
add_runscript
|
2009-07-24 13:03:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
|
|
|
This hook includes clamav on an arch boot image.
|
|
|
|
HELPEOF
|
|
|
|
}
|