77aaa1
Summary:        A console-based network monitoring utility
77aaa1
Name:           iptraf-ng
77aaa1
Version:        1.2.1
340c7c
Release:        2%{?dist}
77aaa1
Source0:        https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
340c7c
Source1:        %{name}-logrotate.conf
340c7c
Source2:        %{name}-tmpfiles.conf
77aaa1
URL:            https://github.com/iptraf-ng/iptraf-ng/
77aaa1
License:        GPLv2+
77aaa1
Group:          Applications/System
77aaa1
BuildRequires:  gcc
77aaa1
BuildRequires:  ncurses-devel
77aaa1
Obsoletes:      iptraf < 3.1
77aaa1
Provides:       iptraf = 3.1
77aaa1
77aaa1
%description
77aaa1
IPTraf-ng is a console-based network monitoring utility.  IPTraf gathers
77aaa1
data like TCP connection packet and byte counts, interface statistics
77aaa1
and activity indicators, TCP/UDP traffic breakdowns, and LAN station
77aaa1
packet and byte counts.  IPTraf-ng features include an IP traffic monitor
77aaa1
which shows TCP flag information, packet and byte counts, ICMP
77aaa1
details, OSPF packet types, and oversized IP packet warnings;
77aaa1
interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP
77aaa1
packet counts, IP checksum errors, interface activity and packet size
77aaa1
counts; a TCP and UDP service monitor showing counts of incoming and
77aaa1
outgoing packets for common TCP and UDP application ports, a LAN
77aaa1
statistics module that discovers active hosts and displays statistics
77aaa1
about their activity; TCP, UDP and other protocol display filters so
77aaa1
you can view just the traffic you want; logging; support for Ethernet,
77aaa1
FDDI, ISDN, SLIP, PPP, and loopback interfaces; and utilization of the
77aaa1
built-in raw socket interface of the Linux kernel, so it can be used
77aaa1
on a wide variety of supported network cards.
77aaa1
77aaa1
%prep
77aaa1
%setup -q
77aaa1
77aaa1
%build
77aaa1
make %{?_smp_mflags} V=1 \
77aaa1
  CFLAGS="-g -O2 -Wall -W -std=gnu99 -Werror=format-security %{optflags}" \
77aaa1
  LDFLAGS="$RPM_LD_FLAGS"
77aaa1
77aaa1
%install
77aaa1
rm -rf %{buildroot}
77aaa1
make install DESTDIR=%{buildroot} prefix=%{_prefix}
77aaa1
77aaa1
# remove everything besides the html and pictures in Documentation
77aaa1
find Documentation -type f | grep -v '\.html$\|\.png$\|/stylesheet' | \
77aaa1
     xargs rm -f
77aaa1
340c7c
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/iptraf-ng
77aaa1
77aaa1
install -d -m 0755 %{buildroot}%{_localstatedir}/{log,lib}/iptraf-ng
77aaa1
77aaa1
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
340c7c
install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
77aaa1
77aaa1
mkdir -p %{buildroot}/run
77aaa1
install -d -m 0755 %{buildroot}/run/%{name}/
77aaa1
77aaa1
%clean
77aaa1
rm -rf %{buildroot}
77aaa1
77aaa1
%files
77aaa1
%defattr(-,root,root,-)
77aaa1
%doc CHANGES FAQ LICENSE README*
77aaa1
%doc Documentation
77aaa1
%{_sbindir}/iptraf-ng
77aaa1
%{_mandir}/man8/iptraf-ng.8*
77aaa1
%{_localstatedir}/log/iptraf-ng
77aaa1
%{_localstatedir}/lib/iptraf-ng
77aaa1
%config(noreplace) %{_sysconfdir}/logrotate.d/iptraf-ng
77aaa1
%dir /run/%{name}/
77aaa1
%{_prefix}/lib/tmpfiles.d/%{name}.conf
77aaa1
77aaa1
%changelog
340c7c
* Thu Jan 28 2021 Andrea Claudi <aclaudi@redhat.com>
340c7c
- Make sure logrotate use iptraf-ng directory.
340c7c
77aaa1
* Wed Dec 09 2020 Andrea Claudi <aclaudi@redhat.com>
77aaa1
- New version 1.2.1 (Andrea Claudi) [1906097]
77aaa1
77aaa1
* Thu Apr 11 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-19
77aaa1
- add tests/tests.yml
77aaa1
  Resolves: rhbz#1682317
