netifaces provides an easy way to get the address(es) of the machine’s
network interfaces in Python.

Signed-off-by: Matthias Fend <matthias.f...@emfend.at>
---
 rules/python3-netifaces.in   |  9 +++++++
 rules/python3-netifaces.make | 52 ++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 rules/python3-netifaces.in
 create mode 100644 rules/python3-netifaces.make

diff --git a/rules/python3-netifaces.in b/rules/python3-netifaces.in
new file mode 100644
index 000000000..3899ba697
--- /dev/null
+++ b/rules/python3-netifaces.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_NETIFACES
+       tristate
+       select PYTHON3
+       prompt "python3-netifaces"
+       help
+         netifaces provides an easy way to get the address(es) of the
+         machine’s network interfaces in Python.
diff --git a/rules/python3-netifaces.make b/rules/python3-netifaces.make
new file mode 100644
index 000000000..9b713b73b
--- /dev/null
+++ b/rules/python3-netifaces.make
@@ -0,0 +1,52 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Matthias Fend <matthias.f...@emfend.at>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_NETIFACES) += python3-netifaces
+
+#
+# Paths and names
+#
+PYTHON3_NETIFACES_VERSION      := 0.11.0
+PYTHON3_NETIFACES_MD5          := 3146dcb3297dd018ae5eb9a52b440419
+PYTHON3_NETIFACES              := netifaces-$(PYTHON3_NETIFACES_VERSION)
+PYTHON3_NETIFACES_SUFFIX       := tar.gz
+PYTHON3_NETIFACES_URL          := $(call ptx/mirror-pypi, netifaces, 
$(PYTHON3_NETIFACES).$(PYTHON3_NETIFACES_SUFFIX))
+PYTHON3_NETIFACES_SOURCE       := 
$(SRCDIR)/$(PYTHON3_NETIFACES).$(PYTHON3_NETIFACES_SUFFIX)
+PYTHON3_NETIFACES_DIR          := $(BUILDDIR)/$(PYTHON3_NETIFACES)
+PYTHON3_NETIFACES_LICENSE      := MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_NETIFACES_CONF_TOOL    := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-netifaces.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, python3-netifaces)
+       @$(call install_fixup, python3-netifaces, PRIORITY, optional)
+       @$(call install_fixup, python3-netifaces, SECTION, base)
+       @$(call install_fixup, python3-netifaces, AUTHOR, "Matthias Fend 
<matthias.f...@emfend.at>")
+       @$(call install_fixup, python3-netifaces, DESCRIPTION, missing)
+
+       @$(call install_glob, python3-netifaces, 0, 0, -, \
+               $(PYTHON3_SITEPACKAGES),, *.py)
+
+       @$(call install_finish, python3-netifaces)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.25.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de

Reply via email to