X-Git-Url: http://git.pld-linux.org/?p=packages%2Fettercap.git;a=blobdiff_plain;f=ettercap.spec;h=b04ddc5576a811e6994da5d47bf29c017b51da97;hp=e4bd80efa2e30dc6a68d9f1a68a5b0309fec77e2;hb=HEAD;hpb=45d6baccbb633d78c8f73332446b77b51800711c diff --git a/ettercap.spec b/ettercap.spec index e4bd80e..e5a0c76 100644 --- a/ettercap.spec +++ b/ettercap.spec @@ -1,27 +1,54 @@ -Summary: ettercap is a ncurses-based sniffer/interceptor utility -Summary(pl): ettercap jest opartym o ncurses narzêdziem do sniffowania/przechwytywania -Summary(pt_BR): ettercap e um interceptador/sniffer paseado em ncurses +# +# Conditional build: +%bcond_without geoip # GeoIP support +%bcond_without gtk # gtk-based frontend +%bcond_with gtk2 # use GTK+ 2.x instead of 3.x +%bcond_with lua # experimental Lua support +# +Summary: ettercap - a ncurses-based sniffer/interceptor utility +Summary(pl.UTF-8): ettercap - oparte o ncurses narzędzie do sniffowania/przechwytywania +Summary(pt_BR.UTF-8): ettercap e um interceptador/sniffer paseado em ncurses Name: ettercap -Version: 0.6.a -Release: 1 +Version: 0.8.3 +Release: 2 Epoch: 1 -License: GPL +License: GPL v2+ with OpenSSL exception Group: Networking/Utilities -Source0: http://dl.sourceforge.net/ettercap/%{name}-%{version}.tar.gz -# Source0-md5: 72bee584510c3bb40568188067f43e3f -Patch0: %{name}-dont_require_root.patch -Patch1: %{name}-ncurses.patch -Patch2: %{name}-plugin_dir.patch -Patch3: %{name}-kernel_version.patch -URL: http://ettercap.sourceforge.net/ -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: awk -BuildRequires: grep -BuildRequires: ncurses-devel -BuildRequires: openssl-devel >= 0.9.7 -BuildRequires: textutils -Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +#Source0Download: https://github.com/Ettercap/ettercap/releases +Source0: https://github.com/Ettercap/ettercap/releases/download/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 6b27d329a509e65fef9044c95a2dde35 +Patch0: %{name}-buildtype.patch +Patch1: %{name}-gtk3.patch +Patch2: %{name}-link.patch +Patch3: %{name}-no-common.patch +URL: https://www.ettercap-project.org/ +%{?with_geoip:BuildRequires: GeoIP-devel} +BuildRequires: bison +BuildRequires: cmake >= 2.8 +BuildRequires: curl-devel >= 7.26.0 +BuildRequires: flex +%if %{with gtk} +%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.10} +%{!?with_gtk2:BuildRequires: gtk+3-devel >= 3.12.0} +%endif +BuildRequires: libbsd-devel +BuildRequires: libnet-devel >= 1:1.1.5 +BuildRequires: libpcap-devel +%{?with_lua:BuildRequires: luajit-devel >= 2.0.0} +BuildRequires: ncurses-ext-devel +BuildRequires: openssl-devel >= 0.9.7d +BuildRequires: pcre-devel +BuildRequires: pkgconfig +BuildRequires: zlib-devel +Requires: curl-libs >= 7.26.0 +%if %{with gtk} +%{?with_gtk2:Requires: gtk+2 >= 2:2.10} +%{!?with_gtk2:Requires: gtk+3 >= 3.12.0} +%endif +Requires: libnet >= 1:1.1.5 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define specflags -fomit-frame-pointer %description ettercap is a network sniffer/interceptor/logger for ethernet LANs @@ -29,68 +56,106 @@ ettercap is a network sniffer/interceptor/logger for ethernet LANs many protocols (even ciphered ones, like SSH and HTTPS). Data injection in an established connection and filtering (substitute or drop a packet) on the fly is also possible, keeping the connection -sincronized. Many sniffing modes were implemented to give you a +synchronized. Many sniffing modes were implemented to give you a powerful and complete sniffing suite. Plugins are supported. It has the ability to check whether you are in a switched LAN or not, and to use OS fingerprints (active or passive) to let you know the geometry -of the LAN. The passive scan of the lan retrives infos about: hosts in -the lan, open ports, services version, type of the host (gateway, +of the LAN. The passive scan of the LAN retrieves infos about: hosts +in the lan, open ports, services version, type of the host (gateway, router or simple host) and extimated distance in hop. -%description -l pl -ettercap jest wieloczynno¶ciowym snifferem/przechwytywaczem/loggerem -dla sieci LAN opartych na switchach lub hubach. +%description -l pl.UTF-8 +ettercap jest wieloczynnościowym snifferem/przechwytywaczem/loggerem +dla sieci LAN (opartych na switchach lub hubach). Obsługuje aktywną i +pasywną analizę wielu protokołów (nawet szyfrowanych, jak SSH czy +HTTPS). Możliwe jest także wstrzykiwanie lub filtrowanie danych +(podmiana lub usunięcie pakietu) w locie, przy podtrzymaniu +synchronizacji połączenia. Program ma zaimplementowane wiele trybów +sniffowania, aby dać potężne i kompletne narzędzie. Obsługiwane są +wtyczki. Program ma możliwość sprawdzania, czy pracuje w sieci ze +switchami oraz używania odcisków systemów (aktywnego lub pasywnego) do +poznania geometrii sieci. Pasywne skanowanie sieci uzyskuje informacje +o: hostach w sieci, otwartych portach, wersjach usług, rodzajach +hostów (bramki, routery lub zwykłe komputery) oraz przybliżonych +odległościach (w hopach). -%description -l pt_BR -ettercap é um sniffer/interceptor/logger de rede para redes locais -(com uso de switches ou não). Suporta operações ativas e passivas de -vários protocolos (mesmo os criptografados, como SSH e HTTPS). Também -é possível injeção de dados em uma conexão estabelecida e filtragem -(substituição ou descarte de um pacote) em tempo real mantendo a -conexão sincronizada. Muitos modos de sniffing foram implementadas -para proporcionar a você um completo conjunto de sniffing. Plugins são -suportados. Tem a habilidade de verificar se você está em uma rede -local com switches ou não. Utiliza fingerprints do Sistema Operacional -(ativo ou passivo) para permitir que você conheça a geometria da rede -local. A varredura passiva da rede local obtém informações sobre: -hosts na rede local, portas abertas, versão de serviços, tipo de host -(gateway, router ou um computador) e a distância estimada no hop. +%description -l pt_BR.UTF-8 +ettercap é um sniffer/interceptor/logger de rede para redes locais +(com uso de switches ou não). Suporta operações ativas e passivas de +vários protocolos (mesmo os criptografados, como SSH e HTTPS). Também +é possível injeção de dados em uma conexão estabelecida e filtragem +(substituição ou descarte de um pacote) em tempo real mantendo a +conexão sincronizada. Muitos modos de sniffing foram implementadas +para proporcionar a você um completo conjunto de sniffing. Plugins são +suportados. Tem a habilidade de verificar se você está em uma rede +local com switches ou não. Utiliza fingerprints do Sistema Operacional +(ativo ou passivo) para permitir que você conheça a geometria da rede +local. A varredura passiva da rede local obtém informações sobre: +hosts na rede local, portas abertas, versão de serviços, tipo de host +(gateway, router ou um computador) e a distância estimada no hop. %prep %setup -q -#%patch0 -p1 -%patch1 -#%patch2 -p1 +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 %patch3 -p1 %build -%{__aclocal} -%{__autoconf} -CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses" -%configure \ - --%{!?debug:dis}%{?debug:en}able-debug \ - --enable-ncurses \ - --disable-gtk +install -d build +cd build +%cmake .. \ + -DBUNDLED_LIBS=OFF \ + %{!?with_geoip:-DENABLE_GEOIP=OFF} \ + %{!?with_gtk:-DENABLE_GTK=OFF} \ + -DENABLE_IPV6=ON + %{?with_lua:-DENABLE_LUA=ON} \ + %{?with_gtk2:-DGTK_BUILD_TYPE=GTK2} + %{__make} -%{__make} plug-ins %install rm -rf $RPM_BUILD_ROOT -%{__make} install \ - DESTDIR=$RPM_BUILD_ROOT -%{__make} plug-ins_install \ +%{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT +# API not exported +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libettercap*.so + %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files %defattr(644,root,root,755) -%doc README README.PLUGINS HISTORY CHANGELOG AUTHORS TODO -%doc THANKS KNOWN-BUGS PORTINGS -%doc plugins/{H03_hydra1/HYDRA.HOWTO,H01_zaratan/ZARATAN.HOWTO,H09_roper/ROPER.HOWTO} -%attr(755,root,root) %{_sbindir}/* -%{_libdir}/ettercap +%doc AUTHORS CHANGELOG LICENSE.OPENSSL README README.{BINARIES,BUGS} THANKS TODO doc/* +%attr(755,root,root) %{_bindir}/ettercap +%attr(755,root,root) %{_bindir}/ettercap-pkexec +%attr(755,root,root) %{_bindir}/etterfilter +%attr(755,root,root) %{_bindir}/etterlog +%attr(755,root,root) %{_libdir}/libettercap.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libettercap.so.0 +%attr(755,root,root) %{_libdir}/libettercap-ui.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libettercap-ui.so.0 +%dir %{_libdir}/ettercap +%attr(755,root,root) %{_libdir}/ettercap/ec_*.so +%dir %{_sysconfdir}/ettercap +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ettercap/etter.conf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ettercap/etter.dns +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ettercap/etter.mdns +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ettercap/etter.nbns +%{_datadir}/appdata/ettercap.appdata.xml %{_datadir}/ettercap -%{_mandir}/man8/* +%{_datadir}/polkit-1/actions/org.pkexec.ettercap.policy +%{_desktopdir}/ettercap.desktop +%{_pixmapsdir}/ettercap.svg +%{_mandir}/man5/etter.conf.5* +%{_mandir}/man8/ettercap.8* +%{_mandir}/man8/ettercap-pkexec.8* +%{_mandir}/man8/ettercap_curses.8* +%{_mandir}/man8/ettercap_plugins.8* +%{_mandir}/man8/etterfilter.8* +%{_mandir}/man8/etterlog.8*