1 %define namesrc superlinks
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-superlinks
9 Group: Applications/WWW
10 Source0: http://wotsit.thingy.com/haj/cacti/%{namesrc}-%{version}.zip
11 # Source0-md5: 2fe58f1fe66071c90b2c4a9a68ed8fdb
12 URL: http://wotsit.thingy.com/haj/cacti/superlinks-plugin.html
13 BuildRequires: rpm-perlprov
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
21 This is a plugin for the Cacti Plugin Architecture created by Jimmy
22 Conner for Cacti 0.8.x (0.9.0 is slated to have a new plugin system
23 from the start). It it lets you have any number of pages of arbitrary
24 HTML content behind tabs at the top of the page or extra entries on
25 the Console menu. You could use this to integrate other tools into
26 Cacti - say you want to have links to Smokeping, or Request Tracker,
29 It is intended as a replacement for the Links plugin that I wrote some
30 time ago, but with the following key improvements:
32 * Any number of tabs/menu items
33 * For tabs, a Cacti-style tab image is generated, so your additional
34 pages are integrated into Cacti better
35 * It uses Weathermap's access-control code, so you can make tabs
36 that are only visible to certain users
37 * In addition to tabs, there is the option to make Console Menu
38 items, and 'Welcome Page' items.
39 * You can embed an external webpage directly, without writing any
40 HTML, if that's all you need.
42 %description -l pl.UTF-8
43 To jest bardzo prosta wtyczka dla architektury wtyczek Cacti
44 stworzonej przez Jimmy'ego Smitha dla Cacti 0.8.x (0.9.0 ma mieć nowy
45 system wtyczek). Pozwala umieścić dowolną treść HTML jako zakładkę na
46 górnej stronie. Można użyć jej do zintegrowania innych narzędzi z Cacti
47 - np. odnośników do Smokepinga, Request Trackera lub Nagiosa...
50 %setup -q -n %{namesrc}
52 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
57 cp -aRf * $RPM_BUILD_ROOT%{webcactipluginroot}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)