source: trunk/dports/www/webalizer/Portfile @ 69174

Last change on this file since 69174 was 69174, checked in by dports@…, 10 years ago

webalizer: maintainer update (#25411)

  • update to 2.21-02
  • update homepage
  • use bzip2 download
  • add missing dependency on Berkeley DB
  • add additional variants to support options in new version
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- 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
2# $Id: Portfile 69174 2010-06-26 21:31:08Z dports@macports.org $
3
4PortSystem 1.0
5
6name                    webalizer
7version                 2.21-02
8categories              www
9maintainers             pobox.com:mike.mclean
10description             The Webalizer is a fast, free web server log file analysis program
11
12long_description        The Webalizer is a fast, free web server log file analysis program. \
13                        It produces highly detailed, easily configurable usage reports in HTML format, \
14                        for viewing with a standard web browser.
15
16platforms               darwin
17
18homepage                http://www.webalizer.org/
19
20
21use_bzip2               yes
22distfiles               ${name}-${version}-src${extract.suffix}
23master_sites            ftp://ftp.mrunix.net/pub/webalizer
24
25checksums               md5 29af2558a5564493df654b6310b152e7 \
26                        sha1 b637ebf1eb459e03c052c24d7da3e5f0794e2230 \
27                        rmd160 c7d48acf6e2c1fedfd04eac30214a76db7c84aee
28
29depends_lib             lib:libgd.2:gd2 \
30                        lib:libz:zlib \
31                        lib:libpng:libpng
32
33configure.args          --mandir=${prefix}/share/man \
34                        --with-etcdir=${prefix}/etc \
35                        --with-gdlib=${prefix}/lib \
36                        --with-gd=${prefix}/include \
37                        --with-z-inc=${prefix}/include \
38                        --with-zlib=${prefix}/lib \
39                        --with-png-inc=${prefix}/include \
40                        --with-png=${prefix}/lib
41                       
42destroot.destdir        prefix=${destroot}${prefix} \
43                        ETCDIR=${destroot}${prefix}/etc \
44                        MANDIR=${destroot}${prefix}/share/man/man1
45
46post-destroot {
47    xinstall -d ${destroot}${prefix}/share/doc/${name}
48    xinstall -m 644 -v -W ${worksrcpath} \
49        CHANGES COPYING Copyright country-codes.txt \
50        DNS.README README README.FIRST \
51        ${destroot}${prefix}/share/doc/${name}
52}
53
54variant static description {Build as static executable              [default=no]} {
55        configure.args-append --enable-static
56}
57 
58variant debug description {Compile with debugging code              [default=no]} {
59    configure.args-append --enable-debug
60}
61
62variant no_largefile description {omit support for large files      [default=no]} {
63    configure.args-append --disable-largefile
64}
65
66variant no_dns description {Disable DNS/GeoDB lookup code           [default=no => DNS/GeoDB enabled, bdb libs required]} {
67    configure.args-append --disable-dns
68    depends_lib-delete port:db47
69}
70
71variant with_bz2 description {Enable BZip2 decompression code       [default=no]} {
72    configure.args-append --enable-bz2
73    depends_lib-append port:bzip2
74}
75
76variant with_geoip conflicts no_dns description {Enable GeoIP geolocation code       [default=no]} {
77    configure.args-append --enable-geoip
78    depends_lib-append port:libgeoip
79}
80
Note: See TracBrowser for help on using the repository browser.