svn commit: r409887 - in head/www/lightsquid: . files
Renato Botelho
garga at FreeBSD.org
Tue Mar 1 18:15:24 UTC 2016
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;
More information about the svn-ports-head
mailing list