]>
Commit | Line | Data |
---|---|---|
bd12a6a3 | 1 | %define plugin hostinfo |
27c2d335 MWP |
2 | %include /usr/lib/rpm/macros.perl |
3 | Summary: Plugin for Cacti - Host info | |
65492474 | 4 | Summary(pl.UTF-8): Wtyczka do Cacti - Host info |
27c2d335 | 5 | Name: cacti-plugin-hostinfo |
789acc52 MWP |
6 | Version: 0.2 |
7 | Release: 1 | |
27c2d335 MWP |
8 | License: GPL |
9 | Group: Applications/WWW | |
bd12a6a3 | 10 | Source0: http://mirror.cactiusers.org/downloads/plugins/%{plugin}-%{version}.zip |
789acc52 | 11 | # Source0-md5: e06cda8197ed5677d918737321528394 |
27c2d335 | 12 | URL: http://www.cactiusers.org/ |
be93b82b | 13 | BuildRequires: rpm-perlprov |
27c2d335 MWP |
14 | Requires: cacti |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
bd12a6a3 ER |
18 | %define cactidir /usr/share/cacti |
19 | %define plugindir %{cactidir}/plugins/%{plugin} | |
27c2d335 MWP |
20 | |
21 | %description | |
753a6c39 MWP |
22 | Plugin for Cacti - This plugin will give you version information about |
23 | your Cacti server. It outputs everything from Web server information, | |
e6d7e623 | 24 | to PHP, MySQL, RRDtool, and SNMP versions. It will also give you the |
753a6c39 MWP |
25 | information in BBCode format to easily allow you to post it to a |
26 | forum. | |
27c2d335 | 27 | |
4efe88f9 JR |
28 | %description -l pl.UTF-8 |
29 | Wtyczka do Cacti wyświetlająca informacje o serwerze na którym | |
30 | uruchomiono cacti. Podaje wszystkie informacje począwszy od serwera | |
31 | WWW, a kończąc na wersjach PHP, MySQL-a, RRDtoola i SNMP. Podaje także | |
32 | informacje w formacie BBCode, umożliwiając łatwe wysłanie ich na | |
e6d7e623 | 33 | forum. |
27c2d335 MWP |
34 | |
35 | %prep | |
789acc52 | 36 | %setup -q -c |
27c2d335 MWP |
37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
bd12a6a3 ER |
40 | install -d $RPM_BUILD_ROOT%{plugindir} |
41 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
27c2d335 MWP |
42 | |
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
bd12a6a3 | 48 | %{plugindir} |