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

    dansguardian  most recent diff


    version 2.10.1.1

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The dansguardian Portfile 58269 2009-09-25 03:03:11Z ryandesign macports.org $

      PortSystem 1.0

      Name: dansguardian
      Version: 2.10.1.1
      Category: net
      Platform: darwin
      Maintainers: nomaintainer
      Description: web content filter
      Long Description: DansGuardian is content-control software: software designed to control which websites users can access. It also includes virus filtering and usage monitoring features.

      Homepage: http://dansguardian.org/
      Master Sites: http://dansguardian.org/downloads/2/Stable/ http://usmirror.dansguardian.org/downloads/2/Stable/ http://mirrors.evis.net.ph/dansguardian/downloads/2/Stable/

      Checksums: md5 0987a1c9bfbdf398118386f10279611a sha1 ff3012e01130b2269582c21c3eeb4ea013dc9679 rmd160 dc15ca9779a5084c5e4248545c730f25fff241a3

      depends_lib port:zlib port:pcre

      configure.args --enable-pcre --disable-ntlm --disable-clamav

      use_parallel_build yes

      startupitem.create yes
      startupitem.name dansguardian
      startupitem.executable ${prefix}/sbin/dansguardian -N

      Variant: clamav description {Enable support for libclamav av scanner} {
      depends_lib-append port:clamav

      # enable --enable-clamav in the next version if it works with >=clamav-0.95
      #configure.args-delete --disable-clamav
      #configure.args-append --enable-clamav

      configure.args-append --enable-clamd --with-proxyuser=clamav --with-proxygroup=clamav
      }

      Variant: ntlm description {Enable support for the NTLM auth plugin} {
      depends_lib-append port:libntlm port:libiconv
      configure.args-delete --disable-ntlm
      configure.args-append --enable-ntlm
      }

      post-destroot {
      set runas_user nobody
      set runas_group nobody

      if { [variant_isset clamav]} {
      if { [existsuser clamav] && [existsgroup clamav] } {
      set runas_user clamav
      set runas_group clamav
      }

      ui_msg "\n DansGuardian and clamd must run with either the same group or user ID. \n Don't forget to set clamd socket in etc/dansguardian/contentscanners/clamdscan.conf.\n"
      }

      # by default dansguardian runs as nobody and writes log to /var/log/dansguardian/access.log
      # !!! when user rebuilds dansguardian with clamav variant var/log/dansguardian/access.log has old owner and access is denied
      # the solution is to rm -rf ${prefix}/var/log/dansguardian and port activate dansguardian
      xinstall -d -o ${runas_user} -g ${runas_group} -m 755 ${destroot}${prefix}/var/log/dansguardian
      destroot.keepdirs-append ${destroot}${prefix}/var/log/dansguardian
      }

      livecheck.type regex
      livecheck.url "http://dansguardian.org/?page=news"
      livecheck.regex "DansGuardian (.*) is.*released!"


    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/dansguardian
      % sudo port install dansguardian
      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 dansguardian
      ---> Verifying checksum for dansguardian
      ---> Extracting dansguardian
      ---> Configuring dansguardian
      ---> Building dansguardian with target all
      ---> Staging dansguardian into destroot
      ---> Installing dansguardian
    - 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 dansguardian with these commands:
      %  man dansguardian
      % apropos dansguardian
      % which dansguardian
      % locate dansguardian

     Where to find more information:

    Darwin Ports



    Lightbox this page.