]> git.pld-linux.org Git - packages/ettercap.git/blobdiff - ettercap.spec
- rel 4
[packages/ettercap.git] / ettercap.spec
index 31a486be390d2ff8f37c5faee6cfd80d68c1d023..0ab74b1cb0f79b65df2c90be474a16a9e4da0bd7 100644 (file)
@@ -1,12 +1,13 @@
-# TODO:
-#      - make GTK work
+#
+# Conditional build:
+%bcond_without gtk             # build without gtk-based frontend (fewer dependencies)
 #
 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
 Version:       0.7.3
 Name:          ettercap
 Version:       0.7.3
-Release:       0.1
+Release:       4
 Epoch:         1
 License:       GPL
 Group:         Networking/Utilities
 Epoch:         1
 License:       GPL
 Group:         Networking/Utilities
@@ -15,14 +16,16 @@ Source0:    http://dl.sourceforge.net/ettercap/%{name}-NG-%{version}.tar.gz
 Patch1:                %{name}-ncurses.patch
 Patch2:                %{name}-plugin_dir.patch
 Patch3:                %{name}-kernel_version.patch
 Patch1:                %{name}-ncurses.patch
 Patch2:                %{name}-plugin_dir.patch
 Patch3:                %{name}-kernel_version.patch
+Patch4:                %{name}-as-needed.patch
 URL:           http://ettercap.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
 URL:           http://ettercap.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: ncurses-ext-devel
-BuildRequires: openssl-devel >= 0.9.7d
-BuildRequires: libnet-devel >= 1.1.2.1
+%{?with_gtk:BuildRequires:     gtk+2-devel}
 BuildRequires: libltdl-devel
 BuildRequires: libltdl-devel
+BuildRequires: libnet-devel >= 1.1.2.1
 BuildRequires: libpcap-devel
 BuildRequires: libpcap-devel
+BuildRequires: ncurses-ext-devel
+BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: pcre-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRequires: pcre-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -42,41 +45,41 @@ 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 -n %{name}-NG-%{version}
 #%patch1 -p0
 #%patch2 -p1
 
 %prep
 %setup -q -n %{name}-NG-%{version}
 #%patch1 -p0
 #%patch2 -p1
-#%patch3 -p1
+%patch4 -p1
 
 %build
 #cp -f /usr/share/automake/config.sub .
 
 %build
 #cp -f /usr/share/automake/config.sub .
@@ -85,13 +88,10 @@ hosts na rede local, portas abertas, vers
 #%{__autoheader}
 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
 %configure \
 #%{__autoheader}
 CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
 %configure \
-       --enable-devel \
-       --enable-ncurses \
-       --disable-gtk \
        --%{!?debug:dis}%{?debug:en}able-debug \
        --%{!?debug:dis}%{?debug:en}able-debug \
+       --%{?with_gtk:en}%{!?with_gtk:dis}able-gtk \
        --enable-plugins \
        --enable-plugins \
-       --enable-https \
-       --enable-gtk
+       --enable-https
 %{__make}
 
 %install
 %{__make}
 
 %install
@@ -108,8 +108,10 @@ rm -rf $RPM_BUILD_ROOT
 %doc README CHANGELOG AUTHORS TODO doc/*
 %doc THANKS README.BUGS
 %attr(755,root,root) %{_bindir}/*
 %doc README CHANGELOG AUTHORS TODO doc/*
 %doc THANKS README.BUGS
 %attr(755,root,root) %{_bindir}/*
-%{_libdir}/ettercap
+%dir %{_libdir}/ettercap
+%attr(755,root,root) %{_libdir}/ettercap/*.so
+%{_libdir}/ettercap/*.la
 %{_datadir}/ettercap
 %{_mandir}/man8/*
 %{_mandir}/man5/*
 %{_datadir}/ettercap
 %{_mandir}/man8/*
 %{_mandir}/man5/*
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/etter.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/etter.conf
This page took 0.057303 seconds and 4 git commands to generate.