Ticket #13972: Portfile-qmail-spamcontrol.diff

File Portfile-qmail-spamcontrol.diff, 2.9 KB (added by compconsultant@…, 17 years ago)

Addresses case 13313

  • Portfile

    old new  
    44
    55name                            qmail-spamcontrol
    66version                         2.4.18
    7 revision                        5
     7revision                        6
    88categories                      mail
    99maintainers                     yahoo.com:compconsultant
    1010platforms                       darwin
     
    1717
    1818universal_variant               no
    1919
    20 variant relaymailfrom {}
    21 variant noreqbrackets {}
    22 variant noverp {}
    23 variant moreipme {}
    24 variant bigtodo {}
     20variant relaymailfrom description {Relay based on sender email, not a good idea} {}
     21variant noreqbrackets description {Do not require brackets in SMTP addresses} {}
     22variant noverp description {Do not alow VERP addresses for recipients} {}
     23variant moreipme description {Patch to account for certain NAT or load balance situations} {}
     24variant bigtodo description {May make very large installations more efficient} {}
    2525
    2626homepage                        http://www.fehcom.de/qmail/spamcontrol.html
    2727
     
    4646worksrcdir              qmail-1.03
    4747
    4848patchfiles              patch-dns.c.diff \
    49                         patch-strerr_sys.c.diff
     49                        patch-strerr_sys.c.diff \
     50                        patch-qmail-lspawn.c.diff \
     51                        patch-qmail-rspawn.c.diff \
     52                        patch-qmail.c.diff \
     53                        patch-Makefile.diff
    5054
    5155configure.cflags        -O2 -include /usr/include/errno.h -c
    5256build.target            setup-patch
    5357destroot.cmd            ./install-destroot
    5458
     59pre-fetch {
     60        if {${os.platform} == "darwin" && ${os.major} == "6"} {
     61                return -code error "${name} requires Mac OS X 10.3 or newer."
     62        }
     63}
     64
    5565post-extract {
    5666
    5767        # Merge Spamcontrol source with Qmail source
     
    7282                ${worksrcpath}/conf-qmail
    7383}
    7484
    75 post-patch {
     85pre-patch {
    7686                # Apply Spamcontrol patches
    7787                foreach file [glob ${worksrcpath}/*.patch] {
    78                         system "patch -p2 <${file}"
     88                        system "patch -d ${worksrcpath} -p2 <${file}"
    7989                }
     90}
    8091
    81                 # Append our commands for making a destroot installer
    82                 # This is because Spamcontrol and us needs to patch Makefile
    83                 system "cat ${filespath}/append-Makefile >>${worksrcpath}/Makefile"
     92post-patch {
    8493
    8594                # Handle the variants, disable via source code define change
    8695                foreach file [glob ${worksrcpath}/*c] {
     
    215224        xinstall -W ${worksrcpath} config-fast ${destroot}${prefix}/var/qmail/scripts/config-fast
    216225
    217226        # Per Qmail install doc
    218         xinstall ${destroot}${prefix}/var/qmail/boot/home ${destroot}${prefix}/var/qmail/rc
     227        xinstall ${destroot}${prefix}/var/qmail/boot/home ${destroot}${prefix}/var/qmail/rc.sample
    219228}
    220229
    221230post-install {
     
    237246
    238247post-activate {
    239248
    240         # Remove the turd files
     249        # Remove the turd files, it is not know if they cause a problem but
     250        # people have recommended not having them there.
    241251        system "cd ${prefix}/var/qmail; find . -name .turd_${name} -delete"
    242         system "rm ${destroot}${prefix}/var/log/qmail/smtpd/.turd_${name}"
    243 }
    244 
    245 platform darwin 6 {
    246         return -code error "${name} requires Mac OS X 10.3 or newer."
    247252}
    248253
    249254livecheck.check                 regex
    250255livecheck.regex                 {Version\s+([0-9.]+)<}
    251