mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
[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
This commit is contained in:
parent
32020bd38c
commit
65a6500383
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=532725
5 changed files with 61 additions and 0 deletions
|
@ -299,6 +299,7 @@
|
||||||
SUBDIR += prometheus2
|
SUBDIR += prometheus2
|
||||||
SUBDIR += pushgateway
|
SUBDIR += pushgateway
|
||||||
SUBDIR += py-adal
|
SUBDIR += py-adal
|
||||||
|
SUBDIR += py-aggregate6
|
||||||
SUBDIR += py-ciscoconfparse
|
SUBDIR += py-ciscoconfparse
|
||||||
SUBDIR += py-dnsdiag
|
SUBDIR += py-dnsdiag
|
||||||
SUBDIR += py-ipcalc
|
SUBDIR += py-ipcalc
|
||||||
|
|
36
net-mgmt/py-aggregate6/Makefile
Normal file
36
net-mgmt/py-aggregate6/Makefile
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Created by: Muhammad Moinur Rahman <bofh@FreeBSD.org>
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= aggregate6
|
||||||
|
PORTVERSION= 1.0.12
|
||||||
|
CATEGORIES= net-mgmt python
|
||||||
|
MASTER_SITES= CHEESESHOP
|
||||||
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
MAINTAINER= bofh@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>
|
3
net-mgmt/py-aggregate6/distinfo
Normal file
3
net-mgmt/py-aggregate6/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1587684276
|
||||||
|
SHA256 (aggregate6-1.0.12.tar.gz) = be0d78b8e84f96db2fc67d17955d16f60cbd76adfebd9a62fe1dc7cad9b273d9
|
||||||
|
SIZE (aggregate6-1.0.12.tar.gz) = 6026
|
12
net-mgmt/py-aggregate6/files/patch-setup.py
Normal file
12
net-mgmt/py-aggregate6/files/patch-setup.py
Normal file
|
@ -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.*']),
|
9
net-mgmt/py-aggregate6/pkg-descr
Normal file
9
net-mgmt/py-aggregate6/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue