mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
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
This commit is contained in:
parent
731f7264ea
commit
488e7d41e2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=542995
@ -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
|
||||
|
23
devel/py-mac-vendor-lookup/Makefile
Normal file
23
devel/py-mac-vendor-lookup/Makefile
Normal file
@ -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 <bsd.port.mk>
|
3
devel/py-mac-vendor-lookup/distinfo
Normal file
3
devel/py-mac-vendor-lookup/distinfo
Normal file
@ -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
|
10
devel/py-mac-vendor-lookup/files/patch-setup.py
Normal file
10
devel/py-mac-vendor-lookup/files/patch-setup.py
Normal file
@ -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 '<sys.prefix>/my_data'
|
||||
data_files=[
|
||||
- ("cache", ["mac-vendors.txt"]),
|
||||
], # Optional
|
||||
|
||||
# To provide executable scripts, use entry points in preference to the
|
6
devel/py-mac-vendor-lookup/pkg-descr
Normal file
6
devel/py-mac-vendor-lookup/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user