-
Notifications
You must be signed in to change notification settings - Fork 1
/
ifstat.spec
51 lines (41 loc) · 1.35 KB
/
ifstat.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Time-stamp: <01/12/25 14:04:41 ifstat.spec [email protected]>
# $Id: ifstat.spec,v 1.9 2004/01/01 19:16:59 gael Exp $
Name: ifstat
Summary: InterFace STATistics
Version: 1.1
Release: 1
Group: Applications
Copyright: GPL
Vendor: Gaël Roualland <[email protected]>
URL: http://gael.roualland.free.fr/ifstat/
Packager: Werner Bosse <[email protected]>
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Requires: ucd-snmp
BuildPrereq: ucd-snmp-devel
%description
ifstat(1) is a little tool to report interface activity like vmstat/iostat do.
In addition, ifstat can poll remote hosts through SNMP if you have the ucd-snmp
library. It will also be used for localhost if no other known method works (You
need to have snmpd running for this though).
See also %{_docdir}/%{name}-%{version}
%changelog
* %(echo `LC_ALL=C date '+%a %b %d %Y'`) %(whoami)@%(hostname)
- built %{version} on %(cat /etc/*-release | head -1)
* Tue Dec 25 2001 Werner Bosse <[email protected]>
- initialization of spec file.
%prep
%setup -q
./configure --prefix=%{_prefix} --enable-optim
%build
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README INSTALL TODO COPYING HISTORY
%{_bindir}/*
%{_mandir}/man*/*