FreeBSD Port: clamav-0.94_1

Alexey Shuvaev shuvaev at physik.uni-wuerzburg.de
Fri Sep 19 08:37:06 UTC 2008


On Fri, Sep 19, 2008 at 12:40:35PM +0800, Snopy Land wrote:
> Hi,
> 
> My server version is freebsd6.2 amd64. I have installed clamav to scan my
                              ^^^
According to http://www.freebsd.org/security/ it is not supported any more.
Consider upgrading your base system (as opposed to ports) as well.

> incoming mail. Everything works smoothly for several years.
> Recently, I need to upgrade clamav version from 0.92 to 0.94 (latest
> version).
> 

The procedure used (from the original mail):

> 1. run "make deinstall" to deinstall the clamav version of 0.92
> 2. Modify /usr/ports-supfile  (to make sure security port can be download
> from a correct default host)
> *default host=ftp.tw.freebsd.org
> ports-security   <--- remark ports-all, and enable the ports-security only
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  That is not a good idea, I think.

> 3. cd /usr ; run "cvsup -g -L 2 ports-supfile
> 4. check /usr/port/security/clamav port is updated
> 5. cd /usr/port/security/clamav
> 6. run "make install clean"

> There is no error message found in the whole process, however, I cannot find
> the file of "clamd", "clamscan" & "freshclam".
> The previous version of these file can be found in /usr/local/sbin and
> /usr/local/bin
> 
> After redo the upgrade process, I find there are some files under
> /usr/local/bin and /usr/local/sbin but the file name is differenet.
> 
> ls -ltr /usr/local/bin
> -r-xr-xr-x  1 root  wheel    80624 Sep 19 11:07
> amd64-portbld-freebsd6.2-sigtool
> -r-xr-xr-x  1 root  wheel    87944 Sep 19 11:07
> amd64-portbld-freebsd6.2-freshclam
> -r-xr-xr-x  1 root  wheel    51968 Sep 19 11:07
> amd64-portbld-freebsd6.2-clamscan
> -r-xr-xr-x  1 root  wheel    52592 Sep 19 11:07
> amd64-portbld-freebsd6.2-clamdscan
> -r-xr-xr-x  1 root  wheel    28272 Sep 19 11:07
> amd64-portbld-freebsd6.2-clamconf
> -r-xr-xr-x  1 root  wheel     1103 Sep 19 11:07
> amd64-portbld-freebsd6.2-clamav-config
> 
> ls -ltr /usr/local/sbin
> -r-xr-xr-x  1 root  wheel    67536 Sep 19 11:07
> amd64-portbld-freebsd6.2-clamd
> Are these files are the same as the file of "clamd", "freshclam" and
> "clamscan". If yes, can I create symbolic link for these file so that I can
> keep my old setting? (i.e run "/usr/local/sbin/clamd -c
> /usr/local/etc/clamd.conf",   and run "/usr/local/bin/freshclam --quiet" in
> the cronjob). How many configuration files location should I change ?
> 
Yes, these files are the same. You have run into this problem because you
have not updated the whole tree, namely ports/Mk* directory. There was
a change which is responsible for fixing these ugly names.
FWIW, from the /usr/share/examples/cvsup/ports-supfile:

# These are the individual collections that make up "ports-all".  If you
# use these, be sure to comment out "ports-all" above.
#
# Be sure to ALWAYS cvsup the ports-base collection if you use any of the
# other individual collections below. ports-base is a mandatory collection
# for the ports collection, and your ports may not build correctly if it
# is not kept up to date.
#ports-base

Good luck!
Alexey.


More information about the freebsd-ports mailing list