Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2024 16:52:57 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c9089318d557 - main - net/py-netifaces-plus: Portable network interface information
Message-ID:  <202407241652.46OGqvq6021462@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by 0mp:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c9089318d55702f926d4625ac5705160de06d9ca

commit c9089318d55702f926d4625ac5705160de06d9ca
Author:     Xavier Beaudouin <kiwi@oav.net>
AuthorDate: 2024-06-26 09:43:16 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2024-07-24 16:51:56 +0000

    net/py-netifaces-plus: Portable network interface information
    
    PR:             280001
    Sponsored by:   Klara, Inc.
    Co-authored-by: Mateusz Piotrowski <0mp@FreeBSD.org>
---
 net/Makefile                    |  1 +
 net/py-netifaces-plus/Makefile  | 25 +++++++++++++++++++++++++
 net/py-netifaces-plus/distinfo  |  3 +++
 net/py-netifaces-plus/pkg-descr |  4 ++++
 4 files changed, 33 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index effe35ad890c..9bae210ccae7 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1084,6 +1084,7 @@
     SUBDIR += py-netaddr
     SUBDIR += py-netif
     SUBDIR += py-netifaces
+    SUBDIR += py-netifaces-plus
     SUBDIR += py-netsnmpagent
     SUBDIR += py-nnpy
     SUBDIR += py-ntplib
diff --git a/net/py-netifaces-plus/Makefile b/net/py-netifaces-plus/Makefile
new file mode 100644
index 000000000000..0b83f6a47899
--- /dev/null
+++ b/net/py-netifaces-plus/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	netifaces-plus
+DISTVERSIONPREFIX=	release_
+DISTVERSION=	0_12_2
+CATEGORIES=	net python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	kiwi@oav.net
+COMMENT=	Portable network interface information
+WWW=		https://pypi.org/project/netifaces-plus/
+
+LICENSE=	MIT
+
+USES=		python
+USE_GITHUB=	yes
+GH_ACCOUNT=	tsukumijima
+USE_PYTHON=	autoplist distutils
+
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_TARGET=	test.py
+DO_MAKE_TEST=	${SETENVI} ${WRK_ENV} ${TEST_ENV} ${PYTHON_CMD}
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_netifaces*.so
+
+.include <bsd.port.mk>
diff --git a/net/py-netifaces-plus/distinfo b/net/py-netifaces-plus/distinfo
new file mode 100644
index 000000000000..57785e5fba02
--- /dev/null
+++ b/net/py-netifaces-plus/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1721836784
+SHA256 (tsukumijima-netifaces-plus-release_0_12_2_GH0.tar.gz) = 32c816c62105b699273b9b95e2d728a97f6ae4fc6dacd80100776f7a361549f4
+SIZE (tsukumijima-netifaces-plus-release_0_12_2_GH0.tar.gz) = 28952
diff --git a/net/py-netifaces-plus/pkg-descr b/net/py-netifaces-plus/pkg-descr
new file mode 100644
index 000000000000..515845640847
--- /dev/null
+++ b/net/py-netifaces-plus/pkg-descr
@@ -0,0 +1,4 @@
+There is no easy way to get the address(es) of the machine's network interfaces
+from Python. There is a good reason for this difficulty, which is that it is
+virtually impossible to do so in a portable manner. This package takes care of
+working out the details of doing so on the machine you're using.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407241652.46OGqvq6021462>