summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2004-07-04 02:26:11 +0000
committerjlam <jlam>2004-07-04 02:26:11 +0000
commit54be06cb9f4eba186c539c1c666325e215167b26 (patch)
tree2c934b5897335b3ef7f616d03e4e45359e5a305c
parent0e8514e37749eb59e455a9f836189c357f59c943 (diff)
downloadpkgsrc-54be06cb9f4eba186c539c1c666325e215167b26.tar.gz
Improve documentation for CYRUS_IDLE, and give it a default value of "poll"
to match the default value from the cyrus-imapd configure script.
-rw-r--r--mail/cyrus-imapd22/Makefile28
1 files changed, 12 insertions, 16 deletions
diff --git a/mail/cyrus-imapd22/Makefile b/mail/cyrus-imapd22/Makefile
index 4b105f2e39f..2fde743683e 100644
--- a/mail/cyrus-imapd22/Makefile
+++ b/mail/cyrus-imapd22/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2004/06/21 15:16:33 recht Exp $
+# $NetBSD: Makefile,v 1.14 2004/07/04 02:26:11 jlam Exp $
DISTNAME= cyrus-imapd-2.2.6
CATEGORIES= mail
@@ -81,25 +81,21 @@ CONFIGURE_ENV+= COMPILE_ET=${COMERRBASE}/bin/compile_et
CONFIGURE_ARGS+= --with-com-err=yes
.endif
-# use METHOD for IMAP IDLE
-# METHOD is poll, idled or no
-# Default: not defined
-# (== poll)
-.if defined(CYRUS_IDLE)
-. if ${CYRUS_IDLE} != "poll" && ${CYRUS_IDLE} != "idled" \
- && ${CYRUS_IDLE} != "no"
+# CYRUS_IDLE selects the method used to implement IMAP IDLE. Valid values
+# are "poll", "idled" or "no". The default is "poll".
+#
+CYRUS_IDLE?= poll
+BUILD_DEFS+= CYRUS_IDLE
+.if (${CYRUS_IDLE} != "poll") && (${CYRUS_IDLE} != "idled") && \
+ (${CYRUS_IDLE} != "no")
PKG_FAIL_REASON+= "CYRUS_IDLE must be poll, idled or no"
-. endif
+.endif
CONFIGURE_ARGS+= --with-idle=${CYRUS_IDLE}
-. if ${CYRUS_IDLE} == "idled"
-PLIST_SUBST+= IDLED=
-. else
-PLIST_SUBST+= IDLED="@comment "
-. endif
+.if ${CYRUS_IDLE} == "idled"
+PLIST_SUBST+= IDLED=
.else
-PLIST_SUBST+= IDLED="@comment "
+PLIST_SUBST+= IDLED="@comment "
.endif
-BUILD_DEFS+= CYRUS_IDLE
MAKEFLAGS+= PERL=${PERL5}