From patchwork Thu Jan 9 14:53:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1220437 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.133; helo=hemlock.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=GYJQ8vXt; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47tpzS4v91z9sPJ for ; Fri, 10 Jan 2020 01:54:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 012C5881C8; Thu, 9 Jan 2020 14:54:08 +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 OSSBwPpqRFcW; Thu, 9 Jan 2020 14:54:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E1556881A4; Thu, 9 Jan 2020 14:54:05 +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 BB94B1BF86B for ; Thu, 9 Jan 2020 14:54:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B6D658440D for ; Thu, 9 Jan 2020 14:54:04 +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 8bFqO2jJyZUV for ; Thu, 9 Jan 2020 14:54:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by fraxinus.osuosl.org (Postfix) with ESMTPS id BE124842B4 for ; Thu, 9 Jan 2020 14:54:03 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id t14so3148386wmi.5 for ; Thu, 09 Jan 2020 06:54:03 -0800 (PST) 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=jCCuPPhiRlvdrOulFy/OThzBPG9x4cAqNGbpnAZbHOY=; b=GYJQ8vXtDxJTFAiTt/g2qDrh2dq56TEjHeB0ICqk5p0PkouuNHDu3r9h5RU1NZ1MRY LsEZdbsJRSme0AUJZmS0m44H9skP3pOtblTqtLyyN2O7xsGMFSh7yP8oiKhs+kVgBfbJ lM6pTC+vq14WoTH1SaIqFWZAS+shJMwG2o9/no2C3NDjUG8kMy1oLWoA3WTYhOLkiqU8 VGm7VOoU72xAm3IlE3QtekKWxvmmNGygq0bZAvig7XaAwIgR6Dx4EScWdqMOVHCQgwuk i42KE9kBMetuQlkrAP+vOcGNzHWXruyTzDbMXbDcmfR6e2lm+DrzVdPJAkUvkM4wsmul zxhw== 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=jCCuPPhiRlvdrOulFy/OThzBPG9x4cAqNGbpnAZbHOY=; b=Pz6Omj1YmmI1KyGC6Hm1wDw1dQ/Wsq6CebR8/WrwtHUM4YlqIYubHWQdzfWfbHS3eW HzTEFzVa8Y9tgQwVqMWaJvG201V7kmpr9crSh2eZgNerQ/H7gdLrOLG9mcZoGXh/K4U2 8BTmkQb3Qzy9h47pfWtyDvfnRRcC9Kx8NltXwkfkfGLhYL+mot2ktQmCHcZ8dvwnyAhO 0FfgqS8KL86aamyFLsQD/rxmhwwXShrHdmQ0Ia1aQKUrQeLih+Voofz3Ob/K0MEsc7+S 8dtCW7D5PEB0Uzu+yW9nCmb5fbSsbnMcSvXU7Y28YSIviAW7En0qRUkT/0tyhfTXx/Dh xXGQ== X-Gm-Message-State: APjAAAVaEAaF0bdP1zNYCmBbZjD0u/3zlT2xt3eKV2RGaNxS8F538+HL HhzuEDUFGPOMcV6B3JbT7S/FolUd X-Google-Smtp-Source: APXvYqw11AQDnRY9fTYnzq0jLOVoHu/Fm8op4NVJQfNcmAXtMpQ7qgo+MsFNnfj8lqH/jKH2vF+4eg== X-Received: by 2002:a1c:5f06:: with SMTP id t6mr5487233wmb.32.1578581642008; Thu, 09 Jan 2020 06:54:02 -0800 (PST) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id n3sm3181820wmc.27.2020.01.09.06.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 06:54:01 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Thu, 9 Jan 2020 15:53:34 +0100 Message-Id: <20200109145339.14445-3-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200109145339.14445-1-heiko.thiery@gmail.com> References: <20200109145339.14445-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] 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: =?utf-8?q?Jan_Kundr=C3=A1t?= , Heiko Thiery , Heiko Thiery Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery netopeer2 cli is a 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 | 20 ++++++++++++++++++++ package/netopeer2-cli/netopeer2-cli.hash | 1 + package/netopeer2-cli/netopeer2-cli.mk | 17 +++++++++++++++++ 5 files changed, 40 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 0afe452b4b..61385365cd 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1066,6 +1066,7 @@ F: package/python-sip/ N: Heiko Thiery F: package/libnetconf2/ F: package/libyang/ +F: package/netopeer2-cli/ F: package/netopeer2-server/ F: package/sysrepo/ diff --git a/package/Config.in b/package/Config.in index 5b4b3c0ca6..8f009ed368 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1696,6 +1696,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-server/Config.in" source "package/nghttp2/Config.in" source "package/norm/Config.in" diff --git a/package/netopeer2-cli/Config.in b/package/netopeer2-cli/Config.in new file mode 100644 index 0000000000..70210597a1 --- /dev/null +++ b/package/netopeer2-cli/Config.in @@ -0,0 +1,20 @@ +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 + 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..1abc5dfda4 --- /dev/null +++ b/package/netopeer2-cli/netopeer2-cli.hash @@ -0,0 +1 @@ +../netopeer2-server/netopeer2-server.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..223ab0c1ba --- /dev/null +++ b/package/netopeer2-cli/netopeer2-cli.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# netopeer2-cli +# +################################################################################ + +NETOPEER2_CLI_VERSION = 1.1.1 +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 + +$(eval $(cmake-package))