aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-02-25 21:48:10 +0800
committermiwi <miwi@FreeBSD.org>2010-02-25 21:48:10 +0800
commit5ac2982e0cb927067adf2ced37a7f89fa4d03206 (patch)
tree2f8dc50b9735e997b00379a43f435d8e28fa0798
parent019c663233c1da7650a561045095b3c16215fbaa (diff)
downloadfreebsd-ports-gnome-5ac2982e0cb927067adf2ced37a7f89fa4d03206.tar.gz
freebsd-ports-gnome-5ac2982e0cb927067adf2ced37a7f89fa4d03206.tar.zst
freebsd-ports-gnome-5ac2982e0cb927067adf2ced37a7f89fa4d03206.zip
You can use this Python module to convert amongst many different
notations and to manage couples of address/netmask in the CIDR notation. WWW: http://pypi.python.org/pypi/iplib PR: ports/144197 Submitted by: Gea-Suan Lin <gslin at gslin.org> Feature safe: yes
-rw-r--r--net/Makefile1
-rw-r--r--net/py-iplib/Makefile20
-rw-r--r--net/py-iplib/distinfo3
-rw-r--r--net/py-iplib/pkg-descr5
-rw-r--r--net/py-iplib/pkg-plist7
5 files changed, 36 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 32ac08949a13..c757afd7a8ac 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -789,6 +789,7 @@
SUBDIR += py-dpkt
SUBDIR += py-google
SUBDIR += py-impacket
+ SUBDIR += py-iplib
SUBDIR += py-ldap2
SUBDIR += py-libdnet
SUBDIR += py-libnet
diff --git a/net/py-iplib/Makefile b/net/py-iplib/Makefile
new file mode 100644
index 000000000000..90ca2c9b5c2c
--- /dev/null
+++ b/net/py-iplib/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: py-iplib
+# Date created: 2010-02-22
+# Whom: Gea-Suan Lin <gslin@gslin.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= iplib
+PORTVERSION= 1.1
+CATEGORIES= net python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= gslin@gslin.org
+COMMENT= Convert amongst many different IPv4 notations
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+.include <bsd.port.mk>
diff --git a/net/py-iplib/distinfo b/net/py-iplib/distinfo
new file mode 100644
index 000000000000..45d2b16767e5
--- /dev/null
+++ b/net/py-iplib/distinfo
@@ -0,0 +1,3 @@
+MD5 (iplib-1.1.tar.gz) = 3437ddbfc1986b2d06e7f4a0724ac5a0
+SHA256 (iplib-1.1.tar.gz) = 5ada87bd9176c095535b04277fcb57275931929d4105f0c451236aa456991713
+SIZE (iplib-1.1.tar.gz) = 20772
diff --git a/net/py-iplib/pkg-descr b/net/py-iplib/pkg-descr
new file mode 100644
index 000000000000..2558eadd0a9b
--- /dev/null
+++ b/net/py-iplib/pkg-descr
@@ -0,0 +1,5 @@
+You can use this Python module to convert amongst many different
+notations and to manage couples of address/netmask in the CIDR
+notation.
+
+WWW: http://pypi.python.org/pypi/iplib
diff --git a/net/py-iplib/pkg-plist b/net/py-iplib/pkg-plist
new file mode 100644
index 000000000000..b5ee56a4bf14
--- /dev/null
+++ b/net/py-iplib/pkg-plist
@@ -0,0 +1,7 @@
+@comment $FreeBSD$
+%%PYTHON_SITELIBDIR%%/iplib.py
+%%PYTHON_SITELIBDIR%%/iplib.pyc
+%%PYTHON_SITELIBDIR%%/iplib.pyo
+bin/cidrinfo.py
+bin/ipconv.py
+bin/nmconv.py