From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 12 17:40:01 2009 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 48881106568F for ; Mon, 12 Oct 2009 17:40:01 +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 0B8D38FC0A for ; Mon, 12 Oct 2009 17:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9CHe0Ij092081 for ; Mon, 12 Oct 2009 17:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9CHe006092080; Mon, 12 Oct 2009 17:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 12 Oct 2009 17:40:00 GMT Resent-Message-Id: <200910121740.n9CHe006092080@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, Sevan Janiyan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B3641065672 for ; Mon, 12 Oct 2009 17:38:40 +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 113E38FC1D for ; Mon, 12 Oct 2009 17:38:40 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9CHcdUT062339 for ; Mon, 12 Oct 2009 17:38:39 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n9CHcdYC062338; Mon, 12 Oct 2009 17:38:39 GMT (envelope-from nobody) Message-Id: <200910121738.n9CHcdYC062338@www.freebsd.org> Date: Mon, 12 Oct 2009 17:38:39 GMT From: Sevan Janiyan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/139546: [PATCH] fix net-mgmt/coovachilli so it uses netstat instead of route to display routing information 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: Mon, 12 Oct 2009 17:40:01 -0000 >Number: 139546 >Category: ports >Synopsis: [PATCH] fix net-mgmt/coovachilli so it uses netstat instead of route to display routing information >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Oct 12 17:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Sevan Janiyan >Release: 7.2 >Organization: >Environment: >Description: coovachilli attempts to use route to display routing information, attached diff changes the functions file so that it uses netstat instead. Pointed out & fix provided via private email by Jonathan De Graeve >How-To-Repeat: >Fix: diff -urN net-mgmt/coovachilli.orig/Makefile net-mgmt/coovachilli/Makefile --- net-mgmt/coovachilli.orig/Makefile 2009-10-12 18:10:15.000000000 +0100 +++ net-mgmt/coovachilli/Makefile 2009-10-12 18:21:18.000000000 +0100 @@ -7,6 +7,7 @@ PORTNAME= coovachilli PORTVERSION= 1.0.12 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= http://ap.coova.org/chilli/ \ http://www.geeklan.co.uk/files/ \ diff -urN net-mgmt/coovachilli.orig/files/patch-conf_functions.in net-mgmt/coovachilli/files/patch-conf_functions.in --- net-mgmt/coovachilli.orig/files/patch-conf_functions.in 2009-10-12 18:18:53.000000000 +0100 +++ net-mgmt/coovachilli/files/patch-conf_functions.in 2009-10-12 18:09:22.000000000 +0100 @@ -1,5 +1,5 @@ ---- conf/functions.in.orig 2009-01-10 17:55:30.000000000 +0000 -+++ conf/functions.in 2009-01-10 17:56:42.000000000 +0000 +--- conf/functions.in.orig 2008-04-13 15:58:32.000000000 +0100 ++++ conf/functions.in 2009-10-12 18:08:23.000000000 +0100 @@ -4,7 +4,6 @@ # Licensed under GPL. See http://coova.org/ # @@ -17,3 +17,12 @@ HS_UAMPORT=${HS_UAMPORT:-3990} HS_RADIUS=${HS_RADIUS:-$HS_UAMSERVER} HS_RADSECRET=${HS_RADSECRET:-$HS_UAMSECRET} +@@ -49,7 +46,7 @@ + HS_PAP_OK=${HS_PAP_OK:-on} + HS_DNS1=${HS_DNS1:-$HS_DNS} + HS_DNS1=${HS_DNS1:-$(grep '^nameserver' /etc/resolv.conf | head -n1 | awk '{print $2}')} +-HS_WANIF=${HS_WANIF:-$(route -n|grep '^0.0.0.0'|head -n1|awk '{print $8}')} ++HS_WANIF=${HS_WANIF:-$(netstat -rn|grep '^default'|head -n1|awk '{print $6}')} + + bailout() { echo $1; exit; } + >Release-Note: >Audit-Trail: >Unformatted: