From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Nov 19 11:00:44 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB56416A41F for ; Sat, 19 Nov 2005 11:00:43 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02A9943D4C for ; Sat, 19 Nov 2005 11:00:42 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAJB0gob093566 for ; Sat, 19 Nov 2005 11:00:42 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAJB0gDu093562; Sat, 19 Nov 2005 11:00:42 GMT (envelope-from gnats) Resent-Date: Sat, 19 Nov 2005 11:00:42 GMT Resent-Message-Id: <200511191100.jAJB0gDu093562@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, Angelo Turetta Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDA0616A41F for ; Sat, 19 Nov 2005 10:57:43 +0000 (GMT) (envelope-from aturetta@stable.home.commit.it) Received: from stable.home.commit.it (81-174-12-226.f5.ngi.it [81.174.12.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E73F43D53 for ; Sat, 19 Nov 2005 10:57:42 +0000 (GMT) (envelope-from aturetta@stable.home.commit.it) Received: from stable.home.commit.it (localhost [127.0.0.1]) by stable.home.commit.it (8.13.4/8.13.4) with ESMTP id jAJAv4Jt001300 for ; Sat, 19 Nov 2005 11:57:04 +0100 (CET) (envelope-from aturetta@stable.home.commit.it) Received: (from root@localhost) by stable.home.commit.it (8.13.4/8.13.4/Submit) id jAJAv4cn001299; Sat, 19 Nov 2005 11:57:04 +0100 (CET) (envelope-from aturetta) Message-Id: <200511191057.jAJAv4cn001299@stable.home.commit.it> Date: Sat, 19 Nov 2005 11:57:04 +0100 (CET) From: Angelo Turetta To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/89273: security/ipsec-tools has different default conf file than old racoon 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: Sat, 19 Nov 2005 11:00:44 -0000 >Number: 89273 >Category: ports >Synopsis: security/ipsec-tools has different default conf file than old racoon >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 19 11:00:42 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Angelo Turetta >Release: FreeBSD 6.0-STABLE i386 >Organization: Commit.it >Environment: System: FreeBSD stable.home.commit.it 6.0-STABLE FreeBSD 6.0-STABLE #0: Fri Nov 18 20:12:17 CET 2005 aturetta@stable.home.commit.it:/usr/obj/usr/src/sys/IPSEC i386 >Description: security/racoon has recently been removed in favor of the officially maintained security/ipsec-tools. The usual 'portupgrade -fo security/ipsec-tools racoon' fixed things for me, but I discovered that the new port has a different default location for the config file: /usr/local/etc/racoon.conf instead of /usr/local/etc/racoon/racoon.conf. The problem is that the racoon.sh startup script checks for presence of the file in the old location, while the program itself tries to read it from the new one. The problem is amplified by lack of a default config file, which would poit one in the right direction. An additional problem is that the error message is somewhat cryptic. Instead of a usual 'file not found ', it logs something like 'glob found no matches' which is hardly significant >How-To-Repeat: >Fix: Move your racoon.conf over to directory /usr/local/etc, or add "-f /usr/local/etc/racoon/racoon.conf" to your /etc/rc.conf:racoon_flags variable. AND please fix the racoon.sh installed by the port I think this is worth an entry in /usr/ports/UPDATING ====================== begin patch ====================== Index: security/ipsec-tools/files/racoon.sh =================================================================== RCS file: /home/ncvs/ports/security/ipsec-tools/files/racoon.sh,v retrieving revision 1.1 diff -u -r1.1 racoon.sh --- security/ipsec-tools/files/racoon.sh 5 Sep 2005 14:13:42 -0000 1.1 +++ security/ipsec-tools/files/racoon.sh 19 Nov 2005 10:53:52 -0000 @@ -31,7 +31,7 @@ rcvar=`set_rcvar` command="${prefix}/sbin/racoon" pidfile="/var/run/racoon.pid" -required_files="${prefix}/etc/racoon/racoon.conf" +required_files="${prefix}/etc/racoon.conf" stop_postcmd="racoon_poststop" racoon_poststop() { ======================= end patch ======================= >Release-Note: >Audit-Trail: >Unformatted: