# Recipe for version 0.99.2 by Lucas C. Villa Real , on Sun Jun 25 14:07:16 BRT 2017 # Recipe (MakeRecipe) for Clamav by roko, , on Sun Dec 5 22:30:18 BRST 2004 compile_version=1.8.0 url="https://www.clamav.net/downloads/production/clamav-0.99.2.tar.gz" file_size=16067497 file_md5=61b51a04619aeafd965892a53f86d192 recipe_type=configure configure_options=( #--enable-milter --datadir=$goboVariable/clamav --disable-zlib-vcheck ) unmanaged_files=( $goboVariable/clamav ) pre_build() { Log_Normal "Check if user and group clamav exist, add if necessary !!" grep -q clamav $goboSettings/group || groupadd clamav grep -q clamav $goboSettings/passwd || useradd clamav -s /bin/false -d $target -g clamav } pre_link() { mkdir -p $goboVariable/clamav cp $target/Shared/clamav/*.cvd $goboVariable/clamav/ chown -R clamav $goboVariable/clamav GrepReplace "Example" "#Example" $settings_target/clamd.conf GrepReplace "#User clamav" "User clamav" $settings_target/clamd.conf GrepReplace "LocalSocket /tmp/clamd" "LocalSocket $goboVariable/tmp/clamd" $settings_target/clamd.conf GrepReplace "#LogFile /tmp/clamd.log" "LogFile $goboVariable/clamav/clamd.log" $settings_target/clamd.conf GrepReplace "#DatabaseDirectory /var/lib/clamav" "DatabaseDirectory $goboVariable/clamav" $settings_target/clamd.conf GrepReplace "Example" "#Example" $settings_target/freshclam.conf GrepReplace "#DatabaseDirectory /var/lib/clamav" "DatabaseDirectory $goboVariable/clamav" $settings_target/freshclam.conf GrepReplace "#UpdateLogFile /var/log/freshclam.log" "UpdateLogFile $goboVariable/clamav/freshclam.logs" $settings_target/freshclam.conf } #for databasemirrors look here: http://www.clamav.net/mirrors.html