From patchwork Mon Oct 28 09:03:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1185262 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.137; helo=fraxinus.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.b="K5urZ8zC"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 471pgq0FrKz9sPT for ; Mon, 28 Oct 2019 20:04:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D92258353B; Mon, 28 Oct 2019 09:04:36 +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 2MJz30vuzqko; Mon, 28 Oct 2019 09:04:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 180D78354B; Mon, 28 Oct 2019 09:04:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B58191BF284 for ; Mon, 28 Oct 2019 09:04:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B224C20397 for ; Mon, 28 Oct 2019 09:04:29 +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 aG94I6MCxwUi for ; Mon, 28 Oct 2019 09:04:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by silver.osuosl.org (Postfix) with ESMTPS id 5CA4220365 for ; Mon, 28 Oct 2019 09:04:28 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id r141so8196422wme.4 for ; Mon, 28 Oct 2019 02:04:28 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=rGsk934yZZQC4IXeIX0umyHJKYlcTrO+UTtzVMJCaxM=; b=K5urZ8zCb9ka2p3dD96W81itaaDmg13lOLDkCDaO7zn4MfbMe5qdbJ4x0/AXvPUK4g 3ZnFlU1wbzSDH0dNe65lvgEQNmkmVQ99INU3yHLL6fj18dTkQZ7nz+PqmcQK0B+QNW+L r9vjMIy82X0Ryf6uA8FaHhs+EJy9oUHOttboGXGyu3OPCmVAi62nx4YB8K6nnAnbBX27 7kHMwQZOmNqutU6us+OPnVqe4cwFWqry1/D98uRIS5hEop/S2E2qCBorU+vE7KwkFyB1 YnKpEzId46lkXCJzzQOXVVldUWGjQ4qinPFRe2I4KntotX4HuEbCuKNoz/qoj1a7v5w0 ZDCA== 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:mime-version:content-transfer-encoding; bh=rGsk934yZZQC4IXeIX0umyHJKYlcTrO+UTtzVMJCaxM=; b=NIVIUOeX+Ry6RWxvjidO4iQspgYsLdHmzNCUnLqfkZM8Oq8RXl2fduFihOMCsZs3lL iMIdFnDHyVfz1XakwCp29sb8epm8dn7vIVr5Pi7Jx/2Lpain+tzGjnibP9gDyQj7lcub vQyFkeWr42RpYKxdh5xgUOuWnJsH6x+FYuVUijtidDq0vClD6hKPl8w7yShUd2HpYs4d Sdjwfs0/ipC/mEC4A/d3ru5ck0jg85wv/A0KTAYOrqpjK1qzv//h+yaC+RISNwX3OK2h vqekIXbq+KITCnpOxAmBCHqHX/hU3icUkY3A3pdg98jRIh7dmUKrZayQHP3Efckpa3CM eLUQ== X-Gm-Message-State: APjAAAVlV/9cL/gwdUW/ccgHYpTZnComrYS9SFzQBlmY5SKKk0zVtn5K 3ibnVjCMdKXMTs/oKF7SjVCk8193 X-Google-Smtp-Source: APXvYqwhBapRs8uFTZpqw+EbKFQJ+ETz15mRgi7Uft/sM3hkA0b0Qw6f3UsWHYlFBEFHcYm2TAB3jQ== X-Received: by 2002:a1c:7ec2:: with SMTP id z185mr13972069wmc.69.1572253466531; Mon, 28 Oct 2019 02:04:26 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id 26sm10344909wmi.17.2019.10.28.02.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 02:04:25 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Mon, 28 Oct 2019 10:03:29 +0100 Message-Id: <20191028090329.25432-6-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191028090329.25432-1-heiko.thiery@gmail.com> References: <20191028090329.25432-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v5 5/5] package/netopeer2-cli: add 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: Heiko Thiery , Heiko Thiery , thomas.petazzoni@bootlin.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery netopeer2 CLI - simple command line interface to connect to a NETCONF server (device). Signed-off-by: Heiko Thiery --- DEVELOPERS | 1 + package/Config.in | 1 + package/netopeer2-cli/Config.in | 21 +++++++++++++++++++++ package/netopeer2-cli/netopeer2-cli.hash | 1 + package/netopeer2-cli/netopeer2-cli.mk | 17 +++++++++++++++++ 5 files changed, 41 insertions(+) create mode 100644 package/netopeer2-cli/Config.in create mode 120000 package/netopeer2-cli/netopeer2-cli.hash create mode 100644 package/netopeer2-cli/netopeer2-cli.mk diff --git a/DEVELOPERS b/DEVELOPERS index 217d044930..d70985393b 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1048,6 +1048,7 @@ F: package/python-sip/ N: Heiko Thiery F: package/libnetconf2/ F: package/libyang/ +F: package/netopeer2-cli/ F: package/netopeer2-keystored/ F: package/netopeer2-server/ F: package/sysrepo/ diff --git a/package/Config.in b/package/Config.in index aaecef433f..3048ecd8ed 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1659,6 +1659,7 @@ menu "Networking" source "package/mongoose/Config.in" source "package/nanomsg/Config.in" source "package/neon/Config.in" + source "package/netopeer2-cli/Config.in" source "package/netopeer2-keystored/Config.in" source "package/netopeer2-server/Config.in" source "package/nghttp2/Config.in" diff --git a/package/netopeer2-cli/Config.in b/package/netopeer2-cli/Config.in new file mode 100644 index 0000000000..9c3a302a1d --- /dev/null +++ b/package/netopeer2-cli/Config.in @@ -0,0 +1,21 @@ +config BR2_PACKAGE_NETOPEER2_CLI + bool "netopeer2-cli" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_LIBNETCONF2 + select BR2_PACKAGE_LIBSSH + select BR2_PACKAGE_LIBSSH_SERVER + select BR2_PACKAGE_PCRE # libyang + select BR2_PACKAGE_PCRE_UCP # libyang + select BR2_PACKAGE_SYSREPO + help + Netopeer2 is a set of tools implementing network + configuration tools based on the NETCONF Protocol. + + This is the CLI client part. + + https://github.com/CESNET/Netopeer2 + +comment "netopeer2cli needs a toolchain w/ threads, dynamic libraray" + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/netopeer2-cli/netopeer2-cli.hash b/package/netopeer2-cli/netopeer2-cli.hash new file mode 120000 index 0000000000..47bb47d7e3 --- /dev/null +++ b/package/netopeer2-cli/netopeer2-cli.hash @@ -0,0 +1 @@ +../netopeer2-keystored/netopeer2-keystored.hash \ No newline at end of file diff --git a/package/netopeer2-cli/netopeer2-cli.mk b/package/netopeer2-cli/netopeer2-cli.mk new file mode 100644 index 0000000000..9adc8226de --- /dev/null +++ b/package/netopeer2-cli/netopeer2-cli.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# netopeer2-cli +# +################################################################################ + +NETOPEER2_CLI_VERSION = 0.7-r2 +NETOPEER2_CLI_SOURCE = netopeer2-$(NETOPEER2_CLI_VERSION).tar.gz +NETOPEER2_CLI_SITE = $(call github,CESNET,Netopeer2,v$(NETOPEER2_CLI_VERSION)) +NETOPEER2_CLI_DL_SUBDIR = netopeer2 +NETOPEER2_CLI_LICENSE = BSD-3-Clause +NETOPEER2_CLI_LICENSE_FILES = LICENSE +NETOPEER2_CLI_SUBDIR = cli +NETOPEER2_CLI_INSTALL_STAGING = YES +NETOPEER2_CLI_DEPENDENCIES = libnetconf2 libyang sysrepo + +$(eval $(cmake-package))