Awstats version 6.9 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    awstats  most recent diff


    version 6.9

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


      The awstats Portfile 47362 2009-02-27 00:00:47Z alakazam macports.org $

      PortSystem 1.0

      Name: awstats
      Version: 6.9
      Revision: 1
      Category: www
      Maintainers: guydavis.ca:davis
      Description: Free real-time logfile analyzer to get advanced web statistics
      Long Description: AWStats is short for Advanced Web Statistics. It's a free tool that generates advanced web (but also ftp or mail) server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information that your logs contain, in a few graphical web pages. It uses a partial information file to be able to process large log files, often and quickly. It can analyze log files from IIS (W3C log format), Apache log files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar and most of all web, proxy, WAP, and streaming servers (and FTP servers or mail logs).

      Homepage: http://www.awstats.org
      Master Sites: sourceforge
      Master Sites:.mirror_subdir sourceforge/$name/
      distname awstats-${version}
      Platform: darwin freebsd

      Checksums: md5 fc19dbb8449eccf3300efb30ca3376cb sha1 5ad8485eab04147b20adf5e8a7bdd5b6d3e2468b rmd160 339af2df9c44713d632b4d1ae3d733132f7b0bab

      depends_lib path:bin/perl:perl5 port:apache2

      Variant: apache description "use apache instead of apache2" {
      depends_lib-append port:apache
      depends_lib-delete port:apache2
      }

      use_configure no
      build {}

      patch {
      reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/tools/awstats_buildstaticpages.pl" "${worksrcpath}/tools/awstats_updateall.pl" "${worksrcpath}/tools/httpd_conf" "${worksrcpath}/tools/webmin/awstats-1.8.wbm" "${worksrcpath}/wwwroot/cgi-bin/awstats.model.conf" "${worksrcpath}/wwwroot/cgi-bin/awstats.pl" "${worksrcpath}/tools/awstats_configure.pl"
      reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" "${worksrcpath}/tools/awstats_buildstaticpages.pl" "${worksrcpath}/tools/awstats_updateall.pl" "${worksrcpath}/wwwroot/cgi-bin/awstats.pl" "${worksrcpath}/tools/awstats_configure.pl" "${worksrcpath}/tools/awstats_exportlib.pl" "${worksrcpath}/tools/logresolvemerge.pl" "${worksrcpath}/tools/maillogconvert.pl" "${worksrcpath}/tools/urlaliasbuilder.pl"
      }

      set docpath ${destroot}${prefix}/www/awstats

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/www/awstats ${destroot}${prefix}/share/doc/awstats ${destroot}${prefix}/etc/awstats
      eval file copy [glob ${worksrcpath}/wwwroot/*] ${docpath}
      eval file copy ${worksrcpath}/tools ${docpath}
      eval file copy [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/awstats
      xinstall -m 755 -W ${worksrcpath} wwwroot/cgi-bin/awstats.model.conf ${destroot}${prefix}/etc/awstats
      }

      post-install {
      ui_msg "**********************************************************************"
      ui_msg "Add the following to your Apache httpd.conf, save, and restart Apache:"
      ui_msg ""
      ui_msg "Alias /awstatsclasses \"${prefix}/www/awstats/classes/\""
      ui_msg "Alias /awstatscss \"${prefix}/www/awstats/css/\""
      ui_msg "Alias /awstatsicons \"${prefix}/www/awstats/icons/\""
      ui_msg "ScriptAlias /awstats/ \"${prefix}/www/awstats/cgi-bin/\""
      ui_msg ""
      ui_msg ""
      ui_msg " Options None"
      ui_msg " AllowOverride None"
      ui_msg " Order allow,deny"
      ui_msg " Allow from all"
      ui_msg "
      "
      ui_msg ""
      ui_msg "Find your sample config file in ${prefix}/etc/awstats, rename it to"
      ui_msg "\"awstats.domain_name.conf\", and edit it to configure Awstats. You"
      ui_msg "can then access Awstats by pointing your browser to:"
      ui_msg ""
      ui_msg "http://yourdomain/awstats/awstats.pl"
      }


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.