summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd22/Makefile
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-05-27 09:28:15 +0000
committerrecht <recht@pkgsrc.org>2004-05-27 09:28:15 +0000
commit3b877eee0700ca0173d122513265debbe88b300e (patch)
treee0eb640ad37bd69165535a5c8d86fd95f5f2fb1f /mail/cyrus-imapd22/Makefile
parent641d76752a638856b213fc446f84f1897f53d7dd (diff)
downloadpkgsrc-3b877eee0700ca0173d122513265debbe88b300e.tar.gz
Add two patches from CVS:
- allow deletions in the middle of a hash_enumerate - typo Posted by Jukka Salmi on tech-pkg@. While at it add a knob for changing cyrus' default idle method. # CYRUS_IDLE # use METHOD for IMAP IDLE # METHOD is poll, idled or no # Default: not defined (Idea from FreeBSD) Bump PKGREVISION to 2.
Diffstat (limited to 'mail/cyrus-imapd22/Makefile')
-rw-r--r--mail/cyrus-imapd22/Makefile24
1 files changed, 22 insertions, 2 deletions
diff --git a/mail/cyrus-imapd22/Makefile b/mail/cyrus-imapd22/Makefile
index 25b44f41f4c..62843cdad7d 100644
--- a/mail/cyrus-imapd22/Makefile
+++ b/mail/cyrus-imapd22/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2004/05/27 05:09:04 jlam Exp $
+# $NetBSD: Makefile,v 1.11 2004/05/27 09:28:16 recht Exp $
DISTNAME= cyrus-imapd-2.2.4
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= mail
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/imap/
@@ -82,6 +82,26 @@ 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"
+PKG_FAIL_REASON+= "CYRUS_IDLE must be poll, idled or no"
+. endif
+CONFIGURE_ARGS+= --with-idle=${CYRUS_IDLE}
+. if ${CYRUS_IDLE} == "idled"
+PLIST_SUBST+= IDLED=
+. else
+PLIST_SUBST+= IDLED="@comment "
+. endif
+.else
+PLIST_SUBST+= IDLED="@comment "
+.endif
+BUILD_DEFS+= CYRUS_IDLE
+
MAKEFLAGS+= PERL=${PERL5}
HTMLDIR= ${PREFIX}/share/doc/html/cyrus-imapd