Ignore:
Timestamp:
Apr 2, 2010, 10:51:27 AM (9 years ago)
Author:
ryandesign@…
Message:

exim: update to 4.71; add variants mysql4, mysql5, ldap, macports_ldap; disable universal variant; fix livecheck; see #24323

Location:
trunk/dports/mail/exim
Files:
2 deleted
1 edited

Legend:

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

    r57752 r65872  
    33PortSystem 1.0
    44name            exim
    5 version         4.66
    6 revision        1
     5version         4.71
    76categories      mail
    87description     complete replacement for sendmail
     
    1615platforms       darwin
    1716maintainers     nomaintainer
    18 master_sites    ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \
    19                 ftp://ftp.exim.org/pub/exim/exim4/
     17master_sites    ftp://ftp.exim.org/pub/exim/exim4/ \
     18                ftp://ftp.easynet.be/exim/exim/exim4/
    2019use_bzip2       yes
    21 checksums       md5 01288e44919d8abdde5a7bd2c200449b \
    22                 sha1 4a2ac2cd51865b57610e2b153e20c305b7f9f504 \
    23                 rmd160 4481c9ca4932be9ab5f4f0a66b99f3e2f8e6c5fa
    24 depends_build   path:bin/perl:perl5
     20checksums       md5 f9c5a2d94b5bb132d06e2fff85bef75e \
     21                sha1 4b8f853843edcfa4f3bfbb4bef45d8dcff2fc990 \
     22                rmd160 22e4ad1d43693d61fa1f2f2de40dda647599a087
     23depends_build   path:bin/perl:perl5 \
     24                port:pcre
    2525depends_lib     port:db44 port:openssl port:sqlite3
    26 
    27 patchfiles      patch-tls-openssl.c
    2826
    2927startupitem.create      yes
     
    3432
    3533use_parallel_build      no
     34
     35universal_variant       no
    3636
    3737configure   {
     
    4949                reinplace "s|# TLS_LIBS=-L/usr/local/openssl/lib|TLS_LIBS=-L${prefix}/lib|g" ${worksrcpath}/Local/Makefile
    5050                reinplace "s|# TLS_INCLUDE=-I/usr/local/openssl/include|TLS_INCLUDE=-I${prefix}/include/openssl|g" ${worksrcpath}/Local/Makefile
     51                reinplace "s|# INCLUDE=.*|INCLUDE=-I${prefix}/include|g" ${worksrcpath}/Local/Makefile
     52                reinplace "s|PCRE_LIBS=-lpcre|PCRE_LIBS=-L${prefix}/lib -lpcre|g" ${worksrcpath}/Local/Makefile
    5153                reinplace "s|CC=cc|CC=${configure.cc}|g" ${worksrcpath}/OS/Makefile-Darwin
    5254                reinplace "s|X11=/usr/X11R6|X11=${prefix}|g" ${worksrcpath}/OS/Makefile-Darwin
     
    6870                reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/share/exim/exim.sh }
    6971
    70 variant mysql4 { depends_lib-append      lib:libmysqlclient:mysql4 }
     72variant mysql4 conflicts mysql5 description {build exim with support for mysql4 lookups} {
     73    depends_lib-append  port:mysql4
     74}
     75
     76variant mysql5 conflicts mysql4 description {build exim with support for mysql5 lookups} {
     77    depends_lib-append  path:bin/mysql_config5:mysql5
     78}
     79
     80variant ldap conflicts macports_ldap description {build exim with support for ldap lookups using the shipped ldap} {
     81    # do nothing .. until post-configure
     82}
     83
     84variant macports_ldap conflicts ldap description {install exim with support for ldap lookups using macports ldap} {
     85    depends_lib-append  port:openldap
     86}
    7187
    7288post-configure {
     
    7793    reinplace "s|# TLS_LIBS=-lssl -lcrypto|TLS_LIBS=-lssl -lcrypto|g" ${worksrcpath}/Local/Makefile
    7894    reinplace "s|# LDAP_LIB_TYPE=OPENLDAP2|LDAP_LIB_TYPE=OPENLDAP2|g" ${worksrcpath}/Local/Makefile
    79     reinplace "s|# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds|LOOKUP_LIBS=-lldap|g" ${worksrcpath}/Local/Makefile
    8095
    81     if {[variant_isset mysql] || [variant_isset mysql4]} {
    82         reinplace "s|# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" ${worksrcpath}/Local/Makefile
    83         reinplace "s|# LOOKUP_INCLUDE=.*|LOOKUP_INCLUDE=-I ${prefix}/include/mysql -I ${prefix}/include -I /usr/include|g" ${worksrcpath}/Local/Makefile
     96    # settings common to any lookup
     97    if {[variant_isset mysql4]
     98        ||  [variant_isset mysql5]
     99        ||  [variant_isset ldap]
     100        ||  [variant_isset macports_ldap]
     101    } then {
     102        reinplace "s|^# LOOKUP_INCLUDE=.*|LOOKUP_INCLUDE=|g" ${worksrcpath}/Local/Makefile
     103        reinplace "s|^# LOOKUP_LIBS=.*|LOOKUP_LIBS=-L${prefix}/lib|g" ${worksrcpath}/Local/Makefile
     104        # lookup specific settings
     105        if {[variant_isset mysql4]} {
     106            reinplace "s|^# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" ${worksrcpath}/Local/Makefile
     107            reinplace "s|^LOOKUP_LIBS=.*|& -L${prefix}/lib/mysql -lmysqlclient|g" ${worksrcpath}/Local/Makefile
     108            reinplace "s|^LOOKUP_INCLUDE=.*|& -I${prefix}/include/mysql -I ${prefix}/include|g" ${worksrcpath}/Local/Makefile
    84109    }
     110        if {[variant_isset mysql5]} {
     111            reinplace "s|^# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" ${worksrcpath}/Local/Makefile
     112            reinplace "s|^LOOKUP_LIBS=.*|& -L${prefix}/lib/mysql5/mysql -lmysqlclient |g" ${worksrcpath}/Local/Makefile
     113            reinplace "s|^LOOKUP_INCLUDE=.*|& -I${prefix}/include/mysql5/mysql |g"  ${worksrcpath}/Local/Makefile
     114        }
     115        if {[variant_isset ldap]} {
     116            reinplace "s|^# LOOKUP_LDAP=yes|LOOKUP_LDAP=yes|g"  ${worksrcpath}/Local/Makefile
     117            reinplace "s|^LOOKUP_LIBS=.*|& -L/usr/lib -lldap -llber |g" ${worksrcpath}/Local/Makefile
     118            reinplace "s|^LOOKUP_INCLUDE=.*|& -I/usr/include |g"  ${worksrcpath}/Local/Makefile
     119        }
     120        if {[variant_isset macports_ldap]} {
     121            reinplace "s|^# LOOKUP_LDAP=yes|LOOKUP_LDAP=yes|g"  ${worksrcpath}/Local/Makefile
     122            reinplace "s|^LOOKUP_LIBS=.*|& -L${prefix}/lib -lldap -llber |g" ${worksrcpath}/Local/Makefile
     123            reinplace "s|^LOOKUP_INCLUDE=.*|& -I${prefix}/include |g"  ${worksrcpath}/Local/Makefile                       
     124}
    85125
    86126}
     127}
    87128
    88 platform darwin 10 {
    89     patchfiles-append lresolv.diff
    90 }
     129livecheck.type      regex
     130livecheck.url       ${homepage}version.html
     131livecheck.regex     "The latest release is <b>(\\d+\\.\\d+)</b>"
Note: See TracChangeset for help on using the changeset viewer.