From owner-svn-ports-all@freebsd.org Fri Jul 24 03:47:36 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7345A36DE4D; Fri, 24 Jul 2020 03:47:36 +0000 (UTC) (envelope-from swills@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BCZsN2VRsz4Z8s; Fri, 24 Jul 2020 03:47:36 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3900924205; Fri, 24 Jul 2020 03:47:36 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06O3laC7014401; Fri, 24 Jul 2020 03:47:36 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06O3lZW4014396; Fri, 24 Jul 2020 03:47:35 GMT (envelope-from swills@FreeBSD.org) Message-Id: <202007240347.06O3lZW4014396@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Fri, 24 Jul 2020 03:47:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r542995 - in head/devel: . py-mac-vendor-lookup py-mac-vendor-lookup/files X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/devel: . py-mac-vendor-lookup py-mac-vendor-lookup/files X-SVN-Commit-Revision: 542995 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2020 03:47:36 -0000 Author: swills Date: Fri Jul 24 03:47:34 2020 New Revision: 542995 URL: https://svnweb.freebsd.org/changeset/ports/542995 Log: devel/py-mac-vendor-lookup: create port This library provides an easy way to get vendor information from a MAC address. It contains a local copy of the IEEE's OUI prefix list. It has an asynchronous interface using Python 3's asyncio as well as a regular synchronous interface for old-school usage. WWW: https://github.com/bauerj/mac_vendor_lookup Added: head/devel/py-mac-vendor-lookup/ head/devel/py-mac-vendor-lookup/Makefile (contents, props changed) head/devel/py-mac-vendor-lookup/distinfo (contents, props changed) head/devel/py-mac-vendor-lookup/files/ head/devel/py-mac-vendor-lookup/files/patch-setup.py (contents, props changed) head/devel/py-mac-vendor-lookup/pkg-descr (contents, props changed) Modified: head/devel/Makefile (contents, props changed) Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri Jul 24 03:38:27 2020 (r542994) +++ head/devel/Makefile Fri Jul 24 03:47:34 2020 (r542995) @@ -4618,6 +4618,7 @@ SUBDIR += py-lunardate SUBDIR += py-lxml SUBDIR += py-macholib + SUBDIR += py-mac-vendor-lookup SUBDIR += py-magic SUBDIR += py-mailcap-fix SUBDIR += py-manuel Added: head/devel/py-mac-vendor-lookup/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-mac-vendor-lookup/Makefile Fri Jul 24 03:47:34 2020 (r542995) @@ -0,0 +1,23 @@ +# $FreeBSD$ + +PORTNAME= mac-vendor-lookup +PORTVERSION= 0.1.11 +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= swills@FreeBSD.org +COMMENT= Find the vendor for a given MAC address + +RUN_DEPENDS= \ + ${PYTHON_PKGNAMEPREFIX}aiohttp>=2.3.5:www/py-aiohttp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}aiofiles>=0:devel/py-aiofiles@${PY_FLAVOR} + +USES= dos2unix python:3.7+ +DOS2UNIX_FILES= ${WRKSRC}/setup.py +USE_PYTHON= autoplist concurrent distutils + +USE_GITHUB= yes +GH_ACCOUNT= bauerj +GH_PROJECT= mac_vendor_lookup + +.include Added: head/devel/py-mac-vendor-lookup/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-mac-vendor-lookup/distinfo Fri Jul 24 03:47:34 2020 (r542995) @@ -0,0 +1,3 @@ +TIMESTAMP = 1588104419 +SHA256 (bauerj-mac_vendor_lookup-0.1.11_GH0.tar.gz) = 6e4a7dec08397be0ac3afe87d7d3307b560236f334cc0bd899bdb9a9b3675dd8 +SIZE (bauerj-mac_vendor_lookup-0.1.11_GH0.tar.gz) = 9392 Added: head/devel/py-mac-vendor-lookup/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-mac-vendor-lookup/files/patch-setup.py Fri Jul 24 03:47:34 2020 (r542995) @@ -0,0 +1,10 @@ +--- setup.py.orig 2020-04-28 20:12:37 UTC ++++ setup.py +@@ -171,7 +171,6 @@ setup( + # + # In this case, 'data_file' will be installed into '/my_data' + data_files=[ +- ("cache", ["mac-vendors.txt"]), + ], # Optional + + # To provide executable scripts, use entry points in preference to the Added: head/devel/py-mac-vendor-lookup/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-mac-vendor-lookup/pkg-descr Fri Jul 24 03:47:34 2020 (r542995) @@ -0,0 +1,6 @@ +This library provides an easy way to get vendor information from a MAC address. +It contains a local copy of the IEEE's OUI prefix list. It has an asynchronous +interface using Python 3's asyncio as well as a regular synchronous interface +for old-school usage. + +WWW: https://github.com/bauerj/mac_vendor_lookup