2004-07-26 06:14:27 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2004/07/26 10:14:27 peter Exp $
|
2001-04-21 14:54:11 -04:00
|
|
|
|
2001-12-03 10:06:30 -05:00
|
|
|
COMMENT= "flexible mail transfer agent"
|
1997-11-14 19:04:24 -05:00
|
|
|
|
2002-11-20 19:15:10 -05:00
|
|
|
VERSION= 3.36
|
2001-09-07 18:15:50 -04:00
|
|
|
VERSION_DOC= 3.30
|
2001-07-25 04:18:48 -04:00
|
|
|
DISTNAME= exim-${VERSION}
|
2004-05-10 03:42:32 -04:00
|
|
|
PKGNAME= ${DISTNAME}p3
|
1997-11-14 19:04:24 -05:00
|
|
|
CATEGORIES= mail
|
2002-10-27 12:21:39 -05:00
|
|
|
|
2001-12-03 10:06:30 -05:00
|
|
|
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/
|
2001-09-07 18:15:50 -04:00
|
|
|
DISTFILES= exim-${VERSION}.tar.gz exim-texinfo-${VERSION_DOC}.tar.gz
|
2000-08-02 11:44:11 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.exim.org/
|
1997-11-14 19:04:24 -05:00
|
|
|
|
2001-09-07 18:23:46 -04:00
|
|
|
MAINTAINER= Peter Galbavy <peter.galbavy@knowtion.net>
|
1999-03-31 17:39:43 -05:00
|
|
|
|
2000-03-16 22:25:57 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2000-12-07 10:27:33 -05:00
|
|
|
# ldap - once openldap is supported by exim
|
2001-04-21 14:54:11 -04:00
|
|
|
FLAVORS= no_x11 no_perl mysql postgresql ldap no_ssl
|
2000-08-02 11:44:11 -04:00
|
|
|
FLAVOR?=
|
2000-08-12 19:57:45 -04:00
|
|
|
|
|
|
|
MAKE_ENV= FLAVOR="${FLAVOR}"
|
2004-05-10 04:42:42 -04:00
|
|
|
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}"
|
2000-12-07 10:27:33 -05:00
|
|
|
|
|
|
|
EXIM_MAKECAT=
|
|
|
|
EXIM_LOOKUP_INCLUDE=
|
2004-01-02 00:03:33 -05:00
|
|
|
EXIM_LOOKUP_LIBS=
|
2000-12-07 10:27:33 -05:00
|
|
|
|
2000-08-02 11:44:11 -04:00
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
|
|
USE_X11= Yes
|
2000-12-07 10:27:33 -05:00
|
|
|
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}
|
2001-10-24 08:22:45 -04:00
|
|
|
LIB_DEPENDS+= ldap.2,lber:openldap-client-2.*:databases/openldap
|
2000-12-07 10:27:33 -05:00
|
|
|
EXIM_MAKECAT+= "LOOKUP_LDAP=yes\nLDAP_LIB_TYPE=OPENLDAP2\n"
|
2001-02-22 15:03:43 -05:00
|
|
|
EXIM_LOOKUP_INCLUDE+= -I${LOCALBASE}/include
|
|
|
|
EXIM_LOOKUP_LIBS+= -L${LOCALBASE}/lib -lldap -llber
|
2000-12-07 10:27:33 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
2004-01-02 00:03:33 -05:00
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
|
2000-12-07 10:27:33 -05:00
|
|
|
EXIM_MAKECAT+= "LOOKUP_MYSQL=yes\n"
|
2001-02-22 15:03:43 -05:00
|
|
|
EXIM_LOOKUP_INCLUDE+= -I${LOCALBASE}/include/mysql
|
|
|
|
EXIM_LOOKUP_LIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient
|
2000-08-02 11:44:11 -04:00
|
|
|
.endif
|
|
|
|
|
2001-04-21 14:54:11 -04:00
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
2004-07-26 06:14:27 -04:00
|
|
|
LIB_DEPENDS+= pq.2:postgresql-client-*:databases/postgresql
|
2000-12-07 10:27:33 -05:00
|
|
|
EXIM_MAKECAT+= "LOOKUP_PGSQL=yes\n"
|
2001-04-21 14:54:11 -04:00
|
|
|
EXIM_LOOKUP_INCLUDE+= -I${LOCALBASE}/include/postgresql
|
|
|
|
EXIM_LOOKUP_LIBS+= -L${LOCALBASE}/lib -lpq
|
2000-12-07 10:27:33 -05:00
|
|
|
.endif
|
|
|
|
|
2001-04-21 14:54:11 -04:00
|
|
|
.if !${FLAVOR:L:Mno_ssl}
|
2000-12-07 10:27:33 -05:00
|
|
|
EXIM_MAKECAT+= "SUPPORT_TLS=yes\nTLS_LIBS=-lssl -lcrypto\n"
|
|
|
|
.endif
|
|
|
|
|
2002-10-27 12:21:39 -05:00
|
|
|
NO_REGRESS= Yes
|
2000-12-07 10:27:33 -05:00
|
|
|
|
1997-11-14 19:04:24 -05:00
|
|
|
do-configure:
|
2000-02-10 20:09:59 -05:00
|
|
|
@mkdir -p ${WRKSRC}/Local
|
|
|
|
@cp ${FILESDIR}/Makefile ${WRKSRC}/Local
|
2000-12-07 10:27:33 -05:00
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
2000-02-10 20:09:59 -05:00
|
|
|
@cp ${FILESDIR}/eximon.conf ${WRKSRC}/Local
|
2000-12-07 10:27:33 -05:00
|
|
|
.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
|
2000-08-02 11:44:11 -04:00
|
|
|
@cd ${WRKSRC}/doc ; \
|
2001-09-07 18:15:50 -04:00
|
|
|
for i in ../../exim-texinfo-${VERSION_DOC}/doc/* ; do \
|
1997-11-14 19:04:24 -05:00
|
|
|
ln -sf $$i ; \
|
2000-08-02 11:44:11 -04:00
|
|
|
done
|
1997-11-14 19:04:24 -05:00
|
|
|
|
1999-03-31 17:39:43 -05:00
|
|
|
pre-install:
|
2000-08-12 19:57:45 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/exim
|
1999-03-31 17:39:43 -05:00
|
|
|
|
|
|
|
post-install:
|
2000-08-12 19:57:45 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/exim
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/spec.txt ${PREFIX}/share/doc/exim/spec.txt
|
1999-03-31 17:39:43 -05:00
|
|
|
|
1997-11-14 19:04:24 -05:00
|
|
|
.include <bsd.port.mk>
|