2 %include /usr/lib/rpm/macros.perl
3 Summary: Plugin for Cacti - Links
4 Summary(pl.UTF-8): Wtyczka do Cacti - Links
5 Name: cacti-plugin-links
9 Group: Applications/WWW
10 #!!!!problem with version
11 Source0: http://wotsit.thingy.com/haj/cacti/%{plugin}-%{version}.zip
12 # Source0-md5: cf90133193311a3e3d63d11d3528e7ba
13 Patch0: %{name}-config.patch
14 URL: http://wotsit.thingy.com/haj/cacti/links-plugin.html
15 BuildRequires: rpm-perlprov
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define cactidir /usr/share/cacti
22 %define plugindir %{cactidir}/plugins/%{plugin}
23 %define _sysconfdir /etc/cacti
26 This is a very simple plugin for the Cacti Plugin Architecture created
27 by Jimmy Smith for Cacti 0.8.x (0.9.0 is slated to have a new plugin
28 system from the start). It's just about the smallest plugin you can
29 have - it lets you have a page of arbitrary HTML content behind one of
30 the tabs at the top of the page. You could use this to integrate other
31 tools into Cacti - say you want to have links to Smokeping, or Request
34 %description -l pl.UTF-8
35 To jest bardzo prosta wtyczka dla architektury wtyczek Cacti
36 stworzonej przez Jimmy'ego Smitha dla Cacti 0.8.x (0.9.0 ma mieć nowy
37 system wtyczek). Jest to zapewne najmniejsza wtyczka jaką można mieć -
38 pozwala umieścić dowolną treść HTML pod jedną z zakładek na górnej
39 stronie. Można użyć jej do zintegrowania innych narzędzi z Cacti - np.
40 odnośników do Smokepinga, Request Trackera lub Nagiosa...
43 %setup -q -n %{plugin}
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{plugindir},%{_sysconfdir}}
49 cp -a editme.php $RPM_BUILD_ROOT%{_sysconfdir}/plugin-links.php
50 cp -a . $RPM_BUILD_ROOT%{plugindir}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugin-links.php