From 6dbf3be744dea31034cc7620ffde0474b59970b9 Mon Sep 17 00:00:00 2001 From: glewis Date: Thu, 17 Jul 2003 20:39:08 +0000 Subject: . Make the monthly script Y2K compliant (!) . Bump PORTREVISION. PR: 15477 --- www/wwwstat/Makefile | 1 + www/wwwstat/files/patch-monthly.pl | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 www/wwwstat/files/patch-monthly.pl (limited to 'www/wwwstat') diff --git a/www/wwwstat/Makefile b/www/wwwstat/Makefile index 50c764e..7f64edd 100644 --- a/www/wwwstat/Makefile +++ b/www/wwwstat/Makefile @@ -7,6 +7,7 @@ PORTNAME= wwwstat PORTVERSION= 2.01 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= ftp://www.ics.uci.edu/pub/websoft/wwwstat/ \ ftp://ftp.gwdg.de/pub/misc/www-stat/websoft/wwwstat/ diff --git a/www/wwwstat/files/patch-monthly.pl b/www/wwwstat/files/patch-monthly.pl new file mode 100644 index 0000000..aef0a21 --- /dev/null +++ b/www/wwwstat/files/patch-monthly.pl @@ -0,0 +1,19 @@ +$FreeBSD$ + +--- monthly.pl.orig Thu Jul 17 14:24:55 2003 ++++ monthly.pl Thu Jul 17 14:26:02 2003 +@@ -66,11 +66,13 @@ + if ($mon == 0) { $mon = 11; $year -= 1; } + else { $mon -= 1; } + ++$year += 1900; ++ + $LastMonth = $MoY[$mon]; + + $ArcName =~ s/%M/$LastMonth$year/; + +-$ArcStats = '/dc/ud/www/documentroot/Admin/stats-19' . $year . ++$ArcStats = '/dc/ud/www/documentroot/Admin/stats-' . $year . + '/' . $LastMonth . '.wwwstats.html'; + + print "Figured out that last month was $LastMonth $year\n"; -- cgit v1.1