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