]>
Commit | Line | Data |
---|---|---|
3da90d2d MWP |
1 | %define namesrc discovery |
2 | %include /usr/lib/rpm/macros.perl | |
3 | Summary: Plugin for Cacti - Discovery | |
5810cb99 | 4 | Summary(pl.UTF-8): Wtyczka do Cacti - Discovery |
3da90d2d | 5 | Name: cacti-plugin-discovery |
c40afa9e | 6 | Version: 0.6 |
c8206b8a | 7 | Release: 1 |
3da90d2d MWP |
8 | License: GPL v2 |
9 | Group: Applications/WWW | |
c40afa9e MWP |
10 | Source0: http://cactiusers.net/downloads/plugins/%{namesrc}-%{version}.tar.gz |
11 | # Source0-md5: d18d4b8b3956a285a5337a7cc72d2e96 | |
3da90d2d MWP |
12 | URL: http://www.cactiusers.org/ |
13 | #BuildRequires: rpm-perlprov | |
14 | Requires: cacti | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define webcactipluginroot /usr/share/cacti/plugins/%{namesrc} | |
19 | ||
20 | %description | |
a0577215 | 21 | Plugin for Cacti - This plugin adds the ability to auto-discover |
3da90d2d MWP |
22 | devices on a subnet that are not monitored by Cacti and and tells you |
23 | if they are SNMP enabled. | |
24 | ||
5810cb99 JR |
25 | %description -l pl.UTF-8 |
26 | Wtyczka do Cacti dodająca możliwość automatycznego wykrywania urządzeń | |
27 | w podsieci jeszcze nie monitorowanych przez Cacti i informująca, czy | |
28 | urządzenia mają włączone SNMP. | |
3da90d2d MWP |
29 | |
30 | %prep | |
31 | %setup -q -n %{namesrc} | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT%{webcactipluginroot} | |
36 | cp -aRf * $RPM_BUILD_ROOT%{webcactipluginroot} | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %doc README | |
44 | %{webcactipluginroot} |