From nobody@FreeBSD.org  Mon Dec 12 10:31:45 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A9B24106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Dec 2011 10:31:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 98BF18FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Dec 2011 10:31:45 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBCAVjPH034996
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Dec 2011 10:31:45 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pBCAVjSw034995;
	Mon, 12 Dec 2011 10:31:45 GMT
	(envelope-from nobody)
Message-Id: <201112121031.pBCAVjSw034995@red.freebsd.org>
Date: Mon, 12 Dec 2011 10:31:45 GMT
From: Spil <spil.oss@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [mail/up-imapproxy] Fails to start on boot when using dovecot as IMAP server
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: spil.oss@gmail.com

>Number:         163200
>Category:       ports
>Synopsis:       mail/up-imapproxy: Fails to start on boot when using dovecot as IMAP server
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    scheidell
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 12 10:40:01 UTC 2011
>Closed-Date:    Fri Jan 06 00:58:10 UTC 2012
>Last-Modified:  Fri Jan  6 01:00:22 UTC 2012
>Originator:     Spil
>Release:        8.2-RELEASE-p3
>Organization:
n.a.
>Environment:
FreeBSD gw.example.org 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #3: Sat Oct 15 12:16:07 CEST 2011     root@gw.example.org:/usr/obj/usr/src/sys/FREEBSD82  i386
>Description:
On boot, up-imapproxy fails to start when using mail/dovecot2 as imap server.
>How-To-Repeat:
Install mail/up-imapproxy and mail/dovecot2 and enable both services in rc.conf
reboot
"Dec  4 13:13:07 email root: /etc/rc: WARNING: failed to start imapproxyd"

>Fix:
Add dovecot to # REQUIRE in /usr/local/etc/rc.d/imapproxyd

# REQUIRE: DAEMON courier_imap_imapd courier_imap_imapd_ssl cyrus_imapd inetd dovecot


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mbr 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Dec 12 10:40:09 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163200 
Responsible-Changed-From-To: mbr->freebsd-ports-bugs 
Responsible-Changed-By: tabthorpe 
Responsible-Changed-When: Mon Jan 2 04:47:35 UTC 2012 
Responsible-Changed-Why:  
Reassign to the heap 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163200 
Responsible-Changed-From-To: freebsd-ports-bugs->scheidell  
Responsible-Changed-By: scheidell 
Responsible-Changed-When: Thu Jan 5 02:28:06 UTC 2012 
Responsible-Changed-Why:  
I'll take it 

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

From: Michael Scheidell <scheidell@secnap.net>
To: bug-followup@freebsd.org
Cc: gabor@freebsd.org
Subject: Re: ports/163200: mail/up-imapproxy: Fails to start on boot
 when using dovecot as IMAP server
