Back to the iptraf rpmsCurrent spec in pydar2:
# $Id: iptraf.spec 4303 2006-04-18 22:05:03Z dries $
# Authority: dag
# Upstream: Gerard Paul Java
# Upstream:
Summary: Console-based network monitoring utility
Name: iptraf
Version: 3.0.0
Release: 1.2
License: GPL
Group: Applications/System
URL: http://iptraf.seul.org/
Source: ftp://iptraf.seul.org/pub/iptraf/iptraf-%{version}.tar.gz
#Source: ftp://ftp.cebu.mozcom.com/pub/linux/net/iptraf-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: ncurses-devel
%description
IPTraf 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 features include an IP traffic monitor which shows TCP flag
information, packet and byte counts, ICMP details, OSPF packet types,
and oversized IP packet warnings; interface statistics showing IP, TCP,
UDP, ICMP, non-IP and other IP packet counts, IP checksum 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, FDDI, ISDN, SLIP, PPP, and loopback 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
### remove prebuilt cruft included in the tarball so that sparc and alpha can
### build properly
%{__rm} -f src/{cfconv,iptraf,rvnamed}
%{__perl} -pi.orig -e '
s|^(TARGET)\s*=.+$|$1=\$(bindir)|;
s|^(WORKDIR)\s*=.+$|$1=\$(localstatedir)/run/iptraf|;
s|^(LOCKDIR)\s*=.+$|$1=\$(localstatedir)/lock/iptraf|;
s|^(LOGDIR)\s*=.+$|$1=\$(localstatedir)/log/iptraf|;
' src/Makefile
%build
%{__make} -C src \
CFLAGS="%{optflags}" \
bindir="%{_bindir}" \
localstatedir="%{_localstatedir}"
%install
%{__rm} -rf %{buildroot}
#makeinstall -C src
%{__install} -Dp -m0755 src/iptraf %{buildroot}%{_bindir}/iptraf
%{__install} -Dp -m0755 src/rvnamed %{buildroot}%{_bindir}/rvnamed
%{__install} -Dp -m644 Documentation/iptraf.8 %{buildroot}%{_mandir}/man8/iptraf.8
%{__install} -Dp -m644 Documentation/rvnamed.8 %{buildroot}%{_mandir}/man8/rvnamed.8
%{__install} -d -m0700 %{buildroot}%{_localstatedir}/{lock,log,run}/iptraf/
touch %{buildroot}%{_localstatedir}/log/iptraf/rvnamed.log \
%{buildroot}%{_localstatedir}/run/iptraf/iptraf.cfg \
%{buildroot}%{_localstatedir}/run/iptraf/iptraf-promisclist.tmp \
%{buildroot}%{_localstatedir}/run/iptraf/iptraf-processcount.dat \
%{buildroot}%{_localstatedir}/run/iptraf/iptraf-itrafmoncount.dat
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc CHANGES Documentation/ FAQ INSTALL LICENSE README* RELEASE-NOTES
%doc %{_mandir}/man?/*
%{_bindir}/*
%defattr(-, root, root, 0700)
%config(missingok) %{_localstatedir}/run/iptraf/
%config(missingok) %{_localstatedir}/log/iptraf/
%{_localstatedir}/lock/iptraf/
%changelog
* Sat Apr 08 2006 Dries Verachtert - 3.0.0-1.2
- Rebuild for Fedora Core 5.
* Tue Sep 20 2005 Dag Wieers - 3.0.0-1
- Updated to release 3.0.0.
* Mon May 03 2004 Dag Wieers - 2.7.0-2
- Fix inline makefile patch.
* Thu Apr 29 2004 Dag Wieers - 2.7.0-1
- Initial package. (using DAR)