01822c
Summary:        A console-based network monitoring utility
01822c
Name:           iptraf-ng
01822c
Version:        1.2.1
01822c
Release:        4%{?dist}
01822c
Source0:        https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
01822c
Source1:        %{name}-logrotate.conf
01822c
Source2:        %{name}-tmpfiles.conf
01822c
URL:            https://github.com/iptraf-ng/iptraf-ng/
01822c
License:        GPLv2+
01822c
BuildRequires:  gcc
01822c
BuildRequires:  ncurses-devel
01822c
Obsoletes:      iptraf < 3.1
01822c
Provides:       iptraf = 3.1
01822c
01822c
%description
01822c
IPTraf-ng is a console-based network monitoring utility.  IPTraf gathers
01822c
data like TCP connection packet and byte counts, interface statistics
01822c
and activity indicators, TCP/UDP traffic breakdowns, and LAN station
01822c
packet and byte counts.  IPTraf-ng features include an IP traffic monitor
01822c
which shows TCP flag information, packet and byte counts, ICMP
01822c
details, OSPF packet types, and oversize IP packet warnings;
01822c
interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP
01822c
packet counts, IP check sum errors, interface activity and packet size
01822c
counts; a TCP and UDP service monitor showing counts of incoming and
01822c
outgoing packets for common TCP and UDP application ports, a LAN
01822c
statistics module that discovers active hosts and displays statistics
01822c
about their activity; TCP, UDP and other protocol display filters so
01822c
you can view just the traffic you want; logging; support for Ethernet,
01822c
FDDI, ISDN, SLIP, PPP, and loop back interfaces; and utilization of the
01822c
built-in raw socket interface of the Linux kernel, so it can be used
01822c
on a wide variety of supported network cards.
01822c
01822c
%prep
01822c
%setup -q
01822c
01822c
%build
01822c
make %{?_smp_mflags} V=1 \
01822c
  CFLAGS="-g -O2 -Wall -W -std=gnu99 -Werror=format-security %{optflags}" \
01822c
  LDFLAGS="$RPM_LD_FLAGS"
01822c
01822c
%install
01822c
rm -rf %{buildroot}
01822c
make install DESTDIR=%{buildroot} prefix=%{_prefix}
01822c
01822c
# remove everything besides the html and pictures in Documentation
01822c
find Documentation -type f | grep -v '\.html$\|\.png$\|/stylesheet' | \
01822c
     xargs rm -f
01822c
01822c
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/iptraf-ng
01822c
01822c
install -d -m 0755 %{buildroot}%{_localstatedir}/{log,lib}/iptraf-ng
01822c
01822c
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
01822c
install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
01822c
01822c
mkdir -p %{buildroot}/run
01822c
install -d -m 0755 %{buildroot}/run/%{name}/
01822c
01822c
%files
01822c
%doc CHANGES FAQ LICENSE README*
01822c
%doc Documentation
01822c
%{_sbindir}/iptraf-ng
01822c
%{_mandir}/man8/iptraf-ng.8*
01822c
%{_localstatedir}/log/iptraf-ng
01822c
%{_localstatedir}/lib/iptraf-ng
01822c
%config(noreplace) %{_sysconfdir}/logrotate.d/iptraf-ng
01822c
%dir /run/%{name}/
01822c
%{_prefix}/lib/tmpfiles.d/%{name}.conf
01822c
01822c
%changelog
01822c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.1-4
01822c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
01822c
  Related: rhbz#1991688
