1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

www/lightsquid: prolong datestamp check up to 2100

lightparser.pl stops processing data at the beginning of 2021 due to a
hardcoded stop date.  This patch substitutes 2100 for 2020.

Reported by:	Oleg Streejak <oleg@pcbtech.ru>
PR:		254382
MFH:		2026Q2
Event:		Wiesbaden Hackathon 202604
This commit is contained in:
Leonid Nevecherya
2026-04-25 12:25:22 +02:00
committed by Robert Clausecker
parent 14e782a209
commit 91d2c00565
2 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PORTNAME= lightsquid
PORTVERSION= 1.8
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= www
MASTER_SITES= SF
+16 -2
View File
@@ -1,6 +1,11 @@
--- lightparser.pl.orig 2009-07-02 22:15:32 UTC
--- lightparser.pl.orig 2026-04-25 10:24:38 UTC
+++ lightparser.pl
@@ -36,7 +36,7 @@ require "lightsquid.cfg";
@@ -32,11 +32,11 @@ push (@INC,(fileparse($0))[1]);
push (@INC,(fileparse($0))[1]);
-require "lightsquid.cfg";
+require "/usr/local/etc/lightsquid/lightsquid.cfg";
require "common.pl";
#include ip2name function
@@ -9,6 +14,15 @@
$SIG{INT} = \&LOCKREMOVER; # traps keyboard interrupt
my $lockfilepath ="$lockpath/lockfile";
@@ -66,7 +66,7 @@ my $filterdatestart=0;
$month=sprintf("%02d",$mon+1);;
my $filterdatestart=0;
-my $filterdatestop =timelocal(59,59,23,31,12-1,2020-1900)+1000;
+my $filterdatestop =timelocal(59,59,23,31,12-1,2100-1900)+1000;
$fToday=1 if ($ARGV[0] eq "today");
$fToday=1 if ($ARGV[0] eq "yesterday");
@@ -202,7 +202,7 @@ while (<FF>) {
next;
};