git: b22d25bf9948 - main - vrt/py-bps-restpy: New port

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Wed, 26 Apr 2023 19:24:39 UTC
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b22d25bf994880256cb2db93121c64322a4d90b6

commit b22d25bf994880256cb2db93121c64322a4d90b6
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2023-04-26 19:20:51 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2023-04-26 19:24:30 +0000

    vrt/py-bps-restpy: New port
    
    BreakingPoint REST API Python Wraper
    
    Module for interfacing to BreakingPoint appliance. Let's you connect to
    their appliances for simulating real-world legitimate traffic, DDoS,
    exploits, malware, and fuzzing.
---
 devel/Makefile                |  1 +
 devel/py-bps-restpy/Makefile  | 21 ++++++++++++++++++
 devel/py-bps-restpy/distinfo  |  3 +++
 devel/py-bps-restpy/pkg-descr | 21 ++++++++++++++++++
 devel/py-bps-restpy/pkg-plist | 51 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 97 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 12c00f08c31a..ba51bcce441b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4359,6 +4359,7 @@
     SUBDIR += py-boolean.py
     SUBDIR += py-boto
     SUBDIR += py-botocore
+    SUBDIR += py-bps-restpy
     SUBDIR += py-breathe
     SUBDIR += py-bsd
     SUBDIR += py-btest
diff --git a/devel/py-bps-restpy/Makefile b/devel/py-bps-restpy/Makefile
new file mode 100644
index 000000000000..77e9bfb5f3d3
--- /dev/null
+++ b/devel/py-bps-restpy/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	bps_restpy
+PORTVERSION=	9.0.2
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	dvl@FreeBSD.org
+COMMENT=	BreakingPoint REST API Python Wraper
+WWW=		https://pypi.org/project/bps-restpy/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
+
+USES=		python:2.7+
+USE_PYTHON=	concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-bps-restpy/distinfo b/devel/py-bps-restpy/distinfo
new file mode 100644
index 000000000000..aa2d46270070
--- /dev/null
+++ b/devel/py-bps-restpy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1677770198
+SHA256 (bps_restpy-9.0.2.tar.gz) = f7e0e926f549e1a095019a16f198184b85791b6cc5e1a5ee7bc83aa4989f500c
+SIZE (bps_restpy-9.0.2.tar.gz) = 70138
diff --git a/devel/py-bps-restpy/pkg-descr b/devel/py-bps-restpy/pkg-descr
new file mode 100644
index 000000000000..74d0cba8a9d7
--- /dev/null
+++ b/devel/py-bps-restpy/pkg-descr
@@ -0,0 +1,21 @@
+Module for interfacing to BreakingPoint appliance. Let's you connect to their
+appliances for simulating real-world legitimate traffic, DDoS, exploits,
+malware, and fuzzing.
+
+# Login to BPS box
+bps = BPS(bps_system, bpsuser, bpspass)
+bps.login()
+
+print("Load a canned test: ")
+bps.testmodel.load(canned_test_name)
+
+print("Reserve Ports")
+for p in port_list:
+    bps.topology.reserve([{'slot': slot_number, 'port': p, 'group': 2}])
+
+
+print("Run test and Get Stats:")
+test_id_json = bps.testmodel.run(modelname=canned_test_name, group=2)
+testid = str( test_id_json["runid"] )
+run_id = 'TEST-' + testid
+print("Test Run Id: %s"%run_id)
diff --git a/devel/py-bps-restpy/pkg-plist b/devel/py-bps-restpy/pkg-plist
new file mode 100644
index 000000000000..aa96aac2856a
--- /dev/null
+++ b/devel/py-bps-restpy/pkg-plist
@@ -0,0 +1,51 @@
+%%PYTHON_SITELIBDIR%%/bps_restpy/__init__.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/bps%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/bps%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper3%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper3%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__init__.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsAdminRest%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsAdminRest%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsRest%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsRest%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsVEAdminRest%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsVEAdminRest%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/bpsAdminRest.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/bpsRest.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/bpsVEAdminRest.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_restore%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_restore%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_update%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_update%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsveadmin_addslot%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsveadmin_addslot%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_script%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_script%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_bpsadmin_restore.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_bpsadmin_update.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_bpsveadmin_addslot.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_script.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/restPyWrapper.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/restPyWrapper3.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/Sample_AppSim_template.bpt
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s01_New_Reserve_Run%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s01_New_Reserve_Run%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s02_Load_Configure_Run_Report%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s02_Load_Configure_Run_Report%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s06_StrikeLists_and_Strikes%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s06_StrikeLists_and_Strikes%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/nn_sample.bpt
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s01_New_Reserve_Run.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s02_Load_Configure_Run_Report.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s03_Flow_SuperFlow_AppProfile.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s04_Configure_Network.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s05_RunCancel_EvaluateReport_and_ExportCapture.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s06_StrikeLists_and_Strikes.py
+%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s07_TestModel_Run.py