import open62541 1.0.1

OK sthen@

Comment:
library implementation of OPC UA

Description:
open62541 is an open source and free implementation of OPC UA (OPC
Unified Architecture) written in the common subset of the C99 and
C++98 languages.  The library is usable with all major compilers
and provides the necessary tools to implement dedicated OPC UA
clients and servers, or to integrate OPC UA-based communication
into existing applications.
This commit is contained in:
bluhm 2020-02-11 10:35:25 +00:00
parent 40f321d729
commit cc827a6ab9
7 changed files with 280 additions and 0 deletions

51
misc/open62541/Makefile Normal file
View File

@ -0,0 +1,51 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/02/11 10:35:25 bluhm Exp $
COMMENT = library implementation of OPC UA
VERSION = 1.0.1
PKGNAME = open62541-${VERSION}
GH_ACCOUNT = open62541
GH_PROJECT = open62541
GH_TAGNAME = v.${VERSION}
SHARED_LIBS = open62541 0.0
CATEGORIES = misc
HOMEPAGE = https://open62541.org/
MAINTAINER = Alexander Bluhm <bluhm@openbsd.org>
# Mozilla Public License v2.0
PERMIT_PACKAGE = Yes
WANTLIB = c m mbedcrypto mbedtls mbedx509 pthread
MODULES = devel/cmake
# needed to build unit tests and documentation
BUILD_DEPENDS = devel/check \
math/graphviz \
print/texlive/base \
print/texlive/texmf,-main \
print/texlive/texmf,-full \
textproc/py-sphinx
# needed to build with encryption
LIB_DEPENDS = security/polarssl
CONFIGURE_ARGS = -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DOPEN62541_VERSION=v${VERSION} \
-DBUILD_SHARED_LIBS=ON \
-DUA_ENABLE_ENCRYPTION=ON \
-DUA_NAMESPACE_ZERO=REDUCED \
-DUA_ENABLE_AMALGAMATION=OFF \
-DUA_PACK_DEBIAN=ON \
-DUA_BUILD_TOOLS=ON \
-DUA_BUILD_UNIT_TESTS=ON
WRKDIST = ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME}
ALL_TARGET = all doc_pdf
.include <bsd.port.mk>

