From nobody@FreeBSD.org  Thu Apr  3 16:33:12 2008
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 D6CB4106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Apr 2008 16:33:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C12308FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Apr 2008 16:33:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m33GX6O8068551
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 3 Apr 2008 16:33:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m33GX6Cl068550;
	Thu, 3 Apr 2008 16:33:06 GMT
	(envelope-from nobody)
Message-Id: <200804031633.m33GX6Cl068550@www.freebsd.org>
Date: Thu, 3 Apr 2008 16:33:06 GMT
From: Frank Wall <fw@moov.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: mail/up-imapproxy fix rc.d script to actually set the path to the config file
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         122422
>Category:       ports
>Synopsis:       Update port: mail/up-imapproxy fix rc.d script to actually set the path to the config file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mbr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 03 16:40:02 UTC 2008
>Closed-Date:    Sat Jan 02 22:34:14 UTC 2010
>Last-Modified:  Sat Jan 02 22:34:14 UTC 2010
>Originator:     Frank Wall
>Release:        7.0-RELEASE
>Organization:
>Environment:
FreeBSD XXX 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The mail/up-imapproxy rc.d script is missing an entry. This causes the port to not function, because it is not able to find its own config file. Even if imapproxyd_conf is set within rc.conf it will be ignored.

On startup it says:
in.imapproxyd: SetConfigOptions(): Unable to open config file '/etc/imapproxy.conf': No such file or directory -- Exiting

I did a quick fix to the rc.d script to make it work for me.
>How-To-Repeat:
1. install mail/up-imapproxy
2. copy example config file to /usr/local/etc/imapproxyd.conf
3. try to start: /usr/local/etc/rc.d/imapproxyd start
4. you will get an error log message saying:
in.imapproxyd: SetConfigOptions(): Unable to open config file '/etc/imapproxy.conf': No such file or directory -- Exiting
>Fix:
--- imapproxyd.orig     2008-04-03 18:07:24.000000000 +0200
+++ imapproxyd  2008-04-03 18:03:45.000000000 +0200
@@ -27,4 +27,6 @@
 command=/usr/local/sbin/in.imapproxyd
 required_files="${imapproxyd_conf}"
 
+imapproxyd_flags="-f ${imapproxyd_conf}"
+
 run_rc_command "$1"


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mbr 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Apr 3 16:40:07 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

Date: Mon, 8 Sep 2008 12:44:08 +0200
From: Frank Wall <fw@moov.de>
To: bug-followup@FreeBSD.org, fw@moov.de
Subject: Re: [patch] ports/122422: Update port: mail/up-imapproxy fix rc.d
	script to actually set the path to the config file

 unfortunately this bug report is open for five months now.
 Maybe it's due to the lack of a usable patch file, so here it is.
 Hopefully someone will apply it soon :-)
 
 Kind regards
 
 Frank Wall
 
 --- files/imapproxyd.sh.in.orig 2008-09-08 12:44:32.000000000 +0200
 +++ files/imapproxyd.sh.in      2008-09-08 12:45:01.000000000 +0200
 @@ -26,5 +26,6 @@ load_rc_config $name
  
  command=%%PREFIX%%/sbin/in.imapproxyd
  required_files="${imapproxyd_conf}"
 +imapproxyd_flags="-f ${imapproxyd_conf}"
  
  run_rc_command "$1"
 
State-Changed-From-To: open->closed 
State-Changed-By: mbr 
State-Changed-When: Sat Jan 2 22:33:49 UTC 2010 
State-Changed-Why:  
Fixed via autoconf, thanks anyway 

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