[143425] trunk/dports/mail/postgrey/Portfile
mojca at macports.org
mojca at macports.org
Sat Dec 12 10:53:19 PST 2015
Revision: 143425
https://trac.macports.org/changeset/143425
Author: mojca at macports.org
Date: 2015-12-12 02:38:32 -0800 (Sat, 12 Dec 2015)
Log Message:
-----------
postgrey: switch to perl5.22 using the perl5 portgroup (#48365, untested)
Modified Paths:
--------------
trunk/dports/mail/postgrey/Portfile
Modified: trunk/dports/mail/postgrey/Portfile
===================================================================
--- trunk/dports/mail/postgrey/Portfile 2015-12-12 10:35:23 UTC (rev 143424)
+++ trunk/dports/mail/postgrey/Portfile 2015-12-12 10:38:32 UTC (rev 143425)
@@ -2,9 +2,11 @@
# $Id$
PortSystem 1.0
+PortGroup perl5 1.0
name postgrey
version 1.35
+revision 1
categories mail
license GPL-2
maintainers nomaintainer
@@ -25,18 +27,18 @@
checksums rmd160 7dc67fb3df37094da3039297d3885ccde5f08c06 \
sha256 f6a6956630803e6f79ebff6ad0cc0d46ba32046ed6cc260e38e6f591de7bbdcf
-depends_lib-append port:p5.16-berkeleydb \
- port:p5.16-io-multiplex \
- port:p5.16-net-server
+perl5.branches 5.22
+depends_lib-append port:p${perl5.major}-berkeleydb \
+ port:p${perl5.major}-io-multiplex \
+ port:p${perl5.major}-net-server
+startupitem.create yes
+startupitem.start "${prefix}/share/postgrey/postgrey.sh start"
+startupitem.stop "${prefix}/share/postgrey/postgrey.sh stop"
-startupitem.create yes
-startupitem.start "${prefix}/share/postgrey/postgrey.sh start"
-startupitem.stop "${prefix}/share/postgrey/postgrey.sh stop"
-
configure {
system "echo all: > ${worksrcpath}/Makefile"
- reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|g" \
+ reinplace "s|/usr/bin/perl|${perl5.bin}|g" \
${worksrcpath}/postgrey \
${worksrcpath}/contrib/postgreyreport
reinplace -locale C "s|/etc/postfix|${prefix}/etc/postgrey|g" \
@@ -68,9 +70,9 @@
destroot.keepdirs ${destroot}${prefix}/var/spool/postgrey \
${destroot}${prefix}/var/run/postgrey \
${destroot}${prefix}/etc/postgrey
- system "${prefix}/bin/pod2man-5.16 --section=8 ${worksrcpath}/postgrey > \
+ system "${prefix}/bin/pod2man-${perl5.major} --section=8 ${worksrcpath}/postgrey > \
${destroot}${prefix}/share/man/man8/postgrey.8"
- system "${prefix}/bin/pod2man-5.16 --section=1 ${worksrcpath}/contrib/postgreyreport > \
+ system "${prefix}/bin/pod2man-${perl5.major} --section=1 ${worksrcpath}/contrib/postgreyreport > \
${destroot}${prefix}/share/man/man1/postgreyreport.1"
xinstall -m 755 -c ${worksrcpath}/contrib/postgreyreport \
${destroot}${prefix}/bin/postgreyreport
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/eec5a052/attachment-0001.html>
More information about the macports-changes
mailing list