]> git.pld-linux.org Git - packages/cacti-plugin-configmanager.git/blob - cacti-plugin-configmanager.spec
- en fixes, pl
[packages/cacti-plugin-configmanager.git] / cacti-plugin-configmanager.spec
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
6 Version:        0.75
7 Release:        0.1
8 License:        GPL v2
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
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
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.
28
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.
33
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.
40
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
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
56 cd %{namesrc}%{version}
57 cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc %{namesrc}%{version}/{Manual.txt,template.txt,configmanager_trap_list.txt}
65 %{webcactipluginroot}
This page took 0.066894 seconds and 4 git commands to generate.