]> git.pld-linux.org Git - packages/cacti-plugin-configmanager.git/blob - cacti-plugin-configmanager.spec
- init
[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
29 %description -l pl.UTF-8
30 Wtyczka do Cacti - 
31
32 %prep
33 %setup -q -c -a1
34
35 # undos the source
36 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
41
42 cd %{namesrc}%{version} 
43 cp -aRf * $RPM_BUILD_ROOT%{webcactipluginroot}
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc %{namesrc}%{version}/{Manual.txt,template.txt,configmanager_trap_list.txt} 
51 %{webcactipluginroot}
This page took 0.068828 seconds and 4 git commands to generate.