mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
2dd9174342
- Convert to USES localbase - Update mail/cone to 1.0 [1] - Update mail/courier-imap to 5.0.0 - Add LICENSE - Update mail/maildrop to 3.0.0 - Remove IDN option since it's now mandatory - Update mail/sqwebmail to 6.0.0 [2] - Update security/courier-authlib to 0.69.0 - Add note to UPDATING - Silence some portlint warnings PR: 231471 [1] Submitted by: me Approved by: Maintainer timeout [1], oliver@ [2] Differential Revision: https://reviews.freebsd.org/D17234
134 lines
3.8 KiB
Makefile
134 lines
3.8 KiB
Makefile
# Created by: Neil Blakey-Milner
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= courier-imap
|
|
PORTVERSION= 5.0.0
|
|
PORTEPOCH= 2
|
|
CATEGORIES= mail ipv6
|
|
MASTER_SITES= SF/courier/imap/${PORTVERSION}
|
|
|
|
MAINTAINER= madpilot@FreeBSD.org
|
|
COMMENT= IMAP (and POP3) server that provides access to Maildir mailboxes
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= courierauthconfig:security/courier-authlib-base
|
|
RUN_DEPENDS= courierauthconfig:security/courier-authlib-base \
|
|
${LOCALBASE}/share/sysconftool/sysconftool:devel/sysconftool
|
|
LIB_DEPENDS= libcourier-unicode.so:devel/courier-unicode \
|
|
libidn.so:dns/libidn
|
|
|
|
USES= compiler:c++11-lang gmake localbase:ldflags perl5 pkgconfig ssl \
|
|
tar:bzip2
|
|
USE_RC_SUBR= courier-imap-imapd courier-imap-imapd-ssl \
|
|
courier-imap-pop3d courier-imap-pop3d-ssl
|
|
|
|
CONFLICTS= courier-[0-9]* imap-uw-[0-9]* panda-imap-[0-9]*
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= REHASH=${SCRIPTDIR}/c_rehash
|
|
|
|
MAKE_ENV:= ${CONFIGURE_ENV}
|
|
ALL_TARGET= all makeimapaccess makedat
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= CONFDIR=${CONFDIR}
|
|
|
|
#
|
|
# options available:
|
|
#
|
|
# WITH_SYSLOG_FACILITY: The syslogfacility to use
|
|
#
|
|
|
|
OPTIONS_DEFINE= FAM TRASHQUOTA GDBM IPV6 GNUTLS
|
|
FAM_DESC= Fam support for IDLE command
|
|
TRASHQUOTA_DESC= Include deleted mails in the quota
|
|
GNUTLS_DESC= Use GnuTLS instead of OpenSSL (Enables SNI)
|
|
FAM_USES= fam
|
|
|
|
.if exists(${.CURDIR}/../../security/courier-authlib/Makefile.opt)
|
|
.include "${.CURDIR}/../../security/courier-authlib/Makefile.opt"
|
|
.endif
|
|
|
|
CONFDIR?= ${PREFIX}/etc/${PORTNAME}
|
|
USERDB?= ${PREFIX}/etc/userdb
|
|
LIBEXECDIR?= ${PREFIX}/libexec/${PORTNAME}
|
|
PLIST_SUB= CONFDIR=${CONFDIR:S,^${PREFIX}/,,} \
|
|
LIBEXECDIR=${LIBEXECDIR:S,^${PREFIX}/,,}
|
|
|
|
CONFIGURE_ARGS= --sysconfdir=${CONFDIR} \
|
|
--localstatedir="${PREFIX}/var" \
|
|
--datadir=${DATADIR} \
|
|
--libexecdir=${LIBEXECDIR} \
|
|
--enable-workarounds-for-imap-client-bugs \
|
|
--enable-unicode \
|
|
--disable-root-check \
|
|
--with-locking-method=fcntl \
|
|
--with-notice=unicode \
|
|
COURIERAUTHCONFIG=${PREFIX}/bin/courierauthconfig
|
|
|
|
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls \
|
|
libgcrypt.so:security/libgcrypt
|
|
GNUTLS_CONFIGURE_WITH= gnutls
|
|
GNUTLS_USES= pkgconfig
|
|
|
|
IPV6_CONFIGURE_OFF= --without-ipv6
|
|
|
|
TRASHQUOTA_CONFIGURE_ON=--with-trashquota
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists(${.CURDIR}/../../security/courier-authlib/Makefile.dep)
|
|
.include "${.CURDIR}/../../security/courier-authlib/Makefile.dep"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSYSLOG_FACILITY}
|
|
CONFIGURE_ARGS+=--with-syslog=${WITH_SYSLOG_FACILITY}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MAUTH_USERDB}
|
|
.if ${PORT_OPTIONS:MGDBM}
|
|
CONFIGURE_ARGS+=--with-db=gdbm --with-userdb=${USERDB}
|
|
LIB_DEPENDS+= libgdbm.so:databases/gdbm
|
|
.else
|
|
CONFIGURE_ARGS+=--with-db=db --with-userdb=${USERDB}
|
|
.endif
|
|
.endif
|
|
|
|
EXTRA_DOCS= AUTHORS INSTALL NEWS \
|
|
libs/imap/ChangeLog \
|
|
libs/imap/README \
|
|
libs/imap/README.proxy \
|
|
libs/maildir/README.imapkeywords.html \
|
|
libs/maildir/README.maildirfilter.html \
|
|
libs/maildir/README.maildirquota.txt \
|
|
libs/maildir/README.sharedfolders.txt \
|
|
libs/tcpd/README.couriertls \
|
|
|
|
post-patch-FAM-off:
|
|
@${REINPLACE_CMD} -e 's|$$LIBFAM||g; s|HAVE_FAM|DO_NOT_HAVE_FAM|g' \
|
|
${WRKSRC}/libs/maildir/configure
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^case x$$lockmethod in|${TEST} \&\& &|g' \
|
|
${WRKSRC}/libs/liblock/configure
|
|
@${REINPLACE_CMD} -e 's|%%INSTALL_MAN%%|${INSTALL_MAN}|' \
|
|
${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|TLS_PROTOCOL=SSL3|TLS_PROTOCOL=SSL23|g' \
|
|
${WRKSRC}/libs/imap/pop3d-ssl.dist.in \
|
|
${WRKSRC}/libs/imap/imapd-ssl.dist.in
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/makeimapaccess ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_SCRIPT} ${WRKSRC}/makedat ${STAGEDIR}${PREFIX}/bin/
|
|
.for i in imapd pop3d
|
|
${INSTALL_DATA} ${WRKSRC}/libs/imap/${i}.cnf ${STAGEDIR}${CONFDIR}/${i}.cnf.dist
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for a in ${EXTRA_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${a} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|