2012-01-11 10:43:52 +00:00
|
|
|
Summary: A console-based network monitoring utility
|
|
|
|
Name: iptraf-ng
|
2025-02-02 17:43:47 +00:00
|
|
|
Version: 1.2.2
|
|
|
|
Release: %autorelease
|
2018-01-23 21:48:37 +00:00
|
|
|
Source0: https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
|
2014-03-02 23:12:20 +00:00
|
|
|
Source1: %{name}-logrotate.conf
|
2018-01-23 21:48:37 +00:00
|
|
|
Source2: %{name}-tmpfiles.conf
|
|
|
|
URL: https://github.com/iptraf-ng/iptraf-ng/
|
2023-05-30 14:36:41 +00:00
|
|
|
License: GPL-2.0-or-later
|
2018-07-16 18:09:54 +00:00
|
|
|
BuildRequires: gcc
|
2012-01-11 10:43:52 +00:00
|
|
|
BuildRequires: ncurses-devel
|
2023-05-30 14:36:41 +00:00
|
|
|
BuildRequires: make
|
2025-02-02 17:43:47 +00:00
|
|
|
Requires: logrotate
|
2012-01-11 10:43:52 +00:00
|
|
|
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
|
2020-07-21 19:59:24 +00:00
|
|
|
details, OSPF packet types, and oversize IP packet warnings;
|
2012-01-11 10:43:52 +00:00
|
|
|
interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP
|
2020-07-21 19:59:24 +00:00
|
|
|
packet counts, IP check sum errors, interface activity and packet size
|
2012-01-11 10:43:52 +00:00
|
|
|
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,
|
2020-07-21 19:59:24 +00:00
|
|
|
FDDI, ISDN, SLIP, PPP, and loop back interfaces; and utilization of the
|
2012-01-11 10:43:52 +00:00
|
|
|
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
|
2018-02-01 16:51:10 +00:00
|
|
|
make %{?_smp_mflags} V=1 \
|
|
|
|
CFLAGS="-g -O2 -Wall -W -std=gnu99 -Werror=format-security %{optflags}" \
|
|
|
|
LDFLAGS="$RPM_LD_FLAGS"
|
2012-01-11 10:43:52 +00:00
|
|
|
|
|
|
|
%install
|
2012-05-24 11:16:04 +00:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot} prefix=%{_prefix}
|
2012-01-11 10:43:52 +00:00
|
|
|
|
|
|
|
# remove everything besides the html and pictures in Documentation
|
|
|
|
find Documentation -type f | grep -v '\.html$\|\.png$\|/stylesheet' | \
|
|
|
|
xargs rm -f
|
|
|
|
|
2012-05-24 11:16:04 +00:00
|
|
|
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/iptraf-ng
|
2012-01-11 10:43:52 +00:00
|
|
|
|
2014-03-02 23:12:20 +00:00
|
|
|
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}/
|
2012-01-11 10:43:52 +00:00
|
|
|
|
|
|
|
%files
|
2020-07-21 19:59:24 +00:00
|
|
|
%doc CHANGES FAQ LICENSE README*
|
2012-01-11 10:43:52 +00:00
|
|
|
%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
|
2014-03-02 23:12:20 +00:00
|
|
|
%dir /run/%{name}/
|
|
|
|
%{_prefix}/lib/tmpfiles.d/%{name}.conf
|
2012-01-11 10:43:52 +00:00
|
|
|
|
|
|
|
%changelog
|
2025-02-02 17:43:47 +00:00
|
|
|
%autochangelog
|