01822c
01822c
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.1-3
01822c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
01822c
01822c
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
01822c
01822c
* Tue Jul 21 2020 Phil Cameron <pcameron@redhat.com> - 1.2.1-1
01822c
- Makefile: protect mandatory compile flags
01822c
- packet capture: don't reuse socket for multiple receive functions
01822c
- TPACKET_V[23]: continue even if mlock() fails
01822c
- ipmon: fix division by zero
01822c
- fix: detstats(), ifstats(): handle packets with incorrect header checksum
01822c
- fix: positionptr(): properly allocate newly created interfaces
01822c
- fix: detstats(): properly account non-IP packets
01822c
- fix: properly init curses (fixes view on some utf-8 terminals)
01822c
- fix: cidr_split_address(): fix buffer overflow
01822c
- ipmon: printentry(): fix printing of huge values
01822c
- build: use correct libraries (wide version of -lpanel)
01822c
- fix unsafe handling of printf() args (RedHat Bugzilla: 1842690)
01822c
- fix the CPU hog if the interface gets removed (RedHat Bugzilla: 1572750)
01822c
- introduce packet capturing abstraction: add recvmmsg(), TPACKET_V2 and TPACKET_V3 mmap()ed capturing modules: this allow us to capture in multigigabit speeds
01822c
- add partial support for IPoIB interfaces (full support cannot be done because the kernel interface doesn't give us source address) (RedHat Bugzilla: 1140211)
01822c
- merge rvnamed-ng into iptraf-ng
01822c
- allow scrolling with Home, End, PageUp and PageDown keys
01822c
- show dropped packet count
01822c
- pktsize: print in and out counters
01822c
- ifstats: show total packet rate and packet drop across all interfaces
01822c
- ipmon: show OSPF protocol version
01822c
- hostmon, ipmon: update screen only when needed (vastly reduces CPU usage and also reduces packet drops)
01822c
- update source code to compile cleanly on modern gcc
01822c
- numerous code refactoring/cleaning up all over the source tree
01822c
01822c
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-24
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
01822c
01822c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-23
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
01822c
01822c
* Thu Apr 11 2019 Phil Cameron <pcameron@redhat.com> - 1.1.4-22
01822c
- add test case
01822c
  Resolves: 1682317
01822c
01822c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-21
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
01822c
01822c
* Mon Jul 16 2018 Phil Cameron <pcameron@redhat.com> - 1.1.4-20
01822c
- add BuildRequires: gcc
01822c
01822c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-19
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
01822c
01822c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-18
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
01822c
01822c
* Thu Feb  1 2018 Florian Weimer <fweimer@redhat.com> - 1.1.4-17
01822c
- Build with linker flags from redhat-rpm-config
01822c
01822c
* Mon Jan 22 2018 Phil Cameron <pcameron@redhat.com> - 1.1.4-16
01822c
- Moved upstream from https://fedorahosted.org/iptraf-ng/ to
01822c
  https://github.com/iptraf-ng/iptraf-ng/ with release v1.1.4
01822c
  Fixes error in patch Patch03 - this fixes 1283773
01822c
01822c
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-15
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
01822c
01822c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-14
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
01822c
01822c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-13
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
01822c
01822c
* Sun Apr 17 2016 Alejandro Pérez  <aeperezt@fedoraproject.org> - 1.1.4-12
01822c
- Added sources and clean tree
01822c
* Fri Apr 15 2016 Phil Cameron <pcameron@redhat.com> - 1.1.4-11
01822c
- fix 1283773
01822c
  bugfix-positionptr-properly-allocate-newly-create
01822c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-10
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
01822c
01822c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-9
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
01822c
01822c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-8
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
01822c
01822c
* Tue Jun 17 2014 Alejandro Pérez  <aeperezt@fedoraproject.org> - 1.1.4-7
01822c
- fix 1109768
01822c
  bad configuration logrotate
01822c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-6
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
01822c
* Sun Mar 02 2014 Alejandro Pérez  <aeperezt@fedoraproject.org> - 1.1.4-5
01822c
- fix bug 1020552
01822c
  rpm report /var/lock/ipraf-ng is missing
01822c
  fix dates on changelog
01822c
  added missing file iptraf-nf-tmpfiles.conf
01822c
* Tue Dec 03 2013 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.4-4
01822c
- iptraf-ng-1.1.4-4
01822c
01822c
  Fedora start using -Werror=format-security and iptraf-ng had some
01822c
  parts where error compilation was trigged.
01822c
01822c
  202b2e7b27a1 Makefile: add -Werror=format-security
01822c
01822c
  Resolved: #1037133
01822c
01822c
* Mon Sep 02 2013 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.4-3
01822c
- 9b32013 BUGFIX: fix "Floating point exception" in tcplog_flowrate_msg() (Vitezslav Samel)
01822c
01822c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
01822c
01822c
* Tue Jul 23 2013 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.4
01822c
- new upstream iptraf-ng-1.1.4
01822c
01822c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3.1-4
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
01822c
01822c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3.1-3
01822c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
01822c
01822c
* Thu May 24 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.3.1-2
01822c
- append standard CFLAGS
01822c
01822c
* Wed May 23 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.3.1-1
01822c
- new upstream iptraf-ng-1.1.3.1-1
01822c
01822c
* Fri May 04 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.2-1
01822c
- new upstream iptraf-ng-1.1.2-1
01822c
01822c
* Fri Apr 27 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.2.rc0-1
01822c
- new upstream iptraf-ng-1.1.2.rc0-1
01822c
01822c
* Thu Feb 02 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.1-1
01822c
- new upstream iptraf-ng-1.1.1
01822c
01822c
* Sun Jan 16 2011 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.0-2
01822c
- fix wrongly used execl
01822c
01822c
* Tue Jan 11 2011 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.0-1
01822c
- Initialization build