From patchwork Fri Oct 11 12:40:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175146 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.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.b="b3wNMt4n"; 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 46qSJr2bM7z9sCJ for ; Fri, 11 Oct 2019 23:42:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C105020420; Fri, 11 Oct 2019 12:42: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 u9M+LHISAcS4; Fri, 11 Oct 2019 12:42:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DC405259FF; Fri, 11 Oct 2019 12:42:11 +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 69B361BF292 for ; Fri, 11 Oct 2019 12:42:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5B64320415 for ; Fri, 11 Oct 2019 12:42:07 +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 Ffp0dNfUgIyS for ; Fri, 11 Oct 2019 12:42:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by silver.osuosl.org (Postfix) with ESMTPS id 4D28B20420 for ; Fri, 11 Oct 2019 12:42:04 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id 3so10085091wmi.3 for ; Fri, 11 Oct 2019 05:42:04 -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=2eUSFWKI46O5P80eMVq4B8uVc0YKKtn8VYSwmRrE178=; b=b3wNMt4nbYFfO3qeWwPReYfcl589zeIFg27OTAF5zYUxNhwSqqd+OfLB1lIywxEESy M5K6erUgyZfa9/m5pnO6nQAICcdrL2zrvNYjT57PqIW+hDJMDdl3SrYfu0ksdd9pBbju /qpp20Tu5FqYGXTiSqXAy9l0kIvpQRUgUWT8FnaX9qeztme88I5oQgPJU24EOYhAhmjq qugiqGDfAq8ZdUCICzY1WR9KgUeaZNMlKIxUZcaZnbNn2Yly8pVqWLZJZA9hv3GuDaYT aOSYNpnrf8UDhXWTjrFwIrj9MCmNhJyBRm05OJAkVevxvldoveRn0bUv4AqvnpM/R6KU a/Jg== 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=2eUSFWKI46O5P80eMVq4B8uVc0YKKtn8VYSwmRrE178=; b=tce5aZy9MYEcXAjPcPP248r7iDbaJN7GiMlYWwAqTfIACPIXTzikAMuRiecWgNGfsd ylL9oaMk+Jf3UWJTvU62ZoAfs8Qb44JiaE1g8n6PGm4vjnIcqIkRKkvkXVhh9ETi98Dq C4ag1pKw7vmJ4Njpx1ob7snnhQ/HemZQq1Fl0HSPyc8JH1MW9bqucKV4gq4EyfTxnwpe da2ds8DpQ/3a6wWKeyZtTUn3COl3VCVW9jI3iswvI9fQdKfbEy2cP5vAzivm51+SI0X5 RkHyQSdRvhDEXmNdk3HsnAv6KxaxwniTTdFeY5osxLkxzgS4YsKQiZQqJFJ4VqU0qb7k OUog== X-Gm-Message-State: APjAAAW43y0lAVTPSF7Zsj3w6NKoGOrZHNNB0rHkZfd5O9uQdCdKDnPH dH3XjkZhdiuIOXcxKqrWeV2udwhT3TU= X-Google-Smtp-Source: APXvYqw92vdvXHhCH8RS6exGKRSlBYc+kei26S8FJaG6IE9ghn0y2V/kLl6C/G0kLsKyjXqKd7Ho9A== X-Received: by 2002:a7b:c631:: with SMTP id p17mr3127962wmk.5.1570797722313; Fri, 11 Oct 2019 05:42:02 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:42:01 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:45 +0200 Message-Id: <20191011124131.28246-8-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 7/9] package/netopeer2-keystored: 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery netopeer2 keystored plugin. Signed-off-by: Heiko Thiery --- DEVELOPERS | 1 + package/Config.in | 1 + package/netopeer2-keystored/Config.in | 17 ++++++++++ .../netopeer2-keystored.hash | 2 ++ .../netopeer2-keystored.mk | 32 +++++++++++++++++++ 5 files changed, 53 insertions(+) create mode 100644 package/netopeer2-keystored/Config.in create mode 100644 package/netopeer2-keystored/netopeer2-keystored.hash create mode 100644 package/netopeer2-keystored/netopeer2-keystored.mk diff --git a/DEVELOPERS b/DEVELOPERS index d8992538c2..ced7461b45 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1042,6 +1042,7 @@ F: package/python-sip/ N: Heiko Thiery F: package/libnetconf2/ F: package/libyang/ +F: package/netopeer2-keystored/ F: package/sysrepo/ N: Henrique Camargo diff --git a/package/Config.in b/package/Config.in index 54b40936ba..c1e8ce3431 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1649,6 +1649,7 @@ menu "Networking" source "package/mongoose/Config.in" source "package/nanomsg/Config.in" source "package/neon/Config.in" + source "package/netopeer2-keystored/Config.in" source "package/nghttp2/Config.in" source "package/norm/Config.in" source "package/nss-mdns/Config.in" diff --git a/package/netopeer2-keystored/Config.in b/package/netopeer2-keystored/Config.in new file mode 100644 index 0000000000..d23ec2f1b9 --- /dev/null +++ b/package/netopeer2-keystored/Config.in @@ -0,0 +1,17 @@ +config BR2_PACKAGE_NETOPEER2_KEYSTORED + bool "netopeer2-keystored" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_SYSREPO + help + Netopeer2 is a set of tools implementing network + configuration tools based on the NETCONF Protocol. + + This is the keystored sysrepo plugin. + + https://github.com/CESNET/Netopeer2 + +comment "needs a toolchain w/ threads, dynamic libraray" + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/netopeer2-keystored/netopeer2-keystored.hash b/package/netopeer2-keystored/netopeer2-keystored.hash new file mode 100644 index 0000000000..5f897e8d08 --- /dev/null +++ b/package/netopeer2-keystored/netopeer2-keystored.hash @@ -0,0 +1,2 @@ +sha256 59688271be4fecbbee671fc7eb3dc0538b13b4baab53e923e26eaeb33e6f7ec0 netopeer2-v0.7-r2.tar.gz +sha256 932b75a8610a5c58e0fe0f70f8e4ebbcf3a2392acc16a88e95aebcdbdb9245e0 LICENSE diff --git a/package/netopeer2-keystored/netopeer2-keystored.mk b/package/netopeer2-keystored/netopeer2-keystored.mk new file mode 100644 index 0000000000..e67b45b70e --- /dev/null +++ b/package/netopeer2-keystored/netopeer2-keystored.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# netopeer2-keystored +# +################################################################################ + +NETOPEER2_KEYSTORED_VERSION = v0.7-r2 +NETOPEER2_KEYSTORED_SOURCE = netopeer2-$(NETOPEER2_KEYSTORED_VERSION).tar.gz +NETOPEER2_KEYSTORED_SITE = $(call github,CESNET,Netopeer2,$(NETOPEER2_KEYSTORED_VERSION)) +NETOPEER2_KEYSTORED_DL_SUBDIR = netopeer2 +NETOPEER2_KEYSTORED_SUBDIR = keystored +NETOPEER2_KEYSTORED_LICENSE = BSD-3-Clause +NETOPEER2_KEYSTORED_LICENSE_FILES = LICENSE +NETOPEER2_KEYSTORED_SUBDIR = keystored +NETOPEER2_KEYSTORED_DEPENDENCIES = host-sysrepo sysrepo + +NETOPEER2_KEYSTORED_CONF_OPTS = \ + -DKEYSTORED_DEFER_SSH_KEY=ON \ + -DSSH_KEY_INSTALL=ON \ + -DMODEL_INSTALL=ON \ + -DSYSREPOCTL_EXECUTABLE=$(HOST_DIR)/bin/sysrepoctl \ + -DSYSREPOCFG_EXECUTABLE=$(HOST_DIR)/bin/sysrepocfg + +define NETOPEER2_KEYSTORED_PERMISSIONS + /etc/sysrepo/data/ietf-keystore.persist f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-keystore.running f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-keystore.running.lock f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-keystore.startup f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-keystore.startup.lock f 600 0 0 - - - - - +endef + +$(eval $(cmake-package))