Changeset 28264 for trunk/dports
- Timestamp:
- Aug 27, 2007, 12:12:49 AM (17 years ago)
- Location:
- trunk/dports/mail/postgrey
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/mail/postgrey/Portfile
r27441 r28264 2 2 3 3 PortSystem 1.0 4 4 5 name postgrey 5 version 1. 296 version 1.30 6 7 categories mail 7 8 maintainers cbellot@sky.fr 8 description Postfix policy server implementing greylisting 9 description Postfix policy server implementing greylisting 9 10 long_description When a request for delivery of a mail is received by \ 10 11 Postfix via SMTP, the triplet CLIENT_IP / SENDER / RECIPIENT \ … … 15 16 however required per RFC. 16 17 platforms darwin 17 master_sites http://postgrey.schweikert.ch/pub \ 18 http://postgrey.schweikert.ch/pub/old 19 checksums md5 42d58fea95b173b9809c53c3bc232457 18 homepage http://postgrey.schweikert.ch/ 19 master_sites ${homepage}pub \ 20 ${homepage}pub/old 21 checksums md5 5698c196a5874eb963a374d8aab183ca 20 22 21 23 build.target 22 depends_lib-append port:p5-io-multiplex \23 port:p5-net-server \ 24 24 depends_lib-append port:p5-io-multiplex 25 depends_lib-append port:p5-net-server 26 depends_lib-append port:p5-berkeley-db 25 27 26 28 startupitem.create yes … … 28 30 startupitem.stop "${prefix}/share/postgrey/postgrey.sh stop" 29 31 30 use_configure no 31 build {} 32 33 post-patch { 34 reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \ 35 ${worksrcpath}/postgrey \ 36 ${worksrcpath}/contrib/postgreyreport 37 reinplace "s|/etc/postfix|${prefix}/etc/postgrey|g" \ 38 ${worksrcpath}/postgrey \ 39 ${worksrcpath}/postgrey_whitelist_clients \ 40 ${worksrcpath}/postgrey_whitelist_recipients \ 41 ${worksrcpath}/contrib/postgreyreport 42 reinplace "s|/etc/main.cf|postfix's main.cf|g" \ 43 ${worksrcpath}/postgrey 32 configure { 33 cd ${worksrcpath} 34 system "echo all: > Makefile" 35 reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" postgrey \ 36 contrib/postgreyreport 37 reinplace "s|/etc/postfix|${prefix}/etc/postgrey|g" postgrey \ 38 postgrey_whitelist_clients postgrey_whitelist_recipients \ 39 contrib/postgreyreport 40 reinplace "s|/etc/main.cf|postfix's main.cf|g" postgrey 44 41 reinplace "s|/var/spool/postfix/postgrey|${prefix}/var/spool/postgrey|g" \ 45 ${worksrcpath}/postgrey \ 46 ${worksrcpath}/contrib/postgreyreport 42 postgrey contrib/postgreyreport 47 43 } 48 49 destroot { 44 destroot { 50 45 adduser postgrey realname=Postgrey\ Server 51 46 addgroup postgrey 47 cd ${worksrcpath} 52 48 file mkdir ${destroot}${prefix}/etc/postgrey 53 49 file mkdir ${destroot}${prefix}/share/postgrey … … 62 58 ${destroot}${prefix}/var/run/postgrey \ 63 59 ${destroot}${prefix}/etc/postgrey 64 system "pod2man --section=8 ${worksrcpath}/postgrey > \60 system "pod2man --section=8 postgrey > \ 65 61 ${destroot}${prefix}/share/man/man8/postgrey.8" 66 system "pod2man --section=1 ${worksrcpath}/contrib/postgreyreport > \62 system "pod2man --section=1 contrib/postgreyreport > \ 67 63 ${destroot}${prefix}/share/man/man1/postgreyreport.1" 68 xinstall -m 755 -c ${worksrcpath}/contrib/postgreyreport \64 xinstall -m 755 -c contrib/postgreyreport \ 69 65 ${destroot}${prefix}/bin/postgreyreport 70 xinstall -m 644 - W ${worksrcpath}README README.exim Changes COPYING \66 xinstall -m 644 -c README README.exim Changes COPYING \ 71 67 ${destroot}${prefix}/share/doc/postgrey 72 xinstall -m 644 ${portpath}/files/postgrey.conf \68 xinstall -m 644 -c ${portpath}/files/postgrey.conf \ 73 69 ${destroot}${prefix}/etc/postgrey/postgrey.conf.sample 74 xinstall -m 755 ${portpath}/files/postgrey.sh \70 xinstall -m 755 -c ${portpath}/files/postgrey.sh \ 75 71 ${destroot}${prefix}/share/postgrey 76 72 reinplace "s|__PREFIX|${prefix}|g" \ … … 78 74 xinstall -m 4755 -o postgrey -g postgrey -c postgrey \ 79 75 ${destroot}${prefix}/sbin/postgrey 80 xinstall -m 644 ${worksrcpath}/postgrey_whitelist_clients \76 xinstall -m 644 -c postgrey_whitelist_clients \ 81 77 ${destroot}${prefix}/etc/postgrey 82 xinstall -m 644 ${worksrcpath}/postgrey_whitelist_recipients \78 xinstall -m 644 -c postgrey_whitelist_recipients \ 83 79 ${destroot}${prefix}/etc/postgrey/postgrey_whitelist_recipients.default 84 80 } … … 101 97 If you are using postfix, you should add to your main.cf a line: 102 98 check_policy_service inet:127.0.0.1:60000 103 in the smtpd_recipient_restrictions configuration (after 99 in the smtpd_recipient_restrictions configuration (after 104 100 reject_unauth_destination and other rules) and reload postfix daemon. 105 101 -
trunk/dports/mail/postgrey/files/postgrey.sh
r27351 r28264 37 37 start) 38 38 echo "starting postgrey" 39 # db cleanup because files may be unusable in some cases 40 rm -f __PREFIX/var/spool/postgrey/__db.* 39 41 unset PATH 40 42 cd /
Note: See TracChangeset
for help on using the changeset viewer.