Ticket #5212: Portfile

File Portfile, 2.9 KB (added by joe@…, 19 years ago)

Awstats 6.4 Portfile

Line 
1# $Id: Portfile,v 1.3 2005/02/28 22:26:40 rshaw Exp $
2PortSystem              1.0
3
4name                    awstats
5version                 6.4
6categories              www
7maintainers             joe@netmusician.org
8description             Free real-time logfile analyzer to get advanced web statistics
9long_description        AWStats is short for Advanced Web Statistics. It's a free tool that \
10                        generates advanced web (but also ftp or mail) server statistics, \
11                        graphically. \
12                        \
13                        This log analyzer works as a CGI or from command line and shows you \
14                        all possible information that your logs contain, in a few graphical \
15                        web pages. It uses a partial information file to be able to process \
16                        large log files, often and quickly. \
17                        \
18                        It can analyze log files from IIS (W3C log format), Apache log files \
19                        (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar \
20                        and most of all web, proxy, WAP, and streaming servers (and FTP \
21                        servers or mail logs).
22
23homepage                http://www.awstats.org
24master_sites            sourceforge
25master_sites.mirror_subdir sourceforge/$name/
26distname                awstats-${version}
27extract.suffix          .tgz
28checksums               md5 056e6fb0c7351b17fe5bbbe0aa1297b1
29platforms               darwin freebsd
30
31depends_lib             port:perl5.8
32
33default_variants        +apache
34                       
35variant apache conflicts apache2 {
36        depends_lib-append      port:apache
37}
38
39variant apache2 conflicts apache {
40        depends_lib-append      port:apache2
41}
42
43use_configure   no
44configure       {}
45build           {}
46
47
48if { [variant_isset apache] } {
49                set docpath ${destroot}${prefix}/www/awstats
50        } elseif { [variant_isset apache2] } {
51                set docpath ${destroot}${prefix}/apache2/awstats
52        }     
53
54destroot {
55        xinstall -m 755 -d ${destroot}${prefix}/www/awstats \
56                           ${destroot}${prefix}/share/doc/awstats \
57                           /etc/awstats
58        eval file copy [glob ${worksrcpath}/wwwroot/*] ${docpath}
59        eval file copy ${worksrcpath}/tools ${docpath}
60        eval file copy [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/awstats
61        xinstall -m 755 -W ${worksrcpath} wwwroot/cgi-bin/awstats.model.conf /etc/awstats
62}
63
64post-install {
65        ui_msg "**********************************************************************"
66        ui_msg "Add the following to your Apache httpd.conf, save, and restart Apache:"
67        ui_msg ""
68        ui_msg "Alias /awstatsclasses \"/opt/local/www/awstats/classes/\""
69        ui_msg "Alias /awstatscss \"/opt/local/www/awstats/css/\""
70        ui_msg "Alias /awstatsicons \"/opt/local/www/awstats/icons/\""
71        ui_msg "ScriptAlias /awstats/ \"/opt/local/www/awstats/cgi-bin/\""
72        ui_msg ""
73        ui_msg "<Directory \"/opt/local/www/awstats/\">"
74        ui_msg "        Options None"
75        ui_msg "        AllowOverride None"
76        ui_msg "        Order allow,deny"
77        ui_msg "        Allow from all"
78        ui_msg "</Directory>"
79        ui_msg ""
80        ui_msg "Find your sample config file in /etc/awstats, rename it to"
81        ui_msg "\"awstats.domain_name.conf\", and edit it to configure Awstats. You"
82        ui_msg "can then access Awstats by pointing your browser to:"
83        ui_msg ""
84        ui_msg "http://yourdomain/awstats/awstats.pl"
85}
86
87