Skip to content
Browse files


Submitted by:
Reviewed by:    mww@

new port www/awstats

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 6, 2005
1 parent 65737c1 commit c6298a996ec840768cfea5b31af185713672e626
Showing with 88 additions and 0 deletions.
  1. +88 −0 www/awstats/Portfile
@@ -0,0 +1,88 @@
# $Id: Portfile,v 1.1 2005/10/06 19:36:30 mww Exp $
PortSystem 1.0

name awstats
version 6.4
categories www
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).

master_sites sourceforge
master_sites.mirror_subdir sourceforge/$name/
distname awstats-${version}
extract.suffix .tgz
checksums md5 056e6fb0c7351b17fe5bbbe0aa1297b1
platforms darwin freebsd

depends_lib port:perl5.8

default_variants +apache

variant apache conflicts apache2 {
depends_lib-append port:apache

variant apache2 conflicts apache {
depends_lib-append port:apache2

use_configure no
build {}

patch {
cd ${worksrcpath}
reinplace "s|/usr/local|${prefix}|g" \
tools/ tools/ \
tools/httpd_conf tools/webmin/awstats-1.5.wbm \
wwwroot/cgi-bin/awstats.model.conf wwwroot/cgi-bin/

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

destroot {
xinstall -m 755 -d ${destroot}${prefix}/www/awstats \
${destroot}${prefix}/share/doc/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 \"/opt/local/www/awstats/classes/\""
ui_msg "Alias /awstatscss \"/opt/local/www/awstats/css/\""
ui_msg "Alias /awstatsicons \"/opt/local/www/awstats/icons/\""
ui_msg "ScriptAlias /awstats/ \"/opt/local/www/awstats/cgi-bin/\""
ui_msg ""
ui_msg "<Directory \"/opt/local/www/awstats/\">"
ui_msg " Options None"
ui_msg " AllowOverride None"
ui_msg " Order allow,deny"
ui_msg " Allow from all"
ui_msg "</Directory>"
ui_msg ""
ui_msg "Find your sample config file in /opt/local/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/"

0 comments on commit c6298a9

Please sign in to comment.
You can’t perform that action at this time.