]> git.pld-linux.org Git - packages/cacti-plugin-boost.git/commitdiff
- setup cache path
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Dec 2010 06:32:25 +0000 (06:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-plugin-boost.spec -> 1.7
    paths.patch -> 1.1

cacti-plugin-boost.spec
paths.patch [new file with mode: 0644]

index 5257676330118c300e059b87f616c053dfa2c11e..66c50004c25973cfd5694d579aa755688983d123 100644 (file)
@@ -6,20 +6,22 @@ Summary:      Plugin for Cacti - Boost
 Summary(pl.UTF-8):     Wtyczka do Cacti - Boost
 Name:          cacti-plugin-boost
 Version:       4.3
-Release:       0.1
+Release:       0.3
 License:       GPL v2
 Group:         Applications/WWW
 Source0:       http://docs.cacti.net/_media/plugin:boost-v%{version}-1.tgz
 # Source0-md5: f4df111245fd9c11c5496b36e7971ef6
+Patch0:                paths.patch
 URL:           http://docs.cacti.net/plugin:boost
 BuildRequires: rpmbuild(macros) >= 1.553
-Requires:      cacti >= 0.8.7
+Requires:      cacti >= 0.8.7g-6
 Provides:      cacti(pia) >= 2.8
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                cactidir                /usr/share/cacti
 %define                plugindir               %{cactidir}/plugins/%{plugin}
+%define                cachedir                /var/cache/cacti/%{plugin}
 
 %description
 Cacti plugin that boosts Cacti performance especially for large sites.
@@ -47,12 +49,13 @@ dużych serwisów.
 
 %prep
 %setup -qc
-mv boost/* .
+mv boost/* .; rmdir boost
 %undos -f php
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{plugindir}
+install -d $RPM_BUILD_ROOT{%{plugindir},%{cachedir}}
 cp -a . $RPM_BUILD_ROOT%{plugindir}
 %{__rm} $RPM_BUILD_ROOT%{plugindir}/{README,LICENSE}
 %{__rm} $RPM_BUILD_ROOT%{plugindir}/cacti_rrdsvc
@@ -64,3 +67,4 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc LICENSE README
 %{plugindir}
+%attr(730,root,http) %dir %{cachedir}
diff --git a/paths.patch b/paths.patch
new file mode 100644 (file)
index 0000000..4043e5d
--- /dev/null
@@ -0,0 +1,11 @@
+--- boost/setup.php~   2010-12-14 08:09:07.000000000 +0200
++++ boost/setup.php    2010-12-14 08:28:03.991535003 +0200
+@@ -1960,7 +1960,7 @@
+                       "description" => "Specify the location where Boost should place your image files.  These files will be automatically purged by the poller when they expire.",
+                       "method" => "textbox",
+                       "max_length" => "255",
+-                      "default" => ""
++                      "default" => "/var/cache/cacti/boost"
+               ),
+               "boost_process_header" => array(
+                       "friendly_name" => "Process Interlocking",
This page took 0.083469 seconds and 4 git commands to generate.