Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2026 00:13:10 +0000
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Cc:        Leonid Nevecherya <nevecherya@gmail.com>
Subject:   git: c5231949e340 - 2026Q2 - www/lightsquid: prolong datestamp check up to 2100
Message-ID:  <69eeaa16.1f17f.25dc7d72@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch 2026Q2 has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c5231949e3406dddf0cf7b94d3a528daf0e9e174

commit c5231949e3406dddf0cf7b94d3a528daf0e9e174
Author:     Leonid Nevecherya <nevecherya@gmail.com>
AuthorDate: 2026-04-25 10:25:22 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-04-27 00:11:59 +0000

    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
    
    (cherry picked from commit 91d2c00565533e426305b21c2f1fae5ab59eec3d)
---
 www/lightsquid/Makefile                   |  2 +-
 www/lightsquid/files/patch-lightparser.pl | 18 ++++++++++++++++--
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/www/lightsquid/Makefile b/www/lightsquid/Makefile
index 525e3952a775..67d70c91f683 100644
--- a/www/lightsquid/Makefile
+++ b/www/lightsquid/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	lightsquid
 PORTVERSION=	1.8
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	www
 MASTER_SITES=	SF
 
diff --git a/www/lightsquid/files/patch-lightparser.pl b/www/lightsquid/files/patch-lightparser.pl
index b0a25af57013..3c6b744b79a8 100644
--- a/www/lightsquid/files/patch-lightparser.pl
+++ b/www/lightsquid/files/patch-lightparser.pl
@@ -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;
  	};


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69eeaa16.1f17f.25dc7d72>