From nobody Wed Jul 24 16:52:57 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WTg7G1xNDz5SGLy; Wed, 24 Jul 2024 16:52:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WTg7G12yDz4BJg; Wed, 24 Jul 2024 16:52:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721839978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fzZOpyrYRHc7+8+ZIBvs9QafY9N53YC8tEz1ZfestO8=; b=SU6AuwBI+8MePHq71PyhUcQFjpUkhjcVS8BXXVaAMsERDlB8gqOVVksw/qQ8k3EDdkGC8h PFIf8TCMDePAaVauGSz1pBpP/XWDyCpSuJCUZMm5AqoeZhxEF3iaQmZpjCeo10AqalSpcL 4daEPL91+Gde10Ejl+aL9szQj+owfIND466tdVYQS05dFGhf/hXQjYI7qAOa9ucPzoyR6D cIoKhx4OMq+OJrmp33LUCYmdnj0JWfN0R5+SwFhFYvd9TyrQtWIWmj05RZkLDy0vEMtb9v vJQi9G8alVBKGjEyz+nZN590tF9AjcAureKDncSDz3kGwHDIP19VplnY5FoOgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721839978; a=rsa-sha256; cv=none; b=kUlZTCmnd/ffehnVV72xvJ984a5+dUAhylKcnhKopwEX5xi2uMiBgdgk+/UsjAdnPa3GNE ijkqI/NNBeYFsskImqCNsrOWJsRf3x6bQVFLaxIG1cjOQZHvDdfJGOrJXd8NwTy5pYFRSD RHFZEtE7xSAmzAs4kHWoC6pcULmdprLMTMf8n6FUIYbbvEYB7sCcvK4ZKuznkMlCGJ4cbX l81aOClzyTCn2SqU2QbxNXzknzub8/dp1iE+P4OV43SIZrpYD5LMLw35xQd7DylLfh8ONx zTjfWgRgsF3YVwthhhxJOQxVDEGz5qCJ5RXpZdWP9BUQzdvUuIAxw75kMkwjBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721839978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fzZOpyrYRHc7+8+ZIBvs9QafY9N53YC8tEz1ZfestO8=; b=xgSc0+FwSCbF5pWOfjGU4g/ok0UiZe8Z2bpyIFhnAPZoxLSqRc2lVQwaGkfgJidT3V3MMg 02hSssnoste5Y84PrkuR638KPc8/EViuVSopG0E/1lYwBBEW4Nu7osariMxXnzRN/C+TCp r9ohbI3tK8eqyJxvNnmWlQ1sY2S+cdkejlEM29CLnUODctFAK1Q0TysPyHHM3AYXZsDE7D 3fdy4vEK1JIUo7oIV+RcuCyKf3nHCgW6ckCX4+mlWue/g5Mt3kFSfaWDKl58VGJycFhqVg ByvQcYrh1SlmdwzPsxfhCXH44RyMXxe2xm7vem4Z/8/wSUBhCq2wzFI0y8Zesw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WTg7G0LDkzKSd; Wed, 24 Jul 2024 16:52:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46OGqvlN021465; Wed, 24 Jul 2024 16:52:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46OGqvq6021462; Wed, 24 Jul 2024 16:52:57 GMT (envelope-from git) Date: Wed, 24 Jul 2024 16:52:57 GMT Message-Id: <202407241652.46OGqvq6021462@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: c9089318d557 - main - net/py-netifaces-plus: Portable network interface information List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c9089318d55702f926d4625ac5705160de06d9ca Auto-Submitted: auto-generated The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=c9089318d55702f926d4625ac5705160de06d9ca commit c9089318d55702f926d4625ac5705160de06d9ca Author: Xavier Beaudouin 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 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.