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