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