-
-%define _pre pre1
-%define _sysconfdir /etc/%{name}
Summary: Console interface bandwidth usage monitor
-Summary(pl): Konsolowy monitor u¿ycia interfejsu sieciowego
+Summary(pl.UTF-8): Konsolowy monitor użycia interfejsu sieciowego
Name: bmon
-Version: 2.2.0
-Release: 0.%{_pre}.2
+Version: 3.6
+Release: 1
License: Artistic
Group: Applications/Networking
-Source0: http://people.suug.ch/~tgr/bmon/files/%{name}-%{version}-%{_pre}.tar.gz
-# Source0-md5: f4ec66927751027f855886f3dc45c218
-URL: http://people.suug.ch/~tgr/bmon/
+Source0: https://github.com/tgraf/bmon/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
+# Source0-md5: a78c2c75b194840036703907efd39e89
+URL: https://github.com/tgraf/bmon/
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: gettext-devel
-BuildRequires: libdbi-devel
+BuildRequires: libconfuse-devel
BuildRequires: libnl-devel
BuildRequires: ncurses-devel
-BuildRequires: postgresql-devel
-BuildRequires: rrdtool-devel >= 1.2.10
Conflicts: nstats
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
- The details diagram which contains all counters of an interface such
as total bytes sent/received, errors, compressed packets, ...
-%description -l pl
+%description -l pl.UTF-8
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
+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.
+- Diagram szczegółowy który zawiera wszystkie liczniki danego
+ interfejsu, takie jak całkowita liczba bajtów odebranych/wysłanych,
+ błędy, skompresowane pakiety...
%prep
-%setup -q -n %{name}-%{version}-%{_pre}
+%setup -q
%build
-cp -f /usr/share/automake/config.sub .
-%{__gettextize}
+%{__libtoolize}
%{__aclocal}
%{__autoconf}
+%{__automake}
%{__autoheader}
%configure
-%{__make}
+%{__make} V=1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}
-install -d $RPM_BUILD_ROOT%{_includedir}/%{name}
-cp -r etc/* $RPM_BUILD_ROOT%{_sysconfdir}
-install include/%{name}/* $RPM_BUILD_ROOT%{_includedir}/%{name}/
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+cp -p examples/bmon.conf $RPM_BUILD_ROOT%{_sysconfdir}
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc ChangeLog
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bmon.conf
%attr(755,root,root) %{_bindir}/*
-%dir %{_sysconfdir}
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
-%{_mandir}/man1/*
-
-%files devel
-%defattr(644,root,root,755)
-%{_includedir}/*
+%{_mandir}/man8/*