%define _pre pre1 Summary: Console interface bandwidth usage monitor Summary(pl): Konsolowy monitor użycia interfejsu sieciowego Name: bmon Version: 2.1.1 Release: 0.%{_pre}.1 License: Artistic Group: Applications/Networking Source0: http://people.suug.ch/~tgr/bmon/files/%{name}-%{version}-%{_pre}.tar.gz # Source0-md5: e08f5d8a7b0fb6e632484cbfc95ebd33 URL: http://people.suug.ch/~tgr/bmon/ BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext-devel BuildRequires: libdbi-devel BuildRequires: libnl-devel BuildRequires: ncurses-devel BuildRequires: rrdtool-devel Conflicts: nstats BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description bmon is an interface bandwidth monitor. It is able to generate and draw three types of diagrams: - The overview diagram which is a list of all interfaces and their send/receive rates. - A very MRTG like graphical diagram in ASCII showing the rate over a specific time period in a bar diagram. - The details diagram which contains all counters of an interface such as total bytes sent/received, errors, compressed packets, ... %description -l pl bmon jest monitorem ruchu na interfejsach sieciowych. Pozwala on na generowanie i rysowanie trzech typów diagramów: - Diagram ogólny który wyświetla wszystkie interfejsy sieciowe i informacje o aktualnym zużyciu przepustowości - Diagram ASCII podobny do generowanego przez MRTG, pokazujący informacje o przesyle danych w postaci wykresu paskowego - Diagram szczegółowy który zawiera wszystkie liczniki danego interfejsu, takie jak całkowita liczba bajtów odebranych/wysłanych, błędy, skompresowane pakiety... %package devel Summary: Header files for bmon Summary(pl): Pliki nagłówkowe dla bmon Group: Development/Libraries %description devel Header files neccesary to develop bmon applications. %description devel -l pl Pliki nagłówkowe niezbędne do tworzenia aplikacji korzystających z bmon. %prep %setup -q -n %{name}-%{version}-%{_pre} %build cp -f /usr/share/automake/config.sub . %{__gettextize} %{__aclocal} %{__autoconf} %{__autoheader} %configure %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_sysconfdir} install -d $RPM_BUILD_ROOT%{_includedir}/%{name} install etc/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf install include/%{name}/* $RPM_BUILD_ROOT%{_includedir}/%{name}/ %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc ChangeLog %attr(755,root,root) %{_bindir}/* %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf %{_mandir}/man1/* %files devel %defattr(644,root,root,755) %{_includedir}/*