1 %define namesrc configmanager
2 %include /usr/lib/rpm/macros.perl
3 Summary: Plugin for Cacti - download/upload routers and switches configuration
4 Summary(pl.UTF-8): Wtyczka do Cacti - ściąganie/wysyłanie konfiguracji routerów/switchy
5 Name: cacti-plugin-configmanager
9 Group: Applications/WWW
10 Source0: %{namesrc}%{version}.zip
11 # Source0-md5: b84133d0eb4b77cfa5159c414ea1f344
12 Source1: sharednetworkclass0.36.zip
13 # Source1-md5: bd899585510bff2aefbd892b00253a91
14 URL: http://forums.cacti.net/about12406.html
15 BuildRequires: rpm-perlprov
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
23 With Cacti configmanager plugin you can easily schedule the
24 download/upload of the configuration of your routers, switches and any
25 devices (or change in one click some parameters of a hundred of
26 switches... dangerous but possible now). It should function for all
27 type of router or switches.
29 There are two methods:
30 - "TFTP" (based of "pancho" <http://www.pancho.org/>); with "pure PHP"
31 option there is no need of pancho installation
32 - "multi" can use any scripts or SCP, FTP, SFTP or what you want.
34 %description -l pl.UTF-8
35 Przy użyciu wtyczki Cacti configmanager można łatwo zaszeregować
36 ściąganie lub wysyłanie konfiguracji routerów, switchy i innych
37 urządzeń (lub zmieniać jednym kliknięciem pewne parametry w setce
38 switchy... co jest niebezpieczne, ale teraz wykonalne). Wtyczka
39 powinna działać z dowolnymi routerami i switchami.
42 - "TFTP" (oparta na "pancho" <http://www.pancho.org/>); z opcją "pure
43 PHP" nie ma potrzeby instalacji pancho
44 - "multi", potrafiąca używać dowolne skrypty lub SCP, FTP, SFTP
50 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
56 cd %{namesrc}%{version}
57 cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc %{namesrc}%{version}/{Manual.txt,template.txt,configmanager_trap_list.txt}