# -*- 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
description Produce Postfix MTA logfile summary
long_description Pflogsumm is a log analyzer/summarizer for the \
Postfix MTA. It is designed to provide an over-view \
of Postfix activity, with just enough detail to give \
the administrator a "heads up" for potential trouble \
Pflogsumm generates summaries and, in some cases, \
detailed reports of mail server traffic volumes, \
rejected and bounced email, and server warnings, \
Also installs Chris Cappuccio's CGI script for \
browser access to the Pflogsumm output.
homepage http://jimsun.linxnet.com/postfix_contrib.html
master_sites http://jimsun.linxnet.com/downloads/ \
http://www.nmedia.net/~chris/mail/:cgi
distfiles-append mail-cgi.txt:cgi
checksums ${name}-${version}.tar.gz \
rmd160 be63bd79c3bde406fe9e7fcc5b241fd7b2283ddb \
sha256 c4df11c2eaef313025e326114d9dea4b0f0f9b978880a29d2ecf075774aa7142 \
rmd160 7e683878f45dd401764a62ab52ad79c5f2f36a97 \
sha256 1bb4fe670fd7b544b9ab0425783573be7a04529fd1f7a6ccd5680fa089bfbb6d
extract.only ${distname}${extract.suffix}
depends_lib port:perl${perl5.major}
depends_run port:p${perl5.major}-date-calc
global cgi_path maillog_path
set cgi_path "/Library/WebServer/CGI-Executables"
set maillog_path "/var/log/mail.log"
# MacPorts Apache interoperability
if {[file exists ${prefix}/sbin/httpd]} {
set cgi_path "${prefix}/www/cgi-bin"
global cgi_path maillog_path
set cgi_path "/usr/local/www/cgi-bin"
set maillog_path "/var/log/maillog"