Step 7: Install ClamAV eCAP Adapter

Checking downloaded files for viruses will be implemented using eCAP ClamAV adapter by Measurement Factory, see To download and compile all required packages, run script


# all packages are installed as root
if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root" 1>&2
   exit 1

# install clamav
apt-get install -y clamav clamav-daemon libclamav-dev

# we will be working in a subfolder
rm -R ./build/ecap_clamav
mkdir -p ./build/ecap_clamav

# change into the folder
pushd ./build/ecap_clamav

# from now on every error is fatal
set -e

# download the sources

# unpack and untar them
gunzip ecap_clamav_adapter-2.0.0.tar.gz
tar -xvf ecap_clamav_adapter-2.0.0.tar

# configure, make and install
pushd ecap_clamav_adapter-2.0.0
./configure && make && make install

# and revert back

Press Next to continue to Step 8.