fd7b51
Summary:        A console-based network monitoring utility
fd7b51
Name:           iptraf-ng
fd7b51
Version:        1.1.4
fd7b51
Release:        7%{?dist}
fd7b51
Source0:        https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
fd7b51
Source1:        %{name}-logrotate.conf
fd7b51
Source2:        %{name}-tmpfiles.conf
fd7b51
URL:            https://github.com/iptraf-ng/iptraf-ng/
fd7b51
License:        GPLv2+
fd7b51
Group:          Applications/System
fd7b51
BuildRequires:  gcc
fd7b51
BuildRequires:  ncurses-devel
fd7b51
Obsoletes:      iptraf < 3.1
fd7b51
Provides:       iptraf = 3.1
fd7b51
Patch01:        0001-BUGFIX-fix-Floating-point-exception-in-tcplog_flowra.patch
fd7b51
Patch02:        0002-Makefile-add-Werror-format-security.patch
fd7b51
Patch03:        0003-fix-segfault-in-adding-interface.patch
fd7b51
fd7b51
%description
fd7b51
IPTraf-ng is a console-based network monitoring utility.  IPTraf gathers
fd7b51
data like TCP connection packet and byte counts, interface statistics
fd7b51
and activity indicators, TCP/UDP traffic breakdowns, and LAN station
fd7b51
packet and byte counts.  IPTraf-ng features include an IP traffic monitor
fd7b51
which shows TCP flag information, packet and byte counts, ICMP
fd7b51
details, OSPF packet types, and oversized IP packet warnings;
fd7b51
interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP
fd7b51
packet counts, IP checksum errors, interface activity and packet size
fd7b51
counts; a TCP and UDP service monitor showing counts of incoming and
fd7b51
outgoing packets for common TCP and UDP application ports, a LAN
fd7b51
statistics module that discovers active hosts and displays statistics
fd7b51
about their activity; TCP, UDP and other protocol display filters so
fd7b51
you can view just the traffic you want; logging; support for Ethernet,
fd7b51
FDDI, ISDN, SLIP, PPP, and loopback interfaces; and utilization of the
fd7b51
built-in raw socket interface of the Linux kernel, so it can be used
fd7b51
on a wide variety of supported network cards.
fd7b51
fd7b51
%prep
fd7b51
%setup -q
fd7b51
%patch01 -p1
fd7b51
%patch02 -p1
fd7b51
%patch03 -p1
fd7b51
fd7b51
%build
fd7b51
make %{?_smp_mflags} V=1 CFLAGS="-g -O2 -Wall -W -std=gnu99 -Werror=format-security %{optflags}"
fd7b51
fd7b51
%install
fd7b51
rm -rf %{buildroot}
fd7b51
make install DESTDIR=%{buildroot} prefix=%{_prefix}
fd7b51
fd7b51
# remove everything besides the html and pictures in Documentation
fd7b51
find Documentation -type f | grep -v '\.html$\|\.png$\|/stylesheet' | \
fd7b51
     xargs rm -f
fd7b51
fd7b51
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/iptraf-ng
fd7b51
fd7b51
install -d -m 0755 %{buildroot}%{_localstatedir}/{log,lib}/iptraf-ng
fd7b51
fd7b51
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
fd7b51
install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
fd7b51
fd7b51
mkdir -p %{buildroot}/run
fd7b51
install -d -m 0755 %{buildroot}/run/%{name}/
fd7b51
fd7b51
%files
fd7b51
%defattr(-,root,root,-)
fd7b51
%doc CHANGES FAQ LICENSE README* RELEASE-NOTES
fd7b51
%doc Documentation
fd7b51
%{_sbindir}/iptraf-ng
fd7b51
%{_sbindir}/rvnamed-ng
fd7b51
%{_mandir}/man8/iptraf-ng.8*
fd7b51
%{_mandir}/man8/rvnamed-ng.8*
fd7b51
%{_localstatedir}/log/iptraf-ng
fd7b51
%{_localstatedir}/lib/iptraf-ng
fd7b51
%config(noreplace) %{_sysconfdir}/logrotate.d/iptraf-ng
fd7b51
%dir /run/%{name}/
fd7b51
%{_prefix}/lib/tmpfiles.d/%{name}.conf
fd7b51
fd7b51
%changelog
fd7b51
* Mon Apr 09 2018 Phil Cameron <pcameron@redhat.com> - 1.1.4-7
fd7b51
- Fixes error in patch Patch03 - this fixes 1283773 and 1539081
fd7b51
  1501821 - Upstream moved to https://github.com/iptraf-ng/iptraf-ng/
fd7b51
  1020552, 1372679 - fix missing /var/lock/iptraf-ng file
fd7b51
  Add BuildRequires:  gcc to spec file.
fd7b51
  1109768 - bad configuration logrotate
fd7b51
fd7b51
* Fri Apr 15 2016 Phil Cameron <pcameron@redhat.com> - 1.1.4-6
fd7b51
- fix 1283773 - segfault in rate_add_rate
fd7b51
fd7b51
  Jun 17 2014 Alejandro Pérez  <aeperezt@fedoraproject.org>
fd7b51
  fix 1109768 bad configuration logrotate
fd7b51
  Mar 02 2014 Alejandro Pérez  <aeperezt@fedoraproject.org>
fd7b51
  fix bug 1020552 - rpm report /var/lock/ipraf-ng is missing
fd7b51
  added missing file iptraf-nf-tmpfiles.conf
fd7b51
  Dec 03 2013 Nikola Pajkovsky <npajkovs@redhat.com>
fd7b51
  Fedora start using -Werror=format-security and iptraf-ng had some
fd7b51
  parts where error compilation was trigged.
fd7b51
  202b2e7b27a1 Makefile: add -Werror=format-security
fd7b51
  Resolved: #1037133
fd7b51
fd7b51
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1.4-4
fd7b51
- Mass rebuild 2014-01-24
fd7b51
fd7b51
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.4-3
fd7b51
- Mass rebuild 2013-12-27
fd7b51
fd7b51
* Mon Sep 02 2013 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.4-2
fd7b51
- 9b32013 BUGFIX: fix "Floating point exception" in tcplog_flowrate_msg() (Vitezslav Samel)
fd7b51
fd7b51
* Tue Jul 23 2013 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.4
fd7b51
- new upstream iptraf-ng-1.1.4
fd7b51
fd7b51
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3.1-4
fd7b51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fd7b51
fd7b51
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3.1-3
fd7b51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fd7b51
fd7b51
* Thu May 24 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.3.1-2
fd7b51
- append standard CFLAGS
fd7b51
fd7b51
* Wed May 23 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.3.1-1
fd7b51
- new upstream iptraf-ng-1.1.3.1-1
fd7b51
fd7b51
* Fri May 04 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.2-1
fd7b51
- new upstream iptraf-ng-1.1.2-1
fd7b51
fd7b51
* Fri Apr 27 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.2.rc0-1
fd7b51
- new upstream iptraf-ng-1.1.2.rc0-1
fd7b51
fd7b51
* Thu Feb 02 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.1-1
fd7b51
- new upstream iptraf-ng-1.1.1
fd7b51
fd7b51
* Sun Jan 16 2011 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.0-2
fd7b51
- fix wrongly used execl
fd7b51
fd7b51
* Tue Jan 11 2011 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.0-1
fd7b51
- Initialization build