3 %define _sysconfdir /etc/%{name}
4 Summary: Console interface bandwidth usage monitor
5 Summary(pl): Konsolowy monitor u¿ycia interfejsu sieciowego
10 Group: Applications/Networking
11 Source0: http://people.suug.ch/~tgr/bmon/files/%{name}-%{version}-%{_pre}.tar.gz
12 # Source0-md5: f4ec66927751027f855886f3dc45c218
13 URL: http://people.suug.ch/~tgr/bmon/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: gettext-devel
17 BuildRequires: libdbi-devel
18 BuildRequires: libnl-devel
19 BuildRequires: ncurses-devel
20 BuildRequires: postgresql-devel
21 BuildRequires: rrdtool-devel >= 1.2.10
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 bmon is an interface bandwidth monitor.
28 It is able to generate and draw three types of diagrams:
29 - The overview diagram which is a list of all interfaces and their
31 - A very MRTG like graphical diagram in ASCII showing the rate over a
32 specific time period in a bar diagram.
33 - The details diagram which contains all counters of an interface such
34 as total bytes sent/received, errors, compressed packets, ...
37 bmon jest monitorem ruchu na interfejsach sieciowych.
39 Pozwala on na generowanie i rysowanie trzech typów diagramów:
40 - Diagram ogólny który wy¶wietla wszystkie interfejsy sieciowe i
41 informacje o aktualnym zu¿yciu przepustowo¶ci
42 - Diagram ASCII podobny do generowanego przez MRTG, pokazuj±cy
43 informacje o przesyle danych w postaci wykresu paskowego
44 - Diagram szczegó³owy który zawiera wszystkie liczniki danego
45 interfejsu, takie jak ca³kowita liczba bajtów odebranych/wys³anych,
46 b³êdy, skompresowane pakiety...
49 Summary: Header files for bmon
50 Summary(pl): Pliki nag³ówkowe dla bmon
51 Group: Development/Libraries
54 Header files neccesary to develop bmon applications.
56 %description devel -l pl
57 Pliki nag³ówkowe niezbêdne do tworzenia aplikacji korzystaj±cych z
61 %setup -q -n %{name}-%{version}-%{_pre}
64 cp -f /usr/share/automake/config.sub .
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{_sysconfdir}
75 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}
76 cp -r etc/* $RPM_BUILD_ROOT%{_sysconfdir}
77 install include/%{name}/* $RPM_BUILD_ROOT%{_includedir}/%{name}/
80 DESTDIR=$RPM_BUILD_ROOT
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_bindir}/*
90 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
94 %defattr(644,root,root,755)