From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 3 16:40:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA9CE1065674 for ; Thu, 3 Apr 2008 16:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A27FC8FC30 for ; Thu, 3 Apr 2008 16:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m33Ge2r2015616 for ; Thu, 3 Apr 2008 16:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m33Ge2mO015615; Thu, 3 Apr 2008 16:40:02 GMT (envelope-from gnats) Resent-Date: Thu, 3 Apr 2008 16:40:02 GMT Resent-Message-Id: <200804031640.m33Ge2mO015615@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frank Wall Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6CB4106564A for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/122422: Update port: mail/up-imapproxy fix rc.d script to actually set the path to the config file X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 16:40:02 -0000 >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: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 03 16:40:02 UTC 2008 >Closed-Date: >Last-Modified: >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: >Unformatted: