Ignore:
Timestamp:
Apr 29, 2003, 12:04:35 AM (16 years ago)
Author:
fkr
Message:

Bug: #504
Submitted by: Benoit Chesneau <bchesneau@…>
Reviewed by:
Approved by:
Obtained from:

add's an maildir and mysql-variant, plus declares the dependency on
the StartUpItem.

File:
1 edited

Legend:

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

    r2524 r2566  
    1 # $Id: Portfile,v 1.11 2003/04/22 23:04:42 fkr Exp $
     1# $Id: Portfile,v 1.12 2003/04/29 00:04:35 fkr Exp $
    22
    33PortSystem 1.0
    44name            exim
    5 version         4.14
    6 revision        1
    7 categories      mail
     5version         4.14
     6revision        2
     7categories      mail
    88description     complete replacement for sendmail
    9 long_description        Exim is a mail transfer agent (MTA) developed \
    10                         at the University of Cambridge for use on Unix \
    11                         systems connected to the Internet. It is freely \
    12                         available under the terms of the GNU General \
    13                         Public Licence. In overall style it is similar \
    14                         to Smail 3, but its facilities are more extensive.
    15 homepage        http://www.exim.org/
    16 platforms       darwin
     9long_description        Exim is a mail transfer agent (MTA) developed \
     10                        at the University of Cambridge for use on Unix \
     11                        systems connected to the Internet. It is freely \
     12                        available under the terms of the GNU General \
     13                        Public Licence. In overall style it is similar \
     14                        to Smail 3, but its facilities are more extensive.
     15homepage        http://www.exim.org/
     16platforms       darwin
    1717maintainers     fkr@opendarwin.org
    1818master_sites    ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \
    1919                ftp://ftp.exim.org/pub/exim/exim4/
    20 checksums       exim-4.14.tar.gz md5 bebd65023b117e2fa7dcea46f1129556
     20checksums       exim-4.14.tar.gz md5 bebd65023b117e2fa7dcea46f1129556
    2121depends_lib     path:/usr/include/netinet/ip_var.h:netinet-headers
    22 depends_build   bin:perl:perl5.8=09
     22depends_build   bin:perl:perl5.8=09
     23depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    2324
    24 set exim_user   exim
     25set exim_user   exim
    2526
    26 configure   {   cd ${worksrcpath}
    27                 system "cp src/EDITME Local/Makefile"
    28                 reinplace "s|/usr/exim/bin|${prefix}/sbin|g" Local/Makefile
    29                 reinplace "s|/usr/exim/configure|${prefix}/etc/exim/exim.conf|g" Local/Makefile
    30                 reinplace "s|EXIM_USER=|EXIM_USER=${exim_user}|g" Local/Makefile
    31                 reinplace "s|/var/spool/exim|${prefix}/var/spool/exim|g" Local/Makefile
    32                 reinplace "s|EXIM_MONITOR=eximon.bin|#EXIM_MONITOR=eximon.bin|g" Local/Makefile
     27configure   {   cd ${worksrcpath}
     28                system "cp src/EDITME Local/Makefile"
     29                reinplace "s|/usr/exim/bin|${prefix}/sbin|g" Local/Makefile
     30                reinplace "s|/usr/exim/configure|${prefix}/etc/exim/exim.conf|g" Local/Makefile
     31                reinplace "s|EXIM_USER=|EXIM_USER=${exim_user}|g" Local/Makefile
     32                reinplace "s|/var/spool/exim|${prefix}/var/spool/exim|g" Local/Makefile
     33                reinplace "s|EXIM_MONITOR=eximon.bin|#EXIM_MONITOR=eximon.bin|g" Local/Makefile
    3334
    3435#Should be in pre-deployment/user addition phase
     
    4647                 reinplace "s|__PREFIX|${prefix}|g" ${prefix}/etc/rc.d/exim.sh }
    4748
    48 variant smtp-auth {
    49                 post-configure { reinplace "s|#AUTH_CRAM_MD5=yes|AUTH_CRAM_MD5=yes|g" Local/Makefile
    50                                  reinplace "s|#AUTH_PLAINTEXT=yes|AUTH_PLAINTEXT=yes|g" Local/Makefile
    51                                  reinplace "s|#AUTH_SPA=yes|AUTH_SPA=yes|g" Local/Makefile } }
     49variant smtp-auth { }
    5250
    5351variant exiscan {
     
    5654                checksums-append        exiscan-4.14-26.tar.gz md5 3bd9b18f55c079bcd9af2eb07fec469b
    5755                patch.pre_args          -p1 }
     56
     57variant mysql { depends_lib-append      lib:libmysqlclient:mysql }
     58
     59variant maildir { }
     60
     61post-configure {
     62       
     63        if {[variant_isset mysql]} {
     64                reinplace "s|# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" Local/Makefile
     65                reinplace "s|# LOOKUP_INCLUDE=.*|LOOKUP_INCLUDE=-I ${prefix}/include/mysql -I ${prefix}/include -I /usr/include|g" Local/Makefile
     66                reinplace "s|# LOOKUP_LIBS=.*|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lmysqlclient|g" Local/Makefile
     67        }
     68
     69        if {[variant_isset maildir ]} {
     70                reinplace "s|# SUPPORT_MAILDIR=yes|SUPPORT_MAILDIR=yes|g" Local/Makefile       
     71        }
     72
     73        if {[variant_isset smtp_auth ]} {
     74                reinplace "s|#AUTH_CRAM_MD5=yes|AUTH_CRAM_MD5=yes|g" Local/Makefile
     75                reinplace "s|#AUTH_PLAINTEXT=yes|AUTH_PLAINTEXT=yes|g" Local/Makefile
     76                reinplace "s|#AUTH_SPA=yes|AUTH_SPA=yes|g" Local/Makefile       
     77        }
     78}
Note: See TracChangeset for help on using the changeset viewer.