278e3cc0b0
PLIST and delete everything under the @sample'd directory instead of the directory itself to prevent a warning from pkg_delete(1) trying to remove a non existing directory and to help preventing left-over files and directories. ok aja@
117 lines
3.5 KiB
Makefile
117 lines
3.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.82 2011/05/11 12:57:48 jasper Exp $
|
|
|
|
CATEGORIES = mail
|
|
COMMENT-main = flexible mail transfer agent
|
|
COMMENT-eximon = X11 monitor tool for Exim MTA
|
|
VERSION = 4.76
|
|
DISTNAME = exim-${VERSION}
|
|
PKGNAME-main = exim-${VERSION}
|
|
FULLPKGNAME-eximon = exim-eximon-${VERSION}
|
|
FULLPKGPATH-eximon = ${PKGPATH},-eximon
|
|
REVISION-main = 0
|
|
MASTER_SITES = ftp://ftp.exim.org/pub/exim/exim4/ \
|
|
ftp://ftp.exim.org/pub/exim/exim4/old/ \
|
|
http://mirror.switch.ch/ftp/mirror/exim/exim/exim4/ \
|
|
ftp://mirror.switch.ch/mirror/exim/exim/exim4/
|
|
|
|
HOMEPAGE = http://www.exim.org/
|
|
|
|
MAINTAINER = Felix Kronlage <fkr@openbsd.org>
|
|
|
|
# GPLv2+, with OpenSSL exemption
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
PSEUDO_FLAVORS = no_eximon
|
|
FLAVORS = mysql postgresql sqlite3 ldap sasl
|
|
FLAVOR ?=
|
|
MULTI_PACKAGES = -main
|
|
|
|
MODULES = converters/libiconv
|
|
LIB_DEPENDS-main = ${LIB_DEPENDS} devel/pcre
|
|
cWANTLIB = c m
|
|
WANTLIB-main = ${WANTLIB} ${cWANTLIB} crypto perl ssl util wrap pcre
|
|
WANTLIB-eximon = ${cWANTLIB} X11 Xaw Xext Xmu Xt pcre
|
|
RUN_DEPENDS-eximon = ${PKGPATH},-main
|
|
LIB_DEPENDS-eximon = devel/pcre
|
|
|
|
USE_GROFF = Yes
|
|
NO_REGRESS = Yes
|
|
|
|
.if !${FLAVOR:L:Mno_eximon}
|
|
MULTI_PACKAGES += -eximon
|
|
EXIM_MAKECAT += "EXIM_MONITOR=eximon.bin\n"
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
EXIM_MAKECAT += "LOOKUP_MYSQL=yes\n"
|
|
EXIM_LOOKUP_INCLUDE += -I${LOCALBASE}/include/mysql
|
|
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/mysql -lmysqlclient
|
|
LIB_DEPENDS-main += databases/mysql
|
|
WANTLIB-main += lib/mysql/mysqlclient>=10
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
|
EXIM_MAKECAT += "LOOKUP_PGSQL=yes\n"
|
|
EXIM_LOOKUP_INCLUDE += -I${LOCALBASE}/include/postgresql
|
|
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/ -lpq
|
|
LIB_DEPENDS-main += databases/postgresql
|
|
WANTLIB-main += pq>=2
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Msqlite3}
|
|
EXIM_MAKECAT += "LOOKUP_SQLITE=yes\n"
|
|
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib/ -lsqlite3
|
|
LIB_DEPENDS-main += databases/sqlite3
|
|
WANTLIB-main += sqlite3>=8
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
EXIM_MAKECAT += "LOOKUP_LDAP=yes\n"
|
|
EXIM_MAKECAT += "LDAP_LIB_TYPE=OPENLDAP2\n"
|
|
EXIM_LOOKUP_LIBS += -L${LOCALBASE}/lib -lldap -llber
|
|
LIB_DEPENDS-main += databases/openldap>=2.3
|
|
WANTLIB-main += ldap>=9 lber
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Msasl}
|
|
EXIM_MAKECAT += "AUTH_CYRUS_SASL=yes\n"
|
|
EXIM_EXTRA_LIBS += -L${LOCALBASE}/lib -lsasl2
|
|
LIB_DEPENDS-main += security/cyrus-sasl2
|
|
WANTLIB-main += sasl2
|
|
.endif
|
|
|
|
EXIM_EXTRA_LIBS += -lwrap -L${LOCALBASE}/lib -liconv
|
|
|
|
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"
|
|
|
|
MAKE_FLAGS += FULLECHO=
|
|
|
|
do-configure:
|
|
@mkdir -p ${WRKSRC}/Local
|
|
@cp ${FILESDIR}/Makefile ${WRKSRC}/Local
|
|
@echo -n ${EXIM_MAKECAT} >> ${WRKSRC}/Local/Makefile
|
|
@cp ${FILESDIR}/eximon.conf ${WRKSRC}/Local
|
|
|
|
pre-fake:
|
|
${INSTALL_DATA_DIR} ${WRKINST}${SYSCONFDIR}/mail
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/exim
|
|
${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/exim/configure ${PREFIX}/share/examples/exim
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/exim
|
|
${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
|
|
${INSTALL_MAN} ${WRKSRC}/doc/exim.8 ${PREFIX}/man/man8
|
|
|
|
.include <bsd.port.mk>
|