From patchwork Wed Sep 9 07:43:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1360363 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=fK1US1rM; 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 4BmYtS2fgSz9sTd for ; Wed, 9 Sep 2020 17:44:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B43C6200ED; Wed, 9 Sep 2020 07:43:58 +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 6K0JnbEd3i4Z; Wed, 9 Sep 2020 07:43:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D43F7203DA; Wed, 9 Sep 2020 07:43:54 +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 2B0331BF2B4 for ; Wed, 9 Sep 2020 07:43:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1D7C2203DA for ; Wed, 9 Sep 2020 07:43: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 vUzyYgukPe3Z for ; Wed, 9 Sep 2020 07:43:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by silver.osuosl.org (Postfix) with ESMTPS id 72526200ED for ; Wed, 9 Sep 2020 07:43:51 +0000 (UTC) Received: by mail-wr1-f54.google.com with SMTP id w5so1784762wrp.8 for ; Wed, 09 Sep 2020 00:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=eS5tTcaWrPujzFtj2b3BNJcG11IQEx38VJvTRNzL3hI=; b=fK1US1rMy2oj8rCXB/QaBctVPejezyTJi8IM6PyidRvZYQj4Tn24T9Sr6ajY6r50rj i/rZV4Ae9BY/Fnh2OGwILW3eSTJkyeFa/fRDrW5gpnyPLM+n6QUUS2iZSpwyRtuYkdsU vRCCK5Jym40tLE72Nuv2GSCwvXrw9e7qBVsA4PMO2tOcX9DHD0vvF/xZS7OGZEPGfHi4 n8daOtWSasXLV7l3YiOiOj/R7/h/idAfWqo2YduoRUnLR4K+ZrPRa2y5oXeA5qtM6DB5 7Y8Oe6ov1kH1iLwbVaH+q1saHYP30QktcY4tmCR2UU+hgvZ0/9IU8Ygq4SSvvZhoNqaN kSvA== 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; bh=eS5tTcaWrPujzFtj2b3BNJcG11IQEx38VJvTRNzL3hI=; b=qv8xfTOvXYEra0fKSqM+2WSOyukIW+39eifncCWMFZ/w2Kjnj7umfs+mN0Ethc5voi Fy/Zba278TkX4YHzsFTcaG//0mB+pPrp6obEH2+RNZ0QlNe+T6uGPUyJnpMVblHz6UXG tmq3ri+ymw4/NJT/Mhp3DYB3wBzLDtaMIzAoRegRHZZIcwWHl8pP/VaqUpCrLu/pbnPH +fygWo7pmU3ehi+dWb5vnq4v+O/dVq686nd86cJnefpb/yKuokxa1/ZwA43NWASNs5q3 HV9MEFrQo0s21B9ElzzVk4vYizbJBqdmOmFQzWtGowr18otvAHU4XMbtcDzYlE9rd5NN qOsg== X-Gm-Message-State: AOAM531yxzAhHJgNxfPOs7MoQ62+NG3pzQHMWk0KhMqLHbmyrI7fBTwA B+01i+jW4tvEHlj2Q3e6F5jJpQEP76Ep9w== X-Google-Smtp-Source: ABdhPJzJSCdP+jYlr8UeWZSNBsCyyAyWdpla1aerjc7gGgWY2qSKyeLWYXjE/uOUjtPUafxlhgVC6w== X-Received: by 2002:a05:6000:1c4:: with SMTP id t4mr2551204wrx.350.1599637429662; Wed, 09 Sep 2020 00:43:49 -0700 (PDT) Received: from P-NAN-SUCRE.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id f6sm2913285wro.5.2020.09.09.00.43.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2020 00:43:48 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Wed, 9 Sep 2020 09:43:46 +0200 Message-Id: <20200909074346.13037-1-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.11.0 Subject: [Buildroot] [PATCH 1/1] package/freeopcua : new 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: Jugurtha BELKALEM , romain.naour@smile.fr MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" LGPL OPC-UA server and client library written in C++ and with a lot of code auto-generated from xml specification using python. More information is available at : https://github.com/FreeOpcUa/freeopcua. Signed-off-by: Jugurtha BELKALEM --- - This package has been checked : $ ./utils/check-package package/freeopcua/* 52 lines processed 0 warnings generated - License information has also been tested : >>> freeopcua d24d7806a71739b869f6d2465316184b49e37875 Collecting legal info COPYING: OK (sha256: da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768) DEVELOPERS | 1 + package/Config.in | 1 + package/freeopcua/Config.in | 17 +++++++++++++++++ package/freeopcua/freeopcua.hash | 3 +++ package/freeopcua/freeopcua.mk | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 100644 package/freeopcua/Config.in create mode 100644 package/freeopcua/freeopcua.hash create mode 100644 package/freeopcua/freeopcua.mk diff --git a/DEVELOPERS b/DEVELOPERS index 93a86811ba..dc6760f408 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1424,6 +1424,7 @@ N: Joshua Henderson F: package/qt5/qt5wayland/ N: Jugurtha BELKALEM +F: package/freeopcua/ F: package/python-aiofiles/ F: package/python-crayons/ F: package/python-cycler/ diff --git a/package/Config.in b/package/Config.in index 02213310a8..14dab70a7f 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1682,6 +1682,7 @@ menu "Networking" source "package/filemq/Config.in" source "package/flickcurl/Config.in" source "package/fmlib/Config.in" + source "package/freeopcua/Config.in" source "package/freeradius-client/Config.in" source "package/gensio/Config.in" source "package/geoip/Config.in" diff --git a/package/freeopcua/Config.in b/package/freeopcua/Config.in new file mode 100644 index 0000000000..f210efe1b5 --- /dev/null +++ b/package/freeopcua/Config.in @@ -0,0 +1,17 @@ +config BR2_PACKAGE_FREEOPCUA + bool "freeopcua" + depends on BR2_PACKAGE_BOOST + depends on BR2_PACKAGE_PYTHON3 + select BR2_PACKAGE_BOOST_FILESYSTEM + select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS + select BR2_PACKAGE_BOOST_PYTHON + select BR2_PACKAGE_BOOST_SYSTEM + select BR2_PACKAGE_BOOST_THREAD + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_MBEDTLS + help + LGPL OPC-UA server and client library written in + C++ and with a lot of code auto-generated from + xml specification using python. + + https://github.com/FreeOpcUa/freeopcua diff --git a/package/freeopcua/freeopcua.hash b/package/freeopcua/freeopcua.hash new file mode 100644 index 0000000000..986af5df99 --- /dev/null +++ b/package/freeopcua/freeopcua.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 cbb199396f7a977929ca374310266bbd84613d09fb53c8946270718babad1622 freeopcua-d24d7806a71739b869f6d2465316184b49e37875.tar.gz +sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 COPYING diff --git a/package/freeopcua/freeopcua.mk b/package/freeopcua/freeopcua.mk new file mode 100644 index 0000000000..291cc2514a --- /dev/null +++ b/package/freeopcua/freeopcua.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# freeopcua +# +################################################################################ + +FREEOPCUA_VERSION = d24d7806a71739b869f6d2465316184b49e37875 +FREEOPCUA_SITE = $(call github,FreeOpcUa,freeopcua,$(FREEOPCUA_VERSION)) +FREEOPCUA_LICENSE = LGPL-3.0 +FREEOPCUA_LICENSE_FILES = COPYING + +FREEOPCUA_DEPENDENCIES = boost mbedtls python3 + +# Copy generated binaries and libraries to target +# as this is not done by freeopcua buildsystem. +define FREEOPCUA_INSTALL_BINARY_LIB + cp $(BUILD_DIR)/freeopcua-$(FREEOPCUA_VERSION)/bin/* \ + $(TARGET_DIR)/usr/bin/ + + cp $(BUILD_DIR)/freeopcua-$(FREEOPCUA_VERSION)/lib/* \ + $(TARGET_DIR)/usr/lib/ +endef +FREEOPCUA_POST_INSTALL_TARGET_HOOKS += FREEOPCUA_INSTALL_BINARY_LIB + +# Freeopcua uses some narrowing like int8 to char +# which results in compilation error. +FREEOPCUA_CONF_OPTS = \ + -DCMAKE_CXX_FLAGS="-Wno-narrowing" \ + -DBUILD_EXAMPLE=OFF \ + -DBUILD_TESTING=OFF + +$(eval $(cmake-package))