From patchwork Mon Nov 9 09:03:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joris Lijssens X-Patchwork-Id: 541661 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 07B491402D4 for ; Mon, 9 Nov 2015 20:03:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=wuaqxPi1; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 492CA8AB99; Mon, 9 Nov 2015 09:03:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tiC9aEyJASHS; Mon, 9 Nov 2015 09:03:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A81DA8ABA2; Mon, 9 Nov 2015 09:03:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 0C2301BFA9E for ; Mon, 9 Nov 2015 09:03:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 07E248AD62 for ; Mon, 9 Nov 2015 09:03:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kF5KQFITYgNx for ; Mon, 9 Nov 2015 09:03:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by hemlock.osuosl.org (Postfix) with ESMTPS id 929968ABBB for ; Mon, 9 Nov 2015 09:03:45 +0000 (UTC) Received: by wmww144 with SMTP id w144so68788380wmw.1 for ; Mon, 09 Nov 2015 01:03:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6khNFYZuW/VRIgkSZ6QqauuWYnXz44FoFQVcWYKsc+k=; b=wuaqxPi1atfAVCYKfYV1efGoDXKrbOMPqj12m3vYxhm6K2cn+OViSy/JsBJk6gbkZ+ Jd1mP3BaanV7/mm8vko2kEQQWYWbPEEi/7RaJiXp7ckCDGe3HrAGSOO7vp0sfNDkLntw jBUiUzsKfKMQQ/u4/DW46R1T1H4rKP+U9v/hCcLHrR9IE4+1reU79IDciXuWTBUklo5L PnxipJabYxXKdb0uDjJVHj1Kz/B7lT7mkT26fOAfFaLZDZCDgV0fSrdQ/godLnPp58TN f2aoBpn6V6lyY81/89857l1j7/4cCytE9hnYH6JVZ73ENkX6TZLH62BFtYwvtlP+Rf9o GT3Q== X-Received: by 10.28.19.65 with SMTP id 62mr24898506wmt.6.1447059824201; Mon, 09 Nov 2015 01:03:44 -0800 (PST) Received: from devws163.be.alcatel-lucent.com (alc112.alcatel.be. [195.207.101.112]) by smtp.gmail.com with ESMTPSA id e4sm9813592wjr.1.2015.11.09.01.03.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Nov 2015 01:03:43 -0800 (PST) From: Joris Lijssens To: buildroot@buildroot.org Date: Mon, 9 Nov 2015 10:03:32 +0100 Message-Id: <1447059812-26424-2-git-send-email-joris.lijssens@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1447059812-26424-1-git-send-email-joris.lijssens@gmail.com> References: <1447059812-26424-1-git-send-email-joris.lijssens@gmail.com> Cc: Joris Lijssens Subject: [Buildroot] [PATCH 2/2] netsniff-ng:new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Joris Lijssens --- package/Config.in | 1 + package/netsniff-ng/Config.in | 22 ++++++++++++++++++++++ package/netsniff-ng/netsniff-ng.mk | 30 ++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 package/netsniff-ng/Config.in create mode 100644 package/netsniff-ng/netsniff-ng.mk diff --git a/package/Config.in b/package/Config.in index e0b42c0..0a80afb 100644 --- a/package/Config.in +++ b/package/Config.in @@ -88,6 +88,7 @@ endif source "package/mcelog/Config.in" source "package/memstat/Config.in" source "package/netperf/Config.in" + source "package/netsniff-ng/Config.in" source "package/oprofile/Config.in" source "package/pax-utils/Config.in" source "package/pv/Config.in" diff --git a/package/netsniff-ng/Config.in b/package/netsniff-ng/Config.in new file mode 100644 index 0000000..448e853 --- /dev/null +++ b/package/netsniff-ng/Config.in @@ -0,0 +1,22 @@ +config BR2_PACKAGE_NETSNIFF_NG + bool "netsniff-ng" + select BR2_PACKAGE_LIBNL + select BR2_PACKAGE_LIBPCAP + select BR2_PACKAGE_LIBCLI + select BR2_PACKAGE_LIBNETFILTER_CONNTRACK + select BR2_PACKAGE_LIBURCU + select BR2_PACKAGE_LIBNET + depends on BR2_TOOLCHAIN_USES_GLIBC + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_58854 # liburcu + help + netsniff-ng is a free, performant Linux network analyzer and + networking toolkit. If you will, the Swiss army knife for + network packets. + +comment "netsniff-ng needs an (e)glibc toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_USES_GLIBC + depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_58854 + +comment "netsniff-ng needs a toolchain not affected by GCC bug 58854" + depends on BR2_TOOLCHAIN_HAS_GCC_BUG_58854 diff --git a/package/netsniff-ng/netsniff-ng.mk b/package/netsniff-ng/netsniff-ng.mk new file mode 100644 index 0000000..6f755a1 --- /dev/null +++ b/package/netsniff-ng/netsniff-ng.mk @@ -0,0 +1,30 @@ +################################################################################ +# +# netsniff-ng +# +################################################################################ + +NETSNIFF_NG_VERSION = v0.5.9 +NETSNIFF_NG_SITE = $(call github,netsniff-ng,netsniff-ng,$(NETSNIFF_NG_VERSION)) +NETSNIFF_NG_LICENSE = GPLv2 +NETSNIFF_NG_LICENSE_FILES = README + +define NETSNIFF_NG_CONFIGURE_CMDS + (cd $(@D); \ + $(TARGET_CONFIGURE_ARGS) \ + $(TARGET_CONFIGURE_OPTS) \ + ./configure \ + --prefix=$(TARGET_DIR)/usr \ + ) +endef + +define NETSNIFF_NG_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) +endef + +define NETSNIFF_NG_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + PREFIX=$(TARGET_DIR)/usr ETCDIR=$(TARGET_DIR)/etc install -C $(@D) +endef + +$(eval $(generic-package))