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

    logwatch  most recent diff


    version 7.3.6

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


      # -*- 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 logwatch Portfile 50984 2009-05-14 21:08:43Z and.damore macports.org $

      PortSystem 1.0

      Name: logwatch
      Revision: 1
      Version: 7.3.6
      distname logwatch-${version}
      Category: security
      Maintainers: cern.ch:lassi.tuura
      Description: system log analyzer and reporter
      Long Description: Logwatch is a customizable log analysis system. Logwatch parses through your system's logs for a given period of time and creates a report analyzing areas that you specify, in as much detail as you require. Logwatch is easy to use and will work right out of the package on most systems.

      Homepage: http://www.logwatch.org
      Master Sites: ftp://ftp.kaybee.org/pub/linux
      Platform: darwin
      Checksums: md5 937d982006b2a76a83edfcfd2e5a9d7d

      use_configure no
      build {
      reinplace s|/usr/share/${name}|${prefix}/share/${name}|g ${worksrcpath}/scripts/logwatch.pl
      reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/scripts/logwatch.pl
      reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/conf/logwatch.conf
      reinplace s|messages|system|g ${worksrcpath}/conf/logfiles/messages.conf
      }

      destroot.keepdirs ${destroot}${prefix}/var/cache/${name}
      destroot {
      file mkdir ${destroot}${prefix}/etc/${name}/scripts
      file mkdir ${destroot}${prefix}/etc/${name}/conf/logfiles
      file mkdir ${destroot}${prefix}/etc/${name}/conf/services
      file mkdir ${destroot}${prefix}/share/${name}/dist.conf/logfiles
      file mkdir ${destroot}${prefix}/var/cache/${name}

      file copy ${worksrcpath}/conf ${destroot}${prefix}/share/${name}/default.conf
      file copy ${worksrcpath}/scripts ${destroot}${prefix}/share/${name}/scripts
      file copy ${worksrcpath}/lib ${destroot}${prefix}/share/${name}/lib

      ln -s ../share/${name}/scripts/logwatch.pl ${destroot}${prefix}/bin/logwatch

      # startup item
      file mkdir ${destroot}${prefix}/etc/LaunchDaemons/${name}
      file copy files/org.macports.${name}.plist ${destroot}${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist
      reinplace s| PREFIX |${prefix}|g ${destroot}${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist
      }

      post-destroot {
      file delete /Library/LaunchDaemons/org.macports.${name}.plist
      ln -s ${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist /Library/LaunchDaemons
      ui_msg "###########################################################"
      ui_msg "# A startup item has been generated that will aid in"
      ui_msg "# starting logwatch with launchd. It is disabled"
      ui_msg "# by default. Execute the following command to start it,"
      ui_msg "# and to cause it to launch at startup:"
      ui_msg "#"
      ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.logwatch.plist"
      ui_msg "###########################################################"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.