]> git.pld-linux.org Git - packages/cacti-plugin-configmanager.git/blob - cacti-plugin-configmanager.spec
- cleanups
[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" no
32    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
40 #Wtyczka do Cacti - 
41
42 %prep
43 %setup -q -c -a1
44
45 # undos the source
46 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
51
52 cd %{namesrc}%{version}
53 cp -a * $RPM_BUILD_ROOT%{webcactipluginroot}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc %{namesrc}%{version}/{Manual.txt,template.txt,configmanager_trap_list.txt}
61 %{webcactipluginroot}
This page took 0.059457 seconds and 3 git commands to generate.