From d7b45ed5f90c983a5c91360354350f9f3e3efeb8 Mon Sep 17 00:00:00 2001 From: Patrick Li Date: Fri, 23 Nov 2001 18:57:43 +0000 Subject: Add hlserver-psychostats, a popular player statistics generator for Half-Life mods Counter Strike and Day of Defeat. Submitted by: Martin Matuska Reviewed by: lioux --- games/hlserver-psychostats/files/patch-stats | 11 +++++++++ games/hlserver-psychostats/files/patch-stats.cfg | 29 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 games/hlserver-psychostats/files/patch-stats create mode 100644 games/hlserver-psychostats/files/patch-stats.cfg (limited to 'games/hlserver-psychostats/files') diff --git a/games/hlserver-psychostats/files/patch-stats b/games/hlserver-psychostats/files/patch-stats new file mode 100644 index 000000000000..fe8a5d5a8105 --- /dev/null +++ b/games/hlserver-psychostats/files/patch-stats @@ -0,0 +1,11 @@ +--- stats.orig Fri Nov 23 13:20:38 2001 ++++ stats Fri Nov 23 13:20:58 2001 +@@ -22,7 +22,7 @@ + my $starttime = time(); # time when stats update started. + + my $OS = $^O; +-my $os_slash = ($OS eq 'linux') ? '/' : '\\'; ++my $os_slash = ($OS eq 'linux' or 'FreeBSD') ? '/' : '\\'; + my $progpath = &getprogdir(); # relative path the script is running in. + + #push(@INC,$progpath); diff --git a/games/hlserver-psychostats/files/patch-stats.cfg b/games/hlserver-psychostats/files/patch-stats.cfg new file mode 100644 index 000000000000..19edfd057234 --- /dev/null +++ b/games/hlserver-psychostats/files/patch-stats.cfg @@ -0,0 +1,29 @@ +--- stats.cfg.orig Sun Nov 18 19:47:50 2001 ++++ stats.cfg Sun Nov 18 19:47:05 2001 +@@ -12,13 +12,13 @@ + # must be on its own line. The directories are loaded in the order given. + + LogPath = { +- /usr/games/halflife/hlds_l/cstrike/logs ++ %%PREFIX%%%%HLDSDIR%%cstrike/logs + } + + # Destination HTML directory. This will usually be a path in your + # webserver root somewhere. + +-HtmlPath = /home/httpd/html/stats ++HtmlPath = %%LOCALBASE%%/www + + # Define what type of server you're running. + # valid options: cstrike, dod +@@ -37,8 +37,8 @@ + # maps for download. If you don't provide maps for download, you don't + # need to worry about it. + +-PicsPath = /home/httpd/html/stats/images/mappics +-DLPath = /home/httpd/html/cstrike/maps ++PicsPath = %%LOCALBASE%%/www/stats/images/mappics ++DLPath = %%LOCALBASE%%/www/stats/maps + + # If a theme has a 'copy' option it will copy any files listed for it + # to the HTMLPATH if it does not already exist. Setting this option to -- cgit v1.2.3