77aaa1
77aaa1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-18
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
77aaa1
77aaa1
* Thu Feb  1 2018 Florian Weimer <fweimer@redhat.com> - 1.1.4-17
77aaa1
- Build with linker flags from redhat-rpm-config
77aaa1
77aaa1
* Mon Jan 22 2018 Phil Cameron <pcameron@redhat.com> - 1.1.4-16
77aaa1
- Moved upstream from https://fedorahosted.org/iptraf-ng/ to 
77aaa1
  https://github.com/iptraf-ng/iptraf-ng/ with release v1.1.4
77aaa1
  Fixes error in patch Patch03 - this fixes 1283773
77aaa1
77aaa1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-15
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
77aaa1
77aaa1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-14
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
77aaa1
77aaa1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-13
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
77aaa1
77aaa1
* Sun Apr 17 2016 Alejandro Pérez  <aeperezt@fedoraproject.org> - 1.1.4-12
77aaa1
- Added sources and clean tree
77aaa1
* Fri Apr 15 2016 Phil Cameron <pcameron@redhat.com> - 1.1.4-11
77aaa1
- fix 1283773
77aaa1
  bugfix-positionptr-properly-allocate-newly-create
77aaa1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-10
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
77aaa1
77aaa1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-9
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
77aaa1
77aaa1
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-8
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
77aaa1
77aaa1
* Tue Jun 17 2014 Alejandro Pérez  <aeperezt@fedoraproject.org> - 1.1.4-7
77aaa1
- fix 1109768
77aaa1
  bad configuration logrotate
77aaa1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-6
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
77aaa1
* Sun Mar 02 2014 Alejandro Pérez  <aeperezt@fedoraproject.org> - 1.1.4-5
77aaa1
- fix bug 1020552
77aaa1
  rpm report /var/lock/ipraf-ng is missing
77aaa1
  fix dates on changelog
77aaa1
  added missing file iptraf-nf-tmpfiles.conf
77aaa1
* Tue Dec 03 2013 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.4-4
77aaa1
- iptraf-ng-1.1.4-4
77aaa1
77aaa1
  Fedora start using -Werror=format-security and iptraf-ng had some
77aaa1
  parts where error compilation was trigged.
77aaa1
77aaa1
  202b2e7b27a1 Makefile: add -Werror=format-security
77aaa1
77aaa1
  Resolved: #1037133
77aaa1
77aaa1
* Mon Sep 02 2013 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.4-3
77aaa1
- 9b32013 BUGFIX: fix "Floating point exception" in tcplog_flowrate_msg() (Vitezslav Samel)
77aaa1
  
77aaa1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
77aaa1
77aaa1
* Tue Jul 23 2013 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.4
77aaa1
- new upstream iptraf-ng-1.1.4
77aaa1
77aaa1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3.1-4
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
77aaa1
77aaa1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3.1-3
77aaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
77aaa1
77aaa1
* Thu May 24 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.3.1-2
77aaa1
- append standard CFLAGS
77aaa1
77aaa1
* Wed May 23 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.3.1-1
77aaa1
- new upstream iptraf-ng-1.1.3.1-1
77aaa1
77aaa1
* Fri May 04 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.2-1
77aaa1
- new upstream iptraf-ng-1.1.2-1
77aaa1
77aaa1
* Fri Apr 27 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.2.rc0-1
77aaa1
- new upstream iptraf-ng-1.1.2.rc0-1
77aaa1
77aaa1
* Thu Feb 02 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.1-1
77aaa1
- new upstream iptraf-ng-1.1.1
77aaa1
77aaa1
* Sun Jan 16 2011 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.0-2
77aaa1
- fix wrongly used execl
77aaa1
77aaa1
* Tue Jan 11 2011 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.0-1
77aaa1
- Initialization build