]>
Commit | Line | Data |
---|---|---|
dcbd2d78 | 1 | |
b728dd59 | 2 | %define _pre pre1 |
3 | %define _sysconfdir /etc/%{name} | |
17a8d7f5 | 4 | Summary: Console interface bandwidth usage monitor |
0f7775a2 | 5 | Summary(pl.UTF-8): Konsolowy monitor użycia interfejsu sieciowego |
17a8d7f5 | 6 | Name: bmon |
b728dd59 | 7 | Version: 2.2.0 |
28a72a00 | 8 | Release: 0.%{_pre}.5 |
17a8d7f5 | 9 | License: Artistic |
10 | Group: Applications/Networking | |
dcbd2d78 | 11 | Source0: http://people.suug.ch/~tgr/bmon/files/%{name}-%{version}-%{_pre}.tar.gz |
a1fbfc14 | 12 | # Source0-md5: f4ec66927751027f855886f3dc45c218 |
28a72a00 AG |
13 | Patch0: %{name}-gcc4.patch |
14 | Patch1: %{name}-no-libnl.patch | |
b91d68b3 | 15 | URL: http://people.suug.ch/~tgr/bmon/ |
e9f687c8 JW |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
18 | BuildRequires: gettext-devel | |
00d515cc | 19 | BuildRequires: libdbi-devel |
17a8d7f5 | 20 | BuildRequires: ncurses-devel |
b728dd59 | 21 | BuildRequires: postgresql-devel |
65b42f59 | 22 | BuildRequires: rrdtool-devel >= 1.2.10 |
e0fb2847 | 23 | Conflicts: nstats |
17a8d7f5 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | bmon is an interface bandwidth monitor. | |
28 | ||
29 | It is able to generate and draw three types of diagrams: | |
fce7d8f3 | 30 | - The overview diagram which is a list of all interfaces and their |
31 | send/receive rates. | |
32 | - A very MRTG like graphical diagram in ASCII showing the rate over a | |
33 | specific time period in a bar diagram. | |
34 | - The details diagram which contains all counters of an interface such | |
35 | as total bytes sent/received, errors, compressed packets, ... | |
17a8d7f5 | 36 | |
2d29b51a | 37 | %description -l pl.UTF-8 |
17a8d7f5 | 38 | bmon jest monitorem ruchu na interfejsach sieciowych. |
39 | ||
2d29b51a JR |
40 | Pozwala on na generowanie i rysowanie trzech typów diagramów: |
41 | - Diagram ogólny który wyświetla wszystkie interfejsy sieciowe i | |
42 | informacje o aktualnym zużyciu przepustowości | |
43 | - Diagram ASCII podobny do generowanego przez MRTG, pokazujący | |
fce7d8f3 | 44 | informacje o przesyle danych w postaci wykresu paskowego |
2d29b51a JR |
45 | - Diagram szczegółowy który zawiera wszystkie liczniki danego |
46 | interfejsu, takie jak całkowita liczba bajtów odebranych/wysłanych, | |
47 | błędy, skompresowane pakiety... | |
17a8d7f5 | 48 | |
7fac8f1c | 49 | %package devel |
b91d68b3 | 50 | Summary: Header files for bmon |
0f7775a2 | 51 | Summary(pl.UTF-8): Pliki nagłówkowe dla bmon |
7fac8f1c JW |
52 | Group: Development/Libraries |
53 | ||
54 | %description devel | |
55 | Header files neccesary to develop bmon applications. | |
56 | ||
2d29b51a JR |
57 | %description devel -l pl.UTF-8 |
58 | Pliki nagłówkowe niezbędne do tworzenia aplikacji korzystających z | |
7fac8f1c JW |
59 | bmon. |
60 | ||
17a8d7f5 | 61 | %prep |
dcbd2d78 | 62 | %setup -q -n %{name}-%{version}-%{_pre} |
28a72a00 AG |
63 | %patch0 -p1 |
64 | %patch1 -p1 | |
17a8d7f5 | 65 | |
66 | %build | |
8a84ebbf | 67 | cp -f /usr/share/automake/config.sub . |
e9f687c8 JW |
68 | %{__gettextize} |
69 | %{__aclocal} | |
70 | %{__autoconf} | |
71 | %{__autoheader} | |
17a8d7f5 | 72 | %configure |
73 | %{__make} | |
74 | ||
75 | %install | |
b91d68b3 | 76 | rm -rf $RPM_BUILD_ROOT |
7fac8f1c JW |
77 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
78 | install -d $RPM_BUILD_ROOT%{_includedir}/%{name} | |
b728dd59 | 79 | cp -r etc/* $RPM_BUILD_ROOT%{_sysconfdir} |
b91d68b3 | 80 | install include/%{name}/* $RPM_BUILD_ROOT%{_includedir}/%{name}/ |
7fac8f1c | 81 | |
7fac8f1c JW |
82 | %{__make} install \ |
83 | DESTDIR=$RPM_BUILD_ROOT | |
17a8d7f5 | 84 | |
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
7fac8f1c | 90 | %doc ChangeLog |
17a8d7f5 | 91 | %attr(755,root,root) %{_bindir}/* |
b728dd59 | 92 | %dir %{_sysconfdir} |
93 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
17a8d7f5 | 94 | %{_mandir}/man1/* |
7fac8f1c JW |
95 | |
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %{_includedir}/* |