]> git.pld-linux.org Git - packages/cacti-plugin-links.git/commitdiff
- patch config
authorMichał 'Wolvverine' Panasiewicz <wolvverine@pld-linux.org>
Wed, 26 Dec 2007 01:55:33 +0000 (01:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-plugin-links-config.patch -> 1.1
    cacti-plugin-links.spec -> 1.5

cacti-plugin-links-config.patch [new file with mode: 0644]
cacti-plugin-links.spec

diff --git a/cacti-plugin-links-config.patch b/cacti-plugin-links-config.patch
new file mode 100644 (file)
index 0000000..f18c8bb
--- /dev/null
@@ -0,0 +1,11 @@
+--- links/links.php.orig       2007-12-26 01:32:48.000000000 +0000
++++ links/links.php    2007-12-26 01:34:05.000000000 +0000
+@@ -8,7 +8,7 @@
+ include_once("./include/top_graph_header.php");
+ print '<div style="margin: 20px;">';
+-include_once($config["base_path"] . "/plugins/links/editme.php");
++include_once("/etc/cacti/plugin-links.php");
+ print '</div></body></html>';
index b2ba2c41fec9b8e1172684720b5b17c903468d8b..38049f1d169503c96ff4a349c0d1753f70676d9d 100644 (file)
@@ -4,12 +4,13 @@ Summary:      Plugin for Cacti - Links
 Summary(pl.UTF-8):     Wtyczka do Cacti - Links
 Name:          cacti-plugin-links
 Version:       0.3
-Release:       0.1
+Release:       1
 License:       GPL v2
 Group:         Applications/WWW
 #!!!!problem with version
 Source0:       http://wotsit.thingy.com/haj/cacti/%{namesrc}-%{version}.zip
 # Source0-md5: cf90133193311a3e3d63d11d3528e7ba
+Patch0:                %{name}-config.patch
 URL:           http://wotsit.thingy.com/haj/cacti/links-plugin.html
 BuildRequires: rpm-perlprov
 Requires:      cacti
@@ -17,6 +18,7 @@ BuildArch:    noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
+%define                webcactipluginconf %{_sysconfdir}/cacti
 
 %description
 This is a very simple plugin for the Cacti Plugin Architecture created
@@ -40,7 +42,8 @@ odnośników do Smokepinga, Request Trackera lub Nagiosa...
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{webcactipluginroot}
+install -d $RPM_BUILD_ROOT{%{webcactipluginroot},%{webcactipluginconf}}
+install editme.php $RPM_BUILD_ROOT%{webcactipluginconf}/plugin-links.php
 cp -aRf * $RPM_BUILD_ROOT%{webcactipluginroot}
 
 %clean
@@ -48,5 +51,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-#%doc LICENSE README 
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{webcactipluginconf}/plugin-links.php
 %{webcactipluginroot}
This page took 0.065298 seconds and 4 git commands to generate.