From patchwork Thu Oct 24 07:46:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1182664 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.b="a1xjoI4H"; 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 46zKBb1pnXz9sQr for ; Thu, 24 Oct 2019 18:49:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 22B38882C3; Thu, 24 Oct 2019 07:49: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 u+pjuCED1cW4; Thu, 24 Oct 2019 07:49:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 01C34882B0; Thu, 24 Oct 2019 07:49:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6E4CD1BF32D for ; Thu, 24 Oct 2019 07:49:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6A8C3882B1 for ; Thu, 24 Oct 2019 07:49:04 +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 yhFVQjKQvjN6 for ; Thu, 24 Oct 2019 07:49:03 +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 hemlock.osuosl.org (Postfix) with ESMTPS id 6BE668608F for ; Thu, 24 Oct 2019 07:49:03 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id q13so19901539wrs.12 for ; Thu, 24 Oct 2019 00:49:03 -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=qJBMOJH3Zk2nw0AKNkGL4e68KzE+EMTwS8FPXmzWzQw=; b=a1xjoI4HuYC6ee/Y2Chi+kn/vdc5UcIPdHJzcsE4joS1dl/HMhGvUTV7F9pX/yThn4 U7onGkuD3aflXOf3n8vg/CBe9hAaGzUssoCrWRLfRvM3Kq9G2CR1vUMk5LldSjZkg/65 kMcv9orrUHyzMCXOsYZ06Vm/lWDvtd6O0BlNIRK+Tk5QgvjapF5hBww0IQkeEvWirfxS vii1qNjBovDVMRZbfvtwqrsY523pz92ySjJLvkTkVSTb9SC7rTcMd97pr0ssERaGE0yd kDf+BQgH8J8WcARgzgwXQG2zwPIReNeK/ChinXKzJIwiDcLbRiE5xc+VrhmZ3T3iKrDg EQgw== 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=qJBMOJH3Zk2nw0AKNkGL4e68KzE+EMTwS8FPXmzWzQw=; b=BZSnA35G69di5SPoBcENT7jns8EgJaJdzLtD1KNhl59DnQweMeEakztGrI58DZCphP gZJCI/PQbzcixrYdr8Ykog8POzzKuYE1a5Kjw2Vgps89C/adoQMAlp18e3zB+DRik+nE WLnl4O7dg8A0bODWVJcpDp+Ozk4r7WL4xMS9348YoxnoF1tTxrMQBqLTUVRA+VNAjncU 2D1fexUz808c5DJys/23al7KTelEIaZEZ9i4Jx1L2CbSevUgNBLOBI4m+6W6PoOix2Fm QC6uu/9rA74B4l8jpS9jGbXIE4NkxofF1U+PwNKwR98IYefCZoh05UOhgr1IGRfO3Bsh 3saQ== X-Gm-Message-State: APjAAAVmjOu2YYfwRLdHqhN79FNH4xVL8bZDPkh5Y/4RmFAjVGV4trxr NdqBYhJz8d5fh04ej67bb4xbPjfQ X-Google-Smtp-Source: APXvYqwmMyR/TcPRIDuc7V1k7C2I4xj6RuXIvqV+NApy91CjIIuPRWlx+BKwxZ8mFtGNRzDXlgg9BQ== X-Received: by 2002:a5d:51c2:: with SMTP id n2mr2414811wrv.149.1571903341596; Thu, 24 Oct 2019 00:49:01 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id c21sm1549536wmb.46.2019.10.24.00.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 00:49:01 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Thu, 24 Oct 2019 09:46:44 +0200 Message-Id: <20191024074644.10442-4-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191024074644.10442-1-heiko.thiery@gmail.com> References: <20191024074644.10442-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH vX 3/5] 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 , Heiko Thiery , 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 | 17 ++++++++++ .../netopeer2-keystored.hash | 2 ++ .../netopeer2-keystored.mk | 31 +++++++++++++++++++ 5 files changed, 52 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 e5f5f8fe1a..55a8bda729 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1045,6 +1045,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 7cb6f14df9..8579eb5896 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1657,6 +1657,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..8b3a010807 --- /dev/null +++ b/package/netopeer2-keystored/netopeer2-keystored.mk @@ -0,0 +1,31 @@ +################################################################################ +# +# 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_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))