summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Wiebe <artur@4wiebe.de>2018-08-31 19:39:20 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-09-17 10:22:42 +0200
commiteecda7048c6c404033f13f6ebf9e8789eb005278 (patch)
tree1834c491020f06a358f6d771032abebad9680a53
parent2ec428d1b1d5922446aea497c61034cebe92b925 (diff)
downloadptxdist-eecda7048c6c404033f13f6ebf9e8789eb005278.tar.gz
ptxdist-eecda7048c6c404033f13f6ebf9e8789eb005278.tar.xz
python3-opcua: new package
Signed-off-by: Artur Wiebe <artur@4wiebe.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/python3-opcua.in17
-rw-r--r--rules/python3-opcua.make51
2 files changed, 68 insertions, 0 deletions
diff --git a/rules/python3-opcua.in b/rules/python3-opcua.in
new file mode 100644
index 000000000..0c0772247
--- /dev/null
+++ b/rules/python3-opcua.in
@@ -0,0 +1,17 @@
+## SECTION=python3
+
+config PYTHON3_OPCUA
+ tristate
+ select PYTHON3
+ select HOST_PYTHON3_SETUPTOOLS
+ select PYTHON3_DATEUTIL
+ select PYTHON3_PYTZ
+ select PYTHON3_LXML
+ prompt "OPC-UA"
+ help
+ OPC Unified Architecture (OPC UA) is a machine to machine
+ communication protocol for industrial automation
+ developed by the OPC Foundation.
+ https://github.com/FreeOpcUa/python-opcua
+
+
diff --git a/rules/python3-opcua.make b/rules/python3-opcua.make
new file mode 100644
index 000000000..9c542c908
--- /dev/null
+++ b/rules/python3-opcua.make
@@ -0,0 +1,51 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Artur Wiebe <artur@4wiebe.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_OPCUA) += python3-opcua
+
+PYTHON3_OPCUA_VERSION := 0.98.5
+PYTHON3_OPCUA_MD5 := 38c7fce58838117389e939157116c7c3
+PYTHON3_OPCUA := opcua-$(PYTHON3_OPCUA_VERSION)
+PYTHON3_OPCUA_SUFFIX := tar.gz
+PYTHON3_OPCUA_URL := https://pypi.python.org/packages/7f/a5/238323697fb928bfc7f64193f00cb1cc315ad407fd5411f0110930dfca7c/$(PYTHON3_OPCUA).$(PYTHON3_OPCUA_SUFFIX)\#md5=$(PYTHON3_OPCUA_MD5)
+PYTHON3_OPCUA_SOURCE := $(SRCDIR)/$(PYTHON3_OPCUA).$(PYTHON3_OPCUA_SUFFIX)
+PYTHON3_OPCUA_DIR := $(BUILDDIR)/$(PYTHON3_OPCUA)
+PYTHON3_OPCUA_LICENSE := LGPL-3.0-only
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_OPCUA_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-opcua.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-opcua)
+ @$(call install_fixup,python3-opcua,PRIORITY,optional)
+ @$(call install_fixup,python3-opcua,SECTION,base)
+ @$(call install_fixup,python3-opcua,AUTHOR,"Artur Wiebe <artur@4wiebe.de>")
+ @$(call install_fixup,python3-opcua,DESCRIPTION,missing)
+
+ @$(call install_glob, python3-opcua, 0, 0, -, \
+ /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/opcua,, *.py)
+
+ @$(call install_finish,python3-opcua)
+
+ @$(call touch)
+
+# vim: syntax=make