[143416] trunk/dports/mail/pflogsumm/Portfile

mojca at macports.org mojca at macports.org
Sat Dec 12 10:51:02 PST 2015


Revision: 143416
          https://trac.macports.org/changeset/143416
Author:   mojca at macports.org
Date:     2015-12-12 01:55:44 -0800 (Sat, 12 Dec 2015)
Log Message:
-----------
pflogsumm: whitespace, checksums only

Modified Paths:
--------------
    trunk/dports/mail/pflogsumm/Portfile

Modified: trunk/dports/mail/pflogsumm/Portfile
===================================================================
--- trunk/dports/mail/pflogsumm/Portfile	2015-12-12 09:51:58 UTC (rev 143415)
+++ trunk/dports/mail/pflogsumm/Portfile	2015-12-12 09:55:44 UTC (rev 143416)
@@ -1,114 +1,112 @@
 # -*- 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			pflogsumm
-version			1.1.3
-revision		1
-categories		mail
-license			GPL-2+
-maintainers		nomaintainer
-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 \
-					spots. \
-					Pflogsumm generates summaries and, in some cases, \
-					detailed reports of mail server traffic volumes, \
-					rejected and bounced email, and server warnings, \
-					errors and panics. \
-					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
+name                pflogsumm
+version             1.1.3
+revision            1
+categories          mail
+license             GPL-2+
+maintainers         nomaintainer
+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 \
+                    spots. \
+                    Pflogsumm generates summaries and, in some cases, \
+                    detailed reports of mail server traffic volumes, \
+                    rejected and bounced email, and server warnings, \
+                    errors and panics. \
+                    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
+distfiles-append    mail-cgi.txt:cgi
 
-checksums           pflogsumm-1.1.3.tar.gz \
-                    md5     5e3fb28dfb5b7f4a8b6b9bf2abde9542 \
-                    sha1    86bdb3b880896e9a4991dd3ea77c4981a5c65dcb \
+checksums           ${name}-${version}.tar.gz \
                     rmd160  be63bd79c3bde406fe9e7fcc5b241fd7b2283ddb \
+                    sha256  c4df11c2eaef313025e326114d9dea4b0f0f9b978880a29d2ecf075774aa7142 \
                     mail-cgi.txt \
-                    md5     352451388eed3d1f7255dc07fc411d97 \
-                    sha1    ba637e06a5334f33604adb1c255a2ac9be5ef655 \
-                    rmd160  7e683878f45dd401764a62ab52ad79c5f2f36a97
+                    rmd160  7e683878f45dd401764a62ab52ad79c5f2f36a97 \
+                    sha256  1bb4fe670fd7b544b9ab0425783573be7a04529fd1f7a6ccd5680fa089bfbb6d
 
-extract.only	        ${distname}${extract.suffix}
-platforms		darwin freebsd
-supported_archs	noarch
+extract.only        ${distname}${extract.suffix}
+platforms           darwin freebsd
+supported_archs     noarch
 
-set perl5.bin	        ${prefix}/bin/perl5.16
+set perl5.bin       ${prefix}/bin/perl5.16
 
-depends_lib     port:perl5.16
-depends_run		port:p5.16-date-calc
+depends_lib         port:perl5.16
+depends_run         port:p5.16-date-calc
 
-set cgi_path		""
-set maillog_path	""
+set cgi_path        ""
+set maillog_path    ""
 
 platform darwin {
-	global cgi_path maillog_path
-	set cgi_path "/Library/WebServer/CGI-Executables"
-	set maillog_path "/var/log/mail.log"
+    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"
-	}
+    # MacPorts Apache interoperability
+    if {[file exists ${prefix}/sbin/httpd]} {
+        set cgi_path "${prefix}/www/cgi-bin"
+    }
 }
 
 platform freebsd {
-	global cgi_path maillog_path
-	set cgi_path "/usr/local/www/cgi-bin"
-	set maillog_path "/var/log/maillog"
+    global cgi_path maillog_path
+    set cgi_path "/usr/local/www/cgi-bin"
+    set maillog_path "/var/log/maillog"
 
-	# MacPorts Apache interoperability
-	if {[file exists ${prefix}/sbin/httpd]} {
-		set cgi_path "${prefix}/www/cgi-bin"
-	}
+    # MacPorts Apache interoperability
+    if {[file exists ${prefix}/sbin/httpd]} {
+        set cgi_path "${prefix}/www/cgi-bin"
+    }
 }
 
 post-extract {
-	file copy -force ${distpath}/mail-cgi.txt ${worksrcpath}/${name}.cgi
+    file copy -force ${distpath}/mail-cgi.txt ${worksrcpath}/${name}.cgi
 }
 
