This script is for Slackware 12.1 and may be outdated.

SlackBuilds Repository

12.1 > System > clamav (0.94)

Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The main purpose
of this software is the integration with mail servers (attachment
scanning). The package provides a flexible and scalable multi-threaded
daemon, a command line scanner, and a tool for automatic updating via

This build script should build a package that "just works" after install.
You will need to specify a two-letter country code (such as "us") as an
argument to the COUNTRY variable when running the build script (this will
default to "us" if nothing is specified). For example:
COUNTRY=nl ./clamav.SlackBuild

The package contains a start/stop script: /etc/rc.d/rc.clamav.
I would suggest calling this script from /etc/rc.d/rc.M just
before Sendmail is started with code like:

# Starting ClamAV daemons
if [ -x /etc/rc.d/rc.clamav ]; then
/etc/rc.d/rc.clamav start

The start/stop script will start: clamd, freshclam and clamav-milter.

** ClamAV, Amavisd-new and SpamAssassin **
You might want to use amavisd-new to act as an intermediary between Sendmail
and ClamAV (and possible SpamAssassin too). Amavisd-new can be downloaded at

For clamd to be able to scan messages, when called by Amavisd-new, you must
add "clamav" to the "amavis" group (provided that clamd.conf contains the
"User clamav" directive), e.g. run:

# usermod -G $(id -Gn clamav | tr ' ' ','),amavis clamav

Be sure to enable "AllowSupplementaryGroups" in clamd.conf and restart clamd.
Also, to enable Amavisd-new to scan ClamAV's log files and produce nice
statistics, the reverse must be done too; add user "amavis" to the group
"clamav" as follows:

# usermod -G $(id -Gn amavis | tr ' ' ','),clamav amavis

Add the rc.amavisd script to your /etc/rc.d/rc.M script between the start of
clamav and sendmail, so that the relevant section looks like this:

# Starting ClamAV daemon:
if [ -x /etc/rc.d/rc.clamav ]; then
/etc/rc.d/rc.clamav start

# Starting Amavisd daemon:
if [ -x /etc/rc.d/rc.amavisd ]; then
/etc/rc.d/rc.amavisd start

# Start the sendmail daemon:
if [ -x /etc/rc.d/rc.sendmail ]; then
. /etc/rc.d/rc.sendmail start

Maintained by: Yalla-One
Keywords: clam,antivirus,av,smtp
ChangeLog: clamav


Source Downloads:
clamav-0.94.tar.gz (d3f6d5fff2db81950491749166ab0ffa)

Download SlackBuild:
clamav.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Validated for Slackware 12.1

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2018 Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds
Web Design by WebSight Designs |  Managed Hosting by OnyxLight Communications