Ticket #3754: Portfile.diff

File Portfile.diff, 4.1 KB (added by yeled@…, 19 years ago)

patch from jmpp

  • Portfile

    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/mail/postfix/Portfile,v
    retrieving revision 1.21
    diff -u -r1.21 Portfile
     
    22
    33PortSystem      1.0
    44name            postfix
    5 version         2.0.17
    6 revision        2
     5version         2.2.3
    76categories      mail
    87maintainers     yeled@opendarwin.org
    98description     Fast and robust mail transfer agent
     
    1413                        Postfix act as delivery daemon for ezmlm-idx.
    1514homepage        http://www.postfix.org/
    1615platforms       darwin
    17 checksums       md5 482e3912e4e910bd62f1a2d74bfa3b77
     16checksums       md5 f164b701c3e97b950d4cc64aff4de3c0
    1817master_sites    ftp://ftp.tau.ac.il/pub/unix/mail/postfix/official/ \
    1918                http://postfix.problemlos.ch/release/official/ \
    2019                ftp://ftp.matrix.com.br/pub/postfix/official/ \
    2120                ftp://ftp.its.cz/MIRRORS/ftp.porcupine.org/mirrors/postfix-release/official/ \
    2221                ftp://ftp.club-internet.fr/pub/mirrors/ftp.porcupine.org/postfix-release/official/ \
    2322                ftp://ftp.doc.cs.univ-paris8.fr/mirrors/ftp.porcupine.org/postfix-release/official/
     23
     24depends_run     port:DarwinPortsStartup
     25
    2426patchfiles      patch-access.5 patch-flush.8 patch-master.8 \
    25                                 patch-regexp_table.5 patch-sys_defs.h patch-canonical.5 \
     27                patch-regexp_table.5 patch-sys_defs.h patch-canonical.5 \
    2628                patch-mail_params.h patch-pcre_table.5 patch-postdrop.1 \
    2729                patch-postqueue.1 patch-relocated.5 patch-transport.5 \
    2830                patch-cleanup.8 patch-main.cf patch-postfix-install \
     
    3032                patch-virtual.5
    3133
    3234build.env       CCARGS=-DNO_PCRE
    33 default_variants        +pcre
    34 variant pcre    {
    35         depends_lib-append      lib:libpcre:pcre
    36         build.env-delete        CCARGS=-DNO_PCRE
    37 }
    38 
    39 platform darwin 7 {
    40   build.env-append CCARGS=-DBIND_8_COMPAT
    41 }
    4235
    4336configure {
    4437        cd ${worksrcpath}
     
    6457
    6558build.target
    6659
    67 depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    68 
    6960destroot {
    7061        adduser postfix realname=Postfix\ Server
    7162        addgroup postdrop
    7263        cd ${worksrcpath}
    73         file mkdir ${destroot}${prefix}/bin
     64#       file mkdir ${destroot}${prefix}/bin
    7465        file mkdir ${destroot}${prefix}/etc/postfix
    75         file mkdir ${destroot}${prefix}/etc/rc.d
    76         file mkdir ${destroot}${prefix}/libexec
    77         file mkdir ${destroot}${prefix}/sbin
    78         file mkdir ${destroot}${prefix}/share/man
     66#       file mkdir ${destroot}${prefix}/libexec
     67#       file mkdir ${destroot}${prefix}/sbin
     68#       file mkdir ${destroot}${prefix}/share/man
    7969        file mkdir ${destroot}${prefix}/share/postfix
    80         xinstall -d -o postfix -g postdrop ${destroot}${prefix}/var/spool/postfix/public
    81         xinstall -d -o postfix -g postdrop ${destroot}${prefix}/var/spool/postfix/maildrop
     70        xinstall -d -m 755 ${destroot}${prefix}/etc/rc.d
     71        xinstall -d -o postfix -g postdrop -m 710 ${destroot}${prefix}/var/spool/postfix/public
     72        xinstall -d -o postfix -g postdrop -m 730 ${destroot}${prefix}/var/spool/postfix/maildrop
    8273        destroot.keepdirs ${destroot}${prefix}/var/spool/postfix/public ${destroot}${prefix}/var/spool/postfix/maildrop
    8374        system "/bin/sh postfix-install -non-interactive \
    8475                install_root=${destroot} \
     
    9283                mailq_path=${prefix}/bin/mailq \
    9384                sample_directory=${prefix}/share/postfix/sample \
    9485                readme_directory=${prefix}/share/postfix/readme"
    95         xinstall -m 755 -d ${destroot}${prefix}/etc/rc.d
    9686        xinstall -m 755 -c ${portpath}/files/postfix.sh ${destroot}${prefix}/etc/rc.d
    97         reinplace "s|__PREFIX|${prefix}|g" \
    98                 ${destroot}${prefix}/etc/rc.d/postfix.sh
     87        reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/postfix.sh
    9988}
    10089# This makes sure we don't overwrite user /etc files. This now breaks postfix
    10190# "just working" on fresh installs.
     
    114103        ui_msg "To get postfix working, you need to copy sample configuration "
    115104        ui_msg "files and to edit them (${prefix}/etc/postfix/*.sample)."
    116105        ui_msg "You may also want to turn your system's MTA off."
     106}
     107
     108
     109platform darwin 7 {
     110         build.env-append CCARGS=-DBIND_8_COMPAT
     111}
     112
     113variant pcre    {
     114        depends_lib-append      lib:libpcre:pcre
     115        build.env-delete        CCARGS=-DNO_PCRE
    117116}