[143927] trunk/dports/www/awstats/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Dec 27 18:49:08 PST 2015
Revision: 143927
https://trac.macports.org/changeset/143927
Author: ryandesign at macports.org
Date: 2015-12-27 18:49:08 -0800 (Sun, 27 Dec 2015)
Log Message:
-----------
awstats: whitespace and reformatting changes; add modeline
Modified Paths:
--------------
trunk/dports/www/awstats/Portfile
Modified: trunk/dports/www/awstats/Portfile
===================================================================
--- trunk/dports/www/awstats/Portfile 2015-12-27 19:18:12 UTC (rev 143926)
+++ trunk/dports/www/awstats/Portfile 2015-12-28 02:49:08 UTC (rev 143927)
@@ -1,46 +1,43 @@
+# -*- 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
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name awstats
-version 7.0
-categories 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).
+name awstats
+version 7.0
+categories www
+platforms darwin freebsd
+maintainers guydavis.ca:davis
-homepage http://www.awstats.org
-master_sites sourceforge
+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. \
+ \
+ \n\nThis 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. \
+ \
+ \n\nIt 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}
-platforms darwin freebsd
+distname awstats-${version}
checksums md5 3e8e09b9ebe74513bb34290dbcd37b45 \
sha1 733fa7d6a540f4a54f52c69a5f271c789472b0b7 \
rmd160 0bd46afbd3159cf5f3e517b37a43b7d0852fc2a3
-depends_lib path:bin/perl:perl5 port:apache2
+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 -locale C "s|/usr/local|${prefix}|g" \
"${worksrcpath}/tools/awstats_buildstaticpages.pl" "${worksrcpath}/tools/awstats_updateall.pl" \
@@ -54,38 +51,46 @@
"${worksrcpath}/tools/maillogconvert.pl" "${worksrcpath}/tools/urlaliasbuilder.pl"
}
+use_configure no
+
+build {}
+
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
+ 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
}
+variant apache description "use apache instead of apache2" {
+ depends_lib-append port:apache
+ depends_lib-delete port:apache2
+}
+
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 "<Directory \"${prefix}/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 ${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"
+ 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 "<Directory \"${prefix}/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 ${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"
}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151227/fc45112c/attachment.html>
More information about the macports-changes
mailing list