]> git.pld-linux.org Git - packages/cacti-plugin-configmanager.git/blame - cacti-plugin-configmanager.spec
- BR: unzip
[packages/cacti-plugin-configmanager.git] / cacti-plugin-configmanager.spec
CommitLineData
f056b666
ER
1# TODO
2# - source1 not used?!
3%define plugin configmanager
bcd21f26 4%include /usr/lib/rpm/macros.perl
5a3f0df9
JB
5Summary: Plugin for Cacti - download/upload routers and switches configuration
6Summary(pl.UTF-8): Wtyczka do Cacti - ściąganie/wysyłanie konfiguracji routerów/switchy
f056b666 7Name: cacti-plugin-%{plugin}
6b71a164
GS
8Version: 0.76
9Release: 1
bcd21f26
MWP
10License: GPL v2
11Group: Applications/WWW
38b809d3 12# http://forums.cacti.net/download.php?id=6449
f056b666 13Source0: %{plugin}%{version}.zip
6b71a164 14# Source0-md5: d3cdb035a4d47ff464916774dd953457
38b809d3 15# http://forums.cacti.net/download.php?id=10980
6b71a164
GS
16Source1: sharednetworkclass0.40.zip
17# Source1-md5: b438751d7b696a10a8958ea6e0f407f3
bcd21f26
MWP
18URL: http://forums.cacti.net/about12406.html
19BuildRequires: rpm-perlprov
39e95f1f 20BuildRequires: unzip
bcd21f26
MWP
21Requires: cacti
22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
f056b666
ER
25%define cactidir /usr/share/cacti
26%define plugindir %{cactidir}/plugins/%{plugin}
bcd21f26
MWP
27
28%description
5a3f0df9
JB
29With Cacti configmanager plugin you can easily schedule the
30download/upload of the configuration of your routers, switches and any
31devices (or change in one click some parameters of a hundred of
32switches... dangerous but possible now). It should function for all
33type of router or switches.
1f66a730 34
5a3f0df9
JB
35There are two methods:
36- "TFTP" (based of "pancho" <http://www.pancho.org/>); with "pure PHP"
37 option there is no need of pancho installation
f1f55e4d 38- "multi" can use any scripts or SCP, FTP, SFTP or what you want.
1f66a730 39
5a3f0df9
JB
40%description -l pl.UTF-8
41Przy użyciu wtyczki Cacti configmanager można łatwo zaszeregować
42ściąganie lub wysyłanie konfiguracji routerów, switchy i innych
43urządzeń (lub zmieniać jednym kliknięciem pewne parametry w setce
44switchy... co jest niebezpieczne, ale teraz wykonalne). Wtyczka
45powinna działać z dowolnymi routerami i switchami.
bcd21f26 46
5a3f0df9
JB
47Istnieją dwie metody:
48- "TFTP" (oparta na "pancho" <http://www.pancho.org/>); z opcją "pure
49 PHP" nie ma potrzeby instalacji pancho
50- "multi", potrafiąca używać dowolne skrypty lub SCP, FTP, SFTP
bcd21f26
MWP
51
52%prep
f056b666 53%setup -qc -a1
bcd21f26
MWP
54
55# undos the source
56find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
57
58%install
59rm -rf $RPM_BUILD_ROOT
f056b666 60install -d $RPM_BUILD_ROOT%{plugindir}
bcd21f26 61
f056b666 62cp -a %{plugin}%{version}/* $RPM_BUILD_ROOT%{plugindir}
bcd21f26
MWP
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
f056b666
ER
69%doc %{plugin}%{version}/{Manual.txt,template.txt,configmanager_trap_list.txt}
70%{plugindir}
This page took 0.043202 seconds and 4 git commands to generate.