]> git.pld-linux.org Git - packages/cacti-plugin-configmanager.git/blob - cacti-plugin-configmanager.spec
ea64dd02bba9ec40fe4f3896d520bebbdaa3c9af
[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 - for download/upload routers switches configuration
4 #Summary(pl.UTF-8):     Wtyczka do Cacti -
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 Plugin for Cacti - configmanager
24
25 With this plugin you can easily schedule the download/upload of the
26 configuration of your routers, switches and any devices (or change in
27 one click some parameters of hundert of switches ... dangerous but
28 possible now). It should function for all type of router or switches.
29
30 There is two method "TFTP" and "multi".
31 - "TFTP" (based of "pancho" <www.pancho.org>) with option "pure PHP"
32   no need of pancho installation.
33 - "multi" can use any scripts or SCP, FTP, SFTP or what you want.
34
35 The syslog plugin and traps could active the download of the pancho
36 config or script for the host which has received a specific event and
37 which the "trap event flag" is active.
38
39 #%description -l pl.UTF-8 #Wtyczka do Cacti -
40
41 %prep
42 %setup -q -c -a1
43
44 # undos the source
45 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
50
51 cd %{namesrc}%{version}
52 cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc %{namesrc}%{version}/{Manual.txt,template.txt,configmanager_trap_list.txt}
60 %{webcactipluginroot}
This page took 0.058805 seconds and 2 git commands to generate.