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