Clamav version 0.95.2 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 0.95.2

      View the most recent changes for the clamav port at: clamav.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for clamav.
      The raw portfile for clamav 0.95.2 is located here:
      http://clamav.darwinports.com/dports/sysutils/clamav/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/clamav


      The clamav Portfile 59238 2009-10-12 14:40:46Z dluke macports.org $

      PortSystem 1.0

      Name: clamav
      Version: 0.95.2
      Revision: 2
      Category: sysutils
      Maintainers: geeklair.net:dluke
      Description: clamav antivirus software

      Long Description: Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The main purpose of this software is the integration with mail servers (attachment scanning).

      license GPL
      Homepage: http://www.clamav.net
      Master Sites: sourceforge
      Checksums: md5 930362397d30e01ba81b5f24c1046d48 sha1 7544b39d84f2233b984a9c2ce3ef74d407add483 rmd160 83cab51c224251316288e4c3189ba91f640e9f82

      Platform: darwin
      configure.args --mandir=${prefix}/share/man --with-zlib=${prefix}

      use_parallel_build yes

      depends_lib port:gmp port:libiconv port:zlib port:bzip2 port:ncurses

      platform darwin 7 {
      patchfiles patch-clamdtop.c.diff
      #workaround gcc bug 28045 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045
      configure.cflags {-O0}
      }

      platform darwin 8 {
      configure.cflags {-O0}
      }

      post-destroot {
      file rename "${destroot}${prefix}/etc/freshclam.conf" "${destroot}${prefix}/etc/example-freshclam.conf"
      file rename "${destroot}${prefix}/etc/clamd.conf" "${destroot}${prefix}/etc/example-clamd.conf"
      }

      Variant: clamav_milter description {build with libmilter support} {
      depends_lib-append port:libmilter
      configure.args-append --enable-milter
      post-destroot {
      file rename "${destroot}${prefix}/etc/clamav-milter.conf" "${destroot}${prefix}/etc/example-clamav-milter.conf"
      }
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/clamav
      % sudo port install clamav
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching clamav
      ---> Verifying checksum for clamav
      ---> Extracting clamav
      ---> Configuring clamav
      ---> Building clamav with target all
      ---> Staging clamav into destroot
      ---> Installing clamav
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using clamav with these commands:
      %  man clamav
      % apropos clamav
      % which clamav
      % locate clamav

     Where to find more information:

    Darwin Ports



    Lightbox this page.