]> git.pld-linux.org Git - packages/bmon.git/blob - bmon.spec
- fix md5
[packages/bmon.git] / bmon.spec
1
2 %define _pre    pre1
3 %define _sysconfdir     /etc/%{name}
4 Summary:        Console interface bandwidth usage monitor
5 Summary(pl):    Konsolowy monitor u¿ycia interfejsu sieciowego
6 Name:           bmon
7 Version:        2.2.0
8 Release:        0.%{_pre}.1
9 License:        Artistic
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
22 Conflicts:      nstats
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 bmon is an interface bandwidth monitor.
27
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
30   send/receive rates.
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, ...
35
36 %description -l pl
37 bmon jest monitorem ruchu na interfejsach sieciowych.
38
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...
47
48 %package devel
49 Summary:        Header files for bmon
50 Summary(pl):    Pliki nag³ówkowe dla bmon
51 Group:          Development/Libraries
52
53 %description devel
54 Header files neccesary to develop bmon applications.
55
56 %description devel -l pl
57 Pliki nag³ówkowe niezbêdne do tworzenia aplikacji korzystaj±cych z
58 bmon.
59
60 %prep
61 %setup -q -n %{name}-%{version}-%{_pre}
62
63 %build
64 cp -f /usr/share/automake/config.sub .
65 %{__gettextize}
66 %{__aclocal}
67 %{__autoconf}
68 %{__autoheader}
69 %configure
70 %{__make}
71
72 %install
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}/
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %doc ChangeLog
88 %attr(755,root,root) %{_bindir}/*
89 %dir %{_sysconfdir}
90 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
91 %{_mandir}/man1/*
92
93 %files devel
94 %defattr(644,root,root,755)
95 %{_includedir}/*
This page took 0.079163 seconds and 3 git commands to generate.