From owner-svn-ports-head@freebsd.org Tue Mar 1 18:15:23 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EED74ABF971; Tue, 1 Mar 2016 18:15:23 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C06971FA2; Tue, 1 Mar 2016 18:15:23 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u21IFM1i071985; Tue, 1 Mar 2016 18:15:22 GMT (envelope-from garga@FreeBSD.org) Received: (from garga@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u21IFMC9071983; Tue, 1 Mar 2016 18:15:22 GMT (envelope-from garga@FreeBSD.org) Message-Id: <201603011815.u21IFMC9071983@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: garga set sender to garga@FreeBSD.org using -f From: Renato Botelho Date: Tue, 1 Mar 2016 18:15:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409887 - in head/www/lightsquid: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2016 18:15:24 -0000 Author: garga Date: Tue Mar 1 18:15:22 2016 New Revision: 409887 URL: https://svnweb.freebsd.org/changeset/ports/409887 Log: Patch lightsquid to consider TCP_REFRESH_UNMODIFIED as a HIT and increment counter. Bump PORTREVISION Obtained from: pfSense Forum https://forum.pfsense.org/index.php?topic=107659.msg599640#msg599640 Sponsored by: Rubicon Communications (Netgate) Modified: head/www/lightsquid/Makefile head/www/lightsquid/files/patch-lightparser.pl Modified: head/www/lightsquid/Makefile ============================================================================== --- head/www/lightsquid/Makefile Tue Mar 1 16:41:13 2016 (r409886) +++ head/www/lightsquid/Makefile Tue Mar 1 18:15:22 2016 (r409887) @@ -3,7 +3,7 @@ PORTNAME= lightsquid PORTVERSION= 1.8 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= www MASTER_SITES= SF Modified: head/www/lightsquid/files/patch-lightparser.pl ============================================================================== --- head/www/lightsquid/files/patch-lightparser.pl Tue Mar 1 16:41:13 2016 (r409886) +++ head/www/lightsquid/files/patch-lightparser.pl Tue Mar 1 18:15:22 2016 (r409887) @@ -1,6 +1,6 @@ ---- lightparser.pl.orig Wed Jan 10 19:06:49 2007 -+++ lightparser.pl Thu Jan 11 00:53:59 2007 -@@ -36,7 +36,7 @@ +--- lightparser.pl.orig 2009-07-02 22:15:32 UTC ++++ lightparser.pl +@@ -36,7 +36,7 @@ require "lightsquid.cfg"; require "common.pl"; #include ip2name function @@ -8,4 +8,13 @@ +require "$ip2namepath/ip2name.$ip2name"; $SIG{INT} = \&LOCKREMOVER; # traps keyboard interrupt - my $lockfilepath ="$lockpath/lockfile"; + my $lockfilepath ="$lockpath/lockfile"; +@@ -202,7 +202,7 @@ while () { + next; + }; + +- if ($Ltype =~ m/HIT/) { ++ if ($Ltype =~ m/(HIT|UNMODIFIED)/) { + $CacheHIT+=$Lsize; + } else { + $CacheMISS+=$Lsize;