From patchwork Thu Apr 16 12:29:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1271701 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=QW3PTJtW; 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 492z8C5yQ0z9sR4 for ; Thu, 16 Apr 2020 22:30:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 23E198697D; Thu, 16 Apr 2020 12:30:18 +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 8+lKE2Gwmyjq; Thu, 16 Apr 2020 12:30:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0FB0D860D1; Thu, 16 Apr 2020 12:30:16 +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 F07EC1BF578 for ; Thu, 16 Apr 2020 12:30:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id ED6358521D for ; Thu, 16 Apr 2020 12:30:14 +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 8Jyy0ZVj2Zpm for ; Thu, 16 Apr 2020 12:30:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8D4DE854C9 for ; Thu, 16 Apr 2020 12:30:13 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id i10so4568317wrv.10 for ; Thu, 16 Apr 2020 05:30:13 -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=/yHH4pItiVnlgAEU1qYFqVBCdiGa5oeTv+imFO+/eIk=; b=QW3PTJtWiIVu0koYlkiO+HXSnfemKtrotqbC1TXw4NzjHVZSDZM6Uw1ZMGNhjT6TEI rlJZnX3MJ5qQY53FtzMvNF96ou79lf1RB2skqSqHn2oYmaExppTPHQLLuegbNSdMouyU XakvXjyQb4Fdpz+BRghe+nQpy3HoiW0XMKdU/AgE4ZJJ06KGI0KxYFIz+k+jNNfAMjdW JQUMfjD62gO4/1a54JoUySfiyySIQkGxXEDLC4FW6owWWnqWPp8EDV+mIgti9wiSJVUG 8XJKuQAeZ+12BDX0qs18A6Y/9/sXMEK4R4l6mjsikituELnB1ATSl1jozICH7YN79c7q vVNg== 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=/yHH4pItiVnlgAEU1qYFqVBCdiGa5oeTv+imFO+/eIk=; b=c1rGJry8dMYPr/Oxdxf6hc7hc9Y3itQYNYwIt3OMc3H9Spp4Yfg5RGUC+Asyu1ZnFl qE2U43OV38L962IZhzhWopKtPPMiPR+g0XDja1Sdbb24Skx/MA+0lYier11MYyqCGRUe 9pR81ErAnzSxjsIFqZUmBFzi8SWn2i+x6BXXfx0t2C01CNt480/ooIdMsvCDmvRX63X2 vZgsTlsgbQEhn774Iw5v3QEpoke+nfSZeH953Qh7mDmfTevw5gs5r+fDKM+sHtomMx+4 h2os6R9UmusqugV/a9KHG8M5IMkcT8mM25T6ihhvCf2EJhJlRxR8edn45KcBFCMAdNFp NlmA== X-Gm-Message-State: AGi0PuaOBTliINdRF9TG8mL1cNsVDd/WaTwwbad3h3qi6P36/OGVE38b 6m1twNdZFc9Nch+HAgU/LkifLHdx X-Google-Smtp-Source: APiQypLmJ/4f4FrF7xUdRcuGx7FOkSPUfHXq7e9OtFoVJ1bTtV1pFUkSmjFiB1tMmmsXo0QGxOyTeg== X-Received: by 2002:adf:a406:: with SMTP id d6mr33670441wra.79.1587040211705; Thu, 16 Apr 2020 05:30:11 -0700 (PDT) Received: from t450s.fritz.box (ip5b426f84.dynamic.kabel-deutschland.de. [91.66.111.132]) by smtp.gmail.com with ESMTPSA id j11sm6015132wrr.62.2020.04.16.05.30.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2020 05:30:11 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Thu, 16 Apr 2020 14:29:40 +0200 Message-Id: <20200416122939.10312-2-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200416122939.10312-1-heiko.thiery@gmail.com> References: <20200416122939.10312-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/2] package/netopeer2-server: 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 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Netopeer2 is a set of tools implementing network configuration tools based on the NETCONF Protocol. This is the second generation of the toolset, originally available as the Netopeer project. Netopeer2 is based on the new generation of the NETCONF and YANG libraries - libyang and libnetconf2. The Netopeer server uses sysrepo as a NETCONF datastore implementation. Signed-off-by: Heiko Thiery --- DEVELOPERS | 1 + package/Config.in | 1 + package/netopeer2-server/Config.in | 43 ++++++++++++++++ package/netopeer2-server/S52netopeer2-server | 50 +++++++++++++++++++ .../netopeer2-server/netopeer2-server.hash | 3 ++ package/netopeer2-server/netopeer2-server.mk | 21 ++++++++ 6 files changed, 119 insertions(+) create mode 100644 package/netopeer2-server/Config.in create mode 100644 package/netopeer2-server/S52netopeer2-server create mode 100644 package/netopeer2-server/netopeer2-server.hash create mode 100644 package/netopeer2-server/netopeer2-server.mk diff --git a/DEVELOPERS b/DEVELOPERS index 3d9c976a95..42748655d8 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1106,6 +1106,7 @@ F: package/python-sip/ N: Heiko Thiery F: package/libnetconf2/ F: package/libyang/ +F: package/netopeer2-server/ F: package/sysrepo/ N: Henrique Camargo diff --git a/package/Config.in b/package/Config.in index ccf54f2417..78c0d4b7ce 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1736,6 +1736,7 @@ menu "Networking" source "package/mongoose/Config.in" source "package/nanomsg/Config.in" source "package/neon/Config.in" + source "package/netopeer2-server/Config.in" source "package/nghttp2/Config.in" source "package/norm/Config.in" source "package/nss-mdns/Config.in" diff --git a/package/netopeer2-server/Config.in b/package/netopeer2-server/Config.in new file mode 100644 index 0000000000..56b1f296d6 --- /dev/null +++ b/package/netopeer2-server/Config.in @@ -0,0 +1,43 @@ +comment "netopeer2server needs a toolchain w/ C++, threads, dynamic library, host gcc >= 4.8" + depends on BR2_USE_MMU + depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \ + || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_HOST_GCC_AT_LEAST_4_8 + +config BR2_PACKAGE_NETOPEER2_SERVER + bool "netopeer2-server" + depends on BR2_USE_MMU # sysrepo + depends on !BR2_STATIC_LIBS # sysrepo + depends on BR2_INSTALL_LIBSTDCPP # sysrepo + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_LIBNETCONF2 + select BR2_PACKAGE_PCRE # sysrepo + select BR2_PACKAGE_PCRE_UCP # syrepo + select BR2_PACKAGE_SYSREPO + # at least one transport mechanism is mandatory + select BR2_PACKAGE_NETOPEER2_SERVER_SSH if !BR2_PACKAGE_NETOPEER2_SERVER_TLS + + help + Netopeer2 is a set of tools implementing network + configuration tools based on the NETCONF Protocol. + + This is the server part. + + https://github.com/CESNET/Netopeer2 + +if BR2_PACKAGE_NETOPEER2_SERVER + +config BR2_PACKAGE_NETOPEER2_SERVER_TLS + bool "TLS transport" + select BR2_PACKAGE_OPENSSL + help + Enable TLS transport layer support. + +config BR2_PACKAGE_NETOPEER2_SERVER_SSH + bool "SSH transport" + select BR2_PACKAGE_LIBSSH + select BR2_PACKAGE_LIBSSH_SERVER + help + Enable SSH transport layer support. + +endif diff --git a/package/netopeer2-server/S52netopeer2-server b/package/netopeer2-server/S52netopeer2-server new file mode 100644 index 0000000000..cf53a8f109 --- /dev/null +++ b/package/netopeer2-server/S52netopeer2-server @@ -0,0 +1,50 @@ +#!/bin/sh + +DAEMON="netopeer2-server" +PIDFILE="/var/run/$DAEMON.pid" + +NETOPEER2_SERVER_ARGS="" + +start() { + printf 'Starting %s: ' "$DAEMON" + + start-stop-daemon -S -b -q -p $PIDFILE -x "/usr/bin/$DAEMON" \ + -- $NETOPEER2_SERVER_ARGS + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +stop() { + printf 'Stopping %s: ' "$DAEMON" + start-stop-daemon -K -q -p $PIDFILE + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +restart() { + stop + sleep 1 + start +} + +reload() { + # we do not support real reload .. just restart + restart +} + +case "$1" in + start|stop|restart|reload) + "$1";; + *) + echo "Usage: $0 {start|stop|restart|reload}" +esac diff --git a/package/netopeer2-server/netopeer2-server.hash b/package/netopeer2-server/netopeer2-server.hash new file mode 100644 index 0000000000..e1d2886847 --- /dev/null +++ b/package/netopeer2-server/netopeer2-server.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 6c5fc09aed76e0bd7b1b5751dc408966ae9985d2a48109c3f622746e49999b16 netopeer2-1.1.7.tar.gz +sha256 b46f161fbdcf127d3ef22602e15958c3092fe3294f71a2dc8cdf8f6689cba95b LICENSE diff --git a/package/netopeer2-server/netopeer2-server.mk b/package/netopeer2-server/netopeer2-server.mk new file mode 100644 index 0000000000..b6a1f4dae8 --- /dev/null +++ b/package/netopeer2-server/netopeer2-server.mk @@ -0,0 +1,21 @@ +################################################################################ +# +# netopeer2-server +# +################################################################################ + +NETOPEER2_SERVER_VERSION = 1.1.7 +NETOPEER2_SERVER_SOURCE = netopeer2-$(NETOPEER2_SERVER_VERSION).tar.gz +NETOPEER2_SERVER_SITE = $(call github,CESNET,Netopeer2,v$(NETOPEER2_SERVER_VERSION)) +NETOPEER2_SERVER_DL_SUBDIR = netopeer2 +NETOPEER2_SERVER_LICENSE = BSD-3-Clause +NETOPEER2_SERVER_LICENSE_FILES = LICENSE +NETOPEER2_SERVER_SUBDIR = server +NETOPEER2_SERVER_DEPENDENCIES = libnetconf2 libyang sysrepo + +define NETOPEER2_SERVER_INSTALL_INIT_SYSV + $(INSTALL) -m 755 -D package/netopeer2-server/S52netopeer2-server \ + $(TARGET_DIR)/etc/init.d/S52netopeer2-server +endef + +$(eval $(cmake-package)) From patchwork Thu Apr 16 12:29:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1271702 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=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=mHxEXyVR; 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 492z8L3pCPz9sP7 for ; Thu, 16 Apr 2020 22:30:26 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BBC9A221C6; Thu, 16 Apr 2020 12:30:22 +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 sxLBNZHCrgsC; Thu, 16 Apr 2020 12:30:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id EFE4B221CC; Thu, 16 Apr 2020 12:30:19 +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 604EB1BF578 for ; Thu, 16 Apr 2020 12:30:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5BD85221CC for ; Thu, 16 Apr 2020 12:30:18 +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 Xp0EJ67zsF+B for ; Thu, 16 Apr 2020 12:30:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by silver.osuosl.org (Postfix) with ESMTPS id 917D12033E for ; Thu, 16 Apr 2020 12:30:16 +0000 (UTC) Received: by mail-wr1-f41.google.com with SMTP id j2so4579157wrs.9 for ; Thu, 16 Apr 2020 05:30:16 -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=tqhDCHfqw+Hn5xe6+iNeK6SVbzkG8eSM5Y0Zn8WX15Y=; b=mHxEXyVRa8IU1P7QrwRcrwQMX7UBbAkO9bKS9ttnHprlwGvqXaIbfkIWyFH+6COu/N UGzOH0oF/+w1iV+WCVO3PnCHC9n9jRV68CPDQbTL3rVey3VaHD67jfDiwF22DahDM5r9 W3EyutbMZSlX0W/BLalpp+++cbmFhhTod0adCZthflW9sJsKqjbVJbUpXDAAGogxPvO1 Rdz1POl6run348O5TCBKXF96RQPATKr0PRNNedvKY80OAZZsfv4G2eVLEeIPHDn5sV8g Bro6nwdISkp0ZGOjrg9nu7lohSOQZFOSwUPRfAOjFshZ6fw9J2lM6Wv2a+nVjrUz4wYT ueJQ== 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=tqhDCHfqw+Hn5xe6+iNeK6SVbzkG8eSM5Y0Zn8WX15Y=; b=P/x3zklOnbHD/gbCdeIPjKBy3AG1i5M2xEbQKeZCL1GXCBONCtfVdDn07oV4ok17ky yh8ysT3e4BRtt+i4AKG4FbJVCAWuh+XYA6YQUZ0X96Akjc4NGdut1Q0YdPGVFVxMTRiW ubMC7TUS6SJD+FYfS+pzNJNr7BZqqOGmnYOWLTZCRAV04JLMxnl8L0BcIA5fQUCmX185 xvAniXefoeOq+TsZ0vS+8shVFc2UvLQg8zNI3KGUK0ZwWee2Av7xaEtgSYv5M0ppQIft LMikiTfNNvxpNbyzXOrcXyrIlmT+5AVJvExaTUDMUB0A4Qy88T1Od8QYaHjcsphi6YOy U/iw== X-Gm-Message-State: AGi0PuY/7NhIT5lQxjJX6hz/0tg6T7+mVw0i4b+UHQMIcVR3lQc8IYFN 78Ge5Ytu+jZkIdNlhSO+EGGKlhcw X-Google-Smtp-Source: APiQypLryOMTvsoziZUFBV6TL2VeBWqvG7mo+RdGozN3NNOfbDrpYgobzoBz8XaMNwriSFXWIMkCDQ== X-Received: by 2002:adf:ef01:: with SMTP id e1mr10016029wro.182.1587040214669; Thu, 16 Apr 2020 05:30:14 -0700 (PDT) Received: from t450s.fritz.box (ip5b426f84.dynamic.kabel-deutschland.de. [91.66.111.132]) by smtp.gmail.com with ESMTPSA id j11sm6015132wrr.62.2020.04.16.05.30.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2020 05:30:14 -0700 (PDT) From: Heiko Thiery To: buildroot@buildroot.org Date: Thu, 16 Apr 2020 14:29:41 +0200 Message-Id: <20200416122939.10312-3-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200416122939.10312-1-heiko.thiery@gmail.com> References: <20200416122939.10312-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 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: Heiko Thiery Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 42748655d8..1d07420157 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1106,6 +1106,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 78c0d4b7ce..49c020cae6 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1736,6 +1736,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..be82161d43 --- /dev/null +++ b/package/netopeer2-cli/netopeer2-cli.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# netopeer2-cli +# +################################################################################ + +NETOPEER2_CLI_VERSION = 1.1.7 +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))