Name: driftnet
License: GPLv2+
Group: Applications/Internet
Version: 0.1.6
Release: 17.20040426cvs%{?dist}
Summary: Network image sniffer
URL: http://www.ex-parrot.com/~chris/driftnet/
Source0: driftnet-0.1.6-20040426cvs.tar.gz
#Source0: http://www.ex-parrot.com/~chris/driftnet/driftnet-0.1.6.tar.gz
Source1: %name-%{version}-pam.config
Source2: %name-%{version}-security.config
#Patch0: driftnet-gtk2-port.patch
Patch1: driftnet-dont-use-tmpnam.patch
Patch2: driftnet-0.1.6-no-makedepend.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libpcap-devel gtk2-devel libungif-devel libjpeg-devel
Requires: %{_bindir}/consolehelper
%description
Driftnet is a program which listens to network traffic and picks out images
from TCP streams it observes. Fun to run on a host which sees lots of web
traffic.
%prep
%setup -q -n driftnet-%{version}-20040426cvs
#%patch0 -p1 -b .gtk2
%patch1 -p1 -b .tmpnam
%patch2 -p1 -b .makedep
%build
CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -Dpm 0755 driftnet \
$RPM_BUILD_ROOT%{_sbindir}/driftnet
install -Dpm 0644 driftnet.1 \
$RPM_BUILD_ROOT/%{_mandir}/man1/driftnet.1
ln -sf consolehelper $RPM_BUILD_ROOT%{_bindir}/driftnet
install -Dpm 644 %{SOURCE1} \
$RPM_BUILD_ROOT%{_sysconfdir}/pam.d/driftnet
install -Dpm 644 %{SOURCE2} \
$RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/driftnet
%files
%defattr(-,root,root,-)
%doc CHANGES COPYING CREDITS README TODO
%{_bindir}/driftnet
%{_sbindir}/driftnet
%config(noreplace) %{_sysconfdir}/pam.d/driftnet
%config %{_sysconfdir}/security/console.apps/driftnet
%{_mandir}/man1/driftnet.1*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Jul 16 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.1.6-17.20040426cvs
- fix license tag
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.1.6-16.20040426cvs
- Autorebuild for GCC 4.3
* Sun Oct 21 2007 Paul Wouters <paul@xelerance.com> - 0.1.6-15.20040426cvs
- Fixed endian patch
* Sun Oct 21 2007 Paul Wouters <paul@xelerance.com> - 0.1.6-13.20040426cvs
- Commented out a g_free(template) that broke tmpdir. I don't
understand why though. Since template is never used again.
This is https://bugzilla.redhat.com/show_bug.cgi?id=201412
* Sun Dec 24 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.1.6-12
- Rebuild with updated libpcap.
* Fri Sep 15 2006 - Bastien Nocera <hadess@hadess.net> - 0.1.6-11
- Rebuilt
* Thu Jul 13 2006 - Bastien Nocera <hadess@hadess.net> - 0.1.6-10
- Update builddeps (#197685)
* Mon Apr 03 2006 - Bastien Nocera <hadess@hadess.net> - 0.1.6-9
- Fix typo in the imake removal patch that broke on big endian machines
* Mon Apr 03 2006 - Bastien Nocera <hadess@hadess.net> - 0.1.6-7
- spell "driftnet" correctly in driftnet-dont-use-tmpnam.patch
Add patch2 to remove imake dependency
update the PAM config to be more like existing ones
move buildroot deletion to install from prep
Thanks to Adrian Reber <adrian@lisas.de> for pointing to those last 2
* Tue Dec 13 2005 - Bastien Nocera <hadess@hadess.net> - 0.1.6-6
- update for FC5, don't use tmpnam
* Fri Nov 11 2005 - Bastien Nocera <hadess@hadess.net> - 0.1.6-5
- Major cleanups by Adrian Reber <adrian@lisas.de>
* Sat Apr 17 2004 - Bastien Nocera <hadess@hadess.net> - 0.1.6-4
- Oops, it wasn't a GTK2 application, ended up porting it
* Sat Apr 10 2004 - Bastien Nocera <hadess@hadess.net> - 0.1.6-3
- Recompile against a newer libpcap
* Fri Jun 20 2003 - Bastien Nocera <hadess@hadess.net> - 0.1.6-2
- Added a PAM configuration file
* Fri Jun 20 2003 - Bastien Nocera <hadess@hadess.net> - 0.1.6-1
- First release