source: trunk/dports/mail/mailqfmt/Portfile

Last change on this file was 151895, checked in by mojca@…, 13 months ago

mailqfmt: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- 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
2# $Id: Portfile 151895 2016-08-23 21:38:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6name                mailqfmt
7version             0.6
8revision            5
9categories          mail
10license             GPL-2
11maintainers         nomaintainer
12homepage            http://home.pages.de/~mandree/postfix/
13description         Postfix mailq file reformatter
14long_description    mailqfmt reformats postfix mail queue with single \
15                    lines entries that are easier to parse
16platforms           darwin
17master_sites        ${homepage}
18distfiles           ${name}.pl
19
20checksums           rmd160  d5e24479642537db03f3ab82eee380fefce1bdf9 \
21                    sha256  11e6410cdc811cebc8212b73eeaad2386cb15569b526d73376d35a69bda54b95
22
23perl5.branches      5.24
24
25depends_lib-append  port:postfix \
26                    port:p${perl5.major}-libwww-perl
27
28extract {
29      file copy ${distpath}/mailqfmt.pl ${workpath}/mailqfmt
30}
31
32post-patch { 
33    reinplace "s|/usr/bin/perl|${prefix}/bin/perl${perl5.major}|g" ${workpath}/mailqfmt
34
35    if {![variant_isset apple_postfix]} {
36        reinplace "s|/usr/bin/mailq|${prefix}/bin/mailq|g" ${workpath}/mailqfmt
37    }
38}
39
40use_configure       no
41build               {}
42
43destroot {
44    xinstall -m 755 -d ${destroot}${prefix}/bin
45    xinstall -m 755 ${workpath}/mailqfmt ${destroot}${prefix}/bin/mailqfmt
46}
47
48variant apple_postfix description {uses the mail queues of macosx postfix} {
49    depends_lib-delete  port:postfix
50}
51
52livecheck.url       ${homepage}/${name}.pl
53livecheck.regex     {mailqfmt.pl,v ([\d.]+)}
Note: See TracBrowser for help on using the repository browser.