Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Mar 2016 18:15:22 +0000 (UTC)
From:      Renato Botelho <garga@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r409887 - in head/www/lightsquid: . files
Message-ID:  <201603011815.u21IFMC9071983@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 (<FF>) {
+ 	  next;
+ 	};
+ 	
+-	if ($Ltype =~ m/HIT/) {
++	if ($Ltype =~ m/(HIT|UNMODIFIED)/) {
+ 	  $CacheHIT+=$Lsize;
+ 	} else {
+ 	  $CacheMISS+=$Lsize;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603011815.u21IFMC9071983>