Summary(pl.UTF-8): Wtyczka do Cacti - Boost
Name: cacti-plugin-boost
Version: 4.3
-Release: 0.4
+Release: 0.5
License: GPL v2
Group: Applications/WWW
Source0: http://docs.cacti.net/_media/plugin:boost-v%{version}-1.tgz
# Source0-md5: f4df111245fd9c11c5496b36e7971ef6
Patch0: paths.patch
+Patch1: chmod.patch
URL: http://docs.cacti.net/plugin:boost
BuildRequires: rpmbuild(macros) >= 1.553
Requires: cacti >= 0.8.7g-6
mv boost/* .; rmdir boost
%undos -f php
%patch0 -p1
+%patch1 -p1
%install
rm -rf $RPM_BUILD_ROOT
--- /dev/null
+chmod 666 is invalid, it should be octal: 0666
+
+but i'd rather not chmod at all, if webserver can write it, so can it read it.
+
+really, it should be configurable (perhaps take some cacti var?)
+--- cacti-plugin-boost-4.3/setup.php~ 2010-12-14 09:15:05.048058428 +0200
++++ cacti-plugin-boost-4.3/setup.php 2010-12-14 23:38:26.442892330 +0200
+@@ -929,7 +929,6 @@
+ if ($fileptr = fopen($cache_file, "w")) {
+ fwrite($fileptr, $data["output"], strlen($data["output"]));
+ fclose($fileptr);
+- chmod($cache_file, 666);
+ }
+ }
+ }else{