. Make the monthly script Y2K compliant (!)
. Bump PORTREVISION. PR: 15477
This commit is contained in:
parent
eee48e2cb7
commit
5a0804685b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85066
@ -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/
|
||||
|
19
www/wwwstat/files/patch-monthly.pl
Normal file
19
www/wwwstat/files/patch-monthly.pl
Normal file
@ -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";
|
Loading…
Reference in New Issue
Block a user