]>
Commit | Line | Data |
---|---|---|
1f66a730 | 1 | %define namesrc configmanager |
bcd21f26 | 2 | %include /usr/lib/rpm/macros.perl |
5a3f0df9 JB |
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 | |
bcd21f26 | 5 | Name: cacti-plugin-configmanager |
6b71a164 GS |
6 | Version: 0.76 |
7 | Release: 1 | |
bcd21f26 MWP |
8 | License: GPL v2 |
9 | Group: Applications/WWW | |
10 | Source0: %{namesrc}%{version}.zip | |
6b71a164 GS |
11 | # Source0-md5: d3cdb035a4d47ff464916774dd953457 |
12 | Source1: sharednetworkclass0.40.zip | |
13 | # Source1-md5: b438751d7b696a10a8958ea6e0f407f3 | |
bcd21f26 MWP |
14 | URL: http://forums.cacti.net/about12406.html |
15 | BuildRequires: rpm-perlprov | |
16 | Requires: cacti | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define webcactipluginroot /usr/share/cacti/plugins/%{namesrc} | |
21 | ||
22 | %description | |
5a3f0df9 JB |
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. | |
1f66a730 | 28 | |
5a3f0df9 JB |
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 | |
f1f55e4d | 32 | - "multi" can use any scripts or SCP, FTP, SFTP or what you want. |
1f66a730 | 33 | |
5a3f0df9 JB |
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. | |
bcd21f26 | 40 | |
5a3f0df9 JB |
41 | Istnieją dwie metody: |
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 | |
bcd21f26 MWP |
45 | |
46 | %prep | |
47 | %setup -q -c -a1 | |
48 | ||
49 | # undos the source | |
50 | find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | install -d $RPM_BUILD_ROOT%{webcactipluginroot} | |
55 | ||
1f66a730 ER |
56 | cd %{namesrc}%{version} |
57 | cp -a * $RPM_BUILD_ROOT%{webcactipluginroot} | |
bcd21f26 MWP |
58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
1f66a730 | 64 | %doc %{namesrc}%{version}/{Manual.txt,template.txt,configmanager_trap_list.txt} |
bcd21f26 | 65 | %{webcactipluginroot} |