Date: Wed, 4 Jan 2012 21:48:29 -0500 (EST)

 --ELM1325731709-23451-0_
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain; charset="US-ASCII"
 
 Spil:  Can you try this? (do a make config and select 'with dovecot')
 
 Gabor: how is my solution? I guess we could just put 'dovecot' at end of dependeny list.
 no portsbump? default is a no op, and anyone who installs it from scratch will get new rc file.
 
 no pkg-plist changes.
 
 
 -- 
 Michael Scheidell, CTO
 SECNAP Network Security Corporation
 (561) 999-5000 scheidell@secnap.net
 http://www.secnap.com/
 
 ______________________________________________________________________
 This email has been scanned and certified safe by SpammerTrap(r). 
 For Information please see http://www.spammertrap.com/
 ______________________________________________________________________  
   
 --ELM1325731709-23451-0_
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain
 Content-Disposition: attachment; filename="pr_163200_mail_up-imapproxy.txt"
 
 Index: Makefile
 ===================================================================
 RCS file: /home/pcvs/ports/mail/up-imapproxy/Makefile,v
 retrieving revision 1.22
 diff -u -r1.22 Makefile
 --- Makefile	2 Jan 2012 04:39:11 -0000	1.22
 +++ Makefile	5 Jan 2012 02:45:11 -0000
 @@ -27,6 +27,16 @@
  
  CONFIGURE_ARGS+=	--with-openssl=${OPENSSLBASE}
  
 +OPTIONS=	DOVECOT "Use with dovecot2" off
 +
 +.include <bsd.port.pre.mk>
 +.if defined(WITH_DOVECOT)
 +SUB_LIST+=	DOVECOT="dovecot"
 +RUN_DEPENDS+=	dovecot>=1.0:${PORTSDIR}/mail/dovecot2
 +.else
 +SUB_LIST+=	DOVECOT=""
 +.endif
 +
  do-install:
  .if !defined(NOPORTDOCS)
  	@${MKDIR} ${DOCSDIR}
 @@ -36,4 +46,4 @@
  	@${INSTALL_DATA} ${WRKSRC}/scripts/imapproxy.conf ${PREFIX}/etc/imapproxyd.conf.sample
  	@${CAT} ${PKGMESSAGE}
  
 -.include <bsd.port.mk>
 +.include <bsd.port.post.mk>
 Index: files/imapproxyd.sh.in
 ===================================================================
 RCS file: /home/pcvs/ports/mail/up-imapproxy/files/imapproxyd.sh.in,v
 retrieving revision 1.5
 diff -u -r1.5 imapproxyd.sh.in
 --- files/imapproxyd.sh.in	27 Mar 2010 00:13:26 -0000	1.5
 +++ files/imapproxyd.sh.in	5 Jan 2012 02:45:11 -0000
 @@ -3,7 +3,7 @@
  # $FreeBSD: ports/mail/up-imapproxy/files/imapproxyd.sh.in,v 1.5 2010/03/27 00:13:26 dougb Exp $
  #
  # PROVIDE: imapproxyd
 -# REQUIRE: DAEMON courier_imap_imapd courier_imap_imapd_ssl cyrus_imapd inetd
 +# REQUIRE: DAEMON courier_imap_imapd courier_imap_imapd_ssl cyrus_imapd inetd %%DOVECOT%%
  # KEYWORD: shutdown
  
  #
 
 --ELM1325731709-23451-0_--
State-Changed-From-To: open->feedback  
State-Changed-By: scheidell 
State-Changed-When: Thu Jan 5 02:52:43 UTC 2012 
State-Changed-Why:  
Waiting for submitters feedback on patch 

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

From: =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= <gabor@t-hosting.hu>
To: Michael Scheidell <scheidell@secnap.net>
Cc: bug-followup@freebsd.org, gabor@freebsd.org
Subject: Re: ports/163200: mail/up-imapproxy: Fails to start on boot when
 using dovecot as IMAP server
Date: Thu, 05 Jan 2012 23:56:03 +0100

 On 2012.01.05. 3:48, Michael Scheidell wrote:
 > Gabor: how is my solution? I guess we could just put 'dovecot' at end of dependeny list.
 > no portsbump? default is a no op, and anyone who installs it from scratch will get new rc file.
 >
 > no pkg-plist changes.
 Looks a clean solution, you should just put a newline after the pre 
 include to make it more readable.
 
 Gabor
State-Changed-From-To: feedback->closed  
State-Changed-By: scheidell 
State-Changed-When: Fri Jan 6 00:57:07 UTC 2012 
State-Changed-Why:  
Patch committed that has an option knob to activate dovedot dependencyn 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/163200: commit references a PR
Date: Fri,  6 Jan 2012 00:56:56 +0000 (UTC)

 scheidell    2012-01-06 00:56:42 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/up-imapproxy    Makefile 
     mail/up-imapproxy/files imapproxyd.sh.in 
   Log:
   - Add option knob to suggest to rcorder that it start dovecot first
   
   PR:             ports/163200
   Submitted by:   Spil <spil.oss@gmail.com>
   Approved by:    gabor (mentor)
   
   Revision  Changes    Path
   1.23      +12 -1     ports/mail/up-imapproxy/Makefile
   1.6       +2 -2      ports/mail/up-imapproxy/files/imapproxyd.sh.in
 _______________________________________________
 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"
 
>Unformatted:
