1 %define namesrc configmanager
2 %include /usr/lib/rpm/macros.perl
3 Summary: Plugin for Cacti - for download/upload routers switches configuration
4 Summary(pl.UTF-8): Wtyczka do Cacti -
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 Plugin for Cacti - configmanager
24 With this plugin you can easily schedule the download/upload of the
25 configuration of your routers, switches and any devices (or change in
26 one click some parameters of hundert of switches ... dangerous but
27 possible now). It should function for all type of router or switches.
29 %description -l pl.UTF-8
36 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
42 cd %{namesrc}%{version}
43 cp -aRf * $RPM_BUILD_ROOT%{webcactipluginroot}
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %doc %{namesrc}%{version}/{Manual.txt,template.txt,configmanager_trap_list.txt}