mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: David Jander <david@protonic.nl>
To: ptxdist@pengutronix.de, Robin van der Gracht <robin@protonic.nl>
Cc: Michael Olbrich <m.olbrich@pengutronix.de>,
	David Jander <david@protonic.nl>
Subject: [ptxdist] [PATCH 1/2] python3-ifaddr: new package
Date: Tue,  3 May 2022 14:14:15 +0200	[thread overview]
Message-ID: <20220503121416.1438177-2-david@protonic.nl> (raw)
In-Reply-To: <20220503121416.1438177-1-david@protonic.nl>

Needed for python3-zeroconf

Signed-off-by: David Jander <david@protonic.nl>
---
 rules/python3-ifaddr.in   |  9 +++++++
 rules/python3-ifaddr.make | 53 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 rules/python3-ifaddr.in
 create mode 100644 rules/python3-ifaddr.make

diff --git a/rules/python3-ifaddr.in b/rules/python3-ifaddr.in
new file mode 100644
index 000000000..250b8b417
--- /dev/null
+++ b/rules/python3-ifaddr.in
@@ -0,0 +1,9 @@
+## SECTION=python3
+
+config PYTHON3_IFADDR
+	tristate
+	select PYTHON3
+	prompt "ifaddr"
+	help
+	  ifaddr is a small Python library that allows you to find all
+	  the Ethernet and IP addresses of the computer.
diff --git a/rules/python3-ifaddr.make b/rules/python3-ifaddr.make
new file mode 100644
index 000000000..3f1d6b811
--- /dev/null
+++ b/rules/python3-ifaddr.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2022 by David Jander <david@protonic.nl>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_IFADDR) += python3-ifaddr
+
+#
+# Paths and names
+#
+PYTHON3_IFADDR_VERSION		:= 0.1.7
+PYTHON3_IFADDR_MD5		:= 97c4eb7505643b5f1fe17733cb42abd9
+PYTHON3_IFADDR			:= ifaddr-$(PYTHON3_IFADDR_VERSION)
+PYTHON3_IFADDR_SUFFIX		:= tar.gz
+PYTHON3_IFADDR_URL		:= $(call ptx/mirror-pypi, ifaddr, $(PYTHON3_IFADDR).$(PYTHON3_IFADDR_SUFFIX))
+PYTHON3_IFADDR_SOURCE		:= $(SRCDIR)/$(PYTHON3_IFADDR).$(PYTHON3_IFADDR_SUFFIX)
+PYTHON3_IFADDR_DIR		:= $(BUILDDIR)/$(PYTHON3_IFADDR)
+PYTHON3_IFADDR_LICENSE		:= MIT
+PYTHON3_IFADDR_LICENSE_FILES	:= LICENSE.txt
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_IFADDR_CONF_TOOL	:= python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-ifaddr.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, python3-ifaddr)
+	@$(call install_fixup, python3-ifaddr,PRIORITY,optional)
+	@$(call install_fixup, python3-ifaddr,SECTION,base)
+	@$(call install_fixup, python3-ifaddr,AUTHOR,"David Jander <david@protonic.nl>")
+	@$(call install_fixup, python3-ifaddr,DESCRIPTION,missing)
+
+	@$(call install_glob, python3-ifaddr, 0, 0, -, \
+		$(PYTHON3_SITEPACKAGES),, *.py)
+
+	@$(call install_finish, python3-ifaddr)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.32.0




  reply	other threads:[~2022-05-03 12:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-03 12:14 [ptxdist] [PATCH 0/2] Add python3-zeroconf David Jander
2022-05-03 12:14 ` David Jander [this message]
2022-05-06  7:21   ` [ptxdist] [PATCH 1/2] python3-ifaddr: new package Michael Olbrich
2022-05-03 12:14 ` [ptxdist] [PATCH 2/2] python3-zeroconf: " David Jander
2022-05-06  7:22   ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220503121416.1438177-2-david@protonic.nl \
    --to=david@protonic.nl \
    --cc=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=robin@protonic.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox