Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#39084 closed defect (wontfix)

How to use clamav?

Reported by: angelo.graziosi@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: clamav, freshclamav Cc: danielluke (Daniel J. Luke)
Port: clamav

Description

I have some difficulties in using Clamav on MacPorts...

$ sudo port install clamav
--->  Computing dependencies for clamav
--->  Fetching archive for clamav
--->  Attempting to fetch clamav-0.97.8_0.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/clamav
--->  Attempting to fetch clamav-0.97.8_0.darwin_11.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/clamav
--->  Installing clamav @0.97.8_0
--->  Activating clamav @0.97.8_0
--->  Cleaning clamav
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

so I tried (as on Ubuntu and Cygiwin) :

$ sudo freshclam

and I got:

ERROR: Can't open/parse the config file /opt/local/etc/freshclam.conf

Gulp! So I tried (this worked on Cygwin, for example...) :

$ cd /opt/local/etc/
$ sudo cp -p example-freshclam.conf freshclam.conf
$ sudo emacs -nw freshclam.conf

...and with Emacs I commented out the line

Example

So I tried :

$ cd
$ sudo freshclam

but it results in

ERROR: Can't change dir to /opt/local/share/clamav

with

$ ls -lrt /opt/local/share/clamav
ls: /opt/local/share/clamav: No such file or directory

...and I am a little confused, now... :(

Should I install some other packages? which?

I haven't found any documentation about how to use Clamav on MacPorts...

Any suggestions?

Thanks,

Angelo.

Change History (2)

comment:1 Changed 11 years ago by danielluke (Daniel J. Luke)

Resolution: wontfix
Status: newclosed

Since the port doesn't install any working config files (and the db location is configurable), it doesn't create /opt/local/share/clamav for you. You can create it yourself (or create another directory and set the appropriate path in your config files).

comment:2 in reply to:  1 Changed 11 years ago by angelo.graziosi@…

Replying to dluke@…:

Since the port doesn't install any working config files (and the db location is configurable), it doesn't create /opt/local/share/clamav for you. You can create it yourself (or create another directory and set the appropriate path in your config files).

Hmm... I would prefer the same behavior I found on Ubuntu:

sudo apt-get install clamav
sudo freshclam
clamscan -r /<path_directory>

Thanks in any case..

Ciao,

Angelo.

Note: See TracTickets for help on using tickets.