Changeset 143416 for trunk/dports


Ignore:
Timestamp:
Dec 12, 2015, 9:55:44 AM (3 years ago)
Author:
mojca@…
Message:

pflogsumm: whitespace, checksums only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/pflogsumm/Portfile

    r116129 r143416  
    22# $Id$
    33
    4 PortSystem 1.0
     4PortSystem          1.0
    55
    6 name                    pflogsumm
    7 version                 1.1.3
    8 revision                1
    9 categories              mail
    10 license                 GPL-2+
    11 maintainers             nomaintainer
    12 description             Produce Postfix MTA logfile summary
    13 long_description        Pflogsumm is a log analyzer/summarizer for the \
    14                                         Postfix MTA.  It is designed to provide an over-view \
    15                                         of Postfix activity, with just enough detail to give \
    16                                         the administrator a "heads up" for potential trouble \
    17                                         spots. \
    18                                         Pflogsumm generates summaries and, in some cases, \
    19                                         detailed reports of mail server traffic volumes, \
    20                                         rejected and bounced email, and server warnings, \
    21                                         errors and panics. \
    22                                         Also installs Chris Cappuccio's CGI script for \
    23                                         browser access to the Pflogsumm output.
    24 homepage                http://jimsun.linxnet.com/postfix_contrib.html
    25 master_sites            http://jimsun.linxnet.com/downloads/ \
    26                         http://www.nmedia.net/~chris/mail/:cgi
     6name                pflogsumm
     7version             1.1.3
     8revision            1
     9categories          mail
     10license             GPL-2+
     11maintainers         nomaintainer
     12description         Produce Postfix MTA logfile summary
     13long_description    Pflogsumm is a log analyzer/summarizer for the \
     14                    Postfix MTA.  It is designed to provide an over-view \
     15                    of Postfix activity, with just enough detail to give \
     16                    the administrator a "heads up" for potential trouble \
     17                    spots. \
     18                    Pflogsumm generates summaries and, in some cases, \
     19                    detailed reports of mail server traffic volumes, \
     20                    rejected and bounced email, and server warnings, \
     21                    errors and panics. \
     22                    Also installs Chris Cappuccio's CGI script for \
     23                    browser access to the Pflogsumm output.
     24homepage            http://jimsun.linxnet.com/postfix_contrib.html
     25master_sites        http://jimsun.linxnet.com/downloads/ \
     26                    http://www.nmedia.net/~chris/mail/:cgi
    2727
    28 distfiles-append        mail-cgi.txt:cgi
     28distfiles-append    mail-cgi.txt:cgi
    2929
    30 checksums           pflogsumm-1.1.3.tar.gz \
    31                     md5     5e3fb28dfb5b7f4a8b6b9bf2abde9542 \
    32                     sha1    86bdb3b880896e9a4991dd3ea77c4981a5c65dcb \
     30checksums           ${name}-${version}.tar.gz \
    3331                    rmd160  be63bd79c3bde406fe9e7fcc5b241fd7b2283ddb \
     32                    sha256  c4df11c2eaef313025e326114d9dea4b0f0f9b978880a29d2ecf075774aa7142 \
    3433                    mail-cgi.txt \
    35                     md5     352451388eed3d1f7255dc07fc411d97 \
    36                     sha1    ba637e06a5334f33604adb1c255a2ac9be5ef655 \
    37                     rmd160  7e683878f45dd401764a62ab52ad79c5f2f36a97
     34                    rmd160  7e683878f45dd401764a62ab52ad79c5f2f36a97 \
     35                    sha256  1bb4fe670fd7b544b9ab0425783573be7a04529fd1f7a6ccd5680fa089bfbb6d
    3836
    39 extract.only            ${distname}${extract.suffix}
    40 platforms               darwin freebsd
    41 supported_archs noarch
     37extract.only        ${distname}${extract.suffix}
     38platforms           darwin freebsd
     39supported_archs     noarch
    4240
    43 set perl5.bin           ${prefix}/bin/perl5.16
     41set perl5.bin       ${prefix}/bin/perl5.16
    4442
    45 depends_lib     port:perl5.16
    46 depends_run             port:p5.16-date-calc
     43depends_lib         port:perl5.16
     44depends_run         port:p5.16-date-calc
    4745
    48 set cgi_path            ""
    49 set maillog_path        ""
     46set cgi_path        ""
     47set maillog_path    ""
    5048
    5149platform darwin {
    52         global cgi_path maillog_path
    53         set cgi_path "/Library/WebServer/CGI-Executables"
    54         set maillog_path "/var/log/mail.log"
     50    global cgi_path maillog_path
     51    set cgi_path "/Library/WebServer/CGI-Executables"
     52    set maillog_path "/var/log/mail.log"
    5553
    56         # MacPorts Apache interoperability
    57         if {[file exists ${prefix}/sbin/httpd]} {
    58                 set cgi_path "${prefix}/www/cgi-bin"
    59         }
     54    # MacPorts Apache interoperability
     55    if {[file exists ${prefix}/sbin/httpd]} {
     56        set cgi_path "${prefix}/www/cgi-bin"
     57    }
    6058}
    6159
    6260platform freebsd {
    63         global cgi_path maillog_path
    64         set cgi_path "/usr/local/www/cgi-bin"
    65         set maillog_path "/var/log/maillog"
     61    global cgi_path maillog_path
     62    set cgi_path "/usr/local/www/cgi-bin"
     63    set maillog_path "/var/log/maillog"
    6664
    67         # MacPorts Apache interoperability
    68         if {[file exists ${prefix}/sbin/httpd]} {
    69                 set cgi_path "${prefix}/www/cgi-bin"
    70         }
     65    # MacPorts Apache interoperability
     66    if {[file exists ${prefix}/sbin/httpd]} {
     67        set cgi_path "${prefix}/www/cgi-bin"
     68    }
    7169}
    7270
    7371post-extract {
    74         file copy -force ${distpath}/mail-cgi.txt ${worksrcpath}/${name}.cgi
     72    file copy -force ${distpath}/mail-cgi.txt ${worksrcpath}/${name}.cgi
    7573}
    7674
    77 use_configure   no
     75use_configure       no
    7876
    7977build {
    80         reinplace "s|^#!.*perl|#!${perl5.bin}|" ${worksrcpath}/${name}.pl
    81         reinplace "s|mail.empnet.com|[exec hostname]|" ${worksrcpath}/${name}.cgi
    82         reinplace "s|/var/log/maillog|${maillog_path}|" ${worksrcpath}/${name}.cgi
    83         reinplace "s|${maillog_path}\[.\]\[0-3\]|&.gz|" ${worksrcpath}/${name}.cgi
    84         reinplace "s|/usr/ucb/ps|[binaryInPath ps]|" ${worksrcpath}/${name}.cgi
    85         reinplace "s|zcat=\"/bin/cat|zcat=\"[binaryInPath zcat]|" ${worksrcpath}/${name}.cgi
    86         reinplace "s|/bin/cat|[binaryInPath cat]|" ${worksrcpath}/${name}.cgi
    87         reinplace "s|/usr/local/bin/${name}.pl|${prefix}/bin/${name}|" ${worksrcpath}/${name}.cgi
    88         reinplace "s|^opts=|# &|" ${worksrcpath}/${name}.cgi
    89         reinplace "s|^#opts=|opts=|" ${worksrcpath}/${name}.cgi
    90         reinplace "s|mail.cgi|${name}.cgi|" ${worksrcpath}/${name}.cgi
    91         reinplace "s|\$pflog \$opts.*$|& 2>\\&1|" ${worksrcpath}/${name}.cgi
     78    reinplace "s|^#!.*perl|#!${perl5.bin}|" ${worksrcpath}/${name}.pl
     79    reinplace "s|mail.empnet.com|[exec hostname]|" ${worksrcpath}/${name}.cgi
     80    reinplace "s|/var/log/maillog|${maillog_path}|" ${worksrcpath}/${name}.cgi
     81    reinplace "s|${maillog_path}\[.\]\[0-3\]|&.gz|" ${worksrcpath}/${name}.cgi
     82    reinplace "s|/usr/ucb/ps|[binaryInPath ps]|" ${worksrcpath}/${name}.cgi
     83    reinplace "s|zcat=\"/bin/cat|zcat=\"[binaryInPath zcat]|" ${worksrcpath}/${name}.cgi
     84    reinplace "s|/bin/cat|[binaryInPath cat]|" ${worksrcpath}/${name}.cgi
     85    reinplace "s|/usr/local/bin/${name}.pl|${prefix}/bin/${name}|" ${worksrcpath}/${name}.cgi
     86    reinplace "s|^opts=|# &|" ${worksrcpath}/${name}.cgi
     87    reinplace "s|^#opts=|opts=|" ${worksrcpath}/${name}.cgi
     88    reinplace "s|mail.cgi|${name}.cgi|" ${worksrcpath}/${name}.cgi
     89    reinplace "s|\$pflog \$opts.*$|& 2>\\&1|" ${worksrcpath}/${name}.cgi
    9290}
    9391
    9492destroot {
    95         xinstall -m 0755 ${worksrcpath}/${name}.pl \
    96                 ${destroot}${prefix}/bin/${name}
    97         xinstall -m 0644 ${worksrcpath}/${name}.1 \
    98                 ${destroot}${prefix}/share/man/man1
    99         xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    100         xinstall -m 0644 ${worksrcpath}/${name}-faq.txt \
    101                 ${destroot}${prefix}/share/doc/${name}
    102         xinstall -d -m 0755 ${destroot}${cgi_path}
    103         if {[file exists ${maillog_path}]} {
    104             set maillog_group [file attributes ${maillog_path} -group]
    105         } else {
    106             set maillog_group wheel
    107         }
    108         xinstall -m 02755 -g ${maillog_group} ${worksrcpath}/${name}.cgi \
    109                 ${destroot}${cgi_path}
     93    xinstall -m 0755 ${worksrcpath}/${name}.pl \
     94        ${destroot}${prefix}/bin/${name}
     95    xinstall -m 0644 ${worksrcpath}/${name}.1 \
     96        ${destroot}${prefix}/share/man/man1
     97    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
     98    xinstall -m 0644 ${worksrcpath}/${name}-faq.txt \
     99        ${destroot}${prefix}/share/doc/${name}
     100    xinstall -d -m 0755 ${destroot}${cgi_path}
     101    if {[file exists ${maillog_path}]} {
     102        set maillog_group [file attributes ${maillog_path} -group]
     103    } else {
     104        set maillog_group wheel
     105    }
     106    xinstall -m 02755 -g ${maillog_group} ${worksrcpath}/${name}.cgi \
     107        ${destroot}${cgi_path}
    110108}
    111109
    112 livecheck.type  regex
    113 livecheck.url   ${homepage}
    114 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
     110livecheck.type      regex
     111livecheck.url       ${homepage}
     112livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracChangeset for help on using the changeset viewer.