diff options
author | jlam <jlam> | 2004-07-04 02:26:11 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-07-04 02:26:11 +0000 |
commit | 015f8adccbaa9f4e3bae2f37855ee727c1d6985a (patch) | |
tree | 2c934b5897335b3ef7f616d03e4e45359e5a305c /mail/cyrus-imapd22 | |
parent | 07c15e5c38915dea861c180fd9e008141958ebaa (diff) | |
download | pkgsrc-015f8adccbaa9f4e3bae2f37855ee727c1d6985a.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.
Diffstat (limited to 'mail/cyrus-imapd22')
-rw-r--r-- | mail/cyrus-imapd22/Makefile | 28 |
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} |