fd8ab7bae8
Version 3.34 ------------ 1. Exim was failing to diagnose a lone \ at the end of an expansion string as an error (basically a typo in the code). 2. If logging was only to syslog, and Exim was trying to panic-die, it crashed instead of dying cleanly. 3. If an address was routed using a DNS lookup that found no MX records, but one or more A records, and fallback hosts were specified on the transport, the fallback hosts were ignored. 4. $message_body_size was set incorrectly (to zero) during filter testing. 5. Ensure the configuration file is closed before running the -bi command. 6. Reap all complete processes within the loop for accepting -bs or -bS messages, because it seems that not all OS do this automatically when SIGCHLD is set to SIG_IGN. 7. Reset SIGHUP to SIG_IGN before restarting a daemon, in case another SIGHUP arrives very quickly and kills the newly started Exim before it has a chance to get going. 8. After "452 space shortage", was not unsetting the sender address. Could lead to strange effects when the client was pipelining. 9. There was no check that getpeername() was giving a socket address when called on stdin passed from a previous delivery. 10. If a local part beginning with a pipe symbol was directed to a pipe transport, the transport got confused as to which command it should run. This could be a security exposure if unchecked local parts are directed or routed to pipe transports.
92 lines
2.4 KiB
Makefile
92 lines
2.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.32 2001/12/29 12:55:08 peter Exp $
|
|
|
|
COMMENT= "flexible mail transfer agent"
|
|
|
|
VERSION= 3.34
|
|
VERSION_DOC= 3.30
|
|
DISTNAME= exim-${VERSION}
|
|
CATEGORIES= mail
|
|
NEED_VERSION= 1.502
|
|
MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim3/ \
|
|
ftp://ftp.exim.org/pub/exim/exim3/ \
|
|
ftp://ftp.fu-berlin.de/unix/mail/exim/exim3/
|
|
DISTFILES= exim-${VERSION}.tar.gz exim-texinfo-${VERSION_DOC}.tar.gz
|
|
|
|
HOMEPAGE= http://www.exim.org/
|
|
|
|
MAINTAINER= Peter Galbavy <peter.galbavy@knowtion.net>
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
# ldap - once openldap is supported by exim
|
|
FLAVORS= no_x11 no_perl mysql postgresql ldap no_ssl
|
|
FLAVOR?=
|
|
|
|
MAKE_ENV= FLAVOR="${FLAVOR}"
|
|
|
|
EXIM_MAKECAT=
|
|
EXIM_LOOKUP_INCLUDE=
|
|
EXIM_LOOKUP_LIB=
|
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
USE_X11= Yes
|
|
EXIM_MAKECAT+= "EXIM_MONITOR=eximon.bin\n"
|
|
.endif
|
|
|
|
.if !${FLAVOR:L:Mno_perl}
|
|
EXIM_MAKECAT+= "EXIM_PERL=perl.o\n"
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
LIB_DEPENDS+= ldap.2,lber:openldap-client-2.*:databases/openldap
|
|
EXIM_MAKECAT+= "LOOKUP_LDAP=yes\nLDAP_LIB_TYPE=OPENLDAP2\n"
|
|
EXIM_LOOKUP_INCLUDE+= -I${LOCALBASE}/include
|
|
EXIM_LOOKUP_LIBS+= -L${LOCALBASE}/lib -lldap -llber
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
LIBS+= ${LOCALBASE}/lib/mysql
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10:mysql-client-3.23.*:databases/mysql
|
|
EXIM_MAKECAT+= "LOOKUP_MYSQL=yes\n"
|
|
EXIM_LOOKUP_INCLUDE+= -I${LOCALBASE}/include/mysql
|
|
EXIM_LOOKUP_LIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
|
LIB_DEPENDS+= pq.2::databases/postgresql
|
|
EXIM_MAKECAT+= "LOOKUP_PGSQL=yes\n"
|
|
EXIM_LOOKUP_INCLUDE+= -I${LOCALBASE}/include/postgresql
|
|
EXIM_LOOKUP_LIBS+= -L${LOCALBASE}/lib -lpq
|
|
.endif
|
|
|
|
.if !${FLAVOR:L:Mno_ssl}
|
|
EXIM_MAKECAT+= "SUPPORT_TLS=yes\nTLS_LIBS=-lssl -lcrypto\n"
|
|
.endif
|
|
|
|
|
|
do-configure:
|
|
@mkdir -p ${WRKSRC}/Local
|
|
@cp ${FILESDIR}/Makefile ${WRKSRC}/Local
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
@cp ${FILESDIR}/eximon.conf ${WRKSRC}/Local
|
|
.endif
|
|
@echo -n ${EXIM_MAKECAT} >> ${WRKSRC}/Local/Makefile
|
|
@echo "LOOKUP_INCLUDE=${EXIM_LOOKUP_INCLUDE}">>${WRKSRC}/Local/Makefile
|
|
@echo "LOOKUP_LIBS=${EXIM_LOOKUP_LIBS}">>${WRKSRC}/Local/Makefile
|
|
@cd ${WRKSRC}/doc ; \
|
|
for i in ../../exim-texinfo-${VERSION_DOC}/doc/* ; do \
|
|
ln -sf $$i ; \
|
|
done
|
|
|
|
pre-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/exim
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/exim
|
|
${INSTALL_DATA} ${WRKSRC}/doc/spec.txt ${PREFIX}/share/doc/exim/spec.txt
|
|
|
|
.include <bsd.port.mk>
|