svn commit: r568977 - in head/mail/courier-imap: . files

Guido Falsi madpilot at FreeBSD.org
Mon Mar 22 17:23:31 UTC 2021


Author: madpilot
Date: Mon Mar 22 17:23:29 2021
New Revision: 568977
URL: https://svnweb.freebsd.org/changeset/ports/568977

Log:
  - Update courier-imap to 5.1.1
  - Remove FAM option due tro upstream dropping support
  - Add new INOTIFY option (off by default) to enable using new inotify API provided by upstreeam, adds an optional dependency on devel/libinotify
  - While here sort options list and helpers

Added:
  head/mail/courier-imap/files/patch-libs_maildir_configure   (contents, props changed)
Modified:
  head/mail/courier-imap/Makefile
  head/mail/courier-imap/distinfo

Modified: head/mail/courier-imap/Makefile
==============================================================================
--- head/mail/courier-imap/Makefile	Mon Mar 22 17:22:26 2021	(r568976)
+++ head/mail/courier-imap/Makefile	Mon Mar 22 17:23:29 2021	(r568977)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	courier-imap
-PORTVERSION=	5.0.14
-PORTREVISION=	1
+PORTVERSION=	5.1.1
 PORTEPOCH=	2
 CATEGORIES=	mail
 MASTER_SITES=	SF/courier/imap/${PORTVERSION}
@@ -41,11 +40,11 @@ SUB_LIST=	CONFDIR=${CONFDIR}
 # 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
+OPTIONS_DEFINE= GDBM GNUTLS INOTIFY TRASHQUOTA IPV6
+
 GNUTLS_DESC=	Use GnuTLS instead of OpenSSL (Enables SNI)
-FAM_USES=	fam
+INOTIFY_DESC=	Inotify support for IDLE command
+TRASHQUOTA_DESC=	Include deleted mails in the quota
 
 .if exists(${.CURDIR}/../../security/courier-authlib/Makefile.opt)
 .include "${.CURDIR}/../../security/courier-authlib/Makefile.opt"
@@ -72,6 +71,8 @@ GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls \
 GNUTLS_CONFIGURE_WITH=	gnutls
 GNUTLS_USES=		pkgconfig
 
+INOTIFY_LIB_DEPENDS=	libinotify.so:devel/libinotify
+
 IPV6_CONFIGURE_OFF=	--without-ipv6
 
 TRASHQUOTA_CONFIGURE_ON=--with-trashquota
@@ -105,10 +106,6 @@ EXTRA_DOCS=	AUTHORS INSTALL NEWS \
 		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
@@ -117,6 +114,15 @@ post-patch:
 	@${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-patch-INOTIFY-on:
+	@${REINPLACE_CMD} -e 's|LIBS = @LIBS@|& ${LOCALBASE}/lib/libinotify.a /usr/lib/libpthread.a|' \
+		${WRKSRC}/libs/maildir/Makefile.in \
+		${WRKSRC}/libs/imap/Makefile.in
+
+post-configure-INOTIFY-on:
+	@${ECHO_CMD} '#define HAVE_INOTIFY_INIT 1' >>${WRKSRC}/libs/maildir/config.h
+	@${ECHO_CMD} '#define HAVE_INOTIFY_INIT1 1' >>${WRKSRC}/libs/maildir/config.h
 
 post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/makeimapaccess ${STAGEDIR}${PREFIX}/bin/

Modified: head/mail/courier-imap/distinfo
==============================================================================
--- head/mail/courier-imap/distinfo	Mon Mar 22 17:22:26 2021	(r568976)
+++ head/mail/courier-imap/distinfo	Mon Mar 22 17:23:29 2021	(r568977)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1614676769
-SHA256 (courier-imap-5.0.14.tar.bz2) = 671a6a64c2d46e515097979b4488b8284d0260eabdff56ff81ef66cf1f6169c3
-SIZE (courier-imap-5.0.14.tar.bz2) = 3359363
+TIMESTAMP = 1616283048
+SHA256 (courier-imap-5.1.1.tar.bz2) = 758503c34edc9cb0796503fd2cfd343aecc090c953819af3b7691364baa72d91
+SIZE (courier-imap-5.1.1.tar.bz2) = 3361333

Added: head/mail/courier-imap/files/patch-libs_maildir_configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/courier-imap/files/patch-libs_maildir_configure	Mon Mar 22 17:23:29 2021	(r568977)
@@ -0,0 +1,22 @@
+--- libs/maildir/configure.orig	2021-03-14 17:58:25 UTC
++++ libs/maildir/configure
+@@ -17924,19 +17924,6 @@ fi
+ done
+ 
+ 
+-for ac_func in inotify_init inotify_init1
+-do :
+-  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+-if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+-  cat >>confdefs.h <<_ACEOF
+-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+-_ACEOF
+-
+-fi
+-done
+-
+-
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing gethostname prototype" >&5
+ $as_echo_n "checking for missing gethostname prototype... " >&6; }
+ if ${maildir_cv_SYS_GETHOSTNAME+:} false; then :


More information about the svn-ports-head mailing list