1996-07-06 11:13:58 +00:00
|
|
|
# New ports collection makefile for: exim
|
|
|
|
# Date created: 23 June 1996
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: markm@FreeBSD.org
|
1996-07-06 11:13:58 +00:00
|
|
|
#
|
1999-08-25 06:51:17 +00:00
|
|
|
# $FreeBSD$
|
1996-07-06 11:13:58 +00:00
|
|
|
#
|
|
|
|
|
2000-04-13 20:01:08 +00:00
|
|
|
PORTNAME= exim
|
2000-05-23 09:23:45 +00:00
|
|
|
PORTVERSION= 3.14
|
1996-11-10 21:32:56 +00:00
|
|
|
CATEGORIES= mail
|
1998-12-17 10:54:24 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cus.cam.ac.uk/pub/software/programs/exim/ \
|
|
|
|
http://www.exim.org/ftp/ \
|
|
|
|
ftp://ftp.is.co.za/networking/mail/transport/exim/
|
2000-05-23 09:23:45 +00:00
|
|
|
DISTFILES= exim-3.14.tar.gz exim-texinfo-3.10.tar.gz
|
1996-07-09 21:24:47 +00:00
|
|
|
|
1999-06-21 11:07:15 +00:00
|
|
|
MAINTAINER= sheldonh@FreeBSD.org
|
1996-07-06 11:13:58 +00:00
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
# If WITHOUT_X11 is not defined, the eximon monitor, which requires X, will
|
|
|
|
# be built. Comment it out unless you have or want XFree86 installed!
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
USE_XLIB= yes
|
|
|
|
.endif
|
1998-12-08 15:23:43 +00:00
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
USE_PERL5= yes
|
1998-05-25 12:13:38 +00:00
|
|
|
|
1999-06-17 08:46:27 +00:00
|
|
|
MAKE_ENV+= OSTYPE=${OPSYS} ARCHTYPE=${MACHINE_ARCH}
|
|
|
|
|
2000-05-23 09:23:45 +00:00
|
|
|
# Uncomment the WITH_LDAP, WITH_MYSQL, WITH_PAM and WITH_PGSQL definitions
|
|
|
|
# to link against libmysqlclient, libpam and libpq respectively.
|
|
|
|
# The libpam linkage is required for SMTP AUTH support.
|
|
|
|
#WITH_LDAP= yes
|
2000-04-17 00:19:02 +00:00
|
|
|
#WITH_MYSQL= yes
|
|
|
|
#WITH_PAM= yes
|
2000-05-23 09:23:45 +00:00
|
|
|
#WITH_PGSQL= yes
|
|
|
|
|
|
|
|
# Enable the embedded Perl interpreter, allowing Perl subroutines to be
|
|
|
|
# called during string expansion.
|
|
|
|
WITH_PERL= yes
|
1999-08-03 17:01:39 +00:00
|
|
|
|
2000-05-18 13:59:30 +00:00
|
|
|
# If WITH_PAM is defined then one or more of PAM_CRAM_MD5 and PAM_PLAINTEXT
|
2000-01-28 15:57:48 +00:00
|
|
|
# must be left uncommented.
|
2000-04-17 00:19:02 +00:00
|
|
|
PAM_CRAM_MD5= yes
|
|
|
|
PAM_PLAINTEXT= yes
|
2000-01-28 15:57:48 +00:00
|
|
|
|
2000-05-18 13:59:30 +00:00
|
|
|
# If WITH_LDAP is defined, LDAP_LIB_TYPE must be one of UMICHIGAN,
|
|
|
|
# NETSCAPE or SOLARIS7.
|
|
|
|
LDAP_LIB_TYPE=UMICHIGAN
|
|
|
|
|
2000-02-19 17:18:27 +00:00
|
|
|
# Uncomment to compile support for non-standard mailbox formats.
|
2000-04-17 00:19:02 +00:00
|
|
|
#WITH_MAILDIR= yes
|
|
|
|
#WITH_MAILSTORE= yes
|
|
|
|
#WITH_MBX= yes
|
2000-02-19 17:18:27 +00:00
|
|
|
|
1999-08-03 17:01:39 +00:00
|
|
|
# You should not need to fiddle with anything below this point.
|
|
|
|
|
|
|
|
SEDLIST= -e 's,XX_PREFIX_XX,${PREFIX},' \
|
|
|
|
-e 's,XX_BINOWN_XX,${BINOWN},'
|
2000-04-17 00:19:02 +00:00
|
|
|
.if !defined(USE_XLIB)
|
2000-05-23 09:23:45 +00:00
|
|
|
SEDLIST+= -e 's,^EXIM_MONITOR,\#EXIM_MONITOR,'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_PERL)
|
|
|
|
SEDLIST+= -e 's,^EXIM_PERL,\#EXIM_PERL,'
|
1999-08-03 17:01:39 +00:00
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_LDAP)
|
2000-04-04 11:51:19 +00:00
|
|
|
LIB_DEPENDS+= lber.1:${PORTSDIR}/net/openldap
|
|
|
|
SEDLIST+= -e 's,XX_LDAP_LIBS_XX,-L${PREFIX}/lib -llber -lldap,' \
|
|
|
|
-e 's,XX_LDAP_INCLUDE_XX,-I${PREFIX}/include,' \
|
|
|
|
-e 's,XX_LDAP_TYPE_XX,${LDAP_LIB_TYPE},' \
|
|
|
|
-e 's,^\# LOOKUP_LDAP,LOOKUP_LDAP,'
|
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_LDAP_[^ ]*_XX,,' \
|
|
|
|
-e 's,^LDAP_LIB_TYPE,\#LDAP_LIB_TYPE,'
|
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_MYSQL)
|
2000-04-04 11:51:19 +00:00
|
|
|
LIB_DEPENDS+= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
|
1999-08-03 17:01:39 +00:00
|
|
|
SEDLIST+= -e 's,XX_MYSQL_LIBS_XX,-L${PREFIX}/lib/mysql -lmysqlclient,' \
|
2000-04-04 11:51:19 +00:00
|
|
|
-e 's,XX_MYSQL_INCLUDE_XX,-I${PREFIX}/include/mysql,' \
|
|
|
|
-e 's,^\# LOOKUP_MYSQL,LOOKUP_MYSQL,'
|
1999-08-03 17:01:39 +00:00
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_MYSQL_[^ ]*_XX,,'
|
|
|
|
.endif
|
|
|
|
|
2000-05-23 09:23:45 +00:00
|
|
|
.if defined(WITH_PAM)
|
|
|
|
SEDLIST+= -e 's,XX_PAM_LIBS_XX,-lpam,'
|
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_PAM_LIBS_XX,,' \
|
|
|
|
-e 's,^SUPPORT_PAM,\#SUPPORT_PAM,'
|
2000-01-28 15:57:48 +00:00
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if !defined(WITH_PAM) || !defined(PAM_CRAM_MD5)
|
2000-05-23 09:23:45 +00:00
|
|
|
SEDLIST+= -e 's,^AUTH_CRAM_MD5,\#AUTH_CRAM_MD5,'
|
2000-01-28 15:57:48 +00:00
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if !defined(WITH_PAM) || !defined(PAM_PLAINTEXT)
|
2000-05-23 09:23:45 +00:00
|
|
|
SEDLIST+= -e 's,^AUTH_PLAINTEXT,\#AUTH_PLAINTEXT,'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
2000-05-31 07:27:49 +00:00
|
|
|
LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql
|
2000-05-23 09:23:45 +00:00
|
|
|
SEDLIST+= -e 's,XX_PGSQL_LIBS_XX,-L${PREFIX}/pgsql/lib -lpq,' \
|
|
|
|
-e 's,XX_PGSQL_INCLUDE_XX,-I${PREFIX}/pgsql/include,' \
|
|
|
|
-e 's,^\# LOOKUP_PGSQL,LOOKUP_PGSQL,'
|
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_PGSQL_[^ ]*_XX,,'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_PGSQL) && !defined(WITH_MYSQL) && !defined(WITH_LDAP)
|
|
|
|
SEDLIST+= -e 's,^LOOKUP_LIBS,\#LOOKUP_LIBS,' \
|
|
|
|
-e 's,^LOOKUP_INCLUDE,\#LOOKUP_INCLUDE,'
|
2000-01-28 15:57:48 +00:00
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_MAILDIR)
|
2000-05-23 09:23:45 +00:00
|
|
|
SEDLIST+= -e 's,^\# SUPPORT_MAILDIR,SUPPORT_MAILDIR,'
|
2000-02-19 17:18:27 +00:00
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_MAILSTORE)
|
2000-05-23 09:23:45 +00:00
|
|
|
SEDLIST+= -e 's,^\# SUPPORT_MAILSTORE,SUPPORT_MAILSTORE,'
|
2000-02-19 17:18:27 +00:00
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_MBX)
|
2000-05-23 09:23:45 +00:00
|
|
|
SEDLIST+= -e 's,^\# SUPPORT_MBX,SUPPORT_MBX,'
|
2000-02-19 17:18:27 +00:00
|
|
|
.endif
|
|
|
|
|
1999-08-03 17:01:39 +00:00
|
|
|
do-configure:
|
|
|
|
${MKDIR} ${WRKSRC}/Local
|
|
|
|
${SED} ${SEDLIST} < ${FILESDIR}/Makefile > ${WRKSRC}/Local/Makefile
|
|
|
|
${SED} ${SEDLIST} < ${FILESDIR}/configure.default \
|
|
|
|
> ${WRKSRC}/src/configure.default
|
1998-10-07 10:49:32 +00:00
|
|
|
${CP} ${FILESDIR}/eximon.conf ${WRKSRC}/Local
|
|
|
|
cd ${WRKSRC}/doc && \
|
1999-12-02 15:41:50 +00:00
|
|
|
for i in ../../exim-texinfo-3.10/doc/* ; do \
|
1999-08-28 01:58:05 +00:00
|
|
|
${LN} -sf $$i ; \
|
1998-10-07 10:49:32 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
post-build:
|
1999-06-16 02:55:31 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/exim.sh \
|
|
|
|
${WRKSRC}/build-${OPSYS}-${MACHINE_ARCH}
|
|
|
|
${TOUCH} ${WRKSRC}/build-${OPSYS}-${MACHINE_ARCH}/eximon.bin
|
|
|
|
${TOUCH} ${WRKSRC}/build-${OPSYS}-${MACHINE_ARCH}/eximon
|
1998-10-07 10:49:32 +00:00
|
|
|
|
1996-07-06 11:13:58 +00:00
|
|
|
.include <bsd.port.mk>
|