File iptraf.spec of Package iptraf
#
# spec file for package iptraf (Version 3.0.0)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: iptraf
BuildRequires: ncurses-devel
License: GPLv2+
Group: Productivity/Networking/Diagnostic
AutoReqProv: on
Version: 3.0.0
Release: 140
Summary: TCP/IP Network Monitor
Url: http://iptraf.seul.org/
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-%{version}.patch
Patch1: %{name}-%{version}-euid-fix.patch
Patch2: %{name}-%{version}-dev.patch
Patch3: %{name}-%{version}-headers.patch
Patch4: %{name}-%{version}-support.patch
Patch5: %{name}-%{version}-strict-aliasing.patch
Patch6: %{name}-%{version}-uninitialized.patch
Patch7: %{name}-%{version}-lines.patch
Patch8: %{name}-%{version}-fd.patch
#PATCH-FIX-UPSTREAM iptraf-3.0.0-fix-promisc-crash.patch bnc#548485
Patch9: iptraf-3.0.0-fix-promisc-crash.patch
Patch10: %{name}-%{version}-gcc45.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
IPTraf is a console-based network statistics utility. It gathers a
variety of information such as TCP connection packet and byte counts,
interface statistics and activity indicators, TCP/UDP traffic
breakdowns, and LAN station packet and byte counts.
Authors:
--------
Gerard Paul Java <riker@mozcom.com>
%prep
%setup -q
%patch
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9 -p1
%patch10
%build
cd src
make
%install
cd src
install -d -m 755 $RPM_BUILD_ROOT%{_sbindir}
install -d -m 755 $RPM_BUILD_ROOT/var/lib/iptraf
install -d -m 755 $RPM_BUILD_ROOT/var/run/iptraf
install -m 755 iptraf rvnamed $RPM_BUILD_ROOT%{_sbindir}
cd ..
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man8
install -m 0644 Documentation/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
mkdir html
rm Documentation/stylesheet-images/.eps
cp -r Documentation/*.{html,png} Documentation/stylesheet-images html/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc html/ CHANGES FAQ README* RELEASE-NOTES
%dir /var/lib/iptraf
%dir /var/run/iptraf
%doc %{_mandir}/*/*
%{_sbindir}/iptraf
%{_sbindir}/rvnamed
%changelog