git: a9309a59e3b7 - main - mail/courier-imap: Update version check for INOTIFY option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Sep 2026 16:00:20 UTC
The branch main has been updated by madpilot:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a9309a59e3b7c12e964d99fd94195598845ad9cf
commit a9309a59e3b7c12e964d99fd94195598845ad9cf
Author: Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2026-09-20 15:54:36 +0000
Commit: Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2026-09-20 15:54:36 +0000
mail/courier-imap: Update version check for INOTIFY option
FreeBSD 14.5 includes the inotify implementation in libc. Update
the version check to avoid linkingg to the ports provided library
in this case.
MFH: 2026Q3
---
mail/courier-imap/Makefile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/mail/courier-imap/Makefile b/mail/courier-imap/Makefile
index 690a04b1deaf..e71134345b87 100644
--- a/mail/courier-imap/Makefile
+++ b/mail/courier-imap/Makefile
@@ -1,5 +1,6 @@
PORTNAME= courier-imap
-PORTVERSION= 6.0.6
+DISTVERSION= 6.0.6
+PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= mail
MASTER_SITES= SF/courier/imap/${PORTVERSION}
@@ -103,7 +104,7 @@ CONFIGURE_ARGS+= --with-db=db \
.endif
.endif
-.if ${PORT_OPTIONS:MINOTIFY} && ${OSVERSION} < 1500500
+.if ${PORT_OPTIONS:MINOTIFY} && (${OSVERSION} < 1405000 || (${OSVERSION} > 1500000 && ${OSVERSION} < 1500500))
LIB_DEPENDS+= libinotify.so:devel/libinotify
.endif
@@ -115,7 +116,7 @@ post-patch:
${WRKSRC}/Makefile.in
post-patch-INOTIFY-on:
-.if ${OSVERSION} < 1500500
+.if ${OSVERSION} < 1405000 || (${OSVERSION} > 1500000 && ${OSVERSION} < 1500500)
@${REINPLACE_CMD} -e 's|LIBS = @LIBS@|& -L${LOCALBASE}/lib -linotify -lpthread|' \
${WRKSRC}/libs/maildir/Makefile.in \
${WRKSRC}/libs/imap/Makefile.in