]> git.pld-linux.org Git - packages/ettercap.git/blobdiff - ettercap.spec
rebuild with openssl 3.0.0
[packages/ettercap.git] / ettercap.spec
index 3f70bd491cdd5eb4f441521cc621902ffea004cf..e5a0c76535601d3ddc2c3fe4cb302c3fd9059028 100644 (file)
@@ -1,22 +1,51 @@
+#
+# 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:       ettercap - a ncurses-based sniffer/interceptor utility
-Summary(pl):   ettercap - oparte o ncurses narzêdzie do sniffowania/przechwytywania
-Summary(pt_BR):        ettercap e um interceptador/sniffer paseado em ncurses
+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
 Name:          ettercap
-Version:       0.6.b
-Release:       4
+Version:       0.8.3
+Release:       2
 Epoch:         1
 Epoch:         1
-License:       GPL
+License:       GPL v2+ with OpenSSL exception
 Group:         Networking/Utilities
 Group:         Networking/Utilities
-Source0:       http://dl.sourceforge.net/ettercap/%{name}-%{version}.tar.gz
-# Source0-md5: f665cf82347a91f216184537f8f2c4bd
-Patch1:                %{name}-ncurses.patch
-Patch2:                %{name}-plugin_dir.patch
-Patch3:                %{name}-kernel_version.patch
-URL:           http://ettercap.sourceforge.net/
-BuildRequires: autoconf
-BuildRequires: automake
+#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: 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
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                specflags       -fomit-frame-pointer
@@ -35,75 +64,98 @@ 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.
 
 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 wieloczynnociowym 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 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
 
 %prep
 %setup -q
-%patch1 -p0
-#%patch2 -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 %patch3 -p1
 
 %build
 %patch3 -p1
 
 %build
-cp -f /usr/share/automake/config.sub .
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
-%configure \
-       --enable-devel \
-       --enable-ncurses \
-       --disable-gtk \
-       --%{!?debug:dis}%{?debug:en}able-debug \
-       --enable-plugins \
-       --enable-https
+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}
-%{__make} plug-ins
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
-%{__make} plug-ins_install \
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
        DESTDIR=$RPM_BUILD_ROOT
 
+# API not exported
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libettercap*.so
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %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
 %{_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*
This page took 0.107176 seconds and 4 git commands to generate.