Revision: 144310 https://trac.macports.org/changeset/144310 Author: mojca@macports.org Date: 2016-01-06 05:59:25 -0800 (Wed, 06 Jan 2016) Log Message: ----------- mailqfmt: whitespace, checksums, first line only Modified Paths: -------------- trunk/dports/mail/mailqfmt/Portfile Modified: trunk/dports/mail/mailqfmt/Portfile =================================================================== --- trunk/dports/mail/mailqfmt/Portfile 2016-01-06 13:46:26 UTC (rev 144309) +++ trunk/dports/mail/mailqfmt/Portfile 2016-01-06 13:59:25 UTC (rev 144310) @@ -1,41 +1,47 @@ +# -*- 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 -name mailqfmt -version 0.6 -revision 2 -categories mail -license GPL-2 -maintainers nomaintainer -homepage http://www.dt.e-technik.uni-dortmund.de/~ma/postfix/ -description Postfix mailq file reformatter -long_description mailqfmt reformats postfix mail queue with single \ - lines entries that are easier to parse -platforms darwin -master_sites http://www.dt.e-technik.uni-dortmund.de/~ma/postfix/ -distfiles ${name}.pl -checksums md5 e1d452850f59cd004d2d4930758a4a28 -depends_lib-append port:p5.16-libwww-perl port:postfix +PortSystem 1.0 +name mailqfmt +version 0.6 +revision 2 +categories mail +license GPL-2 +maintainers nomaintainer +homepage http://www.dt.e-technik.uni-dortmund.de/~ma/postfix/ +description Postfix mailq file reformatter +long_description mailqfmt reformats postfix mail queue with single \ + lines entries that are easier to parse +platforms darwin +master_sites http://www.dt.e-technik.uni-dortmund.de/~ma/postfix/ +distfiles ${name}.pl -variant apple_postfix description {uses the mail queues of macosx postfix} { - depends_lib-delete port:postfix +checksums rmd160 d5e24479642537db03f3ab82eee380fefce1bdf9 \ + sha256 11e6410cdc811cebc8212b73eeaad2386cb15569b526d73376d35a69bda54b95 + +depends_lib-append port:postfix \ + port:p5.16-libwww-perl + +extract { + file copy ${distpath}/mailqfmt.pl ${workpath}/mailqfmt } -use_configure no -extract { - file copy ${distpath}/mailqfmt.pl ${workpath}/mailqfmt - } post-patch { - reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|g" \ - ${workpath}/mailqfmt + reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|g" ${workpath}/mailqfmt -if { ![variant_isset apple_postfix] } { - reinplace "s|/usr/bin/mailq|${prefix}/bin/mailq|g" \ - ${workpath}/mailqfmt - } - } -build {} + if {![variant_isset apple_postfix]} { + reinplace "s|/usr/bin/mailq|${prefix}/bin/mailq|g" ${workpath}/mailqfmt + } +} + +use_configure no +build {} + destroot { - xinstall -m 755 -d ${destroot}${prefix}/bin - xinstall -m 755 ${workpath}/mailqfmt ${destroot}${prefix}/bin/mailqfmt - } + xinstall -m 755 -d ${destroot}${prefix}/bin + xinstall -m 755 ${workpath}/mailqfmt ${destroot}${prefix}/bin/mailqfmt +} + +variant apple_postfix description {uses the mail queues of macosx postfix} { + depends_lib-delete port:postfix +}
participants (1)
-
mojca@macports.org