From patchwork Tue Aug 11 18:37:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1343413 X-Patchwork-Delegate: romain.naour@openwide.fr Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=busybox.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=STAaW+rA; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BR1wN2KWrz9sRK for ; Wed, 12 Aug 2020 04:44:52 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 801B822049; Tue, 11 Aug 2020 18:44:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r9PygVOhd-KV; Tue, 11 Aug 2020 18:44:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8FF49228DB; Tue, 11 Aug 2020 18:44:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id A54C11BF36C for ; Tue, 11 Aug 2020 18:44:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A21F9861BC for ; Tue, 11 Aug 2020 18:44:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V8w1YofdsjoF for ; Tue, 11 Aug 2020 18:44:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 26C8786191 for ; Tue, 11 Aug 2020 18:44:44 +0000 (UTC) Received: by mail-lj1-f194.google.com with SMTP id t23so14705476ljc.3 for ; Tue, 11 Aug 2020 11:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FIFBrAk0Jq8qMpCrB60smq44c4B7uScQYBeCYOhIIDM=; b=STAaW+rAL+Pv1heVMD05vnN2jiOPL2h7r6/SLg+GAsh7TE7zn30ti/4zuQNxRATvOf N6NPBSdWpQvIJfklV0ZM0RP0Sx/mNGM+9oaXimrVLMbq2l9pEYUKavYty5xFeSSPArqa +FoVNHH4h3rcwTyQDs5CoLixu0fi6QgrqBtptp3fhLMMRXuncMZaydyMdvCr+ggUntlM +WRLz0GQ2Xiv39Z7vYcJ/1p5PpyZQ3SV6/0T+OaY3XhECqY5souDLms0hWk0HV/Gq/bT MFmxiz2LdMTPI1iJHR5A5nWbqvE62NBk+BnoGr+Mv8Yfq++ujrB/GxB1HlYuko/rFoHI YPow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FIFBrAk0Jq8qMpCrB60smq44c4B7uScQYBeCYOhIIDM=; b=A1q101g6nqNgOEiXmhNIH4zZ7eYSfkyuaNUL+BHnzQx2tI1IWyNWLzPTY5BQmAe1i7 4ywTltdeuxSzrdXPXrspl1y/Xr24G+A7lXjK8Z1MwoUyR6/cX9p8bbpooi7g3e2wjTF1 NfZIviU4wSTu7ORvLmYS0kyMKrZhw+6IB93+qt1k0IAK9id5Su1xjyE9zlIvMZxrscBD bUs7yw6o58rDhWdFq/U64kUk0jkQQ9PrMOBs8tnGFHanL50fIiMB9PkQJ/f2Y9B0uvum Q8JHksMT5Iip40A0KoPUbxMLTH5AOdAjGyHOzfkPkmQmmzCbQKzdDQcMJAI7bCRQtaRI XGiA== X-Gm-Message-State: AOAM530g5H+7Omcg2E2Qr4FhramHbjnO/qNuhY0wJODQw58+We1A9Phu fj3Zj0eWLnxKQhy6ZgtDXAGAgZwxEyw= X-Google-Smtp-Source: ABdhPJyHsly1bCg6A2/osVZwRv6WvaLNv1RteH6ptxCBcXbzLQ0iVTpvY8FzXAHnhtpxy/stYL2CFg== X-Received: by 2002:adf:83c5:: with SMTP id 63mr29989916wre.321.1597171071059; Tue, 11 Aug 2020 11:37:51 -0700 (PDT) Received: from P-NAN-SUCRE.numericable.fr (122.57.26.93.rev.sfr.net. [93.26.57.122]) by smtp.gmail.com with ESMTPSA id r206sm6513050wma.6.2020.08.11.11.37.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Aug 2020 11:37:50 -0700 (PDT) To: buildroot@buildroot.org Date: Tue, 11 Aug 2020 20:37:44 +0200 Message-Id: <1597171064-13491-2-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597171064-13491-1-git-send-email-jugurtha.belkalem@smile.fr> References: <1597171064-13491-1-git-send-email-jugurtha.belkalem@smile.fr> Subject: [Buildroot] [PATCH 1/1] package/ettercap: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jugurtha BELKALEM via buildroot Reply-To: Jugurtha BELKALEM Cc: Jugurtha BELKALEM , romain.naour@smile.fr MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Jugurtha BELKALEM Fix missing libpcap Signed-off-by: Jugurtha BELKALEM Fix comments Signed-off-by: Jugurtha BELKALEM Fix invalid utf-8 error Signed-off-by: Jugurtha BELKALEM --- DEVELOPERS | 1 + package/Config.in | 1 + .../0001-Fix-invalid-utf-8-is-not-supported.patch | 31 ++++++++++++++++++++++ package/ettercap/Config.in | 24 +++++++++++++++++ package/ettercap/ettercap.hash | 3 +++ package/ettercap/ettercap.mk | 15 +++++++++++ 6 files changed, 75 insertions(+) create mode 100644 package/ettercap/0001-Fix-invalid-utf-8-is-not-supported.patch create mode 100644 package/ettercap/Config.in create mode 100644 package/ettercap/ettercap.hash create mode 100644 package/ettercap/ettercap.mk diff --git a/DEVELOPERS b/DEVELOPERS index ee840db..fee80f0 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1395,6 +1395,7 @@ N: Joshua Henderson F: package/qt5/qt5wayland/ N: Jugurtha BELKALEM +F: package/ettercap/ F: package/python-cycler/ F: package/python-matplotlib/ diff --git a/package/Config.in b/package/Config.in index d7e79f4..db886a1 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2042,6 +2042,7 @@ menu "Networking applications" source "package/ebtables/Config.in" source "package/ejabberd/Config.in" source "package/ethtool/Config.in" + source "package/ettercap/Config.in" source "package/faifa/Config.in" source "package/fail2ban/Config.in" source "package/fastd/Config.in" diff --git a/package/ettercap/0001-Fix-invalid-utf-8-is-not-supported.patch b/package/ettercap/0001-Fix-invalid-utf-8-is-not-supported.patch new file mode 100644 index 0000000..0c6a923 --- /dev/null +++ b/package/ettercap/0001-Fix-invalid-utf-8-is-not-supported.patch @@ -0,0 +1,31 @@ +From b00e1efceaae979ed103abf343fc44812b48de62 Mon Sep 17 00:00:00 2001 +From: Jugurtha BELKALEM +Date: Tue, 11 Aug 2020 20:11:25 +0200 +Subject: [PATCH] Fix invalid utf-8 is not supported + +Fixes fatal error message generated even when +utf-8 is available. +Ettercap requires gettext package and works fine. + +Signed-off-by: Jugurtha BELKALEM +--- + src/ec_format.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/src/ec_format.c b/src/ec_format.c +index 5c9b850..b3e7f21 100644 +--- a/src/ec_format.c ++++ b/src/ec_format.c +@@ -418,9 +418,6 @@ int set_utf8_encoding(u_char *fromcode) + /* make sure encoding type is supported */ + cd = iconv_open("UTF-8", (const char*)fromcode); + +- if (cd == (iconv_t)(-1)) +- SEMIFATAL_ERROR("The conversion from %s to UTF-8 is not supported.", fromcode); +- + iconv_close(cd); + + utf8_encoding = strdup((const char*)fromcode); +-- +2.7.4 + diff --git a/package/ettercap/Config.in b/package/ettercap/Config.in new file mode 100644 index 0000000..b11834a --- /dev/null +++ b/package/ettercap/Config.in @@ -0,0 +1,24 @@ +config BR2_PACKAGE_ETTERCAP + bool "ettercap" + depends on BR2_PACKAGE_NCURSES + depends on BR2_PACKAGE_NCURSES_WCHAR + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_GEOIP + select BR2_PACKAGE_LIBNET + select BR2_PACKAGE_LIBPCAP + select BR2_PACKAGE_ETHTOOL # runtime + select BR2_PACKAGE_GETTEXT # runtime + select BR2_PACKAGE_LIBPTHREAD_STUB # runtime + select BR2_PACKAGE_ZLIB # runtime + help + Ettercap is a comprehensive suite for man + in the middle attacks. It features sniffing of + live connections, content filtering on the fly + and many other interesting tricks. It supports + active and passive dissection of many protocols + and includes many features for network and + host analysis. + + http://www.ettercap-project.org/ diff --git a/package/ettercap/ettercap.hash b/package/ettercap/ettercap.hash new file mode 100644 index 0000000..21f7df4 --- /dev/null +++ b/package/ettercap/ettercap.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 d0c3ef88dfc284b61d3d5b64d946c1160fd04276b448519c1ae4438a9cdffaf3 ettercap-v0.8.3.1.tar.gz +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE diff --git a/package/ettercap/ettercap.mk b/package/ettercap/ettercap.mk new file mode 100644 index 0000000..d419094 --- /dev/null +++ b/package/ettercap/ettercap.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# ettercap +# +################################################################################ + +ETTERCAP_VERSION = v0.8.3.1 +ETTERCAP_SITE = $(call github,Ettercap,ettercap,$(ETTERCAP_VERSION)) +ETTERCAP_LICENSE = GPL-2.0+ +ETTERCAP_LICENSE_FILES = LICENSE +ETTERCAP_SUPPORTS_IN_SOURCE_BUILD = NO +ETTERCAP_DEPENDENCIES = ncurses libopenssl libcurl geoip libnet libpcap +ETTERCAP_CONF_OPTS = -DENABLE_GTK=OFF + +$(eval $(cmake-package))