From patchwork Wed Oct 9 11:26:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173762 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="KzhCsg80"; 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 46pBm31wgmz9sN1 for ; Wed, 9 Oct 2019 22:28:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 898B923077; Wed, 9 Oct 2019 11:28:01 +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 hZdQ0qcc8Tnn; Wed, 9 Oct 2019 11:27:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B800922F26; Wed, 9 Oct 2019 11:27:59 +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 0987B1BF853 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 CDA1622F4C for ; Wed, 9 Oct 2019 11:27:52 +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 QzuKEGCvwL7F for ; Wed, 9 Oct 2019 11:27:51 +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 0DE3922F26 for ; Wed, 9 Oct 2019 11:27:51 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id p14so2457014wro.4 for ; Wed, 09 Oct 2019 04:27:50 -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=tNak1aMfp53btniW3o7p631TMe26WMpaeS8iQ6pd7zQ=; b=KzhCsg80A/Ju0JYGTarEtiUdnGFPHaDzg7eUOvRa03TcdLIXD+a4rNCYUFuZAvmzUD TzLJSzIjy4T+Nj5HiBosUzC4Tljn0bBWydRiUQ6qbXsFFCBs7xxtOFrrNeO+kkF4SZqc 6ZJsXZPuavIS1REzVkphrXKjqIJvUx6kPupKE93rYbIugeQ4Y2jOqM4dm42m2WI/Y3E9 OCGM2KpJ848FJSRIRqZpa8u+4kGfOHORHqUatpOEd08n41Kx+H5X2Lx1JEwf2d5dj+6s t0cyCt0p6bvJ7NskGgJnfFUtofHx+7GCqephxjBsCEbsBRPPfjea4sm5r69kHLssnx48 0ioQ== 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=tNak1aMfp53btniW3o7p631TMe26WMpaeS8iQ6pd7zQ=; b=HZ3Ik0lPuXPGN/Roi2TxisMsEQYRPj8lIOmO1j8t9BcZeZXVvdY+Y2AD2aUzsNfmCf n0TPylC/7TMVVZ9SaM8oDVInMZ6f3XSFNg4wZrBNVhLvm7WP7n5WOZClySuKr9mwrUU8 uyRvuVRVFOtZzqciq4Lxm66AyCsvUMSfJS8kucPKsGk1hLp8ixuhD9sVJRRN2RcIanxP NspNDYA/zLGp1A7Vn6n7nruCHLKTNhz+ZK7d1hYE5hCC8pxB8ZVfkR8O3xlEGDQ6BsJ+ QEFw+tjkhdQXit5vcrzmUGiExM2Wzh4n+W7MSvh43SBiq+MJT6krfnp/Rnvnneap7UO+ n3uA== X-Gm-Message-State: APjAAAV+6LQEv8YiC5Sc9AdMdWL9L2mQeF/6bRo289wllJxrypKSzddq DPV3rDdLkT8iDc2BjYTyGbHUKIGB X-Google-Smtp-Source: APXvYqywsWjm6TwA3wPMMhPAVhVYSMAOQ1zjDLTfDIw7BLjVu42He40UolhnuaRPNFOBpUBa/Rxw1Q== X-Received: by 2002:a5d:522f:: with SMTP id i15mr2339813wra.257.1570620469165; Wed, 09 Oct 2019 04:27:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:48 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:54 +0200 Message-Id: <20191009112656.21232-8-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 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: 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 keystored plugin. Signed-off-by: Heiko Thiery --- DEVELOPERS | 1 + package/Config.in | 1 + package/netopeer2-keystored/Config.in | 15 ++++++++++ .../netopeer2-keystored.hash | 2 ++ .../netopeer2-keystored.mk | 29 +++++++++++++++++++ 5 files changed, 48 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 143b277dc4..2eb3ae905b 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1041,6 +1041,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 80bc83e8cd..fbe5ab2306 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1647,6 +1647,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..e25f0d70ce --- /dev/null +++ b/package/netopeer2-keystored/Config.in @@ -0,0 +1,15 @@ +config BR2_PACKAGE_NETOPEER2_KEYSTORED + bool "netopeer2-keystore daemon" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_SYSREPO + select BR2_PACKAGE_SYSREPO + help + Netopeer2 is a set of tools implementing network + configuration tools based on the NETCONF Protocol. + + 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..a54b062a9d --- /dev/null +++ b/package/netopeer2-keystored/netopeer2-keystored.hash @@ -0,0 +1,2 @@ +sha256 59688271be4fecbbee671fc7eb3dc0538b13b4baab53e923e26eaeb33e6f7ec0 netopeer2-keystored-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..8160c53867 --- /dev/null +++ b/package/netopeer2-keystored/netopeer2-keystored.mk @@ -0,0 +1,29 @@ +################################################################################ +# +# netopeer2-keystored +# +################################################################################ + +NETOPEER2_KEYSTORED_VERSION = v0.7-r2 +NETOPEER2_KEYSTORED_SITE = $(call github,CESNET,Netopeer2,$(NETOPEER2_KEYSTORED_VERSION)) +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))