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