1996-07-06 07:13:58 -04:00
|
|
|
# New ports collection makefile for: exim
|
|
|
|
# Date created: 23 June 1996
|
1999-08-31 02:53:31 -04:00
|
|
|
# Whom: markm@FreeBSD.org
|
1996-07-06 07:13:58 -04:00
|
|
|
#
|
1999-08-25 02:51:17 -04:00
|
|
|
# $FreeBSD$
|
1996-07-06 07:13:58 -04:00
|
|
|
#
|
|
|
|
|
2000-04-13 16:01:08 -04:00
|
|
|
PORTNAME= exim
|
2001-08-16 05:54:51 -04:00
|
|
|
PORTVERSION= 3.33
|
2001-11-14 06:25:42 -05:00
|
|
|
PORTREVISION= 4
|
1996-11-10 16:32:56 -05:00
|
|
|
CATEGORIES= mail
|
2001-04-30 06:38:00 -04:00
|
|
|
MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/ \
|
1998-12-17 05:54:24 -05:00
|
|
|
http://www.exim.org/ftp/ \
|
|
|
|
ftp://ftp.is.co.za/networking/mail/transport/exim/
|
2001-08-16 05:54:51 -04:00
|
|
|
DISTFILES= exim-3.33.tar.bz2 exim-texinfo-3.30.tar.bz2
|
1996-07-09 17:24:47 -04:00
|
|
|
|
1999-06-21 07:07:15 -04:00
|
|
|
MAINTAINER= sheldonh@FreeBSD.org
|
1996-07-06 07:13:58 -04:00
|
|
|
|
2001-08-16 05:54:51 -04:00
|
|
|
USE_BZIP2= yes
|
2001-09-11 07:06:54 -04:00
|
|
|
|
2001-09-12 19:46:55 -04:00
|
|
|
.if defined(NOPORTDOCS)
|
2001-09-11 07:06:54 -04:00
|
|
|
PKGMESSAGE= ${FILESDIR}/POST-INSTALL-NOTES
|
|
|
|
.endif
|
2001-07-10 06:47:29 -04:00
|
|
|
|
|
|
|
MAKE_ENV+= OSTYPE=${OPSYS} ARCHTYPE=${MACHINE_ARCH}
|
|
|
|
|
2001-08-27 09:23:52 -04:00
|
|
|
# If WITH_EXIMON is defined, the eximon monitor, which requires X,
|
|
|
|
# will be made a dependency. Note that using WITH_EXIMON will cause
|
|
|
|
# XFree86 to be installed if it is not present.
|
|
|
|
#WITH_EXIMON= yes
|
1999-06-17 04:46:27 -04:00
|
|
|
|
2001-06-10 09:59:43 -04:00
|
|
|
# Define WITH_TCP_WRAPPERS, WITH_LDAP, WITH_MYSQL, and WITH_PGSQL to
|
|
|
|
# link against libwrap, an LDAP library (see below), liblibmysqlclient
|
|
|
|
# and libpq respectively.
|
|
|
|
#WITH_TCP_WRAPPERS= yes
|
|
|
|
#WITH_LDAP= yes
|
|
|
|
#WITH_MYSQL= yes
|
|
|
|
#WITH_PGSQL= yes
|
2000-05-23 05:23:45 -04:00
|
|
|
|
2001-07-10 06:47:29 -04:00
|
|
|
# Define WITHOUT_IPV6 to exclude IPv6 support from the compiled exim
|
|
|
|
# binary. Exim compiled with IPv6 support will still operate on
|
|
|
|
# systems that do not have IPv6 kernel support, so this should not
|
|
|
|
# be necessary.
|
|
|
|
#WITHOUT_IPV6= yes
|
2001-06-12 14:05:59 -04:00
|
|
|
|
2001-07-03 07:14:13 -04:00
|
|
|
# If WITH_LDAP is defined, LDAP_LIB_TYPE must be either OPENLDAP1 or
|
|
|
|
# OPENLDAP2. UMICHIGAN is an alias for OPENLDAP1. Exim also supports
|
|
|
|
# NETSCAPE and SOLARIS7 lookup types, but no client libraries exist
|
|
|
|
# for these in the ports tree.
|
|
|
|
LDAP_LIB_TYPE?=OPENLDAP1
|
2000-05-18 09:59:30 -04:00
|
|
|
|
2001-06-11 03:20:07 -04:00
|
|
|
# The following options may be defined to turn off support for various
|
|
|
|
# features that this port enables by default.
|
|
|
|
#
|
|
|
|
# Do not link against OpenSSL; disables STARTTLS.
|
|
|
|
#WITHOUT_TLS= yes
|
|
|
|
#
|
|
|
|
# Disable the embedded Perl interpreter, which allows Perl subroutines to
|
|
|
|
# be called during string expansion.
|
|
|
|
#WITHOUT_PERL= yes
|
|
|
|
#
|
|
|
|
# Disable built-in Exim support for the PAM, RFC 2195 and RFC 2595
|
|
|
|
# authentication mechanisms, used for SMTP AUTH.
|
|
|
|
#WITHOUT_PAM= yes
|
|
|
|
#WITHOUT_AUTH_CRAM_MD5= yes
|
|
|
|
#WITHOUT_AUTH_PLAINTEXT= yes
|
|
|
|
#
|
|
|
|
# Disable built-in Exim support for additional mailbox formats.
|
|
|
|
#WITHOUT_MAILDIR= yes
|
|
|
|
#WITHOUT_MAILSTORE= yes
|
|
|
|
#WITHOUT_MBX= yes
|
2001-06-11 05:40:24 -04:00
|
|
|
#
|
|
|
|
# Disable support for CDB-style lookups.
|
|
|
|
#WITHOUT_CDB= yes
|
2000-02-19 12:18:27 -05:00
|
|
|
|
1999-08-03 13:01:39 -04:00
|
|
|
# You should not need to fiddle with anything below this point.
|
|
|
|
|
2001-08-27 09:23:52 -04:00
|
|
|
.if defined(WITH_EXIMON)
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/eximon:${PORTSDIR}/mail/exim-monitor
|
2001-07-10 06:47:29 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 400014
|
|
|
|
WITHOUT_IPV6= yes
|
|
|
|
.endif
|
|
|
|
|
2001-08-27 09:23:52 -04:00
|
|
|
SEDLIST= -e 's,XX_PREFIX_XX,${PREFIX},'
|
2000-05-23 05:23:45 -04:00
|
|
|
|
2001-06-11 03:20:07 -04:00
|
|
|
.if !defined(WITHOUT_TLS)
|
2001-06-11 03:49:53 -04:00
|
|
|
SEDLIST+= -e 's,^\# SUPPORT_TLS=,SUPPORT_TLS=,'
|
2001-06-11 03:53:55 -04:00
|
|
|
.else
|
2001-08-27 09:23:52 -04:00
|
|
|
SEDLIST+= -e 's,^TLS_LIBS=,\#TLS_LIBS=,'
|
2000-12-21 03:56:52 -05:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 03:20:07 -04:00
|
|
|
.if !defined(WITHOUT_PERL)
|
2001-06-11 03:07:07 -04:00
|
|
|
SEDLIST+= -e 's,^\# EXIM_PERL=,EXIM_PERL=,'
|
1999-08-03 13:01:39 -04:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 03:20:07 -04:00
|
|
|
.if defined(WITH_TCP_WRAPPERS)
|
2001-06-10 09:59:43 -04:00
|
|
|
SEDLIST+= -e 's,XX_TCP_WRAPPERS_LIBS_XX,-lwrap,' \
|
2001-06-11 03:07:07 -04:00
|
|
|
-e 's,^\# USE_TCP_WRAPPERS=,USE_TCP_WRAPPERS=,'
|
2001-06-11 03:21:46 -04:00
|
|
|
.else
|
2001-06-11 03:22:50 -04:00
|
|
|
SEDLIST+= -e 's,XX_TCP_WRAPPERS_LIBS_XX,,'
|
2001-06-10 09:59:43 -04:00
|
|
|
.endif
|
|
|
|
|
2000-04-16 20:19:02 -04:00
|
|
|
.if defined(WITH_LDAP)
|
2001-07-03 07:14:13 -04:00
|
|
|
.if (${LDAP_LIB_TYPE} == OPENLDAP1) || (${LDAP_LIB_TYPE} == UMICHIGAN)
|
2000-04-04 07:51:19 -04:00
|
|
|
LIB_DEPENDS+= lber.1:${PORTSDIR}/net/openldap
|
2001-07-03 07:14:13 -04:00
|
|
|
.elif ${LDAP_LIB_TYPE} == OPENLDAP2
|
|
|
|
LIB_DEPENDS+= lber.2:${PORTSDIR}/net/openldap2
|
|
|
|
.else
|
|
|
|
.error LDAP_LIB_TYPE must be either OPENLDAP1 or OPENLDAP2
|
|
|
|
.endif
|
2001-08-27 09:23:52 -04:00
|
|
|
SEDLIST+= -e 's,XX_LDAP_LIBS_XX,-L${LOCALBASE}/lib -llber -lldap,' \
|
|
|
|
-e 's,XX_LDAP_INCLUDE_XX,-I${LOCALBASE}/include,' \
|
2000-04-04 07:51:19 -04:00
|
|
|
-e 's,XX_LDAP_TYPE_XX,${LDAP_LIB_TYPE},' \
|
2001-06-11 03:07:07 -04:00
|
|
|
-e 's,^\# LOOKUP_LDAP=,LOOKUP_LDAP=,'
|
2000-04-04 07:51:19 -04:00
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_LDAP_[^ ]*_XX,,' \
|
2001-08-27 09:23:52 -04:00
|
|
|
-e 's,^LDAP_LIB_TYPE=,\#LDAP_LIB_TYPE=,'
|
2000-04-04 07:51:19 -04:00
|
|
|
.endif
|
|
|
|
|
2000-04-16 20:19:02 -04:00
|
|
|
.if defined(WITH_MYSQL)
|
2001-01-21 10:40:47 -05:00
|
|
|
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
2001-08-27 09:23:52 -04:00
|
|
|
SEDLIST+= -e 's,XX_MYSQL_LIBS_XX,-L${LOCALBASE}/lib/mysql -lmysqlclient,' \
|
|
|
|
-e 's,XX_MYSQL_INCLUDE_XX,-I${LOCALBASE}/include/mysql,' \
|
2001-06-11 03:07:07 -04:00
|
|
|
-e 's,^\# LOOKUP_MYSQL=,LOOKUP_MYSQL=,'
|
1999-08-03 13:01:39 -04:00
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_MYSQL_[^ ]*_XX,,'
|
|
|
|
.endif
|
|
|
|
|
2001-06-11 03:20:07 -04:00
|
|
|
.if !defined(WITHOUT_PAM)
|
2001-06-10 09:43:50 -04:00
|
|
|
SEDLIST+= -e 's,XX_PAM_LIBS_XX,-lpam,' \
|
2001-06-11 03:07:07 -04:00
|
|
|
-e 's,^\# SUPPORT_PAM=,SUPPORT_PAM=,'
|
2000-05-23 05:23:45 -04:00
|
|
|
.else
|
2001-06-10 09:43:50 -04:00
|
|
|
SEDLIST+= -e 's,XX_PAM_LIBS_XX,,'
|
2000-01-28 10:57:48 -05:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 03:20:07 -04:00
|
|
|
.if !defined(WITHOUT_AUTH_CRAM_MD5)
|
2001-06-11 03:07:07 -04:00
|
|
|
SEDLIST+= -e 's,^\# AUTH_CRAM_MD5=,AUTH_CRAM_MD5=,'
|
2000-01-28 10:57:48 -05:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 03:20:07 -04:00
|
|
|
.if !defined(WITHOUT_AUTH_PLAINTEXT)
|
2001-06-11 03:07:07 -04:00
|
|
|
SEDLIST+= -e 's,^\# AUTH_PLAINTEXT=,AUTH_PLAINTEXT=,'
|
2000-05-23 05:23:45 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
2000-08-26 12:34:17 -04:00
|
|
|
LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql7
|
2001-08-27 09:23:52 -04:00
|
|
|
SEDLIST+= -e 's,XX_PGSQL_LIBS_XX,-L${LOCALBASE}/lib -lpq,' \
|
|
|
|
-e 's,XX_PGSQL_INCLUDE_XX,-I${LOCALBASE}/include/pgsql,' \
|
2001-06-11 03:07:07 -04:00
|
|
|
-e 's,^\# LOOKUP_PGSQL=,LOOKUP_PGSQL=,'
|
2000-05-23 05:23:45 -04:00
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_PGSQL_[^ ]*_XX,,'
|
|
|
|
.endif
|
|
|
|
|
2001-07-10 06:47:29 -04:00
|
|
|
.if !defined(WITHOUT_IPV6)
|
2001-06-12 14:05:59 -04:00
|
|
|
SEDLIST+= -e 's,^\# HAVE_IPV6=,HAVE_IPV6=,'
|
|
|
|
.endif
|
|
|
|
|
2000-05-23 05:23:45 -04:00
|
|
|
.if !defined(WITH_PGSQL) && !defined(WITH_MYSQL) && !defined(WITH_LDAP)
|
2001-08-27 09:23:52 -04:00
|
|
|
SEDLIST+= -e 's,^LOOKUP_LIBS=,\#LOOKUP_LIBS=,' \
|
|
|
|
-e 's,^LOOKUP_INCLUDE=,\#LOOKUP_INCLUDE=,'
|
2000-01-28 10:57:48 -05:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 03:20:07 -04:00
|
|
|
.if !defined(WITHOUT_MAILDIR)
|
2001-06-11 03:07:07 -04:00
|
|
|
SEDLIST+= -e 's,^\# SUPPORT_MAILDIR=,SUPPORT_MAILDIR=,'
|
2000-02-19 12:18:27 -05:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 05:40:24 -04:00
|
|
|
.if !defined(WITHOUT_MAILSTORE)
|
2001-06-11 03:07:07 -04:00
|
|
|
SEDLIST+= -e 's,^\# SUPPORT_MAILSTORE=,SUPPORT_MAILSTORE=,'
|
2000-02-19 12:18:27 -05:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 05:40:24 -04:00
|
|
|
.if !defined(WITHOUT_MBX)
|
2001-06-11 03:07:07 -04:00
|
|
|
SEDLIST+= -e 's,^\# SUPPORT_MBX=,SUPPORT_MBX=,'
|
2000-02-19 12:18:27 -05:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 05:40:24 -04:00
|
|
|
.if !defined(WITHOUT_CDB)
|
|
|
|
SEDLIST+= -e 's,^\# LOOKUP_CDB=,LOOKUP_CDB=,'
|
|
|
|
.endif
|
|
|
|
|
1999-08-03 13:01:39 -04:00
|
|
|
do-configure:
|
|
|
|
${MKDIR} ${WRKSRC}/Local
|
2001-06-11 03:49:53 -04:00
|
|
|
${SED} ${SEDLIST} < ${WRKSRC}/src/EDITME > ${WRKSRC}/Local/Makefile
|
1998-10-07 06:49:32 -04:00
|
|
|
cd ${WRKSRC}/doc && \
|
2001-06-18 11:41:39 -04:00
|
|
|
for i in ../../exim-texinfo-3.30/doc/* ; do \
|
1999-08-27 21:58:05 -04:00
|
|
|
${LN} -sf $$i ; \
|
1998-10-07 06:49:32 -04:00
|
|
|
done
|
|
|
|
|
2001-06-11 05:20:20 -04:00
|
|
|
pre-install:
|
|
|
|
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
2001-06-12 14:05:59 -04:00
|
|
|
post-install:
|
2001-09-11 07:06:54 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/exim
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/POST-INSTALL-NOTES ${PREFIX}/share/doc/exim
|
|
|
|
.endif
|
2001-06-14 13:37:59 -04:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2001-07-10 06:47:29 -04:00
|
|
|
.include <bsd.port.post.mk>
|