packages: cacti/cacti-config.patch, cacti/cacti.spec, cacti/cacti.cfg.php (...
glen
glen at pld-linux.org
Mon Dec 13 11:19:54 CET 2010
Author: glen Date: Mon Dec 13 10:19:54 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- fix config syntax error, actually use just one config file from webapps dir; rel 5
---- Files affected:
packages/cacti:
cacti-config.patch (1.9 -> 1.10) , cacti.spec (1.133 -> 1.134) , cacti.cfg.php (1.4 -> NONE) (REMOVED)
---- Diffs:
================================================================
Index: packages/cacti/cacti-config.patch
diff -u packages/cacti/cacti-config.patch:1.9 packages/cacti/cacti-config.patch:1.10
--- packages/cacti/cacti-config.patch:1.9 Mon Nov 15 10:17:34 2010
+++ packages/cacti/cacti-config.patch Mon Dec 13 11:19:48 2010
@@ -1,5 +1,14 @@
---- cacti-0.8.7b/include/global.php~ 2008-10-05 04:29:33.131404241 +0300
-+++ cacti-0.8.7b/include/global.php 2008-10-05 04:38:29.740276226 +0300
+--- cacti-0.8.7b/include/global.php 2008-10-05 04:38:29.740276226 +0300
++++ cacti-0.8.7g/include/global.php 2010-12-13 12:10:44.312310245 +0200
+@@ -42,7 +42,7 @@
+ $cacti_session_name = "Cacti";
+
+ /* Include configuration */
+-include(dirname(__FILE__) . "/config.php");
++require '/etc/webapps/cacti/config.php';
+
+ if (isset($config["cacti_version"])) {
+ die("Invalid include/config.php file detected.");
@@ -101,7 +101,8 @@
$config["base_path"] = strtr(ereg_replace("(.*)[\/\\]include", "\\1", dirname(__FILE__)), "\\", "/");
$config["library_path"] = ereg_replace("(.*[\/\\])include", "\\1lib", dirname(__FILE__));
@@ -10,33 +19,30 @@
/* colors */
$colors["dark_outline"] = "454E53";
-diff -ur cacti-0.8.7g/include/config.php cacti-0.8.7g.new//include/config.php
---- cacti-0.8.7g/include/config.php 2010-07-10 00:33:46.000000000 +0200
-+++ cacti-0.8.7g.new//include/config.php 2010-11-15 10:12:12.503157839 +0100
-@@ -22,7 +22,11 @@
- +-------------------------------------------------------------------------+
- */
-
--/* make sure these values refect your actual database/host/user/password */
-+/*
-+ * !!! Use /etc/webapps/cacti/config.php instead of this section !!!
-+ *
-+ * Make sure these values refect your actual database/host/user/password
-+
+--- cacti-0.8.7g/include/config.php~ 2010-12-13 12:15:08.000000000 +0200
++++ cacti-0.8.7g/include/config.php 2010-12-13 12:16:09.275611204 +0200
+@@ -26,8 +26,8 @@
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
-@@ -30,6 +34,10 @@
- $database_password = "cactiuser";
+-$database_username = "cactiuser";
+-$database_password = "cactiuser";
++$database_username = "mysql";
++$database_password = "";
$database_port = "3306";
-
-+ */
-+
-+require '/etc/webapps/cacti/config.php';
-+
+
+ /* load up old style plugins here */
+@@ -39,9 +39,7 @@
+ ex: if your cacti install as at http://serverip/cacti/ this
+ would be set to /cacti/
+ */
+-$url_path = "/";
++$url_path = '/cacti/';
+
/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";
-
+-
+-?>
--- cacti-0.8.7b/include/global_settings.php~ 2008-10-05 04:29:33.121404239 +0300
+++ cacti-0.8.7b/include/global_settings.php 2008-10-05 04:41:11.807395633 +0300
@@ -96,7 +96,7 @@
================================================================
Index: packages/cacti/cacti.spec
diff -u packages/cacti/cacti.spec:1.133 packages/cacti/cacti.spec:1.134
--- packages/cacti/cacti.spec:1.133 Mon Dec 13 11:06:01 2010
+++ packages/cacti/cacti.spec Mon Dec 13 11:19:48 2010
@@ -8,12 +8,11 @@
Summary(pl.UTF-8): Cacti - frontend w PHP do rrdtoola
Name: cacti
Version: 0.8.7g
-Release: 4
+Release: 5
License: GPL
Group: Applications/WWW
Source0: http://www.cacti.net/downloads/%{name}-%{version}.tar.gz
# Source0-md5: 268421cb1a58d3444f7ecbddb4c4b016
-Source1: %{name}.cfg.php
Source2: %{name}.crontab
Source3: %{name}-apache.conf
Source4: %{name}-lighttpd.conf
@@ -189,7 +188,7 @@
cp -a log $RPM_BUILD_ROOT/var/log/%{name}
cp -a rra $RPM_BUILD_ROOT/var/lib/%{name}
-cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/config.php
+mv $RPM_BUILD_ROOT{%{_appdir}/include,%{_sysconfdir}}/config.php
cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}
cp -a %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
@@ -284,6 +283,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.134 2010/12/13 10:19:48 glen
+- fix config syntax error, actually use just one config file from webapps dir; rel 5
+
Revision 1.133 2010/12/13 10:06:01 glen
- adjust PA patch for current patchset
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cacti/cacti-config.patch?r1=1.9&r2=1.10&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cacti/cacti.spec?r1=1.133&r2=1.134&f=u
More information about the pld-cvs-commit
mailing list