1996-07-06 11:13:58 +00:00
|
|
|
# New ports collection makefile for: exim
|
2000-01-28 15:57:48 +00:00
|
|
|
# Version required: 3.13
|
1996-07-06 11:13:58 +00:00
|
|
|
# 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-01-28 15:57:48 +00:00
|
|
|
DISTNAME= exim-3.13
|
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-01-28 15:57:48 +00:00
|
|
|
DISTFILES= exim-3.13.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
|
|
|
|
1998-12-08 15:23:43 +00:00
|
|
|
# If USE_XLIB is defined, the eximon monitor, which requires X, will be
|
1999-08-03 17:01:39 +00:00
|
|
|
# built. Comment it out unless you have or want XFree86 installed!
|
1998-11-28 05:39:01 +00:00
|
|
|
USE_XLIB= YES
|
1998-12-08 15:23:43 +00:00
|
|
|
|
1998-05-25 12:13:38 +00:00
|
|
|
USE_PERL5= YES
|
|
|
|
|
1999-06-17 08:46:27 +00:00
|
|
|
MAKE_ENV+= OSTYPE=${OPSYS} ARCHTYPE=${MACHINE_ARCH}
|
|
|
|
|
2000-03-13 08:03:50 +00:00
|
|
|
# Uncomment the USE_MYSQL and USE_PAM definitions to link against
|
|
|
|
# libmysqlclient and libpam respectively. The libpam linkage is
|
2000-01-28 15:57:48 +00:00
|
|
|
# required for SMTP AUTH support.
|
1999-08-03 17:01:39 +00:00
|
|
|
#USE_MYSQL= YES
|
2000-01-28 15:57:48 +00:00
|
|
|
#USE_PAM= YES
|
1999-08-03 17:01:39 +00:00
|
|
|
|
2000-01-28 15:57:48 +00:00
|
|
|
# If USE_PAM==YES then one or more of USE_CRAM_MD5 and USE_PLAINTEXT
|
|
|
|
# must be left uncommented.
|
|
|
|
PAM_CRAM_MD5= YES
|
|
|
|
PAM_PLAINTEXT= YES
|
|
|
|
|
2000-02-19 17:18:27 +00:00
|
|
|
# Uncomment to compile support for non-standard mailbox formats.
|
|
|
|
#USE_MAILDIR= YES
|
|
|
|
#USE_MAILSTORE= YES
|
|
|
|
#USE_MBX= YES
|
|
|
|
|
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},'
|
|
|
|
.if !defined(USE_XLIB) || ${USE_XLIB} != YES
|
|
|
|
SEDLIST+= -e 's/^EXIM_MONITOR/\#EXIM_MONITOR/'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_MYSQL) && ${USE_MYSQL} == YES
|
|
|
|
SEDLIST+= -e 's,XX_MYSQL_LIBS_XX,-L${PREFIX}/lib/mysql -lmysqlclient,' \
|
|
|
|
-e 's,XX_MYSQL_INCLUDE_XX,-I${PREFIX}/include/mysql,'
|
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_MYSQL_[^ ]*_XX,,'
|
|
|
|
.endif
|
|
|
|
|
2000-03-13 08:03:50 +00:00
|
|
|
.if ( !defined(USE_MYSQL) || ${USE_MYSQL} != YES )
|
1999-08-03 17:01:39 +00:00
|
|
|
SEDLIST+= -e 's/^LOOKUP_LIBS/\#LOOKUP_LIBS/' \
|
|
|
|
-e 's/^LOOKUP_INCLUDE/\#LOOKUP_INCLUDE/'
|
|
|
|
.endif
|
|
|
|
|
2000-01-28 15:57:48 +00:00
|
|
|
.if ( !defined(USE_PAM) || ${USE_PAM} != YES )
|
|
|
|
SEDLIST+= -e 's/^SUPPORT_PAM/\#SUPPORT_PAM/' \
|
|
|
|
-e 's/^PAM_LIBS/\#PAM_LIBS/'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ( !defined(USE_PAM) || ${USE_PAM} != YES ) || \
|
|
|
|
( !defined(PAM_CRAM_MD5) || ${PAM_CRAM_MD5} != YES )
|
|
|
|
SEDLIST+= -e 's/^AUTH_CRAM_MD5/\#AUTH_CRAM_MD5/'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ( !defined(USE_PAM) || ${USE_PAM} != YES ) || \
|
|
|
|
( !defined(PAM_PLAINTEXT) || ${PAM_PLAINTEXT} != YES )
|
|
|
|
SEDLIST+= -e 's/^AUTH_PLAINTEXT/\#AUTH_PLAINTEXT/'
|
|
|
|
.endif
|
|
|
|
|
2000-02-19 17:18:27 +00:00
|
|
|
.if defined(USE_MAILDIR) && ${USE_MAILDIR} == YES
|
|
|
|
SEDLIST+= -e 's/^\# SUPPORT_MAILDIR/SUPPORT_MAILDIR/'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_MAILSTORE) && ${USE_MAILSTORE} == YES
|
|
|
|
SEDLIST+= -e 's/^\# SUPPORT_MAILSTORE/SUPPORT_MAILSTORE/'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(USE_MBX) && ${USE_MBX} == YES
|
|
|
|
SEDLIST+= -e 's/^\# SUPPORT_MBX/SUPPORT_MBX/'
|
|
|
|
.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>
|