]> git.pld-linux.org Git - packages/cacti-addons.git/commitdiff
- add patch for add_template
authorMichał 'Wolvverine' Panasiewicz <wolvverine@pld-linux.org>
Tue, 25 Dec 2007 04:52:41 +0000 (04:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-addons-add_template.patch -> 1.1
    cacti-addons.spec -> 1.10

cacti-addons-add_template.patch [new file with mode: 0644]
cacti-addons.spec

diff --git a/cacti-addons-add_template.patch b/cacti-addons-add_template.patch
new file mode 100644 (file)
index 0000000..8587adb
--- /dev/null
@@ -0,0 +1,23 @@
+--- cacti-addons-0.1/cacti/add_template.php.orig       2005-08-09 12:28:48.000000000 +0000
++++ cacti-addons-0.1/cacti/add_template.php    2007-12-25 04:37:28.000000000 +0000
+@@ -7,9 +7,8 @@
+ | Version : 0.1 8 Aug 2005                                                |\r
+ +---------------------------------------------------------------------------+\r
+ */\r
+-\r
+-include_once("./include/config.php");\r
+-include_once("./lib/import.php");\r
++include_once("/usr/share/cacti/include/config.php");
++include_once("/usr/share/cacti/lib/import.php"); 
\r
+ // check if we have good number of argument\r
+ if ($argc != 2 || in_array($argv[1], array('--help', '-help', '-h', '-?')))\r
+@@ -30,7 +29,7 @@
+ $xml_data = fread($fp,filesize($xml_file));\r
\r
+ // import data into cacti. $info_array will contain debugging info.\r
+-$info_array = import_xml_data($xml_data);\r
++$info_array = import_xml_data($xml_data,false);
\r
+ return 0;\r
+ ?>\r
index 49ef4dca72b0fac9cc2e1b50d8decb97c8fea891..6cbe6c9e004cce1395ff149489d35c217eb6afd1 100644 (file)
@@ -1,5 +1,5 @@
 # TODO
-# - add another (another what???)
+# - add another scripts,addons 
 # - patches for path to files (bin,includes)
 # - %%post - add template to cacti
 # - instead of using %{__php} macro, make scripts executable with #!/usr/bin/php !
@@ -9,7 +9,7 @@ Summary:        Add-ons for Cacti
 Summary(pl.UTF-8):     Dodatki do Cacti
 Name:          cacti-addons
 Version:       0.1
-Release:       0.2
+Release:       0.3
 License:       GPL v2
 Group:         Applications/WWW
 #Show locked Machines, Shares and Files from a Samba Server - http://forums.cacti.net/about7516.html
@@ -32,6 +32,10 @@ Source5:     http://forums.cacti.net/files/dnsresponsetimeloop_115.txt
 #URL:  http://www.pawelko.net/Cacti/3-Hddtemp-Template-For-Cacti
 Source6:       http://www.pawelko.net/xmedia/cacti/cacti-linux-hddtemp-1.0.tar.gz
 # Source6-md5: d08898b43978ccbd863076c4b3124987
+# MySQL Host Template - http://www.faemalia.net/mysqlUtils/ , http://forums.cacti.net/viewtopic.php?t=11010
+Source7:       http://www.faemalia.net/mysqlUtils/teMySQLcacti-20060810.tar.gz
+# Source5-md5: 
+Patch0:                %{name}-add_template.patch
 URL:           http://www.debianhelp.co.uk/cactitemplates.htm
 BuildRequires: rpm-perlprov
 BuildRequires: rpmbuild(macros) >= 1.322
@@ -119,6 +123,9 @@ Wykresy temperatury dysków - dane pobierane z hddtemp.
 %prep
 %setup -q -c -a3 -a6
 gzip -dNc %{SOURCE1} > ./ss_poller.php
+%patch0 -p1
+# undos the source
+find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.112374 seconds and 4 git commands to generate.