From patchwork Wed Oct 9 11:26:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173761 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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.b="dfisDCaA"; 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 46pBm16TDtz9s7T for ; Wed, 9 Oct 2019 22:28:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 329CC88301; Wed, 9 Oct 2019 11:28:00 +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 UQj4RDt4ip8k; Wed, 9 Oct 2019 11:27:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C7F30882F7; Wed, 9 Oct 2019 11:27:58 +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 9246F1BF9B6 for ; Wed, 9 Oct 2019 11:27:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AA52422EE6 for ; Wed, 9 Oct 2019 11:27:53 +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 oliyLdmkVRwJ for ; Wed, 9 Oct 2019 11:27:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by silver.osuosl.org (Postfix) with ESMTPS id 5A1D6230A4 for ; Wed, 9 Oct 2019 11:27:52 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id w12so2444987wro.5 for ; Wed, 09 Oct 2019 04:27:52 -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=YmMeOwU+iIfflWSu0MJm9XVDEA00HHn2CNsiUarAgOg=; b=dfisDCaA28KyaArxCWMz9HmlPMrDsIKISffDRQSQnVkGyWamUopPRio9HvxvVnm1AY eSC82ILBW0pZXj35HOBhTKd/1FHWoObnV+GWlvR+rQcpHkqTY/lAFTn5AmFFxhlaFtSr N/azIzAsMLN7sf1gbfp9O+LcA3Hw0tUtLl5coX1iveVEAb+xj1dQl1Cj9/YEq/mhR65d KWUAgQOYJrcfMxTnWY887BCJ+EKsREkAQiXnN4La0VFc4DeHIuXJ0tXwJQPKSqfSsU9P 6DPit38790Lh16YDRYpZueOLwm9qfwnMAh5HnStcoYnzuJatJ0QBzqHmNkHsbTfJIfni MPMA== 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=YmMeOwU+iIfflWSu0MJm9XVDEA00HHn2CNsiUarAgOg=; b=aoVufW7mJdiWllslkNRtd3Jn6lJUZJMSwymY/KfylFKzWlbqcnpMO/jzP9ViIFwymB Ew9j81tlct86vAt6YyBQp8rsmXi1Coj6FkENNp5M00lb0OaMUdfdEv9y0KL9TvpAbfKV n+6pisdz+seZyHASuWA/9+YOkdhMRo9Ujr3VHen4mqMVF2hh5I3T4YyJoYi3QJqdcsYr 2avx9l1xIyJz6ulp7RLr9U5L03iXIS6K6M1BiMUX91cCzbD8K9daTC1xiLtrJEFiCHZT FMNufQKiBxDBpiFabF0xnwxiKOivWkudMpYQ7xUeuUuPAH+yatlWf3b/qFppmgt8s/yp xEog== X-Gm-Message-State: APjAAAX9kLJxJAIqFbbIVJg4derRkDJopCAOxwEu4NmfJg/FmsbvSIx5 4V8qYDzK0HCmAxwYyCF+7JtAa4H4 X-Google-Smtp-Source: APXvYqyEnkj27XfejpDOTkz+FRPzOkNp/UD/pkRZSXiPRbNtWnAoNp8radeIYZYuHapWetAVtK6OAA== X-Received: by 2002:a5d:498a:: with SMTP id r10mr2755688wrq.260.1570620470535; Wed, 09 Oct 2019 04:27:50 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id e3sm1977194wme.39.2019.10.09.04.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:50 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:55 +0200 Message-Id: <20191009112656.21232-9-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191009112656.21232-1-heiko.thiery@gmail.com> References: <20191009112656.21232-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 8/9] 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@gmail.com, Heiko Thiery , jan.kundrat@cesnet.cz, michael@walle.cc, thomas.petazzoni@bootlin.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery 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 | 18 +++++++++++++ .../netopeer2-server/netopeer2-server.hash | 2 ++ package/netopeer2-server/netopeer2-server.mk | 26 +++++++++++++++++++ 5 files changed, 48 insertions(+) create mode 100644 package/netopeer2-server/Config.in 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 2eb3ae905b..6fe5544151 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1042,6 +1042,7 @@ N: Heiko Thiery F: package/libnetconf2/ F: package/libyang/ F: package/netopeer2-keystored/ +F: package/netopeer2-server/ F: package/sysrepo/ N: Henrique Camargo diff --git a/package/Config.in b/package/Config.in index fbe5ab2306..a38569e12c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1648,6 +1648,7 @@ menu "Networking" source "package/nanomsg/Config.in" source "package/neon/Config.in" source "package/netopeer2-keystored/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..01d35400dc --- /dev/null +++ b/package/netopeer2-server/Config.in @@ -0,0 +1,18 @@ +config BR2_PACKAGE_NETOPEER2_SERVER + bool "netopeer2server" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_LIBNETCONF2 + select BR2_PACKAGE_LIBNETCONF2_SSH + select BR2_PACKAGE_LIBNETCONF2_TLS + select BR2_PACKAGE_SYSREPO + select BR2_PACKAGE_NETOPEER2_KEYSTORED + help + Netopeer2 is a set of tools implementing network + configuration tools based on the NETCONF Protocol. + + https://github.com/CESNET/Netopeer2 + +comment "netopeer2server needs a toolchain w/ threads, dynamic libraray" + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/netopeer2-server/netopeer2-server.hash b/package/netopeer2-server/netopeer2-server.hash new file mode 100644 index 0000000000..78b377a286 --- /dev/null +++ b/package/netopeer2-server/netopeer2-server.hash @@ -0,0 +1,2 @@ +sha256 59688271be4fecbbee671fc7eb3dc0538b13b4baab53e923e26eaeb33e6f7ec0 netopeer2-server-v0.7-r2.tar.gz +sha256 932b75a8610a5c58e0fe0f70f8e4ebbcf3a2392acc16a88e95aebcdbdb9245e0 LICENSE diff --git a/package/netopeer2-server/netopeer2-server.mk b/package/netopeer2-server/netopeer2-server.mk new file mode 100644 index 0000000000..0ca4c50f96 --- /dev/null +++ b/package/netopeer2-server/netopeer2-server.mk @@ -0,0 +1,26 @@ +################################################################################ +# +# netopeer2-server +# +################################################################################ + +NETOPEER2_SERVER_VERSION = v0.7-r2 +NETOPEER2_SERVER_SITE = $(call github,CESNET,Netopeer2,$(NETOPEER2_SERVER_VERSION)) +NETOPEER2_SERVER_LICENSE = BSD-3-Clause +NETOPEER2_SERVER_LICENSE_FILES = LICENSE +NETOPEER2_SERVER_SUBDIR = server +NETOPEER2_SERVER_DEPENDENCIES += libyang sysrepo + +NETOPEER2_SERVER_CONF_OPTS += \ + -DENABLE_CONFIGURATION=ON \ + -DKEYSTORED_KEYS_DIR=/etc/keystored/keys + +define NETOPEER2_SERVER_PERMISSIONS + /etc/sysrepo/data/ietf-netconf-server.persist f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-netconf-server.running f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-netconf-server.running.lock f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-netconf-server.startup f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-netconf-server.startup.lock f 600 0 0 - - - - - +endef + +$(eval $(cmake-package))