2014-09-13 14:09:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.100 2014/09/13 18:09:21 brad Exp $
|
2010-02-02 14:48:15 -05:00
|
|
|
|
|
|
|
CATEGORIES = mail
|
|
|
|
COMMENT-main = flexible mail transfer agent
|
|
|
|
COMMENT-eximon = X11 monitor tool for Exim MTA
|
2014-07-23 06:36:24 -04:00
|
|
|
VERSION = 4.83
|
2010-02-02 14:48:15 -05:00
|
|
|
DISTNAME = exim-${VERSION}
|
2010-06-15 04:43:30 -04:00
|
|
|
PKGNAME-main = exim-${VERSION}
|
|
|
|
FULLPKGNAME-eximon = exim-eximon-${VERSION}
|
2010-02-02 15:23:30 -05:00
|
|
|
FULLPKGPATH-eximon = ${PKGPATH},-eximon
|
2014-09-13 14:09:20 -04:00
|
|
|
REVISION-main = 0
|
2011-07-17 16:15:59 -04:00
|
|
|
MASTER_SITES = http://ftp.exim.org/pub/exim/exim4/ \
|
|
|
|
http://ftp.exim.org/pub/exim/exim4/old/ \
|
|
|
|
ftp://ftp.exim.org/pub/exim/exim4/ \
|
|
|
|
http://mirror.switch.ch/ftp/mirror/exim/exim/exim4/
|
2006-01-15 08:06:42 -05:00
|
|
|
|
2010-02-02 14:48:15 -05:00
|
|
|
HOMEPAGE = http://www.exim.org/
|
2005-07-06 19:18:09 -04:00
|
|
|
|
2009-12-15 06:32:18 -05:00
|
|
|
# GPLv2+, with OpenSSL exemption
|
2010-02-02 14:48:15 -05:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
|
|
|
PSEUDO_FLAVORS = no_eximon
|
|
|
|
FLAVORS = mysql postgresql sqlite3 ldap sasl
|
|
|
|
FLAVOR ?=
|
2011-11-18 08:29:29 -05:00
|
|
|
MULTI_PACKAGES = -main -eximon
|
2010-02-02 14:48:15 -05:00
|
|
|
|
|
|
|
MODULES = converters/libiconv
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS-main = ${LIB_DEPENDS} devel/pcre
|
2010-11-06 06:18:38 -04:00
|
|
|
cWANTLIB = c m
|
2014-03-24 13:39:35 -04:00
|
|
|
WANTLIB-main = ${WANTLIB} ${cWANTLIB} crypto perl ssl util pcre
|
2010-11-11 05:54:02 -05:00
|
|
|
WANTLIB-eximon = ${cWANTLIB} X11 Xaw Xext Xmu Xt pcre
|
2010-11-19 02:23:05 -05:00
|
|
|
RUN_DEPENDS-eximon = ${PKGPATH},-main
|
|
|
|
LIB_DEPENDS-eximon = devel/pcre
|
2010-02-02 14:48:15 -05:00
|
|
|
|
2010-11-11 05:54:02 -05:00
|
|
|
USE_GROFF = Yes
|
2013-03-11 07:20:26 -04:00
|
|
|
NO_TEST = Yes
|
2000-12-07 10:27:33 -05:00
|
|
|
|
2011-11-18 08:29:29 -05:00
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
|
|
|
.if ${BUILD_PACKAGES:M-eximon}
|
2010-02-02 14:48:15 -05:00
|
|
|
EXIM_MAKECAT += "EXIM_MONITOR=eximon.bin\n"
|
2000-12-07 10:27:33 -05:00
|
|
|
.endif
|
|
|
|
|
2011-11-18 08:29:29 -05:00
|
|
|
.if ${FLAVOR:Mmysql}
|
2010-02-02 14:48:15 -05:00
|
|
|
EXIM_MAKECAT += "LOOKUP_MYSQL=yes\n"
|
|
|
|
EXIM_LOOKUP_INCLUDE += -I${LOCALBASE}/include/mysql
|
|
|
|
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/mysql -lmysqlclient
|
2014-09-13 14:09:20 -04:00
|
|
|
LIB_DEPENDS-main += databases/mariadb
|
|
|
|
WANTLIB-main += lib/mysql/mysqlclient
|
2004-07-26 06:56:01 -04:00
|
|
|
.endif
|
|
|
|
|
2011-11-18 08:29:29 -05:00
|
|
|
.if ${FLAVOR:Mpostgresql}
|
2010-02-02 14:48:15 -05:00
|
|
|
EXIM_MAKECAT += "LOOKUP_PGSQL=yes\n"
|
|
|
|
EXIM_LOOKUP_INCLUDE += -I${LOCALBASE}/include/postgresql
|
|
|
|
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/ -lpq
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS-main += databases/postgresql
|
|
|
|
WANTLIB-main += pq>=2
|
2000-12-07 10:27:33 -05:00
|
|
|
.endif
|
|
|
|
|
2011-11-18 08:29:29 -05:00
|
|
|
.if ${FLAVOR:Msqlite3}
|
2010-02-02 14:48:15 -05:00
|
|
|
EXIM_MAKECAT += "LOOKUP_SQLITE=yes\n"
|
2012-04-30 09:07:58 -04:00
|
|
|
EXIM_LOOKUP_LIBS += -lsqlite3
|
2010-11-19 02:23:05 -05:00
|
|
|
WANTLIB-main += sqlite3>=8
|
2006-01-15 08:06:42 -05:00
|
|
|
.endif
|
|
|
|
|
2011-11-18 08:29:29 -05:00
|
|
|
.if ${FLAVOR:Mldap}
|
2010-02-02 14:48:15 -05:00
|
|
|
EXIM_MAKECAT += "LOOKUP_LDAP=yes\n"
|
|
|
|
EXIM_MAKECAT += "LDAP_LIB_TYPE=OPENLDAP2\n"
|
|
|
|
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib -lldap -llber
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS-main += databases/openldap>=2.3
|
|
|
|
WANTLIB-main += ldap>=9 lber
|
2000-08-02 11:44:11 -04:00
|
|
|
.endif
|
|
|
|
|
2011-11-18 08:29:29 -05:00
|
|
|
.if ${FLAVOR:Msasl}
|
2010-02-02 14:48:15 -05:00
|
|
|
EXIM_MAKECAT += "AUTH_CYRUS_SASL=yes\n"
|
|
|
|
EXIM_EXTRA_LIBS += -L${LOCALBASE}/lib -lsasl2
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS-main += security/cyrus-sasl2
|
2010-11-11 05:54:02 -05:00
|
|
|
WANTLIB-main += sasl2
|
2000-12-07 10:27:33 -05:00
|
|
|
.endif
|
|
|
|
|
2014-03-24 13:39:35 -04:00
|
|
|
EXIM_EXTRA_LIBS += -L${LOCALBASE}/lib -liconv
|
2000-12-07 10:27:33 -05:00
|
|
|
|
2010-02-02 14:48:15 -05:00
|
|
|
EXIM_MAKECAT += "BIN_DIRECTORY=${PREFIX}/bin\n"
|
|
|
|
EXIM_MAKECAT += "CONFIGURE_FILE=${SYSCONFDIR}/exim/configure\n"
|
|
|
|
EXIM_MAKECAT += "LOOKUP_INCLUDE=${EXIM_LOOKUP_INCLUDE}\n"
|
|
|
|
EXIM_MAKECAT += "LOOKUP_LIBS=${EXIM_LOOKUP_LIBS}\n"
|
|
|
|
EXIM_MAKECAT += "EXTRALIBS_EXIM=${EXIM_EXTRA_LIBS}\n"
|
|
|
|
EXIM_MAKECAT += "CFLAGS=${CFLAGS} ${EXIM_CFLAGS}\n"
|
|
|
|
EXIM_MAKECAT += "INCLUDE=-I${LOCALBASE}/include\n"
|
2009-12-15 06:32:18 -05:00
|
|
|
|
2010-02-02 14:48:15 -05:00
|
|
|
MAKE_FLAGS += FULLECHO=
|
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
|
2004-07-26 06:56:01 -04:00
|
|
|
@echo -n ${EXIM_MAKECAT} >> ${WRKSRC}/Local/Makefile
|
2000-02-10 20:09:59 -05:00
|
|
|
@cp ${FILESDIR}/eximon.conf ${WRKSRC}/Local
|
1999-03-31 17:39:43 -05:00
|
|
|
|
2006-05-05 02:02:30 -04:00
|
|
|
pre-fake:
|
|
|
|
${INSTALL_DATA_DIR} ${WRKINST}${SYSCONFDIR}/mail
|
|
|
|
|
1999-03-31 17:39:43 -05:00
|
|
|
post-install:
|
2004-07-26 06:56:01 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/exim
|
2011-07-17 16:15:59 -04:00
|
|
|
${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/exim/configure \
|
|
|
|
${PREFIX}/share/examples/exim
|
2000-08-12 19:57:45 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/exim
|
2004-07-26 06:56:01 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/spec.txt ${PREFIX}/share/doc/exim
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/README.SIEVE ${PREFIX}/share/doc/exim
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/filter.txt ${PREFIX}/share/doc/exim
|
2014-08-10 05:58:04 -04:00
|
|
|
${SUBST_DATA} ${FILESDIR}/mailer.conf.exim \
|
2011-07-17 16:15:59 -04:00
|
|
|
${PREFIX}/share/doc/exim/mailer.conf.exim
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/exim-enable ${FILESDIR}/exim-disable \
|
|
|
|
${PREFIX}/sbin
|
2004-07-26 06:56:01 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/exim.8 ${PREFIX}/man/man8
|
|
|
|
|
1997-11-14 19:04:24 -05:00
|
|
|
.include <bsd.port.mk>
|