]> git.pld-linux.org Git - packages/dsniff.git/blob - dsniff.spec
029146385e5455742e1c4f3bf5994fa4492ffe0e
[packages/dsniff.git] / dsniff.spec
1 %define         rel     10
2 Summary:        Network audit tools
3 Summary(pl.UTF-8):      Narzędzia do kontroli sieci
4 Name:           dsniff
5 Version:        2.4
6 Release:        0.b1.%{rel}
7 License:        BSD
8 Group:          Networking/Utilities
9 Source0:        http://www.monkey.org/~dugsong/dsniff/beta/%{name}-%{version}b1.tar.gz
10 # Source0-md5:  2f761fa3475682a7512b0b43568ee7d6
11 Patch0:         %{name}-ac.patch
12 Patch1:         %{name}-libnet1.patch
13 Patch2:         %{name}-clk_tck.patch
14 Patch3:         %{name}-openssl-0.9.8.patch
15 # ggsniff 1.2 from http://ggsniff.sourceforge.net/
16 #Patch3:        %{name}-gg.patch
17 URL:            http://www.monkey.org/~dugsong/dsniff/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  cpp
21 BuildRequires:  db-devel
22 BuildRequires:  glibc-static
23 BuildRequires:  libnet1-devel
24 BuildRequires:  libnids-devel
25 BuildRequires:  libpcap-devel
26 BuildRequires:  openssl-devel >= 0.9.7d
27 BuildRequires:  rpm >= 4.4.9-56
28 %if "%{pld_release}" == "ac"
29 BuildRequires:  XFree86-devel
30 %else
31 BuildRequires:  xorg-lib-libX11-devel
32 %endif
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 Tools to audit network and to demonstrate the insecurity of cleartext
37 network protocols. Please do not abuse this software.
38
39 %description -l pl.UTF-8
40 Narzędzia do kontroli sieci oraz demonstracji braku zabezpieczeń w
41 nieszyfrowanych protokołach sieciowych. Proszę nie nadużywać tego
42 oprogramowania.
43
44 %package webspy
45 Summary:        Network audit tools
46 Summary(pl.UTF-8):      Narzędzia do kontroli sieci
47 Group:          Networking/Utilities
48 Requires:       %{name} = %{version}-%{release}
49 Requires:       mozilla-firefox
50
51 %description webspy
52 webspy sends URLs sniffed from a client to your local Mozilla browser
53 for display, updated in real-time (as the target surfs, your browser
54 surfs along with them, automagically). Mozilla must be running on your
55 local X display ahead of time.
56
57 %description webspy -l pl.UTF-8
58 webspy przesyła podsłuchane URL-e do wyświetlenia w lokalnie
59 uruchomionej przeglądarce Mozilla. Adresy są uaktualniane na bieżąco
60 (a więc przegląda się strony równolegle z podsłuchiwanym). Mozilla
61 musi być wcześniej uruchomiona na lokalnym serwerze X.
62
63 %prep
64 %setup -q
65 %patch0 -p1
66 %patch1 -p1
67 %patch2 -p1
68 %patch3 -p1
69
70 %build
71 %{__autoheader}
72 %{__aclocal}
73 %{__autoconf}
74 CFLAGS="%{rpmcflags} -I./missing"
75 %configure \
76         --libdir=%{_datadir}/%{name}
77 sed -i -e 's#-L/usr/lib64 # #g' -e 's#-L/usr/lib # #g' Makefile
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         install_prefix=$RPM_BUILD_ROOT
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %doc README*
92 %attr(755,root,root) %{_sbindir}/[a-u]*
93 %attr(755,root,root) %{_sbindir}/webmitm
94 %{_datadir}/%{name}
95 %{_mandir}/man8/[a-u]*
96 %{_mandir}/man8/webmitm*
97
98 %files webspy
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_sbindir}/webspy
101 %{_mandir}/man8/webspy*
This page took 0.040686 seconds and 2 git commands to generate.