Changeset 28264


Ignore:
Timestamp:
Aug 27, 2007, 12:12:49 AM (13 years ago)
Author:
sfiera@…
Message:

Update postgrey 1.29 => 1.30

Location:
trunk/dports/mail/postgrey
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/postgrey/Portfile

    r27441 r28264  
    22
    33PortSystem       1.0
     4
    45name             postgrey
    5 version          1.29
     6version          1.30
    67categories       mail
    78maintainers      cbellot@sky.fr
    8 description      Postfix policy server implementing greylisting 
     9description      Postfix policy server implementing greylisting
    910long_description When a request for delivery of a mail is received by \
    1011                 Postfix via SMTP, the triplet CLIENT_IP / SENDER / RECIPIENT \
     
    1516                 however required per RFC.
    1617platforms        darwin
    17 master_sites     http://postgrey.schweikert.ch/pub \
    18                  http://postgrey.schweikert.ch/pub/old
    19 checksums        md5 42d58fea95b173b9809c53c3bc232457
     18homepage         http://postgrey.schweikert.ch/
     19master_sites     ${homepage}pub \
     20                 ${homepage}pub/old
     21checksums        md5 5698c196a5874eb963a374d8aab183ca
    2022
    2123build.target
    22 depends_lib-append      port:p5-io-multiplex \
    23                         port:p5-net-server \
    24                         port:p5-berkeley-db
     24depends_lib-append      port:p5-io-multiplex
     25depends_lib-append      port:p5-net-server
     26depends_lib-append      port:p5-berkeley-db
    2527
    2628startupitem.create      yes
     
    2830startupitem.stop        "${prefix}/share/postgrey/postgrey.sh stop"
    2931
    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
     32configure {
     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
    4441  reinplace "s|/var/spool/postfix/postgrey|${prefix}/var/spool/postgrey|g" \
    45         ${worksrcpath}/postgrey \
    46         ${worksrcpath}/contrib/postgreyreport
     42        postgrey contrib/postgreyreport
    4743}
    48 
    49 destroot {
     44destroot {
    5045  adduser postgrey realname=Postgrey\ Server
    5146  addgroup postgrey
     47  cd ${worksrcpath}
    5248  file mkdir ${destroot}${prefix}/etc/postgrey
    5349  file mkdir ${destroot}${prefix}/share/postgrey
     
    6258        ${destroot}${prefix}/var/run/postgrey \
    6359        ${destroot}${prefix}/etc/postgrey
    64   system "pod2man --section=8 ${worksrcpath}/postgrey > \
     60  system "pod2man --section=8 postgrey > \
    6561        ${destroot}${prefix}/share/man/man8/postgrey.8"
    66   system "pod2man --section=1 ${worksrcpath}/contrib/postgreyreport > \
     62  system "pod2man --section=1 contrib/postgreyreport > \
    6763        ${destroot}${prefix}/share/man/man1/postgreyreport.1"
    68   xinstall -m 755 -c ${worksrcpath}/contrib/postgreyreport \
     64  xinstall -m 755 -c contrib/postgreyreport \
    6965        ${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 \
    7167        ${destroot}${prefix}/share/doc/postgrey
    72   xinstall -m 644 ${portpath}/files/postgrey.conf \
     68  xinstall -m 644 -c ${portpath}/files/postgrey.conf \
    7369        ${destroot}${prefix}/etc/postgrey/postgrey.conf.sample
    74   xinstall -m 755 ${portpath}/files/postgrey.sh \
     70  xinstall -m 755 -c ${portpath}/files/postgrey.sh \
    7571        ${destroot}${prefix}/share/postgrey
    7672  reinplace "s|__PREFIX|${prefix}|g" \
     
    7874  xinstall -m 4755 -o postgrey -g postgrey -c postgrey \
    7975        ${destroot}${prefix}/sbin/postgrey
    80   xinstall -m 644 ${worksrcpath}/postgrey_whitelist_clients \
     76  xinstall -m 644 -c postgrey_whitelist_clients \
    8177        ${destroot}${prefix}/etc/postgrey
    82   xinstall -m 644 ${worksrcpath}/postgrey_whitelist_recipients \
     78  xinstall -m 644 -c postgrey_whitelist_recipients \
    8379        ${destroot}${prefix}/etc/postgrey/postgrey_whitelist_recipients.default
    8480}
     
    10197If you are using postfix, you should add to your main.cf a line:
    10298  check_policy_service inet:127.0.0.1:60000
    103 in the smtpd_recipient_restrictions configuration (after 
     99in the smtpd_recipient_restrictions configuration (after
    104100reject_unauth_destination and other rules) and reload postfix daemon.
    105101
  • trunk/dports/mail/postgrey/files/postgrey.sh

    r27351 r28264  
    3737start)
    3838  echo "starting postgrey"
     39  # db cleanup because files may be unusable in some cases
     40  rm -f __PREFIX/var/spool/postgrey/__db.*
    3941  unset PATH
    4042  cd /
Note: See TracChangeset for help on using the changeset viewer.