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