Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/1138

Submitted by:   bchesneau@mac.com (Benoit Chesneau)
Reviewed by:
Approved by:
Obtained from:
Port:	exim
Version:	4.30

- bump to version 4.30
- includes Benoit's fix (submitted for earlier revision) to properly support
mysql

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4332 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Felix Kronlage
Felix Kronlage committed Dec 28, 2003
1 parent 6794e81 commit 5b590ed852da46facd9594d8eb06824074bf5b1d
Showing with 25 additions and 20 deletions.
  1. +24 −8 mail/exim/Portfile
  2. +1 −1 mail/exim/files/patch-EDITME
  3. +0 −11 mail/exim/files/patch-Makefile-Darwin
@@ -1,8 +1,8 @@
# $Id: Portfile,v 1.19 2003/11/11 21:52:19 fkr Exp $
# $Id: Portfile,v 1.20 2003/12/28 12:34:49 fkr Exp $

PortSystem 1.0
name exim
version 4.24
version 4.30
categories mail
description complete replacement for sendmail
long_description Exim is a mail transfer agent (MTA) developed \
@@ -16,10 +16,11 @@ platforms darwin
maintainers fkr@opendarwin.org cms@opendarwin.org
master_sites ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \
ftp://ftp.exim.org/pub/exim/exim4/
checksums md5 74f4116be9b71991b54b91abd7c99eec
checksums md5 ba8fe22a527172bc3cf6481ba26712cb
depends_build bin:perl:perl5.8
depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup


set exim_user exim
patch.pre_args -p1

@@ -46,8 +47,23 @@ post-destroot { system "mv ${destroot}${prefix}/etc/exim/exim.conf ${destroot}${
system "touch '${destroot}${prefix}/var/spool/exim/.turd'"
reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/exim.sh }

platform darwin 7 { patchfiles-append patch-EDITME \
patch-Makefile-Darwin }

platform darwin 6 {

if {[variant_isset mysql] || [variant_isset mysql4]} {
patchfiles-append patch-EDITME
reinplace "s|LOOKUP_LIBS=-lresolv|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lmysqlclient|g" ${filespath}/patch-EDITME
}
}

platform darwin 7 {
patchfiles-append patch-EDITME

if {[variant_isset mysql] || [variant_isset mysql4]} {
reinplace "s|LOOKUP_LIBS=-lresolv|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lresolv -lmysqlclient|g" ${filespath}/patch-EDITME
}

}

variant smtp-auth { }
variant tls { }
@@ -58,14 +74,14 @@ variant exiscan { patch_sites http://duncanthrax.net/exiscan-acl/

variant mysql { depends_lib-append lib:libmysqlclient:mysql }

variant mysql4 { depends_lib-append lib:libmysqlclient:mysql4 }

variant maildir { }

post-configure {

if {[variant_isset mysql]} {
if {[variant_isset mysql] || [variant_isset mysql4]} {
reinplace "s|# LOOKUP_MYSQL=yes|LOOKUP_MYSQL=yes|g" Local/Makefile
reinplace "s|# LOOKUP_INCLUDE=.*|LOOKUP_INCLUDE=-I ${prefix}/include/mysql -I ${prefix}/include -I /usr/include|g" Local/Makefile
reinplace "s|# LOOKUP_LIBS=.*|LOOKUP_LIBS=-L${prefix}/lib/mysql -L${prefix}/lib -L/usr/lib -lmysqlclient|g" Local/Makefile
}

if {[variant_isset maildir ]} {
@@ -4,7 +4,7 @@

# LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include
# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds
+LOOKUP_LIBS=-lresolv
+LOOKUP_LIBS=-L/opt/local/lib/mysql -L/opt/local/lib -L/usr/lib -lresolv -lmysqlclient

#------------------------------------------------------------------------------
# Compiling the Exim monitor: If you want to compile the Exim monitor, a

This file was deleted.

0 comments on commit 5b590ed

Please sign in to comment.
You can’t perform that action at this time.