]>
Commit | Line | Data |
---|---|---|
d1e67b3c ER |
1 | # TODO |
2 | # - config file, patches, package for not cacti plugin | |
46950fe9 MWP |
3 | %define namesrc weathermap |
4 | %include /usr/lib/rpm/macros.perl | |
5 | Summary: Plugin for Cacti - WeatherMap | |
a90dd0d3 | 6 | Summary(pl.UTF-8): Wtyczka do Cacti - WeatherMap (mapa pogody) |
46950fe9 | 7 | Name: cacti-plugin-weathermap |
29eb7123 | 8 | Version: 0.95b |
e42d07e4 | 9 | Release: 2 |
46950fe9 MWP |
10 | License: GPL v2 |
11 | Group: Applications/WWW | |
12 | Source0: http://www.network-weathermap.com/files/php-%{namesrc}-%{version}.zip | |
29eb7123 | 13 | # Source0-md5: 6481970ad971dfe659eed535b440e678 |
46950fe9 MWP |
14 | URL: http://www.network-weathermap.com |
15 | BuildRequires: rpm-perlprov | |
16 | Requires: cacti | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %define webcactipluginroot /usr/share/cacti/plugins/%{namesrc} | |
21 | ||
22 | %description | |
a90dd0d3 JB |
23 | Weathermap plugin for Cacti is a network visualisation tool, to take |
24 | data you already have and show you an overview of your network in map | |
25 | form. | |
d1e67b3c | 26 | |
46950fe9 MWP |
27 | Support is built in for RRD, MRTG (RRD and old log-format), and |
28 | tab-delimited text files. Other sources are via plugins or external | |
29 | scripts. | |
30 | ||
31 | %description -l pl.UTF-8 | |
a90dd0d3 JB |
32 | Wtyczka Weathermap dla Cacti to narzędzie do wizualizacji sieci, |
33 | pobierające już istniejące dane i tworzące widok sieci w postaci mapy. | |
34 | ||
35 | Ma wbudowaną obsługę plików RRD, MRTG (RRD i starego formatu logów) | |
36 | oraz tekstowych rozdzielonych tabulacjami. Inne źródła są dostępne | |
37 | przez wtyczki lub zewnętrzne skrypty. | |
46950fe9 MWP |
38 | |
39 | %prep | |
40 | %setup -q -n %{namesrc} | |
41 | ||
42 | # undos the source | |
43 | find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' | |
44 | ||
e42d07e4 | 45 | # fix php path |
f1b611cb | 46 | %{__sed} -i -e '1s,#!.*bin/php,#!%{_bindir}/php,' %{namesrc} |
e42d07e4 | 47 | |
46950fe9 MWP |
48 | %install |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | install -d $RPM_BUILD_ROOT%{webcactipluginroot} | |
f1b611cb | 51 | cp -a . $RPM_BUILD_ROOT%{webcactipluginroot} |
46950fe9 MWP |
52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc README CHANGES | |
59 | %{webcactipluginroot} |