]> git.pld-linux.org Git - packages/dsniff.git/blobdiff - dsniff.spec
- release 11
[packages/dsniff.git] / dsniff.spec
index 59486c713c7ed5adb45e099fa35c2c0966c57a53..590cb80597dfff38438218117c7bdd4114f9684e 100644 (file)
@@ -1,61 +1,80 @@
-Summary:       Network audit tools.
-Summary(pl):   Narzêdzia do kontroli sieci
+%define                rel     11
+Summary:       Network audit tools
+Summary(pl.UTF-8):     Narzędzia do kontroli sieci
 Name:          dsniff
-Version:       2.3
-Release:       4
+Version:       2.4
+Release:       0.b1.%{rel}
 License:       BSD
 Group:         Networking/Utilities
-Group(de):     Netzwerkwesen/Werkzeuge
-Group(pl):     Sieciowe/Narzêdzia
-Source0:       http://www.monkey.org/~dugsong/%{name}/%{name}-%{version}.tar.gz
-Patch0:                %{name}-slist.patch
-Patch1:                %{name}-headers.patch
-Patch2:                %{name}-etc.patch
-URL:           http://www.monkey.org/~dugsong/
-BuildRequires: XFree86-devel
-BuildRequires: libpcap-devel
-BuildRequires: libnids-devel
-BuildRequires: libnet-devel
+Source0:       http://www.monkey.org/~dugsong/dsniff/beta/%{name}-%{version}b1.tar.gz
+# Source0-md5: 2f761fa3475682a7512b0b43568ee7d6
+Patch0:                %{name}-ac.patch
+Patch1:                %{name}-libnet1.patch
+Patch2:                %{name}-clk_tck.patch
+Patch3:                %{name}-openssl-0.9.8.patch
+# ggsniff 1.2 from http://ggsniff.sourceforge.net/
+#Patch3:       %{name}-gg.patch
+URL:           http://www.monkey.org/~dugsong/dsniff/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: cpp
+BuildRequires: db-devel
 BuildRequires: glibc-static
-BuildRequires: openssl-devel >= 0.9.6a
+BuildRequires: libnet1-devel
+BuildRequires: libnids-devel
+BuildRequires: libpcap-devel
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: rpm >= 4.4.9-56
+%if "%{pld_release}" == "ac"
+BuildRequires: XFree86-devel
+%else
+BuildRequires: xorg-lib-libX11-devel
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir             /etc/%{name}
-
 %description
 Tools to audit network and to demonstrate the insecurity of cleartext
 network protocols. Please do not abuse this software.
 
-%description -l -l
-Narzêdzia do kontroli sieci oraz demonstracji braku zabezpieczeñ w
-nieszyfrowanych protoko³ach sieciowych. Proszê nie nadu¿ywac tego
+%description -l pl.UTF-8
+Narzędzia do kontroli sieci oraz demonstracji braku zabezpieczeń w
+nieszyfrowanych protokołach sieciowych. Proszę nie nadużywać tego
 oprogramowania.
 
 %package webspy
 Summary:       Network audit tools
-Summary(pl):   Narzêdzia do kontroli sieci
+Summary(pl.UTF-8):     Narzędzia do kontroli sieci
 Group:         Networking/Utilities
-Group(de):     Netzwerkwesen/Werkzeuge
-Group(pl):     Sieciowe/Narzêdzia
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Requires:      mozilla-firefox
 
 %description webspy
-webspy sends URLs sniffed from a client to your local Netscape browser
+webspy sends URLs sniffed from a client to your local Mozilla browser
 for display, updated in real-time (as the target surfs, your browser
-surfs along with them, automag\80 ically). Netscape must be running on
-your local X display ahead of time.
+surfs along with them, automagically). Mozilla must be running on your
+local X display ahead of time.
+
+%description webspy -l pl.UTF-8
+webspy przesyła podsłuchane URL-e do wyświetlenia w lokalnie
+uruchomionej przeglądarce Mozilla. Adresy są uaktualniane na bieżąco
+(a więc przegląda się strony równolegle z podsłuchiwanym). Mozilla
+musi być wcześniej uruchomiona na lokalnym serwerze X.
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
-autoheader
+%{__autoheader}
+%{__aclocal}
+%{__autoconf}
 CFLAGS="%{rpmcflags} -I./missing"
 %configure \
        --libdir=%{_datadir}/%{name}
+sed -i -e 's#-L/usr/lib64 # #g' -e 's#-L/usr/lib # #g' Makefile
 %{__make}
 
 %install
@@ -64,19 +83,15 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        install_prefix=$RPM_BUILD_ROOT
 
-gzip -9nf README*
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
+%doc README*
 %attr(755,root,root) %{_sbindir}/[a-u]*
 %attr(755,root,root) %{_sbindir}/webmitm
-%dir %{_sysconfdir}
-%config(noreplace) %{_sysconfdir}/*
-%{_datadir}/%{name}/*
+%{_datadir}/%{name}
 %{_mandir}/man8/[a-u]*
 %{_mandir}/man8/webmitm*
 
This page took 0.181197 seconds and 4 git commands to generate.