iptraf-ng/iptraf-ng.spec

74 lines
2.6 KiB
RPMSpec
Raw Normal View History

Summary: A console-based network monitoring utility
Name: iptraf-ng
Version: 1.2.2
Release: %autorelease
Source0: https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
Source1: %{name}-logrotate.conf
Source2: %{name}-tmpfiles.conf
URL: https://github.com/iptraf-ng/iptraf-ng/
License: GPL-2.0-or-later
BuildRequires: gcc
BuildRequires: ncurses-devel
BuildRequires: make
Requires: logrotate
Obsoletes: iptraf < 3.1
Provides: iptraf = 3.1
%description
IPTraf-ng is a console-based network monitoring utility. IPTraf gathers
data like TCP connection packet and byte counts, interface statistics
and activity indicators, TCP/UDP traffic breakdowns, and LAN station
packet and byte counts. IPTraf-ng features include an IP traffic monitor
which shows TCP flag information, packet and byte counts, ICMP
Makefile: protect mandatory compile flags packet capture: don't reuse socket for multiple receive functions TPACKET_V[23]: continue even if mlock() fails ipmon: fix division by zero fix: detstats(), ifstats(): handle packets with incorrect header checksum fix: positionptr(): properly allocate newly created interfaces fix: detstats(): properly account non-IP packets fix: properly init curses (fixes view on some utf-8 terminals) fix: cidr_split_address(): fix buffer overflow ipmon: printentry(): fix printing of huge values build: use correct libraries (wide version of -lpanel) fix unsafe handling of printf() args (RedHat Bugzilla: 1842690) fix the CPU hog if the interface gets removed (RedHat Bugzilla: 1572750) introduce packet capturing abstraction: add recvmmsg(), TPACKET_V2 and TPACKET_V3 mmap()ed capturing modules: this allow us to capture in multigigabit speeds add partial support for IPoIB interfaces (full support cannot be done because the kernel interface doesn't give us source address) (RedHat Bugzilla: 1140211) merge rvnamed-ng into iptraf-ng allow scrolling with Home, End, PageUp and PageDown keys show dropped packet count pktsize: print in and out counters ifstats: show total packet rate and packet drop across all interfaces ipmon: show OSPF protocol version hostmon, ipmon: update screen only when needed (vastly reduces CPU usage and also reduces packet drops) update source code to compile cleanly on modern gcc numerous code refactoring/cleaning up all over the source tree
2020-07-21 19:59:24 +00:00
details, OSPF packet types, and oversize IP packet warnings;
interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP
Makefile: protect mandatory compile flags packet capture: don't reuse socket for multiple receive functions TPACKET_V[23]: continue even if mlock() fails ipmon: fix division by zero fix: detstats(), ifstats(): handle packets with incorrect header checksum fix: positionptr(): properly allocate newly created interfaces fix: detstats(): properly account non-IP packets fix: properly init curses (fixes view on some utf-8 terminals) fix: cidr_split_address(): fix buffer overflow ipmon: printentry(): fix printing of huge values build: use correct libraries (wide version of -lpanel) fix unsafe handling of printf() args (RedHat Bugzilla: 1842690) fix the CPU hog if the interface gets removed (RedHat Bugzilla: 1572750) introduce packet capturing abstraction: add recvmmsg(), TPACKET_V2 and TPACKET_V3 mmap()ed capturing modules: this allow us to capture in multigigabit speeds add partial support for IPoIB interfaces (full support cannot be done because the kernel interface doesn't give us source address) (RedHat Bugzilla: 1140211) merge rvnamed-ng into iptraf-ng allow scrolling with Home, End, PageUp and PageDown keys show dropped packet count pktsize: print in and out counters ifstats: show total packet rate and packet drop across all interfaces ipmon: show OSPF protocol version hostmon, ipmon: update screen only when needed (vastly reduces CPU usage and also reduces packet drops) update source code to compile cleanly on modern gcc numerous code refactoring/cleaning up all over the source tree
2020-07-21 19:59:24 +00:00
packet counts, IP check sum errors, interface activity and packet size
counts; a TCP and UDP service monitor showing counts of incoming and
outgoing packets for common TCP and UDP application ports, a LAN
statistics module that discovers active hosts and displays statistics
about their activity; TCP, UDP and other protocol display filters so
you can view just the traffic you want; logging; support for Ethernet,
Makefile: protect mandatory compile flags packet capture: don't reuse socket for multiple receive functions TPACKET_V[23]: continue even if mlock() fails ipmon: fix division by zero fix: detstats(), ifstats(): handle packets with incorrect header checksum fix: positionptr(): properly allocate newly created interfaces fix: detstats(): properly account non-IP packets fix: properly init curses (fixes view on some utf-8 terminals) fix: cidr_split_address(): fix buffer overflow ipmon: printentry(): fix printing of huge values build: use correct libraries (wide version of -lpanel) fix unsafe handling of printf() args (RedHat Bugzilla: 1842690) fix the CPU hog if the interface gets removed (RedHat Bugzilla: 1572750) introduce packet capturing abstraction: add recvmmsg(), TPACKET_V2 and TPACKET_V3 mmap()ed capturing modules: this allow us to capture in multigigabit speeds add partial support for IPoIB interfaces (full support cannot be done because the kernel interface doesn't give us source address) (RedHat Bugzilla: 1140211) merge rvnamed-ng into iptraf-ng allow scrolling with Home, End, PageUp and PageDown keys show dropped packet count pktsize: print in and out counters ifstats: show total packet rate and packet drop across all interfaces ipmon: show OSPF protocol version hostmon, ipmon: update screen only when needed (vastly reduces CPU usage and also reduces packet drops) update source code to compile cleanly on modern gcc numerous code refactoring/cleaning up all over the source tree
2020-07-21 19:59:24 +00:00
FDDI, ISDN, SLIP, PPP, and loop back interfaces; and utilization of the
built-in raw socket interface of the Linux kernel, so it can be used
on a wide variety of supported network cards.
%prep
%setup -q
%build
make %{?_smp_mflags} V=1 \
CFLAGS="-g -O2 -Wall -W -std=gnu99 -Werror=format-security %{optflags}" \
LDFLAGS="$RPM_LD_FLAGS"
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} prefix=%{_prefix}
# remove everything besides the html and pictures in Documentation
find Documentation -type f | grep -v '\.html$\|\.png$\|/stylesheet' | \
xargs rm -f
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/iptraf-ng
install -d -m 0755 %{buildroot}%{_localstatedir}/{log,lib}/iptraf-ng
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
mkdir -p %{buildroot}/run
install -d -m 0755 %{buildroot}/run/%{name}/
%files
Makefile: protect mandatory compile flags packet capture: don't reuse socket for multiple receive functions TPACKET_V[23]: continue even if mlock() fails ipmon: fix division by zero fix: detstats(), ifstats(): handle packets with incorrect header checksum fix: positionptr(): properly allocate newly created interfaces fix: detstats(): properly account non-IP packets fix: properly init curses (fixes view on some utf-8 terminals) fix: cidr_split_address(): fix buffer overflow ipmon: printentry(): fix printing of huge values build: use correct libraries (wide version of -lpanel) fix unsafe handling of printf() args (RedHat Bugzilla: 1842690) fix the CPU hog if the interface gets removed (RedHat Bugzilla: 1572750) introduce packet capturing abstraction: add recvmmsg(), TPACKET_V2 and TPACKET_V3 mmap()ed capturing modules: this allow us to capture in multigigabit speeds add partial support for IPoIB interfaces (full support cannot be done because the kernel interface doesn't give us source address) (RedHat Bugzilla: 1140211) merge rvnamed-ng into iptraf-ng allow scrolling with Home, End, PageUp and PageDown keys show dropped packet count pktsize: print in and out counters ifstats: show total packet rate and packet drop across all interfaces ipmon: show OSPF protocol version hostmon, ipmon: update screen only when needed (vastly reduces CPU usage and also reduces packet drops) update source code to compile cleanly on modern gcc numerous code refactoring/cleaning up all over the source tree
2020-07-21 19:59:24 +00:00
%doc CHANGES FAQ LICENSE README*
%doc Documentation
%{_sbindir}/iptraf-ng
%{_mandir}/man8/iptraf-ng.8*
%{_localstatedir}/log/iptraf-ng
%{_localstatedir}/lib/iptraf-ng
%config(noreplace) %{_sysconfdir}/logrotate.d/iptraf-ng
%dir /run/%{name}/
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%changelog
%autochangelog