aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/Makefile1
-rw-r--r--net/py-netif/Makefile34
-rw-r--r--net/py-netif/distinfo2
-rw-r--r--net/py-netif/pkg-descr3
4 files changed, 40 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index f01e1d3de747..05062f5ba873 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -930,6 +930,7 @@
SUBDIR += py-msrplib
SUBDIR += py-ndg_httpsclient
SUBDIR += py-netaddr
+ SUBDIR += py-netif
SUBDIR += py-netifaces
SUBDIR += py-netlib
SUBDIR += py-netstring
diff --git a/net/py-netif/Makefile b/net/py-netif/Makefile
new file mode 100644
index 000000000000..44fa08a0979b
--- /dev/null
+++ b/net/py-netif/Makefile
@@ -0,0 +1,34 @@
+# Created by: William Grzybowski <wg@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= netif
+PORTVERSION= 1.0
+CATEGORIES= net python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= wg@FreeBSD.org
+COMMENT= Python network configuration library for FreeBSD
+
+LICENSE= BSD2CLAUSE
+
+BUILD_DEPENDS= cython>0:${PORTSDIR}/lang/cython
+
+USE_GITHUB= yes
+GH_ACCOUNT= freenas
+GH_PROJECT= py-netif
+GH_TAGNAME= 87ed51c
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3400
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}enum34>0:${PORTSDIR}/devel/py-enum34
+.endif
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} <= 1000000
+IGNORE= This module requires at least FreeBSD 10
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/py-netif/distinfo b/net/py-netif/distinfo
new file mode 100644
index 000000000000..5accf346f017
--- /dev/null
+++ b/net/py-netif/distinfo
@@ -0,0 +1,2 @@
+SHA256 (freenas-py-netif-1.0-87ed51c_GH0.tar.gz) = 62a3a5d8b8ead84727a97a6d9180a7af5e96460e04814e11730a1a5c6f38a5a7
+SIZE (freenas-py-netif-1.0-87ed51c_GH0.tar.gz) = 15743
diff --git a/net/py-netif/pkg-descr b/net/py-netif/pkg-descr
new file mode 100644
index 000000000000..6fe5ef8ee441
--- /dev/null
+++ b/net/py-netif/pkg-descr
@@ -0,0 +1,3 @@
+Python network configuration library for FreeBSD.
+
+WWW: https://github.com/freenas/py-netif