# -*- 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
homepage http://home.pages.de/~mandree/postfix/
description Postfix mailq file reformatter
long_description mailqfmt reformats postfix mail queue with single \
lines entries that are easier to parse
checksums rmd160 d5e24479642537db03f3ab82eee380fefce1bdf9 \
sha256 11e6410cdc811cebc8212b73eeaad2386cb15569b526d73376d35a69bda54b95
depends_lib-append port:postfix \
port:p${perl5.major}-libwww-perl
file copy ${distpath}/mailqfmt.pl ${workpath}/mailqfmt
reinplace "s|/usr/bin/perl|${prefix}/bin/perl${perl5.major}|g" ${workpath}/mailqfmt
if {![variant_isset apple_postfix]} {
reinplace "s|/usr/bin/mailq|${prefix}/bin/mailq|g" ${workpath}/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
livecheck.url ${homepage}/${name}.pl
livecheck.regex {mailqfmt.pl,v ([\d.]+)}