%define name dsniff %define version 2.4 %define release b1.0.2mdk Summary: Network audit tools Name: %{name} Version: %{version} Release: %{release} URL: http://www.monkey.org/~dugsong/ License: BSD Source0: http://www.monkey.org/~dugsong/%{name}/%{name}-%{version}b1.tar.bz2 Patch0: %{name}-%{version}-slist.patch.bz2 #Patch1: %{name}-headers.patch.bz2 Patch2: %{name}-%{version}-gg.patch.bz2 Patch3: %{name}-%{version}-db4.patch.bz2 #Patch4: %{name}-%{version}-incfix.patch.bz2 Patch5: %{name}-%{version}-missing-header.patch.bz2 Group: Monitoring BuildRequires: libnids-devel libnet BuildRequires: glibc-static-devel openssl-devel BuildRequires: XFree86-devel libpcap-devel db4-devel Requires: libdb4.0 libnids libpcap openssl BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description Tools to audit network and to demonstrate the insecurity of cleartext network protocols. Please do not abuse this software. %package webspy Summary: Network audit tools Group: Monitoring Requires: %{name} = %{version} Requires: libdb4.0 libnids libpcap openssl XFree86-libs #Requires: netscape-navigator %description webspy webspy sends URLs sniffed from a client to your local Netscape browser for display, updated in real-time (as the target surfs, your browser surfs along with them, automagically). Netscape must be running on your local X display ahead of time. %prep %setup -q %patch0 -p0 #%patch1 -p1 %patch2 -p0 %patch3 -p0 #%patch4 -p0 %patch5 -p0 %build %{__autoheader} ; %{__aclocal}; %{__autoconf} %configure --libdir="%{_sysconfdir}/%{name}" %make %install rm -rf %{buildroot} %{__make} install_prefix="%{buildroot}" install chmod 644 CHANGES README TODO %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc CHANGES README TODO %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/* %{_sbindir}/*[!webspy] #have to manually add these two to the list, don't ask me *why*, but if not, it won't be included %{_sbindir}/tcpnice %{_sbindir}/sshow %{_mandir}/man8/*[!webspy] %files webspy %defattr(-,root,root) %{_sbindir}/webspy %{_mandir}/man8/webspy.8* %changelog * Mon Jan 27 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.4-b1.0.2mdk - build release - the obvious db4 patch - misc spec file fixes * Thu Dec 19 2002 Per Øyvind Karlsen <peroyvind@sintrax.net> 2.4-b1.0.1mdk - 2.4b1 (to avoid segfaults) - Updated Patch0, Patch2, Patch3, removed Patch1 & Patch4, added Patch5 - Cleanups * Sun Oct 27 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.3-2mdk - cannot require "libopenssl", duh! * Sun Oct 27 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.3-1mdk - initial cooker contrib (ripped from PLD, adapted for ML) - added P3 & P4 (me)