From patchwork Mon Jun 22 10:53:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1314268 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Hzq0uJCk; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49r5rk38tfz9sQt for ; Mon, 22 Jun 2020 20:54:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BDE1D87465; Mon, 22 Jun 2020 10:54:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27noRucoO7Hy; Mon, 22 Jun 2020 10:54:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4AA52875BF; Mon, 22 Jun 2020 10:54:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B151E1BF3C8 for ; Mon, 22 Jun 2020 10:54:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AEA258765A for ; Mon, 22 Jun 2020 10:54:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g4jB-UR4eg1B for ; Mon, 22 Jun 2020 10:54:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9664E87F34 for ; Mon, 22 Jun 2020 10:54:21 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id v3so8697637wrc.1 for ; Mon, 22 Jun 2020 03:54:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bxCHSkXcUMKXMXuOugdxw8TtoL0bJjN7witoQroPc38=; b=Hzq0uJCkF0YcJGgvJZejeC6zwU9yOmkO32lGe2WnKMqtvuxvrRc2XsVpvSir9Sz+UL sTvXVKYVM6CBYl8dizRPzulmQ0sckCuYXcwfFn1tx3ns4OGacw2U0b3JTV1mDhCB7THH 2FLfr+vK9Dd13tsz1PvG+8o2OKI3h5/L9Oz1rn1bKxSaoGaTzEUhzXO4B2KyXi3LQo8t 2hJ1MuuNj8yLTF7zrhpdBjZ6m3MvzZCyHzLeWr14xO1Zdw1Xa4jSvf0JOGCr4SDlt0uq NbaaJTkCAcNaRZilMjxc94vcjz+79vYzOBRw6gG022Q2O9th/1ESfi7qchKOfLvOdtD5 AvWQ== 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:mime-version :content-transfer-encoding; bh=bxCHSkXcUMKXMXuOugdxw8TtoL0bJjN7witoQroPc38=; b=XGyG/aAKiniSohTGCi2nXgvqXHXdmE9eM/8oxpZzZt2U12VyjjHqQTsaRKCGZsNLII 3qasqTkMj2ZMoA6Kw6gi+FNwFQShGX/JLeo9qCpRJZErtJXkOne4d2z6DgqYQ/mCWknk Q98+ODqD1CaRjxeFltc882Z2PnBhlTgwPfTIg4YtoxKAweHfMS1F02q9/Ke6lI5glMqN psAp+UX7uJJKEbLKoxDxnxc45ZXPCjQ0z6owETf/YeWIrS7InkAI+j8S+7i74cxFHZP4 ivNbCr5cRWDV14QDmfCRk8IYrh7YAqIwE0E8byUV9WPD+ZCdvAymVeRui8RVX8MTG/Fb m8Cw== X-Gm-Message-State: AOAM5336Ror87NC4HSEIPVGGKekigxsOfwAJTxPwWFcJXg2lBe6iKhfh 6IJ7pi43rFxvamxDJNHO/EJ1aRQ8 X-Google-Smtp-Source: ABdhPJyN88UHSpV0kfWJapD2T9I8X++b6mJbz+ZQhT+hZrDhtF1VBrcwkOfy5gm0P31h/+IHrgEuGQ== X-Received: by 2002:adf:f2c5:: with SMTP id d5mr16416091wrp.96.1592823259650; Mon, 22 Jun 2020 03:54:19 -0700 (PDT) Received: from lenovoX201.home ([2a01:cb1c:794:2300:8ea9:82ff:fe03:6fc]) by smtp.gmail.com with ESMTPSA id x11sm8554516wmc.26.2020.06.22.03.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 03:54:18 -0700 (PDT) From: "Guillaume W. Bres" To: buildroot@busybox.net Date: Mon, 22 Jun 2020 12:53:59 +0200 Message-Id: <20200622105359.31340-1-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/libnids: 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: , Cc: "Guillaume W. Bres" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Libnids is a C based networking library, part of networking intrusion detection tools. It can watch network traffic & provide informations. Signed-off-by: Guillaume W. Bres --- Hello guys, things to note about this lib + glic & glib2 are the main dependencies, libnet & libpcap also required, the proposed selections should take care of everything + running ./configure as is, leads to an internal makefile pointing to host /usr env (I don't know why). Therefore possibly pointing to host libpcap & libnet. I work this out by forcing 'prefix' & 'exec_prefix' variables with a LIBNIDS_CONF_OPTS. Maybe someone more knowledgeable will have an input + More info here: http://libnids.sourceforge.net/ Signed-off-by: Guillaume W. Bres --- DEVELOPERS | 1 + package/Config.in | 1 + package/libnids/Config.in | 19 +++++++++++++++++++ package/libnids/libnids.hash | 3 +++ package/libnids/libnids.mk | 17 +++++++++++++++++ 5 files changed, 41 insertions(+) create mode 100644 package/libnids/Config.in create mode 100644 package/libnids/libnids.hash create mode 100644 package/libnids/libnids.mk diff --git a/DEVELOPERS b/DEVELOPERS index dc9fa8a718..fb6d4cec64 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1053,6 +1053,7 @@ F: package/c-icap-modules/ F: package/sdl2/ N: Guillaume William Brs +F: package/libnids/ F: package/liquid-dsp/ F: package/pixiewps/ F: package/python-pybind/ diff --git a/package/Config.in b/package/Config.in index dc24921e0f..e2bb004015 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1710,6 +1710,7 @@ menu "Networking" source "package/libnfnetlink/Config.in" source "package/libnftnl/Config.in" source "package/libnice/Config.in" + source "package/libnids/Config.in" source "package/libnl/Config.in" source "package/liboauth/Config.in" source "package/liboping/Config.in" diff --git a/package/libnids/Config.in b/package/libnids/Config.in new file mode 100644 index 0000000000..ba3beee7f2 --- /dev/null +++ b/package/libnids/Config.in @@ -0,0 +1,19 @@ +comment "libnids requires a glibc toolchain" + depends on !BR2_TOOLCHAIN_USES_GLIBC + +config BR2_PACKAGE_LIBNIDS + bool "libnids" + depends on BR2_TOOLCHAIN_USES_GLIBC + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_LIBNET + select BR2_PACKAGE_LIBPCAP + help + Libnids is an implementation of an E-component + of Network Intrusion Detection System. + libnids watches all local network traffic, + and provides convenient information on them to + perform further analysis. + Libnids offers IP defragmentation, + TCP stream assembly, TCP port scan detection. + + http://libnids.sourceforge.net/ diff --git a/package/libnids/libnids.hash b/package/libnids/libnids.hash new file mode 100644 index 0000000000..4a2949c39d --- /dev/null +++ b/package/libnids/libnids.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 314b4793e0902fbf1fdb7fb659af37a3c1306ed1aad5d1c84de6c931b351d359 libnids-1.24.tar.gz +sha256 91df39d1816bfb17a4dda2d3d2c83b1f6f2d38d53e53e41e8f97ad5ac46a0cad COPYING diff --git a/package/libnids/libnids.mk b/package/libnids/libnids.mk new file mode 100644 index 0000000000..5e83aade33 --- /dev/null +++ b/package/libnids/libnids.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# libnids +# +################################################################################ + +LIBNIDS_VERSION = 1.24 +LIBNIDS_SITE = https://sourceforge.net/projects/libnids/files/libnids/$(LIBNIDS_VERSION) +LIBNIDS_LICENSE = GPL-2.0 +LIBNIDS_LICENSE_FILES = COPYING +LIBNIDS_INSTALL_STAGING = YES + +LIBNIDS_CONF_OPTS += \ + prefix="$(STAGING_DIR)/usr" \ + exec_prefix="$(STAGING_DIR)/usr" + +$(eval $(autotools-package))