From patchwork Fri Oct 11 12:40:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175139 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="fzkxTWYW"; 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 46qSJW1bFtz9sCJ for ; Fri, 11 Oct 2019 23:42:02 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C7B0186EA2; Fri, 11 Oct 2019 12:41:59 +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 ZddpcAHDmy1X; Fri, 11 Oct 2019 12:41:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 40ABA86C77; Fri, 11 Oct 2019 12:41:59 +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 CD7771BF292 for ; Fri, 11 Oct 2019 12:41:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CA8B486C77 for ; Fri, 11 Oct 2019 12:41: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 55hdG7fVYYYw for ; Fri, 11 Oct 2019 12:41:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by fraxinus.osuosl.org (Postfix) with ESMTPS id A12A086BF2 for ; Fri, 11 Oct 2019 12:41:55 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id 5so10291859wmg.0 for ; Fri, 11 Oct 2019 05:41:55 -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=fzkxTWYW9K+ljX9cU1g60p0MnD4zkJ9eax1c14muTmx2ADbeB7OLcRvjwMNeE/AmIL NGvbzxsqikEvAATpbb1xc/ioyR9uH4sADSBJIT4n6fJf7VEM0RPjBKFsJ7S5kdioBmAO wOrUw6LNNz1g+L/X6kTBV4Zs1BRamxLBWHwE01n6hXR180mNd7zouz4Z7vcct6icLR23 vpLGSnnVYsALUeI4J0GtYvDjNwEiUNbv6fU/weRInOJg7ch2d3dXRK52M1oCY3hODWWP gfrkGJLnlk0iTzzvTeq+SEXlAO1GEfAx27q+da/1sus0JaLH7z3+T9ACkzx+i8ZNa9wk kngg== 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=UNlkRVIJxR9Ry+D4Monne46ueYsGo8WjGE5WbBdz89s6s3F6tPU7kfF1AhT1ph/sqJ bG8Uh+XI6DpJp3NsrWK27hCvgOFSS4hpPPI0l5gUnmtLq4f3sL+G2WptwyqXkEmpsLRM niYUKnd2xVO+uyvPoAQCzU/0YT3DgzAmq9ociu4oV0nH3DK/tqe3v2CYddQSM0LvTaB9 FwaYKq5Y6PJ5OrXBSfKwk3xpySgRFYQnNkWMtj8uMjR22VnxuWc1GcfJu3M/TbDOdJqW KyCIIUazr+f6bAwYTuplmcBn2a8ln1tk1C/pmoaBjqTn+Go+yKCvHymp/q39fGr+lgcY E7EQ== X-Gm-Message-State: APjAAAWIoFYfyc8z/spra1gObWadJymAsRDorMCL43BkzeZ72CPykak8 CuXTicriLpmMjpKNkiRRf7L8NrdB1VM= X-Google-Smtp-Source: APXvYqzRfZfHb2+tN/LhvZvDoafh9rLzfTnGI/tjvVHVxlmSiiLbU3APuM0L35tVCSTN4Fi/jn/HnA== X-Received: by 2002:a7b:ca4e:: with SMTP id m14mr3245028wml.98.1570797713700; Fri, 11 Oct 2019 05:41:53 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.41.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:41:53 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:39 +0200 Message-Id: <20191011124131.28246-2-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery 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 Fri Oct 11 12:40:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175141 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.138; helo=whitealder.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="bicEvbhA"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46qSJc2f2hz9sP4 for ; Fri, 11 Oct 2019 23:42:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9364088117; Fri, 11 Oct 2019 12:42:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KlCwrm4pJim5; Fri, 11 Oct 2019 12:42:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1ACA8880D2; Fri, 11 Oct 2019 12:42:02 +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 0DDE81BF292 for ; Fri, 11 Oct 2019 12:42:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 05F2F86C77 for ; Fri, 11 Oct 2019 12:42:00 +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 kPX-xGuR-j6z for ; Fri, 11 Oct 2019 12:41:58 +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 fraxinus.osuosl.org (Postfix) with ESMTPS id 381DF86C56 for ; Fri, 11 Oct 2019 12:41:57 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id z9so11755736wrl.11 for ; Fri, 11 Oct 2019 05:41:57 -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=bicEvbhAxicWWqVE1Uan6vRsGTLwpIwUio4WsJqLEis6VeVFxh6zmf7dEuFNXfv1x/ 9puFV4HN17ZoeUFvD+Dq7oeAOyHFpWPMHoYAh3Uq5QH49gvtlmWbJAiwiTtyipoVW9NR FBi1Ilchw/NgGM2vJf7KKIfwa0prEByjNQtnQAKSTKBFJ+MI6521jyRfgbMtjbagm9U2 tuBJ0aPdWjthNOvXAA1OWHJWtOAq74oiJfiRDEQtyt3KEh6aqcqGnHVOHP3DsAnOak2M 6owOl1g/B2g87Z0BMpUm7/zbkuOeoeqWmVWK0FEnIZdoM/SS+8tmxyyFAWwBlMCuucuL 6TmA== 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=PnNkQJppOSzTE+27/K6Z9ImARa/bKxI9BEqlMRmwrMXNXGPfFpkbU8Mw9GrVlFeIuF 6T1EPX0fkUiuPCdeXJ9GtrntDRCPjdi9ljvpP3ygiAT3i5x0prSoitTqcd9vmOdfAhHM KyG/ZIYNk2TGEPM1bBP9FRLRYwHTcFtW2btVOKRQxyJ2OrSCeSSona4UjwxymHiTs0t/ cmUY1Lu5zST12np6lJpoc9zbLt0ySKxuvQgdJkAoe0oDbUcDjGViOWjVomH+m0zm6Zcr ilVUCCJX+EcDjWYdz7iNONuIKyLxUEvrv2ga5lGpogZNxtprLSBcbn2j+ES0MpCEDM4I Dj+w== X-Gm-Message-State: APjAAAVBMR7wWW746ufySjpeFjdnCQ3N3VB/v7wP4CGhadfZuNrYQ9bu ysj7gspd3bckpw0ozyVtuQfzZLv62BE= X-Google-Smtp-Source: APXvYqzMVL7Y0jsISmzs+Dyo6n2XzD2AiSJA+WnTrxzvecF+TLyagIilSB+ug9GU4CgyCY1newYGSQ== X-Received: by 2002:adf:f810:: with SMTP id s16mr3443719wrp.27.1570797715403; Fri, 11 Oct 2019 05:41:55 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.41.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:41:54 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:40 +0200 Message-Id: <20191011124131.28246-3-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, Scott Fan , heiko.thiery@gmail.com, jan.kundrat@cesnet.cz 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 Fri Oct 11 12:40:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175143 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="HrFmJHrk"; 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 46qSJf2q1Qz9sP6 for ; Fri, 11 Oct 2019 23:42:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 68BEA20372; Fri, 11 Oct 2019 12:42: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 pPgvWyWyHvLl; Fri, 11 Oct 2019 12:42:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1C16120415; Fri, 11 Oct 2019 12:42:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A663B1BF292 for ; Fri, 11 Oct 2019 12:42:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9C12C880ED for ; Fri, 11 Oct 2019 12:42:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Oqqe4gYO4xHY for ; Fri, 11 Oct 2019 12:41:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2D8858809E for ; Fri, 11 Oct 2019 12:41:59 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id y135so9361926wmc.1 for ; Fri, 11 Oct 2019 05:41:59 -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=l9LIqnctQou3GGSQBX9oZw9pmVC81Gpz98jNwkkUs2U=; b=HrFmJHrk9+XFlsKuwN5RuKnsU1l4Jytg1f84yLfL0V64gtq23Tz4Rr4UNzw0KSzMZw OhEzFIRxFWcQnGqDFZYSOuzUoqVUnH72XUnW61c9MdEWTJaxlkmZG7ViFFn7O7biVfQ1 4QfoBbJC6Q6o8rVoFfvrxhKyqj2rqK2hCe72YS4hvRLRhN08pZ+aEsonL/Cg56nOqR45 v2dUEho1btXQh9W1o6svbuNjWi5yCnZ/j4ddA7jOcMNWVsEVUH5hHOyaILSobYfNAk86 jki4ZKGovK2Wye8vV75jmOxCGBMxyADAFZ2So88geZx6ESwNgNjlkeRPS+KnWbldm2Ah WMEg== 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=l9LIqnctQou3GGSQBX9oZw9pmVC81Gpz98jNwkkUs2U=; b=rhynpqAOIFgwOqo/dqKyQOYCPJUkg5UPcYxozRCQF7XCsMPfA2KaXrOKJhXLXH8erE 7exVX0JfaNwlj6Q/KHXXZD2ovd+bJvo76t5CT0g7ljngN+/NaaIK/chYBnPlgFJTtfQq cLVmwjPd6mi09NcpfBjysK15y0IqugwofXYt6Pj7X4BQnIZY6vgkk6iEZRPRaYtrdcWI cV1LXS0potGRIFCxKKWdxCexaMie1EDotgnY/1DwjEvrhkQGnQAVdVBj88xAYVGynvCw 8gvbrO3CXAECgAVi1TAneurONsha+K6hqOGBJmjEN8ypepG6ItJ7TWWpWK0iAJCU1z6B oR3Q== X-Gm-Message-State: APjAAAWOQq3zeyCWKl6ePRS/i0EfJHEjMvOD9Vvr4bnunuxV+AfWPY7n mBC1/5nsPboNjKTwQaOxSDKMFz4Svko= X-Google-Smtp-Source: APXvYqxDQRY3qsd7O6c9mBv3Y4SfpaZM/hCTMS4mP0jJChISq80vF5DlJul0xZ5UThhnFZYH5wJmew== X-Received: by 2002:a7b:c395:: with SMTP id s21mr3281974wmj.114.1570797717311; Fri, 11 Oct 2019 05:41:57 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:41:56 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:41 +0200 Message-Id: <20191011124131.28246-4-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Heiko Thiery --- DEVELOPERS | 3 ++ 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 ++++++++++++++++++++++ 6 files changed, 114 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/DEVELOPERS b/DEVELOPERS index 7e4d7fa94a..e8ef69efc7 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1666,6 +1666,9 @@ F: package/python-pyzmq/ N: Michael Trimarchi F: package/python-spidev/ +N: Michael Walle +F: package/libavl/ + N: Michał Łyszczek F: board/altera/socrates_cyclone5/ F: board/pine64/rock64 diff --git a/package/Config.in b/package/Config.in index c3faa20d88..48a66ec7dd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1715,6 +1715,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..4d70f0cca9 --- /dev/null +++ b/package/libavl/libavl.hash @@ -0,0 +1,5 @@ +# From http://snapshot.debian.org/archive/debian/20160621T164030Z/pool/main/liba/libavl/libavl_0.3.5-4.dsc +sha256 4497b9e22cdd61ae2fa893b9d5fd6213dc306726d7c4be08c29e173622dca8a0 libavl_0.3.5.orig.tar.gz + +# Locally computed +sha256 767a9accfe3b110153b567983b98889469dfaae02899a632aeadbb81ad611293 COPYING diff --git a/package/libavl/libavl.mk b/package/libavl/libavl.mk new file mode 100644 index 0000000000..75ada32765 --- /dev/null +++ b/package/libavl/libavl.mk @@ -0,0 +1,43 @@ +################################################################################ +# +# libavl +# +################################################################################ + +LIBAVL_VERSION = 0.3.5 +LIBAVL_SITE = http://snapshot.debian.org/archive/debian/20050312T000000Z/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 = $(TARGET_CFLAGS) -fPIC +HOST_LIBAVL_CFLAGS = $(HOST_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=$(HOST_DIR) +endef + +$(eval $(generic-package)) +$(eval $(host-generic-package)) From patchwork Fri Oct 11 12:40:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175140 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="bv96ot+9"; 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 46qSJZ6Db3z9sCJ for ; Fri, 11 Oct 2019 23:42:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1C00886C77; Fri, 11 Oct 2019 12:42:05 +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 X5QY_CAPm-Ew; Fri, 11 Oct 2019 12:42:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 47BA386F01; Fri, 11 Oct 2019 12:42:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7F2411BF292 for ; Fri, 11 Oct 2019 12:42:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7B4798809E for ; Fri, 11 Oct 2019 12:42:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PLrFRa89m6AS for ; Fri, 11 Oct 2019 12:42:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4F060880D2 for ; Fri, 11 Oct 2019 12:42:00 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id i16so10265421wmd.3 for ; Fri, 11 Oct 2019 05:42:00 -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=q5Ulz6yqK6yue53hsOs4R0RccV6D/WA7XSlH288aL8I=; b=bv96ot+9T0eKhaAoM0Z2zsCGb6hx8mh0Ke5hKvUsN2+tLAB2EHpQxBo7e8mBrk9LYr RoBrDT47nt5B26dZipCiOYyDwJIuU9zrBxOpr0+nPh/9KlC/03wIDUgz6xA8Jj2ioVOu HIO5OecOG8aY7y6kl2yGaLxi2eSg+DUAb/w2pAZalEfbBLXKCL6W/5oeBePA9nnzGW35 364sOOWmjYJwbWBg54bjvUJNL7wIo1q9Dr2QfXHczyzVgnnQGdMj6xCM+VNS1Z+QBJBx L0aMPB4ny0Mysi52rR46KGysoxCLh/JeqsNnwc8gp7FYS8sLe2cuVkfVHNqXFh3vnOdG wH9Q== 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=q5Ulz6yqK6yue53hsOs4R0RccV6D/WA7XSlH288aL8I=; b=AeGFNFCfI5MWehembdGLw4DayiTYs2IOlAYFLKdwlSbOgGjT8gofpwb5EZp/vkocc5 hMIr2wyTZyGHG+BPq886IVSjOkBelOiSUyI3NWiRYL2jy0914xz/n0WbAtI75GkroLLG cAhMgXrK/K14bvF6LjWz2ltcdMPlHvzSzLX2n6iAtBXBJt7RmA6ymfRV4uPsAQVekYJP KgqdDkcSzg/yiyJT+man0G/g5Ifvy+9mpPCryt6PuCX4tpet7OkgoLf53uayEAttqSi6 gp3q5L+pncWVTAQXBA0w7EhfQ96o3u1iuW2i2816kHMe++egr7ne9vu0yr8SSJObN8N9 hD2Q== X-Gm-Message-State: APjAAAUh8INfEdIW4stpEx16X5vQ1Q8CnpzqMe5oEe1jPPfWUu1LTmCm EA/D3tWommqZe4KOtwTul37Xv/nKjOA= X-Google-Smtp-Source: APXvYqySfaPaW/X0Uhiid6XvKKLkIQT6gsv+wd6Gjj/uLT3w7JIYI7sJzDjHJrm3d/e6BaAog4pMXw== X-Received: by 2002:a1c:a9c8:: with SMTP id s191mr2373256wme.74.1570797718462; Fri, 11 Oct 2019 05:41:58 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:41:57 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:42 +0200 Message-Id: <20191011124131.28246-5-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery 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 e8ef69efc7..1d71a7db52 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1039,6 +1039,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 48a66ec7dd..0d73ead5b7 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1643,6 +1643,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 Fri Oct 11 12:40:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175142 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="Eu0e6+mc"; 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 46qSJf2q0Xz9sP4 for ; Fri, 11 Oct 2019 23:42:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4040086F22; Fri, 11 Oct 2019 12:42:08 +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 KoPpi35XbAFk; Fri, 11 Oct 2019 12:42:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2A04586F16; Fri, 11 Oct 2019 12:42:07 +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 36D691BF292 for ; Fri, 11 Oct 2019 12:42:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2DE3B86F01 for ; Fri, 11 Oct 2019 12:42:03 +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 QKoCDqHo-N4I for ; Fri, 11 Oct 2019 12:42:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 968FB86EB7 for ; Fri, 11 Oct 2019 12:42:01 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id 5so10292178wmg.0 for ; Fri, 11 Oct 2019 05:42:01 -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=XJmVhgQhY4RpwsuvcYPGqW/N9M86zzoYgIhn+5y+NZo=; b=Eu0e6+mcaYa8E5zCRJYCMoI7boKDeujoakKZXHQ11XC0mAdIwqPm3LVIIIQgpZNdkE wqzMv7Sqkad07R7H4cA8PeSQLx3fsitUuFaVA94UBQQqKL6JR3J7JFxuCwiYzpX0FryV XTEUA9lM6IpsCwrsSD1SCBMqnWBKsfvqCKg3Ew5yt4YbZakHHSU80hrTPVHDI+V83/pm fewhSEf4TGXtLnWEef8flWRJAAGlwVoS6HCPlFMSSEUF4NMoqoSLCeZ1tCvyWvjX0q+Y mUByDkt1ggb95rhqapLHsEzIfsfeolcF2DynXmfRo2w/OHQIdaoMhMP09aIKk5r7Wocp Rfuw== 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=XJmVhgQhY4RpwsuvcYPGqW/N9M86zzoYgIhn+5y+NZo=; b=EbT51M+cQ0NNA22nLFJoYCE1bwTuQbYUnulxo0bcgy99OCUU33BbY4uRVsXcQpAf/1 W8nKNv90HzRqiQ+HCyS7iDPJd41dlO0QhNBAE16boBQ94bMhJXeL+QgGnN0QkwjUZuHl pdei9XnKcftIa69hFXYEcSeqRLfnnTqVJbuzfzeLr85W+hxGs1AeBFdhTQOHOzeVT4Jb Dk5HXNM6Zc0n4PzkWCsFmSlOM4ztu3A3f6QIjBS7Lgj+TBFjKHmJCKBVkt06BAT2eK9x qv2lSu0k//c+qYmczDiSupAguMwj4ulPGYZhcnsS4Bh9m+QuqLYOtlAJuCaVDQm5ldxG ZK1g== X-Gm-Message-State: APjAAAUBNN4AuI/Junv58fGl7uP7ImuncA08lhTqqiUr8Wmt6Bpu4LJq F1eiV/dojrzgmXnribhHYIl89JgNNbk= X-Google-Smtp-Source: APXvYqz2VftZAfpauAs7z2W0BcFNTwAC6/C6tLgkntY4DzLuz0U/+vVYunxeNpcoyVdJw5sNASs37w== X-Received: by 2002:a1c:8157:: with SMTP id c84mr3044362wmd.56.1570797719639; Fri, 11 Oct 2019 05:41:59 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:41:59 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:43 +0200 Message-Id: <20191011124131.28246-6-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery 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 | 15 +++++ package/libnetconf2/libnetconf2.hash | 2 + package/libnetconf2/libnetconf2.mk | 40 ++++++++++++ 6 files changed, 124 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 1d71a7db52..da2c80056c 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1040,6 +1040,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 0d73ead5b7..bdc5b13051 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1610,6 +1610,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..0a735b5ed6 --- /dev/null +++ b/package/libnetconf2/Config.in @@ -0,0 +1,15 @@ +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 + help + libnetconf2 is a NETCONF library in C intended for building + NETCONF clients and servers. + + https://github.com/CESNET/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..c3999b3e29 --- /dev/null +++ b/package/libnetconf2/libnetconf2.mk @@ -0,0 +1,40 @@ +################################################################################ +# +# 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_LIBSSH_SERVER), y) +LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=ON +LIBNETCONF2_DEPENDENCIES += libssh +else +LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=OFF +endif + +ifeq ($(BR2_PACKAGE_OPENSSL), 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 \ + -DENABLE_SSH=OFF \ + -DENABLE_TLS=OFF + +$(eval $(cmake-package)) +$(eval $(host-cmake-package)) From patchwork Fri Oct 11 12:40: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: 1175144 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="Hd4yMfzZ"; 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 46qSJh0n19z9sCJ for ; Fri, 11 Oct 2019 23:42:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A492A887B4; Fri, 11 Oct 2019 12:42:09 +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 lZ-roDO1471u; Fri, 11 Oct 2019 12:42:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 28ED3887AF; Fri, 11 Oct 2019 12:42:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5CF301BF9C7 for ; Fri, 11 Oct 2019 12:42:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 57912880D2 for ; Fri, 11 Oct 2019 12:42:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g3qhqFxkubBL for ; Fri, 11 Oct 2019 12:42:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 060C88809E for ; Fri, 11 Oct 2019 12:42:03 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id v17so10068151wml.4 for ; Fri, 11 Oct 2019 05:42:02 -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=LX27R9Pi+ZkLwDxuVdxO02rDm6ZFQw2nnoU0KUs38rE=; b=Hd4yMfzZ2T6aeyiTv7IfIrnSPjqRipk6SLbD1+l6G+6ilHQy+xX6MCapeHT3OM7ko2 nXIc/4ssDzxK41rDW1dty7/lTDQp2kB2Fc91AM82AQDle6NtsA179Xo2Uiy+zWD7TYJi YKkZSPkZbiTK0DboN4QCHDkIUS82PA7Sl0W+bH7C+FNAzI4F1rsj9dHzd3PeF3cP2WY3 I/q3KKXfwC8QATnvWl5tZtROd6v3ymBnR6PrKCiSp4VKq9Jn6KDbPOwB7sZVr/TIiZch 00G7/ad98Pv6iPQXIiy7pJWz7OkGjnA34fYMNWgjbJl2vemJK4/h9UO0s0i7XL7CN+Bm jfVw== 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=LX27R9Pi+ZkLwDxuVdxO02rDm6ZFQw2nnoU0KUs38rE=; b=Sg3ZQW2Qbrd4npp7N5ee1TpJa6e+0rjUf6WATZl+GIc/nLwW4gi1UEZaNm1Rna5fNk Ashbfse8pGWQFuQDLV3FPOZeeMAPtuebp39k/vCCi8ZRKWMvsLWeHs5kPGj5TwzcbFHc xTSyDl0eUovjUbAPHs6ZhyIOhtD6KosD+oPuvV5gY/Lb5vAvADhS86lEEoBKmJDs4JRi 6UGhukKbNaP6dtAgz4xvj9mGZRFxj5u2xNbsw29JHbJ6jRkQilf6BRzKZWLRhgNqgRl8 1QcDWPIxZSLYof3iHIDhbkU3lS87JJC1ZcvSXDccCQf68m3RO3RY6F3zNRbYiZKUXORV PNtg== X-Gm-Message-State: APjAAAUaWCMkjtwGV7bYvjbdV/UxD3d5LeTQ0UCZgaDVarKsOF+JFkjl ELBkFY3IpwbGOTWAE9aR73cHqrIHbnI= X-Google-Smtp-Source: APXvYqwdiMKxT+vbmvodhMJwPc7HM5wFgsQ8a8NmBr0GJRQFHyslGapcvSl1vuhJW79lRuHRlcy2fA== X-Received: by 2002:a05:600c:21da:: with SMTP id x26mr3129628wmj.152.1570797720956; Fri, 11 Oct 2019 05:42:00 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:42:00 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:44 +0200 Message-Id: <20191011124131.28246-7-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery 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 + ...espect-CMAKE_INSTALL_PREFIX-and-DEST.patch | 33 ++++++++++++ ...t-make-systemd-unit-dir-configurable.patch | 40 +++++++++++++++ package/sysrepo/Config.in | 26 ++++++++++ package/sysrepo/S50sysrepod | 44 ++++++++++++++++ package/sysrepo/S51sysrepo-plugind | 49 ++++++++++++++++++ package/sysrepo/sysrepo.hash | 2 + package/sysrepo/sysrepo.mk | 51 +++++++++++++++++++ 9 files changed, 247 insertions(+) create mode 100644 package/sysrepo/0001-CMakeLists.txt-respect-CMAKE_INSTALL_PREFIX-and-DEST.patch create mode 100644 package/sysrepo/0002-CMakeLists.txt-make-systemd-unit-dir-configurable.patch create mode 100644 package/sysrepo/Config.in create mode 100644 package/sysrepo/S50sysrepod create mode 100644 package/sysrepo/S51sysrepo-plugind create mode 100644 package/sysrepo/sysrepo.hash create mode 100644 package/sysrepo/sysrepo.mk diff --git a/DEVELOPERS b/DEVELOPERS index da2c80056c..d8992538c2 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1042,6 +1042,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 bdc5b13051..54b40936ba 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1670,6 +1670,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/0001-CMakeLists.txt-respect-CMAKE_INSTALL_PREFIX-and-DEST.patch b/package/sysrepo/0001-CMakeLists.txt-respect-CMAKE_INSTALL_PREFIX-and-DEST.patch new file mode 100644 index 0000000000..5cb3606475 --- /dev/null +++ b/package/sysrepo/0001-CMakeLists.txt-respect-CMAKE_INSTALL_PREFIX-and-DEST.patch @@ -0,0 +1,33 @@ +From c4a2195febbd5d436f8de79d8391d8da9aa60ac4 Mon Sep 17 00:00:00 2001 +From: Michael Walle +Date: Thu, 10 Oct 2019 14:58:16 +0200 +Subject: [PATCH 1/2] CMakeLists.txt: respect CMAKE_INSTALL_PREFIX and DESTDIR + +Don't use absolute pathnames in the install function. This way the files +will be installed in the correct location even if CMAKE_INSTALL_PREFIX +and DESTDIR are changed. + +Patch comes from upstream pull-request: +https://github.com/sysrepo/sysrepo/pull/1638 + +Signed-off-by: Heiko Thiery +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e4521088..14b7cd36 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -357,7 +357,7 @@ if(WITH_SYSTEMD) + ${PROJECT_SOURCE_DIR}/deploy/systemd/sysrepod.service + ${PROJECT_SOURCE_DIR}/deploy/systemd/sysrepo-plugind.service + ) +- install(DIRECTORY ${PROJECT_SOURCE_DIR}/deploy/systemd/ DESTINATION "/lib/systemd/system" ++ install(DIRECTORY ${PROJECT_SOURCE_DIR}/deploy/systemd/ DESTINATION "lib/systemd/system" + FILES_MATCHING PATTERN "*.service") + endif() + +-- +2.20.1 + diff --git a/package/sysrepo/0002-CMakeLists.txt-make-systemd-unit-dir-configurable.patch b/package/sysrepo/0002-CMakeLists.txt-make-systemd-unit-dir-configurable.patch new file mode 100644 index 0000000000..3ab75f7957 --- /dev/null +++ b/package/sysrepo/0002-CMakeLists.txt-make-systemd-unit-dir-configurable.patch @@ -0,0 +1,40 @@ +From 906927b4ee2dd0d5bd669d193fc851d14919fbd1 Mon Sep 17 00:00:00 2001 +From: Michael Walle +Date: Thu, 10 Oct 2019 14:38:57 +0200 +Subject: [PATCH 2/2] CMakeLists.txt: make systemd unit dir configurable + +Patch comes from upstream pull-request: +https://github.com/sysrepo/sysrepo/pull/1638 + +Signed-off-by: Heiko Thiery +--- + CMakeLists.txt | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 14b7cd36..14c84675 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -217,6 +217,9 @@ else() + message(FATAL_ERROR "Unknown file format \"${FILE_FORMAT_EXT}\", must be json, xml, or lyb.") + endif() + ++set(SYSTEMD_UNIT_DIR "lib/systemd/system/" CACHE STRING ++ "Path to the systemd service directory.") ++ + # timeouts + set(REQUEST_TIMEOUT 15 CACHE STRING + "Timeout (in seconds) for Sysrepo API requests. Set to 0 for no timeout.") +@@ -357,7 +360,8 @@ if(WITH_SYSTEMD) + ${PROJECT_SOURCE_DIR}/deploy/systemd/sysrepod.service + ${PROJECT_SOURCE_DIR}/deploy/systemd/sysrepo-plugind.service + ) +- install(DIRECTORY ${PROJECT_SOURCE_DIR}/deploy/systemd/ DESTINATION "lib/systemd/system" ++ install(DIRECTORY ${PROJECT_SOURCE_DIR}/deploy/systemd/ ++ DESTINATION "${SYSTEMD_UNIT_DIR}" + FILES_MATCHING PATTERN "*.service") + endif() + +-- +2.20.1 + diff --git a/package/sysrepo/Config.in b/package/sysrepo/Config.in new file mode 100644 index 0000000000..b6dbbf6f7b --- /dev/null +++ b/package/sysrepo/Config.in @@ -0,0 +1,26 @@ +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_LIBAVL + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_PROTOBUF_C + select BR2_PACKAGE_PCRE + select BR2_PACKAGE_PCRE_UCP + 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/S50sysrepod b/package/sysrepo/S50sysrepod new file mode 100644 index 0000000000..05ca627fb7 --- /dev/null +++ b/package/sysrepo/S50sysrepod @@ -0,0 +1,44 @@ +#!/bin/sh + +DAEMON="sysrepod" +PIDFILE="/var/run/$DAEMON.pid" + +SYSREPOD_ARGS="" + +start() { + printf 'Starting %s: ' "$DAEMON" + start-stop-daemon -S -b -q -p $PIDFILE -x "/usr/bin/$DAEMON" \ + -- $SYSREPOD_ARGS + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +stop() { + printf 'Stopping %s: ' "$DAEMON" + start-stop-daemon -K -q -p $PIDFILE + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +restart() { + stop + sleep 1 + start +} + +case "$1" in + start|stop|restart) + "$1";; + *) + echo "Usage: $0 {start|stop|restart}" +esac diff --git a/package/sysrepo/S51sysrepo-plugind b/package/sysrepo/S51sysrepo-plugind new file mode 100644 index 0000000000..9dd3bb1101 --- /dev/null +++ b/package/sysrepo/S51sysrepo-plugind @@ -0,0 +1,49 @@ +#!/bin/sh + +DAEMON="sysrepo-plugind" +PIDFILE="/var/run/$DAEMON.pid" + +SYSREPO_PLUGIND_ARGS="" + +start() { + printf 'Starting %s: ' "$DAEMON" + start-stop-daemon -S -b -q -p $PIDFILE -x "/usr/bin/$DAEMON" \ + -- $SYSREPO_PLUGIND_ARGS + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +stop() { + printf 'Stopping %s: ' "$DAEMON" + start-stop-daemon -K -q -p $PIDFILE + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +restart() { + stop + sleep 1 + start +} + +reload() { + # we do not support real reload .. just restart + restart +} + +case "$1" in + start|stop|restart|reload) + "$1";; + *) + echo "Usage: $0 {start|stop|restart|reload}" +esac 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..807496319f --- /dev/null +++ b/package/sysrepo/sysrepo.mk @@ -0,0 +1,51 @@ +################################################################################ +# +# 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 \ + $(if $(BR2_INIT_SYSTEMD),-DWITH_SYSTEMD=ON) \ + $(if $(BR2_INIT_SYSTEMD),-DSYSTEMD_UNIT_DIR=usr/lib/systemd/system) + + +# 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 + +define SYSREPO_INSTALL_INIT_SYSV + $(INSTALL) -m 755 -D package/sysrepo/S50sysrepod \ + $(TARGET_DIR)/etc/init.d/S50sysrepod + $(INSTALL) -m 755 -D package/sysrepo/S51sysrepo-plugind \ + $(TARGET_DIR)/etc/init.d/S51sysrepo-plugind +endef + +define SYSREPO_INSTALL_INIT_SYSTEMD + mkdir -p $(TARGET_DIR)/etc/systemd/systemd/multi-user.target.wants + ln -fs ../../../../usr/lib/systemd/system/sysrepod.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -fs ../../../../usr/lib/systemd/system/sysrepo-plugind.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants +endef + +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 Fri Oct 11 12:40:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175146 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="b3wNMt4n"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46qSJr2bM7z9sCJ for ; Fri, 11 Oct 2019 23:42:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C105020420; Fri, 11 Oct 2019 12:42:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u9M+LHISAcS4; Fri, 11 Oct 2019 12:42:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id DC405259FF; Fri, 11 Oct 2019 12:42:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 69B361BF292 for ; Fri, 11 Oct 2019 12:42:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5B64320415 for ; Fri, 11 Oct 2019 12:42:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ffp0dNfUgIyS for ; Fri, 11 Oct 2019 12:42:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by silver.osuosl.org (Postfix) with ESMTPS id 4D28B20420 for ; Fri, 11 Oct 2019 12:42:04 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id 3so10085091wmi.3 for ; Fri, 11 Oct 2019 05:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2eUSFWKI46O5P80eMVq4B8uVc0YKKtn8VYSwmRrE178=; b=b3wNMt4nbYFfO3qeWwPReYfcl589zeIFg27OTAF5zYUxNhwSqqd+OfLB1lIywxEESy M5K6erUgyZfa9/m5pnO6nQAICcdrL2zrvNYjT57PqIW+hDJMDdl3SrYfu0ksdd9pBbju /qpp20Tu5FqYGXTiSqXAy9l0kIvpQRUgUWT8FnaX9qeztme88I5oQgPJU24EOYhAhmjq qugiqGDfAq8ZdUCICzY1WR9KgUeaZNMlKIxUZcaZnbNn2Yly8pVqWLZJZA9hv3GuDaYT aOSYNpnrf8UDhXWTjrFwIrj9MCmNhJyBRm05OJAkVevxvldoveRn0bUv4AqvnpM/R6KU a/Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2eUSFWKI46O5P80eMVq4B8uVc0YKKtn8VYSwmRrE178=; b=tce5aZy9MYEcXAjPcPP248r7iDbaJN7GiMlYWwAqTfIACPIXTzikAMuRiecWgNGfsd ylL9oaMk+Jf3UWJTvU62ZoAfs8Qb44JiaE1g8n6PGm4vjnIcqIkRKkvkXVhh9ETi98Dq C4ag1pKw7vmJ4Njpx1ob7snnhQ/HemZQq1Fl0HSPyc8JH1MW9bqucKV4gq4EyfTxnwpe da2ds8DpQ/3a6wWKeyZtTUn3COl3VCVW9jI3iswvI9fQdKfbEy2cP5vAzivm51+SI0X5 RkHyQSdRvhDEXmNdk3HsnAv6KxaxwniTTdFeY5osxLkxzgS4YsKQiZQqJFJ4VqU0qb7k OUog== X-Gm-Message-State: APjAAAW43y0lAVTPSF7Zsj3w6NKoGOrZHNNB0rHkZfd5O9uQdCdKDnPH dH3XjkZhdiuIOXcxKqrWeV2udwhT3TU= X-Google-Smtp-Source: APXvYqw92vdvXHhCH8RS6exGKRSlBYc+kei26S8FJaG6IE9ghn0y2V/kLl6C/G0kLsKyjXqKd7Ho9A== X-Received: by 2002:a7b:c631:: with SMTP id p17mr3127962wmk.5.1570797722313; Fri, 11 Oct 2019 05:42:02 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:42:01 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:45 +0200 Message-Id: <20191011124131.28246-8-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 7/9] package/netopeer2-keystored: add package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery netopeer2 keystored plugin. Signed-off-by: Heiko Thiery --- DEVELOPERS | 1 + package/Config.in | 1 + package/netopeer2-keystored/Config.in | 17 ++++++++++ .../netopeer2-keystored.hash | 2 ++ .../netopeer2-keystored.mk | 32 +++++++++++++++++++ 5 files changed, 53 insertions(+) create mode 100644 package/netopeer2-keystored/Config.in create mode 100644 package/netopeer2-keystored/netopeer2-keystored.hash create mode 100644 package/netopeer2-keystored/netopeer2-keystored.mk diff --git a/DEVELOPERS b/DEVELOPERS index d8992538c2..ced7461b45 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1042,6 +1042,7 @@ F: package/python-sip/ N: Heiko Thiery F: package/libnetconf2/ F: package/libyang/ +F: package/netopeer2-keystored/ F: package/sysrepo/ N: Henrique Camargo diff --git a/package/Config.in b/package/Config.in index 54b40936ba..c1e8ce3431 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1649,6 +1649,7 @@ menu "Networking" source "package/mongoose/Config.in" source "package/nanomsg/Config.in" source "package/neon/Config.in" + source "package/netopeer2-keystored/Config.in" source "package/nghttp2/Config.in" source "package/norm/Config.in" source "package/nss-mdns/Config.in" diff --git a/package/netopeer2-keystored/Config.in b/package/netopeer2-keystored/Config.in new file mode 100644 index 0000000000..d23ec2f1b9 --- /dev/null +++ b/package/netopeer2-keystored/Config.in @@ -0,0 +1,17 @@ +config BR2_PACKAGE_NETOPEER2_KEYSTORED + bool "netopeer2-keystored" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_SYSREPO + help + Netopeer2 is a set of tools implementing network + configuration tools based on the NETCONF Protocol. + + This is the keystored sysrepo plugin. + + https://github.com/CESNET/Netopeer2 + +comment "needs a toolchain w/ threads, dynamic libraray" + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/netopeer2-keystored/netopeer2-keystored.hash b/package/netopeer2-keystored/netopeer2-keystored.hash new file mode 100644 index 0000000000..5f897e8d08 --- /dev/null +++ b/package/netopeer2-keystored/netopeer2-keystored.hash @@ -0,0 +1,2 @@ +sha256 59688271be4fecbbee671fc7eb3dc0538b13b4baab53e923e26eaeb33e6f7ec0 netopeer2-v0.7-r2.tar.gz +sha256 932b75a8610a5c58e0fe0f70f8e4ebbcf3a2392acc16a88e95aebcdbdb9245e0 LICENSE diff --git a/package/netopeer2-keystored/netopeer2-keystored.mk b/package/netopeer2-keystored/netopeer2-keystored.mk new file mode 100644 index 0000000000..e67b45b70e --- /dev/null +++ b/package/netopeer2-keystored/netopeer2-keystored.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# netopeer2-keystored +# +################################################################################ + +NETOPEER2_KEYSTORED_VERSION = v0.7-r2 +NETOPEER2_KEYSTORED_SOURCE = netopeer2-$(NETOPEER2_KEYSTORED_VERSION).tar.gz +NETOPEER2_KEYSTORED_SITE = $(call github,CESNET,Netopeer2,$(NETOPEER2_KEYSTORED_VERSION)) +NETOPEER2_KEYSTORED_DL_SUBDIR = netopeer2 +NETOPEER2_KEYSTORED_SUBDIR = keystored +NETOPEER2_KEYSTORED_LICENSE = BSD-3-Clause +NETOPEER2_KEYSTORED_LICENSE_FILES = LICENSE +NETOPEER2_KEYSTORED_SUBDIR = keystored +NETOPEER2_KEYSTORED_DEPENDENCIES = host-sysrepo sysrepo + +NETOPEER2_KEYSTORED_CONF_OPTS = \ + -DKEYSTORED_DEFER_SSH_KEY=ON \ + -DSSH_KEY_INSTALL=ON \ + -DMODEL_INSTALL=ON \ + -DSYSREPOCTL_EXECUTABLE=$(HOST_DIR)/bin/sysrepoctl \ + -DSYSREPOCFG_EXECUTABLE=$(HOST_DIR)/bin/sysrepocfg + +define NETOPEER2_KEYSTORED_PERMISSIONS + /etc/sysrepo/data/ietf-keystore.persist f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-keystore.running f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-keystore.running.lock f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-keystore.startup f 600 0 0 - - - - - + /etc/sysrepo/data/ietf-keystore.startup.lock f 600 0 0 - - - - - +endef + +$(eval $(cmake-package)) From patchwork Fri Oct 11 12:40:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175145 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="XKenwF+Z"; 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 46qSJm3gytz9sCJ for ; Fri, 11 Oct 2019 23:42:16 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D10A325AC3; Fri, 11 Oct 2019 12:42:13 +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 ulsHLM6meYt0; Fri, 11 Oct 2019 12:42:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7473D2041E; Fri, 11 Oct 2019 12:42:10 +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 326DD1BF292 for ; Fri, 11 Oct 2019 12:42:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2DD40887AF for ; Fri, 11 Oct 2019 12:42:07 +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 psG7VWCvCsox for ; Fri, 11 Oct 2019 12:42:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by hemlock.osuosl.org (Postfix) with ESMTPS id B2D6E8874E for ; Fri, 11 Oct 2019 12:42:05 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id y135so9362147wmc.1 for ; Fri, 11 Oct 2019 05:42:05 -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=AhHIGf4UmKnb8x4BnMkz54uXu6HBAmy3mKlgWAc0wLM=; b=XKenwF+Z9Kf52PbvAdeTuP1Djlj7eSJCXjyXejLC5SuCNQHKb8pcwgH9FzVjr0dHvW 1OaBiE+3vF5rmMZIK+NGB7UooTE8CwQYJDGJcXsNFL5Wz8smjPelDei3uujWo3X39afk W8yca2jeowmMAlW9iJ4d7Zr5WHdo5dmfc/lBNRUiHP9PWv2XEQ/zaPvaintFhsmx9ve4 Bs3ufd6x50/WAhUKxqi66G7awGKO+ldrgsnloKBdHPfs0KnptXt+Der8BUmz13mbPl4a zbp9MshJiw5gPd0ddg/4zxSGvEwZwW5hXNLWup4SNzTjHVHq8qj8HFe+sklkKuKQ0dOg MqWA== 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=AhHIGf4UmKnb8x4BnMkz54uXu6HBAmy3mKlgWAc0wLM=; b=TZiAAfoQ9eY6v6f6Xr+OQjb/RU0+lib+mPzhU7+JZvRPxOEUebifPctaTma8HU8hRd c0ojnPDXnCHPYqLXsziVDv1eP0EYeBAvtQ2zKbT3NKMIAr00JcIRAcb+5pPUi8nhsWou fzDlvJPqFw9fKLQWIC89QpplGFeGzeJkSX66RdnIlMJEUf1hX/2qIVieeVj5jlJ8MtK4 yO9Inor3ZFcmWTLQgPFC5sXSvrv2PlH28GNru12XT+lD8SOJpIYLxiq3g9utt9H+3mJP Tyv5lm7+ort/0ht1IkLS2yx9Lqo6HDFUmtAwkU1j8W31oo3X+Uf6rTKWFhFE72aKkBqB GoNg== X-Gm-Message-State: APjAAAVlNvUG1oncmN+Y30K/U17QVi1rULIQoWDj1k+E5YdrObpgRDV/ B0Pqv5fsH5u6QHfNpO0X7J4351idWeI= X-Google-Smtp-Source: APXvYqwZBeaPIOhD5B7dkXuOdduGVdrQVwSJyzCtnCrkRotbMzmKGtZWvl1V2e3WBcVVnqyqIP5c9w== X-Received: by 2002:a1c:444:: with SMTP id 65mr3091671wme.73.1570797723640; Fri, 11 Oct 2019 05:42:03 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:42:03 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:46 +0200 Message-Id: <20191011124131.28246-9-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery Netopeer2 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 | 54 +++++++++++ package/netopeer2-server/S52netopeer2-server | 90 +++++++++++++++++++ .../netopeer2-server/netopeer2-server.hash | 1 + package/netopeer2-server/netopeer2-server.mk | 33 +++++++ 6 files changed, 180 insertions(+) create mode 100644 package/netopeer2-server/Config.in create mode 100644 package/netopeer2-server/S52netopeer2-server create mode 120000 package/netopeer2-server/netopeer2-server.hash create mode 100644 package/netopeer2-server/netopeer2-server.mk diff --git a/DEVELOPERS b/DEVELOPERS index ced7461b45..31d8ff35bb 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1043,6 +1043,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 c1e8ce3431..88cd965bd7 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1650,6 +1650,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..14b415db6d --- /dev/null +++ b/package/netopeer2-server/Config.in @@ -0,0 +1,54 @@ +comment "netopeer2server needs a toolchain w/ C++, threads, dynamic library, 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" + +config BR2_PACKAGE_NETOPEER2_SERVER + bool "netopeer2-server" + depends on BR2_USE_MMU # sysrepo + depends on !BR2_STATIC_LIBS # sysrepo + depends on BR2_INSTALL_LIBSTDCPP # sysrepo + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + # host-protobuf only builds on certain architectures + depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86" + select BR2_PACKAGE_LIBAVL + select BR2_PACKAGE_LIBEV + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_LIBNETCONF2 + select BR2_PACKAGE_PROTOBUF_C + select BR2_PACKAGE_PCRE + select BR2_PACKAGE_PCRE_UCP + select BR2_PACKAGE_SYSREPO + select BR2_PACKAGE_NETOPEER2_KEYSTORED + select BR2_PACKAGE_NETOPEER2_SERVER_TLS if \ + !BR2_PACKAGE_NETOPEER2_SERVER_TLS && \ + !BR2_PACKAGE_NETOPEER2_SERVER_SSH + # at the moment SSH transport is mandatory + select BR2_PACKAGE_NETOPEER2_SERVER_SSH + + help + Netopeer2 is a set of tools implementing network + configuration tools based on the NETCONF Protocol. + + This is the server part. + + https://github.com/CESNET/Netopeer2 + +if BR2_PACKAGE_NETOPEER2_SERVER + +config BR2_PACKAGE_NETOPEER2_SERVER_TLS + bool "TLS transport" + select BR2_PACKAGE_OPENSSL + help + Enable TLS transport layer support. + +config BR2_PACKAGE_NETOPEER2_SERVER_SSH + bool "SSH transport" + select BR2_PACKAGE_LIBSSH + select BR2_PACKAGE_LIBSSH_SERVER + help + Enable SSH transport layer support. + +endif diff --git a/package/netopeer2-server/S52netopeer2-server b/package/netopeer2-server/S52netopeer2-server new file mode 100644 index 0000000000..0bad83325a --- /dev/null +++ b/package/netopeer2-server/S52netopeer2-server @@ -0,0 +1,90 @@ +#!/bin/sh + +DAEMON="netopeer2-server" +PIDFILE="/var/run/$DAEMON.pid" + +NETOPEER2_SERVER_ARGS="" + +KEYSTORED_HOST_KEY="/etc/keystored/keys/ssh_host_rsa_key.pem" + +SSHKEYGEN="/usr/bin/dropbearkey" +DROPBEARKEY="/usr/bin/dropbearkey" +DROPBEARCONVERT="/usr/bin/dropbearconvert" + +dropbear_keygen() { + ${DROPBEARKEY} -t rsa -f ${KEYSTORED_HOST_KEY} + ${DROPBEARCONVERT} dropbear openssh ${KEYSTORED_HOST_KEY} ${KEYSTORED_HOST_KEY} +} + +ssh_keygen() { + ${SSHKEYGEN} -m pem -t rsa -q -N "" -f ${KEYSTORED_HOST_KEY} +} + +keygen() { + if [ -x ${DROPBEARKEY} -a -x ${DROPBEARCONVERT} ]; then + dropbear_keygen + status=$? + elif [ -x ${SSHKEYGEN} ]; then + ssh_keygen + status=$? + else + status=1 + fi + + return "$status" +} + +start() { + printf 'Starting %s: ' "$DAEMON" + if [ ! -f ${KEYSTORED_HOST_KEY} ]; then + keygen + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + else + echo "OK" + fi + + start-stop-daemon -S -b -q -p $PIDFILE -x "/usr/bin/$DAEMON" \ + -- $NETOPEER2_SERVER_ARGS + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +stop() { + printf 'Stopping %s: ' "$DAEMON" + start-stop-daemon -K -q -p $PIDFILE + status=$? + if [ "$status" -eq 0 ]; then + echo "OK" + else + echo "FAIL" + fi + return "$status" +} + +restart() { + stop + sleep 1 + start +} + +reload() { + # we do not support real reload .. just restart + restart +} + +case "$1" in + start|stop|restart|reload) + "$1";; + *) + echo "Usage: $0 {start|stop|restart|reload}" +esac diff --git a/package/netopeer2-server/netopeer2-server.hash b/package/netopeer2-server/netopeer2-server.hash new file mode 120000 index 0000000000..47bb47d7e3 --- /dev/null +++ b/package/netopeer2-server/netopeer2-server.hash @@ -0,0 +1 @@ +../netopeer2-keystored/netopeer2-keystored.hash \ No newline at end of file diff --git a/package/netopeer2-server/netopeer2-server.mk b/package/netopeer2-server/netopeer2-server.mk new file mode 100644 index 0000000000..39666a8e24 --- /dev/null +++ b/package/netopeer2-server/netopeer2-server.mk @@ -0,0 +1,33 @@ +################################################################################ +# +# netopeer2-server +# +################################################################################ + +NETOPEER2_SERVER_VERSION = v0.7-r2 +NETOPEER2_SERVER_SOURCE = netopeer2-$(NETOPEER2_SERVER_VERSION).tar.gz +NETOPEER2_SERVER_SITE = $(call github,CESNET,Netopeer2,$(NETOPEER2_SERVER_VERSION)) +NETOPEER2_SERVER_DL_SUBDIR = netopeer2 +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_INSTALL_INIT_SYSV + $(INSTALL) -m 755 -D package/netopeer2-server/S52netopeer2-server \ + $(TARGET_DIR)/etc/init.d/S52netopeer2-server +endef + +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 Fri Oct 11 12:40:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1175147 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="H1AloBJ5"; 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 46qSJt5xjWz9sCJ for ; Fri, 11 Oct 2019 23:42:22 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E503A25A3A; Fri, 11 Oct 2019 12:42:20 +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 oLVBBpOO8iwE; Fri, 11 Oct 2019 12:42:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B4E3825A4D; Fri, 11 Oct 2019 12:42:12 +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 D6D1E1BF292 for ; Fri, 11 Oct 2019 12:42:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D2981887AF for ; Fri, 11 Oct 2019 12:42:07 +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 6rfU2IBfzJYW for ; Fri, 11 Oct 2019 12:42:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by hemlock.osuosl.org (Postfix) with ESMTPS id D6A73887AE for ; Fri, 11 Oct 2019 12:42:06 +0000 (UTC) Received: by mail-wm1-f50.google.com with SMTP id b24so10074786wmj.5 for ; Fri, 11 Oct 2019 05:42:06 -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=nj/GQs4DUozJPJkPMjEHiOJysfS5KwWyo71/L6mIo+4=; b=H1AloBJ5IHTMYGEPDVzgGNhuxGaf8dtpy7+EU3/YVzg7Z+way0wNIFgOJf1GcS53sj E8riWMIAOOCxMNd8Q7pYdMfZc6gF/g6JCqAfLunmeRObA7XUbj3PU8aEVYswArTdVn7K voM1V5R074xI0Vs1MUCmFThdtqyutReg5pkYfykr4/xQFJMHyGypj8yB98JPAx3wt6qq m3vZCUGvv9zVb6RCxGBwBNLoYI6yJjoLypBP6C2zea4h9r8REsb0/Zbegs7mMg6WZ652 FsXdO8qTRgkgBLOjNql/99t9EzhLs7l1XzEiasFlz+fXlnil89r/M21+IKRLYrIne+fk ljkg== 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=nj/GQs4DUozJPJkPMjEHiOJysfS5KwWyo71/L6mIo+4=; b=jqBw80/vcijclGkiGIW+Mp7HaoyJsw1Lgyb/OQUfTufJUBCcyXBYADy2+Yx8gGhNIT dZUJCl2gqttRfQt0JsM86f0wzR7hoyO3zNFTQu/zNno7dAjCGqJBdAIB3lr2cdqnJOPw YdZ000HU94fpBKDQ1CW9wL4WgwvYqSHWezNZe/hmf7M6IAdgOdnBMSJIviFlF52yFCF8 3ptqGKsmJCFG5E15BvN6EyPj5HHukn1UZ5YvSClBTAo8s5+Yitf868fKeh4p+axnByb6 5hAKtzQG+cLsrXT3GCmoMpE2P5u2akmjSqjRyHEeDylXJRG1m3DcmsEmaTqDR3YmsWEV NBDg== X-Gm-Message-State: APjAAAW8Y8GYJtCCv5qDb0n5/TNNaZf7L/+EydYwyjjJ4XUxlbzFgqd0 8M85CZglhuDwc/sm1q36ffd+74MYA6U= X-Google-Smtp-Source: APXvYqyJ2YpPMLAQlf/YwQGw9LI4G9eeifxA9WzGCj9hQWnMvsL4sFYU1eCRclENTj/JWbCkg8IfCg== X-Received: by 2002:a1c:9dcf:: with SMTP id g198mr3216317wme.101.1570797725000; Fri, 11 Oct 2019 05:42:05 -0700 (PDT) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id z5sm14336862wrs.54.2019.10.11.05.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 05:42:04 -0700 (PDT) From: heiko.thiery@gmail.com To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 14:40:47 +0200 Message-Id: <20191011124131.28246-10-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191011124131.28246-1-heiko.thiery@gmail.com> References: <20191011124131.28246-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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: yann.morin@orange.com, michael@walle.cc, Heiko Thiery , thomas.petazzoni@bootlin.com, heiko.thiery@gmail.com, jan.kundrat@cesnet.cz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery netopeer2 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 | 21 +++++++++++++++++++++ package/netopeer2-cli/netopeer2-cli.hash | 1 + package/netopeer2-cli/netopeer2-cli.mk | 17 +++++++++++++++++ 5 files changed, 41 insertions(+) create mode 100644 package/netopeer2-cli/Config.in create mode 120000 package/netopeer2-cli/netopeer2-cli.hash create mode 100644 package/netopeer2-cli/netopeer2-cli.mk diff --git a/DEVELOPERS b/DEVELOPERS index 31d8ff35bb..69528b3266 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1042,6 +1042,7 @@ F: package/python-sip/ N: Heiko Thiery F: package/libnetconf2/ F: package/libyang/ +F: package/netopeer2-cli/ F: package/netopeer2-keystored/ F: package/netopeer2-server/ F: package/sysrepo/ diff --git a/package/Config.in b/package/Config.in index 88cd965bd7..f5cf5fa934 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1649,6 +1649,7 @@ menu "Networking" source "package/mongoose/Config.in" source "package/nanomsg/Config.in" source "package/neon/Config.in" + source "package/netopeer2-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..9c3a302a1d --- /dev/null +++ b/package/netopeer2-cli/Config.in @@ -0,0 +1,21 @@ +config BR2_PACKAGE_NETOPEER2_CLI + bool "netopeer2-cli" + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_LIBYANG + select BR2_PACKAGE_LIBNETCONF2 + select BR2_PACKAGE_LIBSSH + select BR2_PACKAGE_LIBSSH_SERVER + select BR2_PACKAGE_PCRE # libyang + select BR2_PACKAGE_PCRE_UCP # libyang + select BR2_PACKAGE_SYSREPO + help + Netopeer2 is a set of tools implementing network + configuration tools based on the NETCONF Protocol. + + This is the CLI client part. + + 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 120000 index 0000000000..47bb47d7e3 --- /dev/null +++ b/package/netopeer2-cli/netopeer2-cli.hash @@ -0,0 +1 @@ +../netopeer2-keystored/netopeer2-keystored.hash \ No newline at end of file diff --git a/package/netopeer2-cli/netopeer2-cli.mk b/package/netopeer2-cli/netopeer2-cli.mk new file mode 100644 index 0000000000..6eaedbe4b5 --- /dev/null +++ b/package/netopeer2-cli/netopeer2-cli.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# netopeer2-cli +# +################################################################################ + +NETOPEER2_CLI_VERSION = v0.7-r2 +NETOPEER2_CLI_SOURCE = netopeer2-$(NETOPEER2_CLI_VERSION).tar.gz +NETOPEER2_CLI_SITE = $(call github,CESNET,Netopeer2,$(NETOPEER2_CLI_VERSION)) +NETOPEER2_CLI_DL_SUBDIR = netopeer2 +NETOPEER2_CLI_LICENSE = BSD-3-Clause +NETOPEER2_CLI_LICENSE_FILES = LICENSE +NETOPEER2_CLI_SUBDIR = cli +NETOPEER2_CLI_INSTALL_STAGING = YES +NETOPEER2_CLI_DEPENDENCIES = libnetconf2 libyang sysrepo + +$(eval $(cmake-package))