From patchwork Wed Oct 9 11:26:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173756 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="l+RUIclA"; 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 46pBln2P2gz9sNF for ; Wed, 9 Oct 2019 22:27:48 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 55CC288309; Wed, 9 Oct 2019 11:27:44 +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 gZLmAL87mkGC; Wed, 9 Oct 2019 11:27:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 65428882E7; Wed, 9 Oct 2019 11:27:42 +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 B1F1D1BF853 for ; Wed, 9 Oct 2019 11:27:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AC69422F26 for ; Wed, 9 Oct 2019 11:27:41 +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 3FXXFcuAL4sN for ; Wed, 9 Oct 2019 11:27:40 +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 E137622F22 for ; Wed, 9 Oct 2019 11:27:37 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id y19so2458435wrd.3 for ; Wed, 09 Oct 2019 04:27:37 -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=9GihypAEX4fo4dXiOqzE+1fa5pYKGbLy9fRw78hmkas=; b=l+RUIclAW2xpFWmhtyI8GQnKppcdrJgGxyQFY5ZgsHrScQRvniYh/xaGu3fTrlVHnF 86Jj8JbLfgRVFCWyr3/aB/Dj4Wwd/QyE31paOy3yjauXc0OxirC2mSSwkyEFZY89e6AT i27MO1o2BccXItS+jTGjIfqHCiUG0J2RoIx5ioN6zqhSgYdn2Sg5lGTSsp3NIM19hZm6 8YzkN2+sjqoNG/tC6p4OoEOUvWbDcsCRH0S97ZCNSFEuafOVOw/R3gncwKxUYYWJaSCN yw7t8Rnqo4Hmh8qsPq14XJknzsAMIMf9jBxBOmY6YxdxeHh0soREVWzHsiU3P2pirVIr 0tiw== 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=9GihypAEX4fo4dXiOqzE+1fa5pYKGbLy9fRw78hmkas=; b=BdPISnCQL7dj8HEPnRgQUpTO05xFkXxVodAPhc+yDpJoRujIpup7Q++7q4PDzIXEwL xYHxOPhLD3tBXbhDT+yL8ri9kl9tDqqz1HmHUCn5kOelEujQ6OOMxhgnVfhMReuARD0g dow+k+G15NvoyEtG/tMXUeUrtATtQROTCVF6ODg56wJRy16FwNyP4zrzDMJfH2sxAgMs 399Q3/HUIQAFKM4YT9Asx7t348g+64SLr01q50uoJl4GdqjjuMpj85knaK5gAkP7KdQ4 z3q2rwnI2ZU57hPpibIaLSr65/9G6eRXVGHCF7vRwAXU66+JaTPz9uZpKTreY/LGaS2h h9+A== X-Gm-Message-State: APjAAAWXNlKy8orSWSfnNoaxGdymDmk6dvE6FfVLu0VuL+M1btveFO12 cIm3zQTP0K80fY/9uWmKAwS77BZr X-Google-Smtp-Source: APXvYqxG6kjwIiBqdLwKUSwtWALh9H9cBpfcmjVvhKMWwlMLlw3tTdWMjtD2HQEqpzKcfqqfjbBzdw== X-Received: by 2002:adf:e542:: with SMTP id z2mr2580780wrm.188.1570620455988; Wed, 09 Oct 2019 04:27:35 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:35 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:48 +0200 Message-Id: <20191009112656.21232-2-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 1/9] package/libev: use host-autotools-package macro 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 Enable host support for the lib because the package host-sysrepo (depends on package libnetconf2) is needed by package netopeer2keystored. Signed-off-by: Heiko Thiery --- package/libev/libev.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libev/libev.mk b/package/libev/libev.mk index 2b2d5db004..38b0530f62 100644 --- a/package/libev/libev.mk +++ b/package/libev/libev.mk @@ -18,3 +18,4 @@ endef LIBEV_POST_PATCH_HOOKS += LIBEV_DISABLE_EVENT_H_INSTALL $(eval $(autotools-package)) +$(eval $(host-autotools-package)) From patchwork Wed Oct 9 11:26:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173755 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.137; helo=fraxinus.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="AIVtKdta"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46pBln0ktQz9sN1 for ; Wed, 9 Oct 2019 22:27:48 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DA4E985413; Wed, 9 Oct 2019 11:27:45 +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 wOE1IDlpICoA; Wed, 9 Oct 2019 11:27:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 459938688F; Wed, 9 Oct 2019 11:27:45 +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 83B2B1BF853 for ; Wed, 9 Oct 2019 11:27:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 06C8022F26 for ; Wed, 9 Oct 2019 11:27:43 +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 7NNj2yTXOxOs for ; Wed, 9 Oct 2019 11:27:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by silver.osuosl.org (Postfix) with ESMTPS id 05CCF22F05 for ; Wed, 9 Oct 2019 11:27:42 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id 5so2123987wmg.0 for ; Wed, 09 Oct 2019 04:27:41 -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=6SjK8BOg0MCGilAoZp18QZ4cQyIeAkAUuAIIq4EkP38=; b=AIVtKdtayZpnNNamQXf+U9Oa+cCCEOm+SwXg+sExSGNDaG6janPcXrMw3FS5M/8GCQ 6pH9JrfxHfXlnyDAP4ThOFkdZjXcMVwZK04dCgkswhJFDA3W9loS8XHBCt1JD5w5QisY iVnCqIcWIo4prNj3nB2s19zFkWPBk56FUnFeq8xcLX9//o8IRrrM6Eb10qMmvUh3im4l iDh+ha+LXRwsOjareiACJTRCg3fjf7fxkoGSbRBPixLNdnrdCmaWyfy0jhLxjGknixrX e8NL26hzhNUy/gdOhsw3femHPfuLdzWE8izSsmXDl0lx9tUax8ebzn3e/4iiFysAffAK S2gA== 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=6SjK8BOg0MCGilAoZp18QZ4cQyIeAkAUuAIIq4EkP38=; b=AL3i8T4WielbnZ7uQJn413vBV1eyc5FadWirtqVvH9oW1ZX4otFWM8tr0ZaReiMpTu 8BCOFzLBKU0w0F/ExzdVs829wOcf4yYTEudxSvJEsDytOnoZz1ImYKTgnfLsL4wOvhMF WdGjyBb2RR3YsWJm7niNfZflj1Z+1NQA8zSgqnb8ltoNpf3uF2PlHRrLb3FyarPXrS0Z gBZ8reKJZL1YT6mTb6iglF6SNXCkiaSGb8xnzC8C4ONQuiK9AajGydwKLGgvoMoSjQ2Z JQg4nJPmPU0ntAw/iTq1c3CpJhXFOmm+ZTpwW1DDmnhKKJnAilvwmOIykVg7yPpbpktp Wyhg== X-Gm-Message-State: APjAAAX2RkY4/J3txnYbzNyJ9aV6iUtFo4rClbvvt7P3f640E5arglUO 72r9rThR+/rB5z81dLw+PiEmSlbL X-Google-Smtp-Source: APXvYqxhhnRaQdp9FanDh59a1QeFhGFXtD6e1J/spUdd5bwR0AK38uc8+cL0rVqlN5TWaOUuXSGfrw== X-Received: by 2002:a05:600c:2212:: with SMTP id z18mr2162779wml.32.1570620460130; Wed, 09 Oct 2019 04:27:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:39 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:49 +0200 Message-Id: <20191009112656.21232-3-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 2/9] package/libssh: use host-autotools-package macro 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 Enable host support for the lib because the package host-sysrepo (depends on package libnetconf2) is needed by package netopeer2keystored. Signed-off-by: Heiko Thiery --- package/libssh/libssh.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libssh/libssh.mk b/package/libssh/libssh.mk index b8464ed2bf..b90c52a2f3 100644 --- a/package/libssh/libssh.mk +++ b/package/libssh/libssh.mk @@ -43,3 +43,4 @@ LIBSSH_DEPENDENCIES += openssl endif $(eval $(cmake-package)) +$(eval $(host-cmake-package)) From patchwork Wed Oct 9 11:26:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173758 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.137; helo=fraxinus.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="SUCbbpRY"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46pBlr4wKnz9sPF for ; Wed, 9 Oct 2019 22:27:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 07ADF868E6; Wed, 9 Oct 2019 11:27:48 +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 fihaVV-2eELA; Wed, 9 Oct 2019 11:27:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id CB111868F3; Wed, 9 Oct 2019 11:27:46 +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 AEB691BF853 for ; Wed, 9 Oct 2019 11:27:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A726D8688F for ; Wed, 9 Oct 2019 11:27:44 +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 nXOa_xXRkv7W for ; Wed, 9 Oct 2019 11:27:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by fraxinus.osuosl.org (Postfix) with ESMTPS id A2FF085413 for ; Wed, 9 Oct 2019 11:27:43 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id b9so2486399wrs.0 for ; Wed, 09 Oct 2019 04:27:43 -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=0k0M4L0v++izSiPNyYQ1NRioTKnlozaYleaSzPLPetY=; b=SUCbbpRYLvqZdc+4VGyLK/0aAbhGNXLManIcux1jU2RBAcZARTj/dyof8oYfEqJcAj WoM32xrmkOZc00hy8S4Gw7Z0MqINPISaVG/BvRJDyfs1dwPVOwbFczd4o5ywkm+K+7n8 80ASKfSg/CH8gQS4l5yfthRD0FSZahYa2jPr9m1FCjsYWbhZs7PeTzAaeM3TfnczEhlo dbndOBjIj0bOEs/hC6a5nV6KzW49kP5W4KFowadnYz15rIntj22loKcmVarvXlpup9Rl PGu6LbP7pk4Pt1/o5rlBIsjbQr7stWn36mbMNQCl1h0+y9OpXgVM2UAXnFvEJ05IVQzu lbHA== 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=0k0M4L0v++izSiPNyYQ1NRioTKnlozaYleaSzPLPetY=; b=G3AYDxHaC21aLCQnwA5eB0FtY5D0TM+QKxHTFn/D4I4zNWGQdhPCxLo9GXY1UpU/3s a/P07LEBHY0CGuyDK5m0HJ/ODmSTQwE0q3UO6etYNnQ1NoSo7bG7Q/VJUJXM+MBZMdJu wRUrptTDnV2588TjDmXB0jtUu0nA88PSlGCDsSqr/4bN/PQRKLlXSxtISbpWE7OS+c1x WWS01AKrcBbfjb2o4WlSDm7AzgB1qvf0TNcBhD31T1S/klFNXhNOPuT5EjFSydkhK7Z8 DN989XsYJ0fsMVelo5W16H59ZkonZqHiYbohilOGGF8TAeB/gGNrMyrU3NRuL1rkH+Zl bjag== X-Gm-Message-State: APjAAAUtQU8TnVKsNOhljcXoQTWDIMflGdb/tg2zm9DdwyOnNOUxHAYZ Jc/d2fEbU/jSpR10iaIOVrT/apsf X-Google-Smtp-Source: APXvYqzCU132FUfkM3374anp38KMGOVGlZK28VJZFwoBX8zMfK6uA/8ACskHWopS00sqm48BXY+VQw== X-Received: by 2002:a5d:522f:: with SMTP id i15mr2339391wra.257.1570620461625; Wed, 09 Oct 2019 04:27:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:41 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:50 +0200 Message-Id: <20191009112656.21232-4-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 3/9] package/libavl: 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: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Heiko Thiery --- package/Config.in | 1 + package/libavl/0001-fix-makefile.patch | 49 ++++++++++++++++++++++++++ package/libavl/Config.in | 13 +++++++ package/libavl/libavl.hash | 5 +++ package/libavl/libavl.mk | 43 ++++++++++++++++++++++ 5 files changed, 111 insertions(+) create mode 100644 package/libavl/0001-fix-makefile.patch create mode 100644 package/libavl/Config.in create mode 100644 package/libavl/libavl.hash create mode 100644 package/libavl/libavl.mk diff --git a/package/Config.in b/package/Config.in index 47b602c547..e84624ccdf 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1713,6 +1713,7 @@ menu "Other" source "package/lapack/Config.in" source "package/libargtable2/Config.in" source "package/libatomic_ops/Config.in" + source "package/libavl/Config.in" source "package/libb64/Config.in" source "package/libbsd/Config.in" source "package/libcap/Config.in" diff --git a/package/libavl/0001-fix-makefile.patch b/package/libavl/0001-fix-makefile.patch new file mode 100644 index 0000000000..6cc96e5f74 --- /dev/null +++ b/package/libavl/0001-fix-makefile.patch @@ -0,0 +1,49 @@ +makefile: fix compilation and installation + +This was originally taken from: +https://sources.debian.org/data/main/liba/libavl/0.3.5-4/debian/patches/fix-makefile + +Unfortunately, the URL does not end in ".patch", therefore we cannot +use it in the FOO_PATCH variable directly. + +Signed-off-by: Michael Walle + +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -6,7 +6,8 @@ + LDCONFIG ?= /sbin/ldconfig + + # Some suggestions: (-mcpu= generates i386 compatible code) +-CFLAGS ?= -O2 -fomit-frame-pointer -pipe -mcpu=i686 -w ++CFLAGS ?= -O2 -pipe -Wall -Werror ++CFLAGS += -fPIC + #CFLAGS = -O2 -fomit-frame-pointer -pipe -march=i586 -Wall -g + #CFLAGS = -O6 -fomit-frame-pointer -pipe -march=i586 -Wall -ansi -pedantic + #CFLAGS = -O6 -fomit-frame-pointer -pipe -march=i686 -Wall -ansi -pedantic +@@ -34,20 +35,21 @@ + $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) + + $(LIBRARY): avl.o +- $(CC) -nostdlib -shared -Wl,-soname,libavl.so.1 $^ -o $@ -lc ++ $(CC) $(LDFLAGS) -shared -Wl,-soname,libavl.so.1 $^ -o $@ -lc + + clean: + $(RM) *.o $(PROGRAMS) libavl.* + + install: all + $(INSTALL) -d $(DESTDIR)$(libdir) +- $(INSTALL) avl.h $(DESTDIR)$(includedir) +- $(INSTALL) $(LIBRARIES) $(DESTDIR)$(libdir) +- for i in $(LIBRARIES); do\ ++ $(INSTALL) -d $(DESTDIR)$(includedir) ++ $(INSTALL) -m 644 avl.h $(DESTDIR)$(includedir) ++ $(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(libdir) ++ for i in $(LIBRARY); do\ + $(LN) -sf $$i $(DESTDIR)$(libdir)/$${i%.*};\ + $(LN) -sf $${i%.*} $(DESTDIR)$(libdir)/$${i%.*.*};\ + done +- -$(LDCONFIG) ++ #-$(LDCONFIG) + + .PHONY: clean install all + .PRECIOUS: %.h %.c diff --git a/package/libavl/Config.in b/package/libavl/Config.in new file mode 100644 index 0000000000..20d3c5ef7d --- /dev/null +++ b/package/libavl/Config.in @@ -0,0 +1,13 @@ +config BR2_PACKAGE_LIBAVL + bool "libavl" + depends on !BR2_STATIC_LIBS + help + AVLTree is a small implementation of AVL trees for the C + programming language. + + https://packages.debian.org/buster/libavl1 + + This is not the GNU AVL library by Ben Pfaff. + +comment "libavl needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS diff --git a/package/libavl/libavl.hash b/package/libavl/libavl.hash new file mode 100644 index 0000000000..5c668603a3 --- /dev/null +++ b/package/libavl/libavl.hash @@ -0,0 +1,5 @@ +# From http://ftp.debian.org/debian/pool/main/liba/libavl/libavl_0.3.5-4.dsc +sha256 4497b9e22cdd61ae2fa893b9d5fd6213dc306726d7c4be08c29e173622dca8a0 libavl_0.3.5.orig.tar.gz + +# Hash for license files: +sha256 767a9accfe3b110153b567983b98889469dfaae02899a632aeadbb81ad611293 COPYING diff --git a/package/libavl/libavl.mk b/package/libavl/libavl.mk new file mode 100644 index 0000000000..ad561c43bf --- /dev/null +++ b/package/libavl/libavl.mk @@ -0,0 +1,43 @@ +################################################################################ +# +# libavl +# +################################################################################ + +LIBAVL_VERSION = 0.3.5 +LIBAVL_SITE = http://ftp.debian.org/debian/pool/main/liba/libavl +LIBAVL_SOURCE = libavl_$(LIBAVL_VERSION).orig.tar.gz +LIBAVL_LICENSE = LGPL-2.0+ +LIBAVL_LICENSE_FILES = COPYING +LIBAVL_INSTALL_STAGING = YES + +LIBAVL_CFLAGS = -fPIC +HOST_LIBAVL_CFLAGS = -fPIC + +define LIBAVL_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ + CFLAGS="$(LIBAVL_CFLAGS)" +endef + +define LIBAVL_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) install \ + prefix=/usr DESTDIR=$(STAGING_DIR) +endef + +define LIBAVL_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) install \ + prefix=/usr DESTDIR=$(TARGET_DIR) +endef + +define HOST_LIBAVL_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) \ + CFLAGS="$(HOST_LIBAVL_CFLAGS)" +endef + +define HOST_LIBAVL_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) install \ + prefix=/usr DESTDIR=$(HOST_DIR) +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package)) From patchwork Wed Oct 9 11:26:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173757 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="sU9RW5px"; 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 46pBlr3Lz1z9sP7 for ; Wed, 9 Oct 2019 22:27:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C103522F05; Wed, 9 Oct 2019 11:27:50 +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 0MaJ563wWqLK; Wed, 9 Oct 2019 11:27:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 47CE322F26; Wed, 9 Oct 2019 11:27:49 +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 4C6CA1BF853 for ; Wed, 9 Oct 2019 11:27:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 48BFB22F05 for ; Wed, 9 Oct 2019 11:27:47 +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 Bk1i2pwKL3ap for ; Wed, 9 Oct 2019 11:27:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by silver.osuosl.org (Postfix) with ESMTPS id 09C4B22EE6 for ; Wed, 9 Oct 2019 11:27:45 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id b9so2486508wrs.0 for ; Wed, 09 Oct 2019 04:27:44 -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=9lIswzKPNSeYy3b+3J0+Qr4ijyM/cRbIOy599I7NNxI=; b=sU9RW5pxlLJZM5lRNpplguGQ73pOEXR8BiU8Jr6mzJP8k8rWwkD/Pwmxqlm9pQpRYW l4+w5HAGad3O5hP7YwapSLTjY/o94Nsn8vRPI3WJ7IArV71RFax/JSQfggbywmqRjuyc xWV48UlqVWuEo7fTqAswNF91kEX0xBezaujnn08trDKqn8uCyw9A5mXEwnbNc+4xyYHi pqGB9dkvOhseGonTmJa/x5YWmux1FWvwW3j3CiQJnyVM+cizPkdvlI9amUqGNWi2kOoD ZaCyu9qIwsh7Bdo3dwnrzQzifRpcAi1lbG111RbSLa9Fv/rZHNKriK3pSzu/ZXSCwmS2 5DIg== 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=9lIswzKPNSeYy3b+3J0+Qr4ijyM/cRbIOy599I7NNxI=; b=ZNVjlQAQgdupb9d1eZfW6ezchl0+JMmwGgHUbiTk7H3NEsyLNfh4BCvTfQQMRPNFIZ dU0+7+wEEzYD6t0092Z8OUWFbXdLYTeBiuFZ5rWVco3TigZ+hVAknqkhN2Ll7FIEtF4C mwlR0gypBJdFIa88EKWCwr7Qp2IO7jkd8fv5w6JI+xj47+CffjGZdMyWuCLvO4GUoyvp wyggVp9WqjWjtzdKOmTWlRUpT7GZQTdVJCbzBk9eKhYAnWgp+wO+mLLgRuwRwCwbTFSa IEov5dEGq0aY4GKboSQDDNBL5zKLASp31QqRMJFh1p+GzoFD1Su5wCC2QuJse3wXZfHY yICQ== X-Gm-Message-State: APjAAAUyR+rDUs5lp7OfJ5EyH1suYuJDt+BfjfwRPlXLU8nssQ2eWj6m zmGfMGOIepWaWadbmfeoZarUTqON X-Google-Smtp-Source: APXvYqwKEx1BKCqidvzXP+qWtqVC5zu2bRwOpwaMzmqqNCDYt+W/A8qRUZvnXXpQsgBC6Hn+ngli5A== X-Received: by 2002:adf:dcc6:: with SMTP id x6mr2423572wrm.81.1570620463199; Wed, 09 Oct 2019 04:27:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:42 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:51 +0200 Message-Id: <20191009112656.21232-5-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 4/9] package/libyang: 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 LibYANG processes YIN and YANG files. It's a dependency of sysrepo which is a dependency of Netopeer, a NETCONF/YANG server. Signed-off-by: Heiko Thiery --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/libyang/Config.in | 13 +++++++++++++ package/libyang/libyang.hash | 2 ++ package/libyang/libyang.mk | 25 +++++++++++++++++++++++++ 5 files changed, 44 insertions(+) create mode 100644 package/libyang/Config.in create mode 100644 package/libyang/libyang.hash create mode 100644 package/libyang/libyang.mk diff --git a/DEVELOPERS b/DEVELOPERS index 05f33eb2c3..3a7b5f3bbc 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1038,6 +1038,9 @@ F: package/python-markdown/ F: package/python-remi/ F: package/python-sip/ +N: Heiko Thiery +F: package/libyang/ + N: Henrique Camargo F: package/json-glib/ diff --git a/package/Config.in b/package/Config.in index e84624ccdf..ca3d4d5d33 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1641,6 +1641,7 @@ menu "Networking" source "package/libvncserver/Config.in" source "package/libwebsock/Config.in" source "package/libwebsockets/Config.in" + source "package/libyang/Config.in" source "package/lksctp-tools/Config.in" source "package/mongoose/Config.in" source "package/nanomsg/Config.in" diff --git a/package/libyang/Config.in b/package/libyang/Config.in new file mode 100644 index 0000000000..ebe51ff099 --- /dev/null +++ b/package/libyang/Config.in @@ -0,0 +1,13 @@ +config BR2_PACKAGE_LIBYANG + bool "libyang" + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_PCRE + select BR2_PACKAGE_PCRE_UCP + help + Libyang is YANG data modeling language parser and toolkit + written (and providing API) in C. + + https://github.com/CESNET/libyang + +comment "libyang needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS diff --git a/package/libyang/libyang.hash b/package/libyang/libyang.hash new file mode 100644 index 0000000000..4989873c8c --- /dev/null +++ b/package/libyang/libyang.hash @@ -0,0 +1,2 @@ +sha256 351f712433d50494aad153bfd4aa92ff50299058428620eabddb7a41d781e756 libyang-v1.0-r3.tar.gz +sha256 f942fe693e03e4e3ff67a351c00dc8f468a042e0d7273b0aa6bc53060b568112 LICENSE diff --git a/package/libyang/libyang.mk b/package/libyang/libyang.mk new file mode 100644 index 0000000000..a120f51293 --- /dev/null +++ b/package/libyang/libyang.mk @@ -0,0 +1,25 @@ +################################################################################ +# +# libyang +# +################################################################################ + +LIBYANG_VERSION = v1.0-r3 +LIBYANG_SITE = $(call github,CESNET,libyang,$(LIBYANG_VERSION)) +LIBYANG_LICENSE = BSD-3-Clause +LIBYANG_LICENSE_FILES = LICENSE +LIBYANG_INSTALL_STAGING = YES +LIBYANG_SUPPORTS_IN_SOURCE_BUILD = NO +LIBYANG_DEPENDENCIES = pcre +HOST_LIBYANG_DEPENDENCIES = host-pcre + +LIBYANG_CONF_OPTS = \ + -DENABLE_VALGRIND_TESTS=OFF \ + -DGEN_PYTHON_BINDINGS=OFF + +HOST_LIBYANG_CONF_OPTS = \ + -DENABLE_VALGRIND_TESTS=OFF \ + -DGEN_PYTHON_BINDINGS=OFF + +$(eval $(cmake-package)) +$(eval $(host-cmake-package)) From patchwork Wed Oct 9 11:26:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173759 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="bCs1JSFW"; 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 46pBlv1dC8z9s7T for ; Wed, 9 Oct 2019 22:27:55 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BC440882F0; Wed, 9 Oct 2019 11:27:53 +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 QxS0EV+nEmOt; Wed, 9 Oct 2019 11:27:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4A141882F3; Wed, 9 Oct 2019 11:27:51 +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 BA62A1BF853 for ; Wed, 9 Oct 2019 11:27:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B4BBC23039 for ; Wed, 9 Oct 2019 11:27:49 +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 lDx3sl3jrLmA for ; Wed, 9 Oct 2019 11:27:48 +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 silver.osuosl.org (Postfix) with ESMTPS id C589D22EE6 for ; Wed, 9 Oct 2019 11:27:47 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id y19so2459268wrd.3 for ; Wed, 09 Oct 2019 04:27:47 -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=zj1mnlArHzMkA53lru3UmPDIGVOnFT9g3oOMbJxQZ7Q=; b=bCs1JSFW8s1+QwxGiyblBWDvOe2sb63Za0PNklUDmRAepxnGkGfDVuMZvnUFVBCOWr wglO0yw2KcEHdtBOig9cSnLrQkqoLYzO3nebxhrCW6cuqO7kVdqBvkS2UZ4MMp13i7w3 TwPShF3Bac/DwGvZw/JWmkfKW4K3uAzDYRG0KnCoFgQ4nFrJhMlktMUbQc8OWP9FRgg2 MKIxtN45APlhcHnO5/XNlEv+uMiTxeXYtuG2xTSNrqITn/dmSGnoW4YRDDp8AndvRZDM EYzaoYzGj62YhqdFv1CyVv9JCrKS4EJHEv+FKlO1gYFbwpE05W0bcd9whr5uhBcNnZqj vdJw== 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=zj1mnlArHzMkA53lru3UmPDIGVOnFT9g3oOMbJxQZ7Q=; b=k5NCimuDP94L3wYV+3UlMsd06Adn14rpbHXW/bm+zlSRTRcnodSs/Y/JTdsSQUjb7S zQh73jW6JXjp+7a8TVc8bkdyNWGdgkHxJb0cS0DGXWj74u7gz9xxANzN0pRVc5xSiZwc bFEfv7AD30guMDJ/bALQ0ossZ4zOX7IAyT7MI1b22i5MEI+7SoUyCLFJPE0lZqeiRumN 9lPFJ/78h1XxcCbFRAJKfrqEWKwOczUni/reABxprvynCmr82FrBA5ONqhhsOkD9IoJP jiIRC3Ahkl7MHzSsIll1gyEEAg5yRDph52cueQ/cEcAYjjg3wWJr777ufeUs5VM/dnht 8tqQ== X-Gm-Message-State: APjAAAUSSaP+eW3BbTqwIC2V+U6nctIvervFHH7BFk3zIHqw5xmtnPts 6eNCiGNK8sUkrEHlcgtlg0GNzP7f X-Google-Smtp-Source: APXvYqzIkzBfq25v9+iAwHnKGVVCJWDFAOqefhzzdjrKjXA/jlA21PdMeEG9Zv1d2HR3pp2D/dpQgw== X-Received: by 2002:adf:ec84:: with SMTP id z4mr2483234wrn.254.1570620465889; Wed, 09 Oct 2019 04:27:45 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:45 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:52 +0200 Message-Id: <20191009112656.21232-6-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 5/9] package/libnetconf2: 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 libnetconf2 is a NETCONF library in C intended for building NETCONF clients and servers. Signed-off-by: Heiko Thiery --- DEVELOPERS | 1 + package/Config.in | 1 + .../0001-Add-support-for-musl-libc.patch | 65 +++++++++++++++++++ package/libnetconf2/Config.in | 37 +++++++++++ package/libnetconf2/libnetconf2.hash | 2 + package/libnetconf2/libnetconf2.mk | 52 +++++++++++++++ 6 files changed, 158 insertions(+) create mode 100644 package/libnetconf2/0001-Add-support-for-musl-libc.patch create mode 100644 package/libnetconf2/Config.in create mode 100644 package/libnetconf2/libnetconf2.hash create mode 100644 package/libnetconf2/libnetconf2.mk diff --git a/DEVELOPERS b/DEVELOPERS index 3a7b5f3bbc..56b92cf82a 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1039,6 +1039,7 @@ F: package/python-remi/ F: package/python-sip/ N: Heiko Thiery +F: package/libnetconf2/ F: package/libyang/ N: Henrique Camargo diff --git a/package/Config.in b/package/Config.in index ca3d4d5d33..c091ad2bd8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1608,6 +1608,7 @@ menu "Networking" source "package/libnatpmp/Config.in" source "package/libndp/Config.in" source "package/libnet/Config.in" + source "package/libnetconf2/Config.in" source "package/libnetfilter_acct/Config.in" source "package/libnetfilter_conntrack/Config.in" source "package/libnetfilter_cthelper/Config.in" diff --git a/package/libnetconf2/0001-Add-support-for-musl-libc.patch b/package/libnetconf2/0001-Add-support-for-musl-libc.patch new file mode 100644 index 0000000000..44023a391d --- /dev/null +++ b/package/libnetconf2/0001-Add-support-for-musl-libc.patch @@ -0,0 +1,65 @@ +From 153fe40bd60499677e825e66501e8601536e0323 Mon Sep 17 00:00:00 2001 +From: Rosen Penev +Date: Mon, 15 Jul 2019 18:15:28 -0700 +Subject: [PATCH] Add support for musl libc + +musl does not support pthread_rwlockattr_setkind_np. Don't use it if it is +not available. + +Patch comes from upstream commit: +https://github.com/CESNET/libnetconf2/commit/153fe40bd60499677e825e66501e8601536e0323 + +Signed-of-by: Heiko Thiery +--- + CMakeLists.txt | 1 + + src/config.h.in | 3 +++ + src/session_server.c | 2 ++ + 3 files changed, 6 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 624b8c8..c05cd03 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -176,6 +176,7 @@ target_link_libraries(netconf2 ${CMAKE_THREAD_LIBS_INIT}) + set(CMAKE_REQUIRED_LIBRARIES pthread) + check_include_file(stdatomic.h HAVE_STDATOMIC) + check_function_exists(pthread_mutex_timedlock HAVE_PTHREAD_MUTEX_TIMEDLOCK) ++check_function_exists(pthread_rwlockattr_setkind_np HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP) + + # dependencies - openssl + if(ENABLE_TLS OR ENABLE_DNSSEC OR ENABLE_SSH) +diff --git a/src/config.h.in b/src/config.h.in +index 96d33c5..30dd8a3 100644 +--- a/src/config.h.in ++++ b/src/config.h.in +@@ -73,4 +73,7 @@ + */ + #define NC_PS_QUEUE_SIZE @MAX_PSPOLL_THREAD_COUNT@ + ++/* Portability feature-check macros. */ ++#cmakedefine HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP ++ + #endif /* NC_CONFIG_H_ */ +diff --git a/src/session_server.c b/src/session_server.c +index 636b1a2..3b747ed 100644 +--- a/src/session_server.c ++++ b/src/session_server.c +@@ -560,6 +560,7 @@ nc_server_init(struct ly_ctx *ctx) + errno=0; + + if (pthread_rwlockattr_init(&attr) == 0) { ++#if defined(HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP) + if (pthread_rwlockattr_setkind_np(&attr, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP) == 0) { + if (pthread_rwlock_init(&server_opts.endpt_lock, &attr) != 0) { + ERR("%s: failed to init rwlock(%s).", __FUNCTION__, strerror(errno)); +@@ -570,6 +571,7 @@ nc_server_init(struct ly_ctx *ctx) + } else { + ERR("%s: failed set attribute (%s).", __FUNCTION__, strerror(errno)); + } ++#endif + pthread_rwlockattr_destroy(&attr); + } else { + ERR("%s: failed init attribute (%s).", __FUNCTION__, strerror(errno)); +-- +2.20.1 + diff --git a/package/libnetconf2/Config.in b/package/libnetconf2/Config.in new file mode 100644 index 0000000000..986e49fac5 --- /dev/null +++ b/package/libnetconf2/Config.in @@ -0,0 +1,37 @@ +config BR2_PACKAGE_LIBNETCONF2 + bool "libnetconf2" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + depends on BR2_USE_MMU + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_LIBSSH + select BR2_PACKAGE_LIBSSH_SERVER + help + libnetconf2 is a NETCONF library in C intended for building + NETCONF clients and servers. + + https://github.com/CESNET/libnetconf2 + +config BR2_PACKAGE_LIBNETCONF2_SSH + bool + help + SSH support for libnetconf2 + +config BR2_PACKAGE_LIBNETCONF2_TLS + bool + help + TLS support for libnetconf2 + +config BR2_PACKAGE_HOST_LIBNETCONF2_SSH + bool + help + SSH support for host-libnetconf2 + +config BR2_PACKAGE_HOST_LIBNETCONF2_TLS + bool + help + TLS support for host-libnetconf2 + +comment "libnetconf2 needs a toolchain w/ threads, dynamic libraray" + depends on BR2_USE_MMU + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/libnetconf2/libnetconf2.hash b/package/libnetconf2/libnetconf2.hash new file mode 100644 index 0000000000..c6d1f5185d --- /dev/null +++ b/package/libnetconf2/libnetconf2.hash @@ -0,0 +1,2 @@ +sha256 760061fb1c1fe87a2a068d5a9e5affcef280044c5940ef344854e9ea7ec26452 libnetconf2-v0.12-r2.tar.gz +sha256 085122ea91161812dda9cd2f42d8c50ecc3a48cc1a4f15044d86cfc5aa887577 LICENSE diff --git a/package/libnetconf2/libnetconf2.mk b/package/libnetconf2/libnetconf2.mk new file mode 100644 index 0000000000..0b44d8e44d --- /dev/null +++ b/package/libnetconf2/libnetconf2.mk @@ -0,0 +1,52 @@ +################################################################################ +# +# libnetconf2 +# +################################################################################ + +LIBNETCONF2_VERSION = v0.12-r2 +LIBNETCONF2_SITE = $(call github,CESNET,libnetconf2,$(LIBNETCONF2_VERSION)) +LIBNETCONF2_INSTALL_STAGING = YES +LIBNETCONF2_LICENSE = BSD-3-Clause +LIBNETCONF2_LICENSE_FILES = LICENSE +LIBNETCONF2_DEPENDENCIES = libyang +HOST_LIBNETCONF2_DEPENDENCIES = host-libyang + +LIBNETCONF2_CONF_OPTS = \ + -DENABLE_BUILD_TESTS=OFF \ + -DENABLE_VALGRIND_TESTS=OFF + +ifeq ($(BR2_PACKAGE_LIBNETCONF2_SSH), y) +LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=ON +LIBNETCONF2_DEPENDENCIES += libssh +else +LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=OFF +endif + +ifeq ($(BR2_PACKAGE_LIBNETCONF2_TLS), y) +LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=ON +LIBNETCONF2_DEPENDENCIES += openssl +else +LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=OFF +endif + +HOST_LIBNETCONF2_CONF_OPTS = \ + -DENABLE_BUILD_TESTS=OFF \ + -DENABLE_VALGRIND_TESTS=OFF + +ifeq ($(BR2_PACKAGE_HOST_LIBNETCONF2_SSH), y) +HOST_LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=ON +HOST_LIBNETCONF2_DEPENDENCIES += host-libssh +else +HOST_LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=OFF +endif + +ifeq ($(BR2_PACKAGE_HOST_LIBNETCONF2_TLS), y) +HOST_LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=ON +HOST_LIBNETCONF2_DEPENDENCIES += host-openssl +else +HOST_LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=OFF +endif + +$(eval $(cmake-package)) +$(eval $(host-cmake-package)) From patchwork Wed Oct 9 11:26:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173760 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.137; helo=fraxinus.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="a51qNYiU"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46pBm01DJcz9s7T for ; Wed, 9 Oct 2019 22:28:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9BEF586918; Wed, 9 Oct 2019 11:27:58 +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 Wu5Sk6UmO25L; Wed, 9 Oct 2019 11:27:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3B7268690E; Wed, 9 Oct 2019 11:27:56 +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 924181BF9B5 for ; Wed, 9 Oct 2019 11:27:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 165258830D for ; Wed, 9 Oct 2019 11:27:53 +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 RbGhU4icsJeC for ; Wed, 9 Oct 2019 11:27:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by hemlock.osuosl.org (Postfix) with ESMTPS id C3CF0882E7 for ; Wed, 9 Oct 2019 11:27:49 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id n14so2425519wrw.9 for ; Wed, 09 Oct 2019 04:27:49 -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=YatZo8s6OBgSi+OTIIVp+EnfaX0CXQV3JAJR5e9XLuE=; b=a51qNYiUEkF0eAcVyGIr+T0HYVd5WK2y2WBu6FWCvr5xgbVLSkEPwDkFB3XV03R6rn pftoUUjh5LUxLQruJKL+JdSymmBkAoX2Rej82DscWn7Au+vOqR4/WCXCawz4rZUMFJRX BTAqzkczzPLQ9788vr7E+mXrLviHyHjJAs8PTx7aMTOCEDsxKQ2StsHWEnIiholcHVAM G49EGJjDDCCRAiXY/SpE6sZAUYDotlos1fGSsx4ugtBrqBox3DXSS2FDF/n4t74sNCJU TyquEsT5cZ/+hSNmpkfqcvPdE6q2RYk0BlieESFwRt1IMjCFRXQjA+/C/nJGMgaWRWCp 5A+w== 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=YatZo8s6OBgSi+OTIIVp+EnfaX0CXQV3JAJR5e9XLuE=; b=J57AHneJXllItWxc+3t88fgPsWeL0LhKMB9zm/zCIgnKodBVjzIOMc2KNVGle1hTUm lpwFDhjTf5vS7rMM83hIRVRYrSFjAGGM1qitNkmHv6Nf3XFClBHmgU4waEOeKA5XWCKw r8sxhyK7p8eDHfWx7EDUxelgSo77yIMdLOuCx5D0NcG5fuK5UWl5fR22SxFy+MTo+Jdm F9zMD+rtZEYTDDbwKw1tiPWlWWPEOhoX69dS7gO5Y86asxOi35s+9eweKGCTXMDMYYcM c7Bc2dcQgxRIOxP9ltKx8ZQAK14wxcUlaFOQgUMSzYVxx20Z49Q8copogNZ423QjK3ij HXuA== X-Gm-Message-State: APjAAAXnKZaYridZRAeT6wnHHq7BUykOLQYunpZFlY8N9SQwUUNDEcvW sb5wbmATgqLK2orhLCP6t0WA+RUV X-Google-Smtp-Source: APXvYqyxVVWul4Aex4+FM5BNpNLJFoqaN3XWbdeD6Ynj21zcdgj2S8B0OpQvYtziVRdDGw/a/xVsTg== X-Received: by 2002:adf:ed0a:: with SMTP id a10mr2769019wro.27.1570620467798; Wed, 09 Oct 2019 04:27:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:47 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:53 +0200 Message-Id: <20191009112656.21232-7-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 6/9] package/sysrepo: 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 sysrepo is a YANG-based configuration and operational state data store for Unix/Linux applications. It is a dependency of Netopeer, a NETCONF server. Signed-off-by: Heiko Thiery --- DEVELOPERS | 1 + package/Config.in | 1 + package/sysrepo/Config.in | 27 ++++++++++++++++++++++++++ package/sysrepo/sysrepo.hash | 2 ++ package/sysrepo/sysrepo.mk | 37 ++++++++++++++++++++++++++++++++++++ 5 files changed, 68 insertions(+) create mode 100644 package/sysrepo/Config.in create mode 100644 package/sysrepo/sysrepo.hash create mode 100644 package/sysrepo/sysrepo.mk diff --git a/DEVELOPERS b/DEVELOPERS index 56b92cf82a..143b277dc4 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1041,6 +1041,7 @@ F: package/python-sip/ N: Heiko Thiery F: package/libnetconf2/ F: package/libyang/ +F: package/sysrepo/ N: Henrique Camargo F: package/json-glib/ diff --git a/package/Config.in b/package/Config.in index c091ad2bd8..80bc83e8cd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1668,6 +1668,7 @@ menu "Networking" source "package/slirp/Config.in" source "package/snmppp/Config.in" source "package/sofia-sip/Config.in" + source "package/sysrepo/Config.in" source "package/thrift/Config.in" source "package/usbredir/Config.in" source "package/wampcc/Config.in" diff --git a/package/sysrepo/Config.in b/package/sysrepo/Config.in new file mode 100644 index 0000000000..97cdd95800 --- /dev/null +++ b/package/sysrepo/Config.in @@ -0,0 +1,27 @@ +config BR2_PACKAGE_SYSREPO + bool "sysrepo" + depends on BR2_USE_MMU # libnetconf2 + depends on !BR2_STATIC_LIBS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86" # host-protbuf + depends on BR2_HOST_GCC_AT_LEAST_4_8 # host-protobuf + select BR2_PACKAGE_LIBEV + select BR2_PACKAGE_LIBNETCONF2 + select BR2_PACKAGE_LIBNETCONF2_SSH + select BR2_PACKAGE_LIBNETCONF2_TLS + select BR2_PACKAGE_LIBAVL + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_PROTOBUF_C + select BR2_PACKAGE_PCRE + help + Sysrepo is an YANG-based configuration and operational state + data store for Unix/Linux applications. + + https://github.com/sysrepo + +comment "sysrepo needs a toolchain w/ C++, threads, dynamic libraray, host gcc >= 4.8" + depends on BR2_USE_MMU + depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \ + || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_HOST_GCC_AT_LEAST_4_8 + depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86" diff --git a/package/sysrepo/sysrepo.hash b/package/sysrepo/sysrepo.hash new file mode 100644 index 0000000000..39ec70a2f6 --- /dev/null +++ b/package/sysrepo/sysrepo.hash @@ -0,0 +1,2 @@ +sha256 d3066c1776a6727b96bbb3517eb646d0bb6037e8e1addcbe873cae590493843e sysrepo-v0.7.8.tar.gz +sha256 28a773bfffa828ec38c030fc8ace5f3aeb90926ec1309bbd135441c4387ce3cd LICENSE diff --git a/package/sysrepo/sysrepo.mk b/package/sysrepo/sysrepo.mk new file mode 100644 index 0000000000..ea50b1af7e --- /dev/null +++ b/package/sysrepo/sysrepo.mk @@ -0,0 +1,37 @@ +################################################################################ +# +# sysrepo +# +################################################################################ + +SYSREPO_VERSION = v0.7.8 +SYSREPO_SITE = $(call github,sysrepo,sysrepo,$(SYSREPO_VERSION)) +SYSREPO_INSTALL_STAGING = YES +SYSREPO_LICENSE = Apache-2.0 +SYSREPO_LICENSE_FILES = LICENSE +SYSREPO_DEPENDENCIES += libev libnetconf2 libavl libyang pcre protobuf-c host-sysrepo +HOST_SYSREPO_DEPENDENCIES += host-libev host-libnetconf2 host-libavl host-libyang host-pcre host-protobuf-c + +SYSREPO_CONF_OPTS += \ + -DGEN_PYTHON2_TESTS=OFF \ + -DENABLE_TESTS=OFF \ + -DCALL_SYSREPOCTL_BIN=$(HOST_DIR)/bin/sysrepoctl \ + -DCALL_SYSREPOCFG_BIN=$(HOST_DIR)/bin/sysrepocfg + +# On ARM, this is needed to prevent unaligned memory access with an optimized +# build .. https://github.com/sysrepo/sysrepo/issues/947 +SYSREPO_CONF_OPTS += -DUSE_SR_MEM_MGMT=OFF + +ifeq ($(BR2_INIT_SYSTEMD),y) +SYSREPO_CONF_OPTS += -DWITH_SYSTEMD=ON +endif + +HOST_SYSREPO_CONF_OPTS += \ + -DGEN_PYTHON2_TESTS=OFF \ + -DENABLE_TESTS=OFF \ + -DCALL_TARGET_BINS_DIRECTLY=OFF \ + -DREPOSITORY_LOC=$(BASE_TARGET_DIR)/etc/sysrepo \ + -DSUBSCRIPTIONS_SOCKET_DIR=$(HOST_DIR)/var/run/sysrepo-subscriptions + +$(eval $(cmake-package)) +$(eval $(host-cmake-package)) 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)) 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)) From patchwork Wed Oct 9 11:26:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1173763 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="KM8PMhaM"; 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 46pBm75h2Yz9s7T for ; Wed, 9 Oct 2019 22:28:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 32E7C22FEE; Wed, 9 Oct 2019 11:28:06 +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 LTIAtEgXWNzs; Wed, 9 Oct 2019 11:28:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C131E23018; Wed, 9 Oct 2019 11:28:00 +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 C33881BF853 for ; Wed, 9 Oct 2019 11:27:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BFAF322EE6 for ; Wed, 9 Oct 2019 11:27:55 +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 K10EDlt-kieA for ; Wed, 9 Oct 2019 11:27:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by silver.osuosl.org (Postfix) with ESMTPS id 9085422F26 for ; Wed, 9 Oct 2019 11:27:54 +0000 (UTC) Received: by mail-wm1-f45.google.com with SMTP id r19so2120470wmh.2 for ; Wed, 09 Oct 2019 04:27:54 -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=Vhn20GNeju4e+xOVBWOaH9WZRFE8iqIwdkb0ES/091M=; b=KM8PMhaMTJn7tmBigiMj2uszHpmlFEleAwHqJCmvGTL6Mq4hEhSHVHQv1WwYY2G8VX Sp5EgHwpLvZZAmjkfPtnewBKZLBonx7Ld0LaFoqm3318gYS0ANq0ihhVBu/i63SNLYpR CQiLBp28ntlXDcyMp0EnezOus1+F3EiYHYGexhecHc08AFUYka+5/+PenSFOVKnrf9P1 NOpGtW+BvB+Rpvyk5JxQVWWYtTP2SMFUuV0OwMfJ+jil+HioVHwCpN6MS/g55pys2rEN RKCfsZfoW00ZRj4V6Dbw9PAd5hMxAcxC9h9RsRG9R1rZhWFA9YQms1ui/jy0tGw+/YYl vA+A== 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=Vhn20GNeju4e+xOVBWOaH9WZRFE8iqIwdkb0ES/091M=; b=Xr54h40snBEFNiOpBPdUCIuwy36WRuDlaJcuYqIrVQOFEug12rWDlV0dvWZjL0SvUX /00gPhLfc/bmisOFATcDFrtYREnDNdBt/tnIs1B38ZMYh4zCvLyKfVHZMV+YIzlRx5M0 moJkctOtjVUPAoLuYi6oXLaE6rx5qwH1cijyHSkrj/01M44XPTe740Em7PLSobqw7DNU iw6FKJgFfvMF3sjwdJmeJl8BlwYI86tlPm/AcNNNzVkP0ZAm8g5OXyG39KUP6N5hvimn +rscM/YfqZppeu3dUaF5vXKRe5nQaiVlcfRTSyctR9mTGYvUrlyFt9ayes0OoseCP28k 9qQA== X-Gm-Message-State: APjAAAUKCyhnWuPaAo04mKjQL+YKEJP/faBJ83xqqyMDx2U7y8wOM2zF m70gPSXKFmEDRf6qdWSEhRdbut77 X-Google-Smtp-Source: APXvYqx61J+dnBjeOz0oqz3imwcxUy5OzuFgChuOQyZBjs/SsJTSPtxrFvSXgol3nXjueUbTmZz6IQ== X-Received: by 2002:a1c:1d41:: with SMTP id d62mr2338720wmd.143.1570620472708; Wed, 09 Oct 2019 04:27:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 04:27:51 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Wed, 9 Oct 2019 13:26:56 +0200 Message-Id: <20191009112656.21232-10-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 9/9] 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@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 CLI - 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 | 17 +++++++++++++++++ package/netopeer2-cli/netopeer2-cli.hash | 2 ++ package/netopeer2-cli/netopeer2-cli.mk | 16 ++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 package/netopeer2-cli/Config.in create mode 100644 package/netopeer2-cli/netopeer2-cli.hash create mode 100644 package/netopeer2-cli/netopeer2-cli.mk diff --git a/DEVELOPERS b/DEVELOPERS index 6fe5544151..f8b9648fdc 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-cli/ F: package/netopeer2-keystored/ F: package/netopeer2-server/ F: package/sysrepo/ diff --git a/package/Config.in b/package/Config.in index a38569e12c..21aa793276 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-cli/Config.in" source "package/netopeer2-keystored/Config.in" source "package/netopeer2-server/Config.in" source "package/nghttp2/Config.in" diff --git a/package/netopeer2-cli/Config.in b/package/netopeer2-cli/Config.in new file mode 100644 index 0000000000..eb771390be --- /dev/null +++ b/package/netopeer2-cli/Config.in @@ -0,0 +1,17 @@ +config BR2_PACKAGE_NETOPEER2_CLI + bool "netopeer2cli" + 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 + help + Netopeer2 CLI is a simple command line interface to + connect to a NETCONF server (device). + + 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 100644 index 0000000000..031b0265c2 --- /dev/null +++ b/package/netopeer2-cli/netopeer2-cli.hash @@ -0,0 +1,2 @@ +sha256 59688271be4fecbbee671fc7eb3dc0538b13b4baab53e923e26eaeb33e6f7ec0 netopeer2-cli-v0.7-r2.tar.gz +sha256 932b75a8610a5c58e0fe0f70f8e4ebbcf3a2392acc16a88e95aebcdbdb9245e0 LICENSE diff --git a/package/netopeer2-cli/netopeer2-cli.mk b/package/netopeer2-cli/netopeer2-cli.mk new file mode 100644 index 0000000000..75192cc935 --- /dev/null +++ b/package/netopeer2-cli/netopeer2-cli.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# netopeer2-cli +# +################################################################################ + +NETOPEER2_CLI_VERSION = v0.7-r2 +NETOPEER2_CLI_SITE = $(call github,CESNET,Netopeer2,$(NETOPEER2_CLI_VERSION)) +NETOPEER2_CLI_LICENSE = BSD-3-Clause +NETOPEER2_CLI_LICENSE_FILES = LICENSE +NETOPEER2_CLI_SUBDIR = cli +NETOPEER2_CLI_INSTALL_STAGING = YES +NETOPEER2_CLI_DEPENDENCIES += libyang +NETOPEER2_CLI_DEPENDENCIES += sysrepo + +$(eval $(cmake-package))