From mm@mail2.vx.sk  Sun Sep 19 14:01:45 2010
Return-Path: <mm@mail2.vx.sk>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2FBB410656C3;
	Sun, 19 Sep 2010 14:01:45 +0000 (UTC)
	(envelope-from mm@mail2.vx.sk)
Received: from mail2.vx.sk (mail2.vx.sk [IPv6:2a01:4f8:100:84a3::3])
	by mx1.freebsd.org (Postfix) with ESMTP id 97A3B8FC13;
	Sun, 19 Sep 2010 14:01:44 +0000 (UTC)
Received: from neo.vx.sk (localhost [127.0.0.1])
	by mail2.vx.sk (Postfix) with ESMTP id 88C4EE26BD;
	Sun, 19 Sep 2010 16:01:43 +0200 (CEST)
Received: from mail2.vx.sk ([127.0.0.1])
	by neo.vx.sk (mail.vx.sk [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id gYdP+QKYxecg; Sun, 19 Sep 2010 16:01:31 +0200 (CEST)
Received: by mail2.vx.sk (Postfix, from userid 1001)
	id 60551E26AF; Sun, 19 Sep 2010 16:01:31 +0200 (CEST)
Message-Id: <20100919140131.60551E26AF@mail2.vx.sk>
Date: Sun, 19 Sep 2010 16:01:31 +0200 (CEST)
From: Martin Matuska <mm@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: ume@FreeBSD.org
Subject: [PATCH] mail/cyrus-imapd: add UoA autocreate and autosieve patches
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         150719
>Category:       ports
>Synopsis:       [PATCH] mail/cyrus-imapd: add UoA autocreate and autosieve patches
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ume
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 19 14:10:01 UTC 2010
>Closed-Date:    Tue Oct 05 19:30:38 UTC 2010
>Last-Modified:  Tue Oct 05 19:30:38 UTC 2010
>Originator:     Martin Matuska
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 8.1-STABLE FreeBSD 8.1-STABLE #1 r212768M: Fri Sep 17 00:01:06 CEST
>Description:
Add optional UoA patches:
- Autocreate Inbox patch
- Autosieve patch

More information:
http://email.uoa.gr/projects/cyrus/

Port maintainer (ume@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- cyrus-imapd-2.3.16_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/cyrus-imapd23/Makefile,v
retrieving revision 1.190
diff -u -r1.190 Makefile
--- Makefile	15 Sep 2010 18:34:42 -0000	1.190
+++ Makefile	19 Sep 2010 14:00:17 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	cyrus-imapd
 PORTVERSION=	2.3.16
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	mail ipv6
 MASTER_SITES=	ftp://ftp.andrew.cmu.edu/pub/cyrus/ \
 		http://ftp.andrew.cmu.edu/pub/cyrus/ \
@@ -38,7 +38,9 @@
 		--with-perl=${PERL5}
 MAKE_JOBS_UNSAFE=	yes
 
-OPTIONS=	BDB		"Use Berkeley DB"			on \
+OPTIONS=	AUTOCREATE	"Use autocreate patch from UoA"		off \
+		AUTOSIEVE	"Use autosieve patch from UoA"		off \
+		BDB		"Use Berkeley DB"			on \
 		DRAC		"Enable DRAC support"			off \
 		IDLED		"Enable IMAP idled support"		off \
 		LDAP_PTLOADER	"Enable LDAP ptloader"			off \
@@ -54,6 +56,24 @@
 
 .include <bsd.port.pre.mk>
 
+# Autocreate Inbox and Autosieve patches from UoA
+# WWW: http://email.uoa.gr/projects/cyrus/
+
+.if defined(WITH_AUTOCREATE) || defined(WITH_AUTOSIEVE)
+PATCH_DIST_STRIP=	-p1
+PATCH_SITES+=	http://email.uoa.gr/download/cyrus/${PORTNAME}-${PORTVERSION}/ 
+.endif
+
+.if defined(WITH_AUTOCREATE)
+AUTOCREATE_VERSION=	0.10-0
+PATCHFILES+=	${PORTNAME}-${PORTVERSION}-autocreate-${AUTOCREATE_VERSION}.diff
+.endif
+
+.if defined(WITH_AUTOSIEVE)
+AUTOSIEVE_VERSION=	0.6.0
+PATCHFILES+=	${PORTNAME}-${PORTVERSION}-autosieve-${AUTOSIEVE_VERSION}.diff
+.endif
+
 .if defined(WITHOUT_BDB)
 BDB_LIB_NAME=	no
 .else
@@ -202,6 +222,8 @@
 		@${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|g" \
 				  -e "s|/usr/sieve|/var/imap/sieve|g" \
 			${WRKSRC}/tools/masssievec
+		@${REINPLACE_CMD} -e "s|-lpthread|\$$(PTHREAD_LIBS)|g" \
+			${WRKSRC}/imap/Makefile.in
 .if defined(WITH_DRAC)
 		@${RM} -rf ${WRKSRC}/autom4te.cache
 .endif
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/mail/cyrus-imapd23/distinfo,v
retrieving revision 1.53
diff -u -r1.53 distinfo
--- distinfo	21 Dec 2009 15:39:10 -0000	1.53
+++ distinfo	19 Sep 2010 14:00:17 -0000
@@ -1,3 +1,9 @@
 MD5 (cyrus-imapd-2.3.16.tar.gz) = 6a37feb1985974eee8a4a4b2932dd54c
 SHA256 (cyrus-imapd-2.3.16.tar.gz) = e020ac79403a683bddc136c25887fe501edcc8d73b308982f4b68ec828ab63d2
 SIZE (cyrus-imapd-2.3.16.tar.gz) = 2359349
+MD5 (cyrus-imapd-2.3.16-autocreate-0.10-0.diff) = 98b88f89e72bbabfd3da35fc94809247
+SHA256 (cyrus-imapd-2.3.16-autocreate-0.10-0.diff) = a373c9d4e3b35c8ecbd4ad7806cf50196525c3c1a32c35bc18d7b6c449bd57e3
+SIZE (cyrus-imapd-2.3.16-autocreate-0.10-0.diff) = 86056
+MD5 (cyrus-imapd-2.3.16-autosieve-0.6.0.diff) = bb5171a5824f600b8a41cb00ab36cf02
+SHA256 (cyrus-imapd-2.3.16-autosieve-0.6.0.diff) = b50acaf0595e320ac89fdd15b375b7e051009ebbe839c461bbb2b2a7006c23c5
+SIZE (cyrus-imapd-2.3.16-autosieve-0.6.0.diff) = 7920
Index: files/patch-imap::Makefile.in
===================================================================
RCS file: /home/pcvs/ports/mail/cyrus-imapd23/files/patch-imap::Makefile.in,v
retrieving revision 1.2
diff -u -r1.2 patch-imap::Makefile.in
--- files/patch-imap::Makefile.in	20 Dec 2005 17:35:41 -0000	1.2
+++ files/patch-imap::Makefile.in	19 Sep 2010 14:00:17 -0000
@@ -15,19 +15,3 @@
  	done
  	ln -f $(DESTDIR)$(service_path)/pop3d $(DESTDIR)$(service_path)/pop3proxyd
  	ln -f $(DESTDIR)$(service_path)/imapd $(DESTDIR)$(service_path)/proxyd
-@@ -219,13 +219,13 @@
- 	$(CC) $(LDFLAGS) -o mupdate \
- 	 $(SERVICETHREAD) mupdate.o mupdate-slave.o mupdate-client.o \
- 	 mutex_pthread.o tls.o libimap.a \
--	 $(DEPLIBS) $(LIBS) $(LIB_WRAP) -lpthread
-+	 $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(PTHREAD_LIBS)
- 
- mupdate.pure: mupdate.o mupdate-slave.o mupdate-client.o mutex_pthread.o \
- 	libimap.a $(DEPLIBS)
- 	$(PURIFY) $(PUREOPT) $(CC) $(LDFLAGS) -o mupdate.pure \
- 	 $(SERVICETHREAD) mupdate.o mupdate-slave.o mupdate-client.o \
--	 mutex_pthread.o libimap.a $(DEPLIBS) $(LIBS) $(LIB_WRAP) -lpthread
-+	 mutex_pthread.o libimap.a $(DEPLIBS) $(LIBS) $(LIB_WRAP) $(PTHREAD_LIBS)
- 
- pop3d: pop3d.o proxy.o backend.o tls.o mutex_fake.o libimap.a \
- 	$(DEPLIBS) $(SERVICE)
--- cyrus-imapd-2.3.16_3.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ume 
Responsible-Changed-By: az 
Responsible-Changed-When: Sat Sep 25 15:07:00 UTC 2010 
Responsible-Changed-Why:  
Hajimu will glad to see this one :-) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150719 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/150719: commit references a PR
Date: Tue,  5 Oct 2010 19:13:40 +0000 (UTC)

 mm          2010-10-05 19:13:35 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/cyrus-imapd23   Makefile distinfo pkg-plist 
     mail/cyrus-imapd23/files patch-imap::Makefile.in 
   Log:
   Add optional UoA patches:
   - Autocreate INBOX patch
   - Autosievefolder patch
   
   PR:             ports/150719
   Approved by:    maintainer (timeout)
   
   Revision  Changes    Path
   1.191     +26 -1     ports/mail/cyrus-imapd23/Makefile
   1.54      +6 -0      ports/mail/cyrus-imapd23/distinfo
   1.3       +0 -16     ports/mail/cyrus-imapd23/files/patch-imap::Makefile.in
   1.37      +1 -0      ports/mail/cyrus-imapd23/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: mm 
State-Changed-When: Tue Oct 5 19:30:35 UTC 2010 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150719 
>Unformatted:
