aboutsummaryrefslogtreecommitdiffstats
path: root/www/wwwstat
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2003-07-18 04:39:08 +0800
committerglewis <glewis@FreeBSD.org>2003-07-18 04:39:08 +0800
commit6dbf3be744dea31034cc7620ffde0474b59970b9 (patch)
tree820ffa75fdb498d2e8dfa91f916fbe2ab8660755 /www/wwwstat
parent5fa0e11d7b77f9f158c17b3380ce7b0537a11d65 (diff)
downloadfreebsd-ports-gnome-6dbf3be744dea31034cc7620ffde0474b59970b9.tar.gz
freebsd-ports-gnome-6dbf3be744dea31034cc7620ffde0474b59970b9.tar.zst
freebsd-ports-gnome-6dbf3be744dea31034cc7620ffde0474b59970b9.zip
. Make the monthly script Y2K compliant (!)
. Bump PORTREVISION. PR: 15477
Diffstat (limited to 'www/wwwstat')
-rw-r--r--www/wwwstat/Makefile1
-rw-r--r--www/wwwstat/files/patch-monthly.pl19
2 files changed, 20 insertions, 0 deletions
diff --git a/www/wwwstat/Makefile b/www/wwwstat/Makefile
index 50c764e88ddb..7f64edd3270e 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 000000000000..aef0a2108f3d
--- /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";