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