-use_configure	no
+use_configure       no
 
 build {
-	reinplace "s|^#!.*perl|#!${perl5.bin}|" ${worksrcpath}/${name}.pl
-	reinplace "s|mail.empnet.com|[exec hostname]|" ${worksrcpath}/${name}.cgi
-	reinplace "s|/var/log/maillog|${maillog_path}|" ${worksrcpath}/${name}.cgi
-	reinplace "s|${maillog_path}\[.\]\[0-3\]|&.gz|" ${worksrcpath}/${name}.cgi
-	reinplace "s|/usr/ucb/ps|[binaryInPath ps]|" ${worksrcpath}/${name}.cgi
-	reinplace "s|zcat=\"/bin/cat|zcat=\"[binaryInPath zcat]|" ${worksrcpath}/${name}.cgi
-	reinplace "s|/bin/cat|[binaryInPath cat]|" ${worksrcpath}/${name}.cgi
-	reinplace "s|/usr/local/bin/${name}.pl|${prefix}/bin/${name}|" ${worksrcpath}/${name}.cgi
-	reinplace "s|^opts=|# &|" ${worksrcpath}/${name}.cgi
-	reinplace "s|^#opts=|opts=|" ${worksrcpath}/${name}.cgi
-	reinplace "s|mail.cgi|${name}.cgi|" ${worksrcpath}/${name}.cgi
-	reinplace "s|\$pflog \$opts.*$|& 2>\\&1|" ${worksrcpath}/${name}.cgi
+    reinplace "s|^#!.*perl|#!${perl5.bin}|" ${worksrcpath}/${name}.pl
+    reinplace "s|mail.empnet.com|[exec hostname]|" ${worksrcpath}/${name}.cgi
+    reinplace "s|/var/log/maillog|${maillog_path}|" ${worksrcpath}/${name}.cgi
+    reinplace "s|${maillog_path}\[.\]\[0-3\]|&.gz|" ${worksrcpath}/${name}.cgi
+    reinplace "s|/usr/ucb/ps|[binaryInPath ps]|" ${worksrcpath}/${name}.cgi
+    reinplace "s|zcat=\"/bin/cat|zcat=\"[binaryInPath zcat]|" ${worksrcpath}/${name}.cgi
+    reinplace "s|/bin/cat|[binaryInPath cat]|" ${worksrcpath}/${name}.cgi
+    reinplace "s|/usr/local/bin/${name}.pl|${prefix}/bin/${name}|" ${worksrcpath}/${name}.cgi
+    reinplace "s|^opts=|# &|" ${worksrcpath}/${name}.cgi
+    reinplace "s|^#opts=|opts=|" ${worksrcpath}/${name}.cgi
+    reinplace "s|mail.cgi|${name}.cgi|" ${worksrcpath}/${name}.cgi
+    reinplace "s|\$pflog \$opts.*$|& 2>\\&1|" ${worksrcpath}/${name}.cgi
 }
 
 destroot {
-	xinstall -m 0755 ${worksrcpath}/${name}.pl \
-		${destroot}${prefix}/bin/${name}
-	xinstall -m 0644 ${worksrcpath}/${name}.1 \
-		${destroot}${prefix}/share/man/man1
-	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 0644 ${worksrcpath}/${name}-faq.txt \
-		${destroot}${prefix}/share/doc/${name}
-	xinstall -d -m 0755 ${destroot}${cgi_path}
-	if {[file exists ${maillog_path}]} {
-	    set maillog_group [file attributes ${maillog_path} -group]
-	} else {
-	    set maillog_group wheel
-	}
-	xinstall -m 02755 -g ${maillog_group} ${worksrcpath}/${name}.cgi \
-		${destroot}${cgi_path}
+    xinstall -m 0755 ${worksrcpath}/${name}.pl \
+        ${destroot}${prefix}/bin/${name}
+    xinstall -m 0644 ${worksrcpath}/${name}.1 \
+        ${destroot}${prefix}/share/man/man1
+    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 0644 ${worksrcpath}/${name}-faq.txt \
+        ${destroot}${prefix}/share/doc/${name}
+    xinstall -d -m 0755 ${destroot}${cgi_path}
+    if {[file exists ${maillog_path}]} {
+        set maillog_group [file attributes ${maillog_path} -group]
+    } else {
+        set maillog_group wheel
+    }
+    xinstall -m 02755 -g ${maillog_group} ${worksrcpath}/${name}.cgi \
+        ${destroot}${cgi_path}
 }
 
-livecheck.type  regex
-livecheck.url   ${homepage}
-livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+livecheck.type      regex
+livecheck.url       ${homepage}
+livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/7e1a31b0/attachment-0001.html>


More information about the macports-changes mailing list