Changed files:
cacti-plugin-rrdclean.spec -> 1.11
warning-fixes.patch -> 1.1
Summary: Cacti RRD File Cleaner
Name: cacti-plugin-%{plugin}
Version: 0.40
-Release: 0.4
+Release: 0.5
License: GPL v2
Group: Applications/WWW
Source0: http://docs.cacti.net/_media/plugin:rrdclean-v%{version}.tgz
# Source0-md5: afd7ae246482fbee883485e0430041e8
Patch0: paths.patch
Patch1: fix-paths-handling.patch
+Patch2: warning-fixes.patch
URL: http://docs.cacti.net/plugin:rrdclean
Requires: cacti >= 0.8.6j
Requires: php-common >= 3:4.3.0
mv %{plugin}/* .; rmdir %{plugin}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%install
rm -rf $RPM_BUILD_ROOT
--- /dev/null
+--- cacti-plugin-rrdclean-0.40/rrdcleaner.php 2010-05-18 23:56:45.000000000 +0300
++++ cacti-plugin-rrdclean-0.40/rrdcleaner.php 2010-12-14 09:38:38.595416928 +0200
+@@ -301,7 +301,7 @@
+ $files_db[] = substr(strchr($entry["data_source_path"], "/"),1);
+ }
+
+- if(function_exists(glob)) { //needed because this function is not available on all systems
++ if(function_exists('glob')) { //needed because this function is not available on all systems
+ chdir($rra_path);
+ /* get all rrdfiles in two passes */
+ $files_on_hd = glob("*/*.rrd"); //simply pull all .rrd files out of the directory..