From owner-svn-ports-all@freebsd.org Fri Apr 24 00:49:03 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6383D2C9082; Fri, 24 Apr 2020 00:49:03 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 497bCM0JB7z4Ykm; Fri, 24 Apr 2020 00:49:03 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 056FAD77F; Fri, 24 Apr 2020 00:49:03 +0000 (UTC) (envelope-from bofh@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03O0n2XC007170; Fri, 24 Apr 2020 00:49:02 GMT (envelope-from bofh@FreeBSD.org) Received: (from bofh@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03O0n1f4007163; Fri, 24 Apr 2020 00:49:01 GMT (envelope-from bofh@FreeBSD.org) Message-Id: <202004240049.03O0n1f4007163@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bofh set sender to bofh@FreeBSD.org using -f From: Muhammad Moinur Rahman Date: Fri, 24 Apr 2020 00:49:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r532725 - in head/net-mgmt: . py-aggregate6 py-aggregate6/files X-SVN-Group: ports-head X-SVN-Commit-Author: bofh X-SVN-Commit-Paths: in head/net-mgmt: . py-aggregate6 py-aggregate6/files X-SVN-Commit-Revision: 532725 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2020 00:49:03 -0000 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 +# $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 + +.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 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