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