From owner-freebsd-ports Tue Dec 11 6:50: 9 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 64FFE37B41C for ; Tue, 11 Dec 2001 06:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBBEo1i43441; Tue, 11 Dec 2001 06:50:01 -0800 (PST) (envelope-from gnats) Received: from fep1.012.net.il (fep1.goldenlines.net.il [212.117.129.200]) by hub.freebsd.org (Postfix) with ESMTP id 7276D37B416 for ; Tue, 11 Dec 2001 06:45:25 -0800 (PST) Received: from alchemy.oven.org ([212.199.33.34]) by fep1.012.net.il with ESMTP id <20011211144551.FTFT1180.fep1@alchemy.oven.org>; Tue, 11 Dec 2001 16:45:51 +0200 Received: (from mapc@localhost) by alchemy.oven.org (8.11.6/8.11.5) id fBBEjOF63727; Tue, 11 Dec 2001 16:45:24 +0200 (IST) (envelope-from mapc) Message-Id: <200112111445.fBBEjOF63727@alchemy.oven.org> Date: Tue, 11 Dec 2001 16:45:24 +0200 (IST) From: Roman Shterenzon To: FreeBSD-gnats-submit@freebsd.org Cc: roman@xpert.com X-Send-Pr-Version: 3.113 Subject: ports/32695: Don't display private networks hits. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32695 >Category: ports >Synopsis: Don't display private networks hits. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Dec 11 06:50:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Roman Shterenzon >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD alchemy.oven.org 4.4-STABLE FreeBSD 4.4-STABLE #0: Thu Nov 22 12:47:10 IST 2001 root@alchemy.oven.org:/local/src/sys/compile/ALCHEMY i386 >Description: I made gtk-gnutella ignore hits from private networks which are useless anyway. >How-To-Repeat: >Fix: diff -urN /usr/ports/net/gtk-gnutella/Makefile gtk-gnutella/Makefile --- /usr/ports/net/gtk-gnutella/Makefile Fri Nov 23 12:13:23 2001 +++ gtk-gnutella/Makefile Tue Dec 11 16:43:25 2001 @@ -7,6 +7,7 @@ PORTNAME= gtk-gnutella PORTVERSION= 0.18 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://gtk-gnutella.sourceforge.net/download/ \ diff -urN /usr/ports/net/gtk-gnutella/files/patch-search.c gtk-gnutella/files/patch-search.c --- /usr/ports/net/gtk-gnutella/files/patch-search.c Thu Jan 1 02:00:00 1970 +++ gtk-gnutella/files/patch-search.c Fri Dec 7 00:14:32 2001 @@ -0,0 +1,20 @@ +--- src/search.c.orig Thu Dec 6 23:52:35 2001 ++++ src/search.c Fri Dec 7 00:05:49 2001 +@@ -13,6 +13,7 @@ + #include "dialog-filters.h" + #include "routing.h" + #include "autodownload.h" ++#include "hosts.h" + + #define MAKE_CODE(a,b,c,d) ( \ + ((guint32) (a) << 24) | \ +@@ -1258,7 +1259,8 @@ + if ( + sch->items >= search_max_results || + search_result_is_dup(sch, rc) || +- !filter_record(sch, rc) ++ !filter_record(sch, rc) || ++ !check_valid_host(rc->results_set->ip,6346) + ) { + rs->records = g_slist_remove(rs->records, rc); + rs->num_recs--; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message