Ticket #816: postfix.patch

File postfix.patch, 1.3 KB (added by charlie@…, 21 years ago)

Portfile patch

  • Portfile

    old new  
    22
    33PortSystem      1.0
    44name            postfix
    5 version         2.0.13
     5version         2.0.14
    66categories      mail
    77maintainers     charlie@rubberduck.com 
    88description     Fast and robust mail transfer agent
     
    1313                        Postfix act as delivery daemon for ezmlm-idx.
    1414homepage        http://www.postfix.org/
    1515platforms       darwin
    16 checksums       md5 f4f2b4b930a7a32b1df475d87143269f
     16checksums       md5 d0f1d1382958f3ce918d4d690be22229
    1717master_sites    ftp://ftp.tau.ac.il/pub/unix/mail/postfix/official/ \
    1818                http://postfix.problemlos.ch/release/official/ \
    1919                ftp://ftp.matrix.com.br/pub/postfix/official/ \
     
    8585        reinplace "s|__PREFIX|${prefix}|g" \
    8686                ${destroot}${prefix}/etc/rc.d/postfix.sh
    8787}
     88
     89# This makes sure we don't overwrite user /etc files. This now breaks postfix
     90# "just working" on fresh installs.
     91# YOU MUST MOVE THE SAMPLE FILES TO THE CORRECT NAMESPACE.
     92post-destroot   {
     93        system "mv ${destroot}${prefix}/etc/postfix/main.cf \
     94                ${destroot}${prefix}/etc/postfix/main.cf.sample"
     95        system "mv ${destroot}${prefix}/etc/postfix/master.cf \
     96                ${destroot}${prefix}/etc/postfix/master.cf.sample"
     97        system "mv ${destroot}${prefix}/etc/postfix/aliases \
     98                ${destroot}${prefix}/etc/postfix/aliases.sample"
     99                        }