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