svn commit: r532725 - in head/net-mgmt: . py-aggregate6 py-aggregate6/files
Muhammad Moinur Rahman
bofh at FreeBSD.org
Fri Apr 24 00:49:03 UTC 2020
Author: bofh
Date: Fri Apr 24 00:49:01 2020
New Revision: 532725
URL: https://svnweb.freebsd.org/changeset/ports/532725
Log:
[NEW] net-mgmt/py-aggregate6:Compress an unsorted list of IPv4 and IPv6 prefixes
Takes a list of IPv6 prefixes in conventional format on stdin, and performs two
optimisations to attempt to reduce the length of the prefix list. The first
optimisation is to remove any supplied prefixes which are superfluous because
they are already included in another supplied prefix. The second optimisation
identifies adjacent prefixes that can be combined under a single, shorter-length
prefix. The above optimalisation steps are often useful in context of
compressing firewall rules or BGP prefix-list filters.
WWW: https://github.com/job/aggregate6
Added:
head/net-mgmt/py-aggregate6/
head/net-mgmt/py-aggregate6/Makefile (contents, props changed)
head/net-mgmt/py-aggregate6/distinfo (contents, props changed)
head/net-mgmt/py-aggregate6/files/
head/net-mgmt/py-aggregate6/files/patch-setup.py (contents, props changed)
head/net-mgmt/py-aggregate6/pkg-descr (contents, props changed)
Modified:
head/net-mgmt/Makefile
Modified: head/net-mgmt/Makefile
==============================================================================
--- head/net-mgmt/Makefile Fri Apr 24 00:35:51 2020 (r532724)
+++ head/net-mgmt/Makefile Fri Apr 24 00:49:01 2020 (r532725)
@@ -299,6 +299,7 @@
SUBDIR += prometheus2
SUBDIR += pushgateway
SUBDIR += py-adal
+ SUBDIR += py-aggregate6
SUBDIR += py-ciscoconfparse
SUBDIR += py-dnsdiag
SUBDIR += py-ipcalc
Added: head/net-mgmt/py-aggregate6/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/py-aggregate6/Makefile Fri Apr 24 00:49:01 2020 (r532725)
@@ -0,0 +1,36 @@
+# Created by: Muhammad Moinur Rahman <bofh at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= aggregate6
+PORTVERSION= 1.0.12
+CATEGORIES= net-mgmt python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= bofh at FreeBSD.org
+COMMENT= Compress an unsorted list of IPv4 and IPv6 prefixes
+
+LICENSE= BSD2CLAUSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}radix>=0.10.0:net/py-radix@${PY_FLAVOR}
+TEST_DEPENDS= \
+ ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3000
+BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}ipaddress>0:net/py-ipaddress@${PY_FLAVOR}
+.endif
+
+do-test:
+ @(cd ${WRKSRC} && ${SETENV} ${PYTHON_CMD} ${PYSETUP} nosetests --with-coverage)
+
+.include <bsd.port.post.mk>
Added: head/net-mgmt/py-aggregate6/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/py-aggregate6/distinfo Fri Apr 24 00:49:01 2020 (r532725)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1587684276
+SHA256 (aggregate6-1.0.12.tar.gz) = be0d78b8e84f96db2fc67d17955d16f60cbd76adfebd9a62fe1dc7cad9b273d9
+SIZE (aggregate6-1.0.12.tar.gz) = 6026
Added: head/net-mgmt/py-aggregate6/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/py-aggregate6/files/patch-setup.py Fri Apr 24 00:49:01 2020 (r532725)
@@ -0,0 +1,12 @@
+--- setup.py.orig 2017-12-01 09:46:38 UTC
++++ setup.py
+@@ -70,8 +70,7 @@ setup(
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.6'
+ ],
+- setup_requires=["nose", "coverage", "mock"],
+- install_requires=["py-radix==0.10.0"] + (
++ install_requires=["py-radix>=0.10.0"] + (
+ ["future", "ipaddress"] if sys.version_info.major == 2 else []
+ ),
+ packages=find_packages(exclude=['tests', 'tests.*']),
Added: head/net-mgmt/py-aggregate6/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/py-aggregate6/pkg-descr Fri Apr 24 00:49:01 2020 (r532725)
@@ -0,0 +1,9 @@
+Takes a list of IPv6 prefixes in conventional format on stdin, and performs two
+optimisations to attempt to reduce the length of the prefix list. The first
+optimisation is to remove any supplied prefixes which are superfluous because
+they are already included in another supplied prefix. The second optimisation
+identifies adjacent prefixes that can be combined under a single, shorter-length
+prefix. The above optimalisation steps are often useful in context of
+compressing firewall rules or BGP prefix-list filters.
+
+WWW: https://github.com/job/aggregate6
More information about the svn-ports-all
mailing list