[143424] trunk/dports/mail/postgrey/Portfile
mojca at macports.org
mojca at macports.org
Sat Dec 12 10:53:04 PST 2015
Revision: 143424
https://trac.macports.org/changeset/143424
Author: mojca at macports.org
Date: 2015-12-12 02:35:23 -0800 (Sat, 12 Dec 2015)
Log Message:
-----------
postgrey: whitespace only
Modified Paths:
--------------
trunk/dports/mail/postgrey/Portfile
Modified: trunk/dports/mail/postgrey/Portfile
===================================================================
--- trunk/dports/mail/postgrey/Portfile 2015-12-12 10:31:21 UTC (rev 143423)
+++ trunk/dports/mail/postgrey/Portfile 2015-12-12 10:35:23 UTC (rev 143424)
@@ -1,95 +1,99 @@
+# -*- 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
+PortSystem 1.0
-name postgrey
-version 1.35
-categories mail
-license GPL-2
-maintainers nomaintainer
-description Postfix policy server implementing greylisting
-long_description When a request for delivery of a mail is received by \
- Postfix via SMTP, the triplet CLIENT_IP / SENDER / RECIPIENT \
- is built. If it is the first time that this triplet is seen, \
- or if the triplet was first seen, less than 5 minutes ago, \
- then the mail gets rejected with a temporary error. Hopefully\
- spammers or viruses will not try again later, as it is \
- however required per RFC.
-platforms darwin
-supported_archs noarch
-homepage http://postgrey.schweikert.ch/
-master_sites ${homepage}pub \
- ${homepage}pub/old
+name postgrey
+version 1.35
+categories mail
+license GPL-2
+maintainers nomaintainer
+description Postfix policy server implementing greylisting
+long_description When a request for delivery of a mail is received by \
+ Postfix via SMTP, the triplet CLIENT_IP / SENDER / RECIPIENT \
+ is built. If it is the first time that this triplet is seen, \
+ or if the triplet was first seen, less than 5 minutes ago, \
+ then the mail gets rejected with a temporary error. Hopefully\
+ spammers or viruses will not try again later, as it is \
+ however required per RFC.
+platforms darwin
+supported_archs noarch
+homepage http://postgrey.schweikert.ch/
+master_sites ${homepage}pub \
+ ${homepage}pub/old
-checksums rmd160 7dc67fb3df37094da3039297d3885ccde5f08c06 \
- sha256 f6a6956630803e6f79ebff6ad0cc0d46ba32046ed6cc260e38e6f591de7bbdcf
+checksums rmd160 7dc67fb3df37094da3039297d3885ccde5f08c06 \
+ sha256 f6a6956630803e6f79ebff6ad0cc0d46ba32046ed6cc260e38e6f591de7bbdcf
-build.target
-depends_lib-append port:p5.16-io-multiplex
-depends_lib-append port:p5.16-net-server
-depends_lib-append port:p5.16-berkeleydb
+depends_lib-append port:p5.16-berkeleydb \
+ port:p5.16-io-multiplex \
+ port:p5.16-net-server
+
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" \
- ${worksrcpath}/postgrey \
- ${worksrcpath}/contrib/postgreyreport
- reinplace -locale C "s|/etc/postfix|${prefix}/etc/postgrey|g" \
- ${worksrcpath}/postgrey \
- ${worksrcpath}/postgrey_whitelist_clients \
- ${worksrcpath}/postgrey_whitelist_recipients \
- ${worksrcpath}/contrib/postgreyreport
- reinplace "s|/etc/main.cf|postfix's main.cf|g" \
- ${worksrcpath}/postgrey
- reinplace "s|/var/spool/postfix/postgrey|${prefix}/var/spool/postgrey|g" \
- ${worksrcpath}/postgrey \
- ${worksrcpath}/contrib/postgreyreport
+ system "echo all: > ${worksrcpath}/Makefile"
+ reinplace "s|/usr/bin/perl|${prefix}/bin/perl5.16|g" \
+ ${worksrcpath}/postgrey \
+ ${worksrcpath}/contrib/postgreyreport
+ reinplace -locale C "s|/etc/postfix|${prefix}/etc/postgrey|g" \
+ ${worksrcpath}/postgrey \
+ ${worksrcpath}/postgrey_whitelist_clients \
+ ${worksrcpath}/postgrey_whitelist_recipients \
+ ${worksrcpath}/contrib/postgreyreport
+ reinplace "s|/etc/main.cf|postfix's main.cf|g" \
+ ${worksrcpath}/postgrey
+ reinplace "s|/var/spool/postfix/postgrey|${prefix}/var/spool/postgrey|g" \
+ ${worksrcpath}/postgrey \
+ ${worksrcpath}/contrib/postgreyreport
}
+
+build.target
+
destroot {
- adduser postgrey realname=Postgrey\ Server
- addgroup postgrey
- file mkdir ${destroot}${prefix}/etc/postgrey
- file mkdir ${destroot}${prefix}/share/postgrey
- file mkdir ${destroot}${prefix}/share/doc/postgrey
- file mkdir ${destroot}${prefix}/share/man/man1
- file mkdir ${destroot}${prefix}/share/man/man8
- xinstall -d -o postgrey -g postgrey -m 750 \
- ${destroot}${prefix}/var/spool/postgrey
- xinstall -d -o postgrey -g postgrey -m 750 \
- ${destroot}${prefix}/var/run/postgrey
- 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 > \
- ${destroot}${prefix}/share/man/man8/postgrey.8"
- system "${prefix}/bin/pod2man-5.16 --section=1 ${worksrcpath}/contrib/postgreyreport > \
- ${destroot}${prefix}/share/man/man1/postgreyreport.1"
- xinstall -m 755 -c ${worksrcpath}/contrib/postgreyreport \
- ${destroot}${prefix}/bin/postgreyreport
- xinstall -m 644 -c ${worksrcpath}/README \
- ${worksrcpath}/README.exim \
- ${worksrcpath}/Changes \
- ${worksrcpath}/COPYING \
- ${destroot}${prefix}/share/doc/postgrey
- xinstall -m 644 -c ${portpath}/files/postgrey.conf \
- ${destroot}${prefix}/etc/postgrey/postgrey.conf.sample
- xinstall -m 755 -c ${portpath}/files/postgrey.sh \
- ${destroot}${prefix}/share/postgrey
- reinplace "s|__PREFIX|${prefix}|g" \
- ${destroot}${prefix}/share/postgrey/postgrey.sh
- xinstall -m 4755 -o postgrey -g postgrey -c \
- ${worksrcpath}/postgrey \
- ${destroot}${prefix}/sbin/postgrey
- xinstall -m 644 -c \
- ${worksrcpath}/postgrey_whitelist_clients \
- ${destroot}${prefix}/etc/postgrey
- xinstall -m 644 -c \
- ${worksrcpath}/postgrey_whitelist_recipients \
- ${destroot}${prefix}/etc/postgrey/postgrey_whitelist_recipients.default
+ adduser postgrey realname=Postgrey\ Server
+ addgroup postgrey
+ file mkdir ${destroot}${prefix}/etc/postgrey
+ file mkdir ${destroot}${prefix}/share/postgrey
+ file mkdir ${destroot}${prefix}/share/doc/postgrey
+ file mkdir ${destroot}${prefix}/share/man/man1
+ file mkdir ${destroot}${prefix}/share/man/man8
+ xinstall -d -o postgrey -g postgrey -m 750 \
+ ${destroot}${prefix}/var/spool/postgrey
+ xinstall -d -o postgrey -g postgrey -m 750 \
+ ${destroot}${prefix}/var/run/postgrey
+ 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 > \
+ ${destroot}${prefix}/share/man/man8/postgrey.8"
+ system "${prefix}/bin/pod2man-5.16 --section=1 ${worksrcpath}/contrib/postgreyreport > \
+ ${destroot}${prefix}/share/man/man1/postgreyreport.1"
+ xinstall -m 755 -c ${worksrcpath}/contrib/postgreyreport \
+ ${destroot}${prefix}/bin/postgreyreport
+ xinstall -m 644 -c ${worksrcpath}/README \
+ ${worksrcpath}/README.exim \
+ ${worksrcpath}/Changes \
+ ${worksrcpath}/COPYING \
+ ${destroot}${prefix}/share/doc/postgrey
+ xinstall -m 644 -c ${portpath}/files/postgrey.conf \
+ ${destroot}${prefix}/etc/postgrey/postgrey.conf.sample
+ xinstall -m 755 -c ${portpath}/files/postgrey.sh \
+ ${destroot}${prefix}/share/postgrey
+ reinplace "s|__PREFIX|${prefix}|g" \
+ ${destroot}${prefix}/share/postgrey/postgrey.sh
+ xinstall -m 4755 -o postgrey -g postgrey -c \
+ ${worksrcpath}/postgrey \
+ ${destroot}${prefix}/sbin/postgrey
+ xinstall -m 644 -c \
+ ${worksrcpath}/postgrey_whitelist_clients \
+ ${destroot}${prefix}/etc/postgrey
+ xinstall -m 644 -c \
+ ${worksrcpath}/postgrey_whitelist_recipients \
+ ${destroot}${prefix}/etc/postgrey/postgrey_whitelist_recipients.default
}
notes "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/7fc67ac4/attachment.html>
More information about the macports-changes
mailing list