1 | PortSystem 1.0 |
---|
2 | name mailqfmt |
---|
3 | version 0.6 |
---|
4 | categories mail |
---|
5 | maintainers cbellot@sky.fr |
---|
6 | description Postfix mailq file reformatter |
---|
7 | platforms darwin |
---|
8 | master_sites http://www.dt.e-technik.uni-dortmund.de/~ma/postfix/ |
---|
9 | distfiles ${name}.pl |
---|
10 | checksums md5 e1d452850f59cd004d2d4930758a4a28 |
---|
11 | depends_lib-append port:p5-libwww-perl port:postfix |
---|
12 | |
---|
13 | variant apple_postfix { |
---|
14 | depends_lib-delete port:postfix |
---|
15 | } |
---|
16 | |
---|
17 | use_configure no |
---|
18 | extract { |
---|
19 | file copy ${distpath}/mailqfmt.pl ${workpath}/mailqfmt |
---|
20 | } |
---|
21 | post-patch { |
---|
22 | reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \ |
---|
23 | ${workpath}/mailqfmt |
---|
24 | |
---|
25 | if { ![variant_isset apple_postfix] } { |
---|
26 | reinplace "s|/usr/bin/mailq|${prefix}/bin/mailq|g" \ |
---|
27 | ${workpath}/mailqfmt |
---|
28 | } |
---|
29 | } |
---|
30 | build {} |
---|
31 | destroot { |
---|
32 | xinstall -m 755 -d ${destroot}${prefix}/bin |
---|
33 | xinstall -m 755 ${workpath}/mailqfmt ${destroot}${prefix}/bin/mailqfmt |
---|
34 | } |
---|