10 Sep 2010 
Support Center » Knowledgebase » HowTo use clamd scanner on OS X using MacPorts
 HowTo use clamd scanner on OS X using MacPorts
Solution Latest ClamaAV could be easily installed and maintained using MacPorts (www.macports.org).

In a Terminal window run the following commands:

curl -O http://svn.macports.org/repository/macports/downloads/MacPorts-1.6.0/MacPorts-1.6.0.tar.bz2 

bunzip2 MacPorts-1.6.0.tar.bz2 

tar xvf MacPorts-1.6.0.tar

cd MacPorts-1.6.0

./configure

make

sudo make install

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

sudo port -d selfupdate

Edit /etc/profile and add "/opt/local/sbin:/opt/local/bin" to PATH:

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/sbin:/opt/local/bin"

NOTE: OS X Server already has ClamAV installed and you might want ot set /opt/local/bin and /opt/local/bin first in PATH. This would allow having Apple's ClamAV and MacPorts' ClamAV installation. PATH="/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"

Edit /etc/csh.login and add "/opt/local/sbin:/opt/local/bin" to PATH:

setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/sbin:/opt/local/bin

NOTE: OS X Server already has ClamAV installed and you might want ot set /opt/local/bin and /opt/local/bin first in PATH. This would allow having Apple's ClamAV and MacPorts' ClamAV installation. setenv PATH "/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin"

sudo port install clamav

Edit /opt/local/etc/clamd.conf and make sure the following options are enabled:
TCPAddr 127.0.0.1
TCPSocket 3310
User root
MaxThreads 30


In mppd.conf.xml, add "clamd" to scan_engines line or change from MPP GUI and (re)start mppd.






Article Details
Article ID: 29
Created On: 04 Jun 2008 08:31 PM

 This answer was helpful  This answer was not helpful

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Downloads
Language: