clearfiles(): fix -Wformat-truncation warning
[iptraf-ng.git] / iptraf-ng.spec.in
blob0c704f0c8b8642eb749fd97c2dbe45656bcd0d4b
1 Summary: A console-based network monitoring utility
2 Name: iptraf-ng
3 Version: @@IPTRAF_VERSION@@
4 Release: 1%{?dist}
5 Source0: https://fedorahosted.org/releases/i/p/iptraf-ng/%{name}-%{version}.tar.gz
6 Source1: iptraf-ng-logrotate.conf
7 URL: https://fedorahosted.org/iptraf-ng/
8 License: GPLv2+
9 Group: Applications/System
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11 BuildRequires: ncurses-devel
12 Obsoletes: iptraf < 3.1
13 Provides: iptraf = 3.1
15 %description
16 IPTraf-ng is a console-based network monitoring utility. IPTraf gathers
17 data like TCP connection packet and byte counts, interface statistics
18 and activity indicators, TCP/UDP traffic breakdowns, and LAN station
19 packet and byte counts. IPTraf-ng features include an IP traffic monitor
20 which shows TCP flag information, packet and byte counts, ICMP
21 details, OSPF packet types, and oversized IP packet warnings;
22 interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP
23 packet counts, IP checksum errors, interface activity and packet size
24 counts; a TCP and UDP service monitor showing counts of incoming and
25 outgoing packets for common TCP and UDP application ports, a LAN
26 statistics module that discovers active hosts and displays statistics
27 about their activity; TCP, UDP and other protocol display filters so
28 you can view just the traffic you want; logging; support for Ethernet,
29 FDDI, ISDN, SLIP, PPP, and loopback interfaces; and utilization of the
30 built-in raw socket interface of the Linux kernel, so it can be used
31 on a wide variety of supported network cards.
33 %prep
34 %setup -q
36 %build
37 %configure
38 make %{?_smp_mflags}
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 make install DESTDIR=$RPM_BUILD_ROOT
44 # remove everything besides the html and pictures in Documentation
45 find Documentation -type f | grep -v '\.html$\|\.png$\|/stylesheet' | \
46 xargs rm -f
48 install -D -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/iptraf-ng
50 install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/{lock,log,lib}/iptraf-ng
52 %clean
53 rm -rf $RPM_BUILD_ROOT
55 %files
56 %defattr(-,root,root,-)
57 %doc CHANGES FAQ LICENSE README* RELEASE-NOTES
58 %doc Documentation
59 %{_sbindir}/iptraf-ng
60 %{_sbindir}/rvnamed-ng
61 %{_mandir}/man8/iptraf-ng.8*
62 %{_mandir}/man8/rvnamed-ng.8*
63 %{_localstatedir}/lock/iptraf-ng
64 %{_localstatedir}/log/iptraf-ng
65 %{_localstatedir}/lib/iptraf-ng
66 %config(noreplace) %{_sysconfdir}/logrotate.d/iptraf-ng
68 %changelog
69 * Wed Jan 11 2011 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.0-1
70 - Initialization build