]> git.pld-linux.org Git - packages/cacti-plugin-configmanager.git/blob - cacti-plugin-configmanager.spec
- links to sources from Paweł 'duddits' Długosz
[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.76
7 Release:        1
8 License:        GPL v2
9 Group:          Applications/WWW
10 # http://forums.cacti.net/download.php?id=6449
11 Source0:        %{namesrc}%{version}.zip
12 # Source0-md5:  d3cdb035a4d47ff464916774dd953457
13 # http://forums.cacti.net/download.php?id=10980
14 Source1:        sharednetworkclass0.40.zip
15 # Source1-md5:  b438751d7b696a10a8958ea6e0f407f3
16 URL:            http://forums.cacti.net/about12406.html
17 BuildRequires:  rpm-perlprov
18 Requires:       cacti
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
23
24 %description
25 With Cacti configmanager plugin you can easily schedule the
26 download/upload of the configuration of your routers, switches and any
27 devices (or change in one click some parameters of a hundred of
28 switches... dangerous but possible now). It should function for all
29 type of router or switches.
30
31 There are two methods:
32 - "TFTP" (based of "pancho" <http://www.pancho.org/>); with "pure PHP"
33   option there is no need of pancho installation
34 - "multi" can use any scripts or SCP, FTP, SFTP or what you want.
35
36 %description -l pl.UTF-8
37 Przy użyciu wtyczki Cacti configmanager można łatwo zaszeregować
38 ściąganie lub wysyłanie konfiguracji routerów, switchy i innych
39 urządzeń (lub zmieniać jednym kliknięciem pewne parametry w setce
40 switchy... co jest niebezpieczne, ale teraz wykonalne). Wtyczka
41 powinna działać z dowolnymi routerami i switchami.
42
43 Istnieją dwie metody:
44 - "TFTP" (oparta na "pancho" <http://www.pancho.org/>); z opcją "pure
45   PHP" nie ma potrzeby instalacji pancho
46 - "multi", potrafiąca używać dowolne skrypty lub SCP, FTP, SFTP
47
48 %prep
49 %setup -q -c -a1
50
51 # undos the source
52 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
57
58 cd %{namesrc}%{version}
59 cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc %{namesrc}%{version}/{Manual.txt,template.txt,configmanager_trap_list.txt}
67 %{webcactipluginroot}
This page took 0.088084 seconds and 4 git commands to generate.