Ignore:
Timestamp:
Jul 2, 2005, 5:18:57 PM (14 years ago)
Author:
michaelm
Message:

updated exim to 4.52 based on bugzilla 3815, I've made a couple more variants default... TLS ( who uses smtp without TLS anyway ; ) and LDAP, I've also forced the TLS stuff to use the ports openssl, the only remaining variant is mysql4, I've dropped mysql3... hope this makes people happy...

File:
1 edited

Legend:

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

    r12202 r12901  
    1 # $Id: Portfile,v 1.27 2005/05/09 18:40:10 jmpp Exp $
     1# $Id: Portfile,v 1.28 2005/07/02 17:18:57 michaelm Exp $
    22
    33PortSystem 1.0
    44name            exim
    5 version         4.42
    6 revision        1
     5version         4.52
    76categories      mail
    87description     complete replacement for sendmail
     
    1514homepage        http://www.exim.org/
    1615platforms       darwin
    17 maintainers     cms@opendarwin.org
     16maintainers     michaelm@opendarwin.org
    1817master_sites    ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \
    1918                ftp://ftp.exim.org/pub/exim/exim4/
    20 checksums       md5 b1b7b66f9713a777e92fd6650e6ba954
     19checksums       md5 299a40aaa75ee9de9f6048239cbfc38c
    2120depends_build   bin:perl:perl5.8
    22 depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
     21depends_lib     port:db4 port:openssl
     22depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    2323
    2424set exim_user   exim
    25 patch.pre_args  -p1
     25patch.pre_args  -p1
    2626
    2727configure   {   cd ${worksrcpath}
     
    3232                reinplace "s|/var/spool/exim|${prefix}/var/spool/exim|g" Local/Makefile
    3333                reinplace "s|EXIM_MONITOR=eximon.bin|#EXIM_MONITOR=eximon.bin|g" Local/Makefile
    34                 reinplace "s|/etc/aliases|${destroot}${prefix}/etc/aliases|g" scripts/exim_install
    35                 adduser ${exim_user} gid=[existsgroup mail] }
     34                reinplace "s|# WITH_CONTENT_SCAN=yes|WITH_CONTENT_SCAN=yes|g" Local/Makefile       
     35                reinplace "s|# LOOKUP_PASSWD=yes|LOOKUP_PASSWD=yes|g" Local/Makefile
     36                reinplace "s|# LOOKUP_CDB=yes|LOOKUP_CDB=yes|g" Local/Makefile
     37                reinplace "s|# LOOKUP_DSEARCH=yes|LOOKUP_DSEARCH=yes|g" Local/Makefile
     38                reinplace "s|# SUPPORT_MAILDIR=yes|SUPPORT_MAILDIR=yes|g" Local/Makefile       
     39                reinplace "s|# TLS_LIBS=-L/usr/local/openssl/lib|TLS_LIBS=-L${prefix}/lib|g" Local/Makefile       
     40                reinplace "s|# TLS_INCLUDE=-I/usr/local/openssl/include|TLS_INCLUDE=-L${prefix}/include/openssl|g" Local/Makefile       
     41                reinplace "s|# Exim: OS-specific make file for Darwin (Mac OS X).|INCLUDE=-I${prefix}/include/db4|g" OS/Makefile-Darwin               
     42                reinplace "s|DBMLIB =|DBMLIB=${prefix}/lib/libdb-4.dylib|g" OS/Makefile-Darwin               
     43                reinplace "s|/etc/aliases|${destroot}${prefix}/etc/aliases|g" scripts/exim_install
     44                adduser ${exim_user} gid=[existsgroup mail] }
    3645
    37 destroot.destdir        ROOT=${destroot}
     46destroot.destdir    ROOT=${destroot}
     47destroot.keepdirs   ${destroot}${prefix}/var/spool/exim
    3848
    3949post-destroot { system "mv ${destroot}${prefix}/etc/exim/exim.conf ${destroot}${prefix}/etc/exim/exim.conf.sample"
    40                 xinstall -o root -m 755 -d ${destroot}${prefix}/share/exim
     50                xinstall -o root -m 755 -d ${destroot}${prefix}/share/exim
    4151                cd ${worksrcpath}
    4252                system "cp -R doc/ ${destroot}${prefix}/share/exim"
     
    4454                xinstall -o root -m 755 -d ${destroot}${prefix}/etc/rc.d
    4555                xinstall -o root -m 755 -c \
    46                      ${portpath}/files/exim.sh ${destroot}${prefix}/etc/rc.d
    47                 destroot.keepdirs ${destroot}${prefix}/var/spool/exim
     56                  ${portpath}/files/exim.sh ${destroot}${prefix}/etc/rc.d
    4857                reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/exim.sh }
    4958
     
    5160platform darwin 6 {
    5261
    53         if {[variant_isset mysql] || [variant_isset mysql4]} {
    54                 patchfiles-append patch-EDITME
    55                 reinplace "s|LOOKUP_LIBS=-lresolv|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lmysqlclient|g" ${filespath}/patch-EDITME
    56         }
     62    if {[variant_isset mysql] || [variant_isset mysql4]} {
     63        patchfiles-append patch-EDITME
     64        reinplace "s|LOOKUP_LIBS=-lresolv|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lmysqlclient|g" ${filespath}/patch-EDITME
     65    }
    5766}
    5867
    59 platform darwin 7 {     
    60         patchfiles-append       patch-EDITME
    61                                                
    62         if {[variant_isset mysql] || [variant_isset mysql4]} {
    63                 reinplace "s|LOOKUP_LIBS=-lresolv|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lresolv -lmysqlclient|g" ${filespath}/patch-EDITME
    64         }
    65        
     68platform darwin 7 {
     69    patchfiles-append   patch-EDITME
     70    if {[variant_isset mysql] || [variant_isset mysql4]} {
     71        reinplace "s|LOOKUP_LIBS=-lresolv|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lresolv -lmysqlclient|g" ${filespath}/patch-EDITME
     72    }
     73   
    6674}
    67 
    68 variant smtp-auth { }
    69 variant tls { }
    70 
    71 variant exiscan { patch_sites           http://duncanthrax.net/exiscan-acl/
    72                   patchfiles-append     exiscan-acl-4.42-27.patch
    73                   checksums-append      exiscan-acl-4.42-27.patch md5 3dc7322b6852eb05f7acc3a1108810d6 }
    74 
    75 variant mysql { depends_lib-append      lib:libmysqlclient:mysql }
    7675
    7776variant mysql4 { depends_lib-append      lib:libmysqlclient:mysql4 }
    7877
    79 variant maildir { }
     78post-configure {
     79    reinplace "s|# AUTH_CRAM_MD5=yes|AUTH_CRAM_MD5=yes|g" Local/Makefile
     80    reinplace "s|# AUTH_PLAINTEXT=yes|AUTH_PLAINTEXT=yes|g" Local/Makefile
     81    reinplace "s|# AUTH_SPA=yes|AUTH_SPA=yes|g" Local/Makefile 
     82    reinplace "s|# SUPPORT_TLS=yes|SUPPORT_TLS=yes|g" Local/Makefile
     83    reinplace "s|# TLS_LIBS=-lssl -lcrypto|TLS_LIBS=-lssl -lcrypto|g" Local/Makefile
     84    reinplace "s|# LDAP_LIB_TYPE=OPENLDAP2|LDAP_LIB_TYPE=OPENLDAP2|g" Local/Makefile
     85    reinplace "s|# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds|LOOKUP_LIBS=-lldap|g" Local/Makefile
    8086
    81 variant ldap { }
     87    if {[variant_isset mysql] || [variant_isset mysql4]} {
     88        reinplace "s|# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" Local/Makefile
     89        reinplace "s|# LOOKUP_INCLUDE=.*|LOOKUP_INCLUDE=-I ${prefix}/include/mysql -I ${prefix}/include -I /usr/include|g" Local/Makefile
     90    }
    8291
    83 post-configure {
    84         if {[variant_isset mysql] || [variant_isset mysql4]} {
    85                 reinplace "s|# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" Local/Makefile
    86                 reinplace "s|# LOOKUP_INCLUDE=.*|LOOKUP_INCLUDE=-I ${prefix}/include/mysql -I ${prefix}/include -I /usr/include|g" Local/Makefile
    87         }
    88 
    89         if {[variant_isset maildir ]} {
    90                 reinplace "s|# SUPPORT_MAILDIR=yes|SUPPORT_MAILDIR=yes|g" Local/Makefile       
    91         }
    92 
    93         if {[variant_isset smtp-auth ]} {
    94                 reinplace "s|# AUTH_CRAM_MD5=yes|AUTH_CRAM_MD5=yes|g" Local/Makefile
    95                 reinplace "s|# AUTH_PLAINTEXT=yes|AUTH_PLAINTEXT=yes|g" Local/Makefile
    96                 reinplace "s|# AUTH_SPA=yes|AUTH_SPA=yes|g" Local/Makefile     
    97         }
    98         if {[variant_isset tls ]} {
    99                 reinplace "s|# SUPPORT_TLS=yes|SUPPORT_TLS=yes|g" Local/Makefile
    100                 reinplace "s|# TLS_LIBS=-lssl -lcrypto|TLS_LIBS=-lssl -lcrypto|g" Local/Makefile
    101         }
    102         if {[variant_isset ldap]} {
    103                 reinplace "s|# LDAP_LIB_TYPE=OPENLDAP2|LDAP_LIB_TYPE=OPENLDAP2|g" Local/Makefile
    104                 reinplace "s|# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds|LOOKUP_LIBS=-lldap|g" Local/Makefile
    105         }
    10692}
    10793
Note: See TracChangeset for help on using the changeset viewer.