freebsd-ports/sysutils/ganglia-webfrontend/files/patch-conf.php
Brooks Davis 5fde3eff3b Upgrade to 3.0.0. The only major change is that the webfrontend is now
distributed as part of the main tarball.
2005-02-26 00:38:04 +00:00

33 lines
822 B
PHP

$FreeBSD$
--- conf.php.orig
+++ conf.php
@@ -3,11 +3,7 @@
#
# Gmetad-webfrontend version. Used to check for updates.
#
-$majorversion = 2;
-$minorversion = 5;
-$microversion = 7;
-
-$ganglia_version = "$majorversion.$minorversion.$microversion";
+include_once "./version.php";
#
# The name of the directory in "./templates" which contains the
@@ -22,12 +18,12 @@
#
# Where gmetad stores the rrd archives.
-$gmetad_root = "/var/lib/ganglia";
+$gmetad_root = "/var/db/ganglia";
$rrds = "$gmetad_root/rrds";
# Leave this alone if rrdtool is installed in $gmetad_root,
# otherwise, change it if it is installed elsewhere (like /usr/bin)
-define("RRDTOOL", "/usr/bin/rrdtool");
+define("RRDTOOL", "%%LOCALBASE%%/bin/rrdtool");
#
# If you want to grab data from a different ganglia source specify it here.