]> git.pld-linux.org Git - packages/cacti-plugin-configmanager.git/blame - cacti-plugin-configmanager.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-plugin-configmanager.git] / cacti-plugin-configmanager.spec
CommitLineData
f056b666 1%define plugin configmanager
eba6531d 2%define php_min_version 5.0.0
5a3f0df9
JB
3Summary: Plugin for Cacti - download/upload routers and switches configuration
4Summary(pl.UTF-8): Wtyczka do Cacti - ściąganie/wysyłanie konfiguracji routerów/switchy
f056b666 5Name: cacti-plugin-%{plugin}
eba6531d 6Version: 0.826
479285fb 7Release: 2
bcd21f26
MWP
8License: GPL v2
9Group: Applications/WWW
38b809d3 10# http://forums.cacti.net/download.php?id=6449
eba6531d 11Source0: http://forums.cacti.net/download/file.php?id=21891#/%{plugin}-%{version}.zip
6b71a164 12# Source0-md5: d3cdb035a4d47ff464916774dd953457
38b809d3 13# http://forums.cacti.net/download.php?id=10980
6b71a164
GS
14Source1: sharednetworkclass0.40.zip
15# Source1-md5: b438751d7b696a10a8958ea6e0f407f3
eba6531d
ER
16URL: http://docs.cacti.net/userplugin:configmanager
17BuildRequires: rpm-php-pearprov >= 4.4.2-11
18BuildRequires: rpmbuild(macros) >= 1.553
39e95f1f 19BuildRequires: unzip
bcd21f26 20Requires: cacti
eba6531d 21Requires: cacti(pia) >= 2.0
479285fb
ER
22Requires: php(core) >= %{php_min_version}
23Requires: php(date)
24Requires: php(mysql)
25Requires: php(pcre)
bcd21f26
MWP
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
f056b666
ER
29%define cactidir /usr/share/cacti
30%define plugindir %{cactidir}/plugins/%{plugin}
bcd21f26 31
eba6531d
ER
32# bad depsolver
33%define _noautopear pear(include/config.php)
34
35# put it together for rpmbuild
36%define _noautoreq %{?_noautophp} %{?_noautopear}
37
bcd21f26 38%description
5a3f0df9
JB
39With Cacti configmanager plugin you can easily schedule the
40download/upload of the configuration of your routers, switches and any
41devices (or change in one click some parameters of a hundred of
42switches... dangerous but possible now). It should function for all
43type of router or switches.
1f66a730 44
5a3f0df9
JB
45There are two methods:
46- "TFTP" (based of "pancho" <http://www.pancho.org/>); with "pure PHP"
eba6531d
ER
47 option there is no need of pancho installation (depreciated after
48 v0.9)
f1f55e4d 49- "multi" can use any scripts or SCP, FTP, SFTP or what you want.
1f66a730 50
5a3f0df9
JB
51%description -l pl.UTF-8
52Przy użyciu wtyczki Cacti configmanager można łatwo zaszeregować
53ściąganie lub wysyłanie konfiguracji routerów, switchy i innych
54urządzeń (lub zmieniać jednym kliknięciem pewne parametry w setce
55switchy... co jest niebezpieczne, ale teraz wykonalne). Wtyczka
56powinna działać z dowolnymi routerami i switchami.
bcd21f26 57
5a3f0df9
JB
58Istnieją dwie metody:
59- "TFTP" (oparta na "pancho" <http://www.pancho.org/>); z opcją "pure
60 PHP" nie ma potrzeby instalacji pancho
61- "multi", potrafiąca używać dowolne skrypty lub SCP, FTP, SFTP
bcd21f26
MWP
62
63%prep
f056b666 64%setup -qc -a1
eba6531d
ER
65%undos -f php,inc,txt
66
67mv %{plugin}/{Manual.txt,template.txt,configmanager_trap_list.txt} .
bcd21f26 68
eba6531d
ER
69# bad os
70%{__rm} %{plugin}/scripts/*.cmd
71
72# unwanted junk
73mv %{plugin}/OLD .
74
75# deprecated since 0.9, but package for now (see Manual.txt)
76mv sharednetworkclass{0.40,}
bcd21f26
MWP
77
78%install
79rm -rf $RPM_BUILD_ROOT
f056b666 80install -d $RPM_BUILD_ROOT%{plugindir}
eba6531d
ER
81cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
82cp -a sharednetworkclass $RPM_BUILD_ROOT%{cactidir}/plugins
bcd21f26
MWP
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%files
88%defattr(644,root,root,755)
eba6531d 89%doc Manual.txt template.txt configmanager_trap_list.txt
f056b666 90%{plugindir}
eba6531d 91%{cactidir}/plugins/sharednetworkclass
This page took 0.089052 seconds and 4 git commands to generate.