2
misc/open62541/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (open62541-.1.0.1.tar.gz) = dIGlEOhXIB903FEq2Tqhcu4aMO1HEOWWXObUcXmil2Q=
SIZE (open62541-.1.0.1.tar.gz) = 2689479

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2020/02/11 10:35:25 bluhm Exp $
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -1236,7 +1236,7 @@ if (UA_PACK_DEBIAN)
"examples/nodeset"
"examples/pubsub")
- set(open62541_install_examples_dir share/open62541/examples)
+ set(open62541_install_examples_dir share/examples/open62541)
install(DIRECTORY ${UA_install_examples_dirs} COMPONENT examples DESTINATION ${open62541_install_examples_dir} USE_SOURCE_PERMISSIONS)
endif()

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-arch_posix_CMakeLists_txt,v 1.1.1.1 2020/02/11 10:35:25 bluhm Exp $
This was needed for OpenBSD 5.8 with gcc version 4.8.4
https://open62541.org/doc/1.0/building.html?highlight=openbsd#building-on-openbsd
Index: arch/posix/CMakeLists.txt
--- arch/posix/CMakeLists.txt.orig
+++ arch/posix/CMakeLists.txt
@@ -10,7 +10,7 @@ if (${_index} GREATER -1 OR "${UA_ARCHITECTURE}" STREQ
if("${UA_ARCHITECTURE}" STREQUAL "posix")
- if(NOT CYGWIN AND NOT QNXNTO AND (NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD"))
+ if(NOT CYGWIN AND NOT QNXNTO)
ua_architecture_add_definitions(-Wshadow -Wconversion -fvisibility=hidden -fPIC)
endif()

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-tests_CMakeLists_txt,v 1.1.1.1 2020/02/11 10:35:25 bluhm Exp $
There is no libsubunit port for OpenBSD.
Includes for libcheck were not found.
Index: tests/CMakeLists.txt
--- tests/CMakeLists.txt.orig
+++ tests/CMakeLists.txt
@@ -1,7 +1,7 @@
# Load CMake Packages
find_package(Check REQUIRED)
set(LIBS ${CHECK_LIBRARIES} ${open62541_LIBRARIES})
-if(NOT WIN32 AND NOT APPLE)
+if(NOT WIN32 AND NOT APPLE AND NOT (CMAKE_HOST_SYSTEM_NAME MATCHES "OpenBSD"))
list(APPEND LIBS subunit)
endif()
@@ -12,6 +12,7 @@ if(NOT MSVC AND UA_ENABLE_UNIT_TESTS_MEMCHECK)
endif()
if(CMAKE_HOST_SYSTEM_NAME MATCHES "OpenBSD")
+ include_directories(/usr/local/include)
link_directories(/usr/local/lib)
add_definitions(-Wno-gnu-zero-variadic-macro-arguments)
endif()

6
misc/open62541/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
open62541 is an open source and free implementation of OPC UA (OPC
Unified Architecture) written in the common subset of the C99 and
C++98 languages. The library is usable with all major compilers
and provides the necessary tools to implement dedicated OPC UA
clients and servers, or to integrate OPC UA-based communication
into existing applications.

165
misc/open62541/pkg/PLIST Normal file
View File

@ -0,0 +1,165 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/02/11 10:35:25 bluhm Exp $
include/open62541/
include/open62541/architecture_base.h
include/open62541/architecture_definitions.h
include/open62541/architecture_functions.h
include/open62541/client.h
include/open62541/client_config.h
include/open62541/client_config_default.h
include/open62541/client_highlevel.h
include/open62541/client_highlevel_async.h
include/open62541/client_subscriptions.h
include/open62541/config.h
include/open62541/constants.h
include/open62541/ms_stdint.h
include/open62541/network_tcp.h
include/open62541/nodeids.h
include/open62541/plugin/
include/open62541/plugin/accesscontrol.h
include/open62541/plugin/accesscontrol_default.h
include/open62541/plugin/log.h
include/open62541/plugin/log_stdout.h
include/open62541/plugin/network.h
include/open62541/plugin/nodestore.h
include/open62541/plugin/pki.h
include/open62541/plugin/pki_default.h
include/open62541/plugin/pubsub.h
include/open62541/plugin/securitypolicy.h
include/open62541/plugin/securitypolicy_default.h
include/open62541/plugin/securitypolicy_mbedtls_common.h
include/open62541/posix/
include/open62541/posix/ua_architecture.h
include/open62541/server.h
include/open62541/server_config.h
include/open62541/server_config_default.h
include/open62541/server_pubsub.h
include/open62541/statuscodes.h
include/open62541/types.h
include/open62541/types_generated.h
include/open62541/types_generated_handling.h
include/open62541/util.h
include/open62541/ziptree.h
lib/cmake/
lib/cmake/open62541/
lib/cmake/open62541/open62541Config.cmake
lib/cmake/open62541/open62541ConfigVersion.cmake
lib/cmake/open62541/open62541Macros.cmake
lib/cmake/open62541/open62541Targets-relwithdebinfo.cmake
lib/cmake/open62541/open62541Targets.cmake
@static-lib lib/libopen62541.a
@lib lib/libopen62541.so.${LIBopen62541_VERSION}
share/doc/open62541/
@comment share/doc/open62541/open62541.html/
share/doc/open62541/open62541.pdf
share/examples/open62541/
share/examples/open62541/CMakeLists.txt
share/examples/open62541/access_control/
share/examples/open62541/access_control/client_access_control.c
share/examples/open62541/access_control/server_access_control.c
share/examples/open62541/access_control_encrypt/
share/examples/open62541/access_control_encrypt/client_access_control_encrypt.c
share/examples/open62541/client.c
share/examples/open62541/client_async.c
share/examples/open62541/client_connect.c
share/examples/open62541/client_connect_loop.c
share/examples/open62541/client_connectivitycheck_loop.c
share/examples/open62541/client_historical.c
share/examples/open62541/client_subscription_loop.c
share/examples/open62541/common.h
share/examples/open62541/custom_datatype/
share/examples/open62541/custom_datatype/client_types_custom.c
share/examples/open62541/custom_datatype/custom_datatype.h
share/examples/open62541/custom_datatype/server_types_custom.c
share/examples/open62541/discovery/
share/examples/open62541/discovery/client_find_servers.c
share/examples/open62541/discovery/server_lds.c
share/examples/open62541/discovery/server_multicast.c
share/examples/open62541/discovery/server_register.c
share/examples/open62541/encryption/
share/examples/open62541/encryption/client_encryption.c
share/examples/open62541/encryption/server_encryption.c
share/examples/open62541/nodeset/
share/examples/open62541/nodeset/CMakeLists.txt
share/examples/open62541/nodeset/Opc.Ua.POWERLINK.NodeSet2.bsd
share/examples/open62541/nodeset/server_nodeset.c
share/examples/open62541/nodeset/server_nodeset.csv
share/examples/open62541/nodeset/server_nodeset.xml
share/examples/open62541/nodeset/server_nodeset_plcopen.c
share/examples/open62541/nodeset/server_nodeset_powerlink.c
share/examples/open62541/nodeset/server_testnodeset.c
share/examples/open62541/nodeset/testnodeset.csv
share/examples/open62541/nodeset/testnodeset.xml
share/examples/open62541/nodeset/testtypes.bsd
share/examples/open62541/pubsub/
share/examples/open62541/pubsub/pubsub_subscribe_standalone.c
share/examples/open62541/pubsub/tutorial_pubsub_connection.c
share/examples/open62541/pubsub/tutorial_pubsub_publish.c
share/examples/open62541/pubsub/tutorial_pubsub_subscribe.c
share/examples/open62541/pubsub_realtime/
share/examples/open62541/pubsub_realtime/README.md
share/examples/open62541/pubsub_realtime/bufmalloc.c
share/examples/open62541/pubsub_realtime/bufmalloc.h
share/examples/open62541/pubsub_realtime/etfa18-pfrommer-tsn-pubsub.pdf
share/examples/open62541/pubsub_realtime/pubsub_interrupt_publish.c
share/examples/open62541/pubsub_realtime/start_rt_publish.sh
share/examples/open62541/server.cpp
share/examples/open62541/server_ctt.c
share/examples/open62541/server_inheritance.c
share/examples/open62541/server_instantiation.c
share/examples/open62541/server_mainloop.c
share/examples/open62541/server_repeated_job.c
share/examples/open62541/tutorial_client_events.c
share/examples/open62541/tutorial_client_firststeps.c
share/examples/open62541/tutorial_datatypes.c
share/examples/open62541/tutorial_server_datasource.c
share/examples/open62541/tutorial_server_events.c
share/examples/open62541/tutorial_server_firststeps.c
share/examples/open62541/tutorial_server_historicaldata.c
share/examples/open62541/tutorial_server_method.c
share/examples/open62541/tutorial_server_monitoreditems.c
share/examples/open62541/tutorial_server_object.c
share/examples/open62541/tutorial_server_variable.c
share/examples/open62541/tutorial_server_variabletype.c
share/open62541/
share/open62541/tools/
share/open62541/tools/certs/
share/open62541/tools/certs/create_self-signed.py
share/open62541/tools/certs/localhost.cnf
share/open62541/tools/generate_datatypes.py
share/open62541/tools/generate_nodeid_header.py
share/open62541/tools/generate_statuscode_descriptions.py
share/open62541/tools/nodeset_compiler/
share/open62541/tools/nodeset_compiler/NodeID_NS0_Base.txt
share/open62541/tools/nodeset_compiler/README.md
share/open62541/tools/nodeset_compiler/__init__.py
share/open62541/tools/nodeset_compiler/__pycache__/
share/open62541/tools/nodeset_compiler/backend_graphviz.py
share/open62541/tools/nodeset_compiler/backend_open62541.py
share/open62541/tools/nodeset_compiler/backend_open62541_datatypes.py
share/open62541/tools/nodeset_compiler/backend_open62541_nodes.py
share/open62541/tools/nodeset_compiler/datatypes.py
share/open62541/tools/nodeset_compiler/nodes.py
share/open62541/tools/nodeset_compiler/nodeset.py
share/open62541/tools/nodeset_compiler/nodeset_compiler.py
share/open62541/tools/nodeset_compiler/nodeset_testing.py
share/open62541/tools/nodeset_compiler/opaque_type_mapping.py
share/open62541/tools/schema/
share/open62541/tools/schema/Custom.Opc.Ua.Transport.bsd
share/open62541/tools/schema/NodeIds.csv
share/open62541/tools/schema/Opc.Ua.NodeSet2.EventsMinimal.xml
share/open62541/tools/schema/Opc.Ua.NodeSet2.HistorizingMinimal.xml
share/open62541/tools/schema/Opc.Ua.NodeSet2.Minimal.xml
share/open62541/tools/schema/Opc.Ua.NodeSet2.PubSubMinimal.xml
share/open62541/tools/schema/Opc.Ua.Types.bsd
share/open62541/tools/schema/StatusCode.csv
share/open62541/tools/schema/datatypes_dataaccess.txt
share/open62541/tools/schema/datatypes_discovery.txt
share/open62541/tools/schema/datatypes_events.txt
share/open62541/tools/schema/datatypes_historizing.txt
share/open62541/tools/schema/datatypes_method.txt
share/open62541/tools/schema/datatypes_minimal.txt
share/open62541/tools/schema/datatypes_pubsub.txt
share/open62541/tools/schema/datatypes_query.txt
share/open62541/tools/schema/datatypes_subscriptions.txt
share/open62541/tools/schema/datatypes_transport.txt
share/open62541/tools/ua-nodeset/