packages: cacti-plugin-boost/cacti-plugin-boost.spec, cacti-plugin-boost/pa...

glen glen at pld-linux.org
Tue Dec 14 07:32:30 CET 2010


Author: glen                         Date: Tue Dec 14 06:32:30 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- setup cache path

---- Files affected:
packages/cacti-plugin-boost:
   cacti-plugin-boost.spec (1.6 -> 1.7) , paths.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/cacti-plugin-boost/cacti-plugin-boost.spec
diff -u packages/cacti-plugin-boost/cacti-plugin-boost.spec:1.6 packages/cacti-plugin-boost/cacti-plugin-boost.spec:1.7
--- packages/cacti-plugin-boost/cacti-plugin-boost.spec:1.6	Tue Dec 14 07:12:00 2010
+++ packages/cacti-plugin-boost/cacti-plugin-boost.spec	Tue Dec 14 07:32:25 2010
@@ -7,20 +7,22 @@
 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.
@@ -48,12 +50,13 @@
 
 %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
@@ -65,6 +68,7 @@
 %defattr(644,root,root,755)
 %doc LICENSE README
 %{plugindir}
+%attr(730,root,http) %dir %{cachedir}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -72,6 +76,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2010/12/14 06:32:25  glen
+- setup cache path
+
 Revision 1.6  2010/12/14 06:12:00  glen
 - up to 4.3, enhance desc
 

================================================================
Index: packages/cacti-plugin-boost/paths.patch
diff -u /dev/null packages/cacti-plugin-boost/paths.patch:1.1
--- /dev/null	Tue Dec 14 07:32:30 2010
+++ packages/cacti-plugin-boost/paths.patch	Tue Dec 14 07:32:25 2010
@@ -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",
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cacti-plugin-boost/cacti-plugin-boost.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list