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