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