git: ab0086a9a2d6 - main - security/py-plaso: update to 20221229

From: Antoine Brodin <antoine_at_FreeBSD.org>
Date: Wed, 22 Feb 2023 14:14:28 UTC
The branch main has been updated by antoine:

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

commit ab0086a9a2d648ffe3d5809e2183aa572cca45ce
Author:     Antoine Brodin <antoine@FreeBSD.org>
AuthorDate: 2023-02-22 14:14:01 +0000
Commit:     Antoine Brodin <antoine@FreeBSD.org>
CommitDate: 2023-02-22 14:14:20 +0000

    security/py-plaso: update to 20221229
---
 security/py-plaso/Makefile | 25 +++++++++++++++----------
 security/py-plaso/distinfo |  6 +++---
 2 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/security/py-plaso/Makefile b/security/py-plaso/Makefile
index 764912d68704..373219618794 100644
--- a/security/py-plaso/Makefile
+++ b/security/py-plaso/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	plaso
-PORTVERSION=	20210606
+PORTVERSION=	20221229
 CATEGORIES=	security python
 MASTER_SITES=	https://github.com/log2timeline/plaso/releases/download/${PORTVERSION}/ \
 		LOCAL/antoine
@@ -24,15 +24,17 @@ RUN_DEPENDS=	libesedb>=e:devel/libesedb \
 		libsigscan>=e:devel/libsigscan \
 		${PYTHON_PKGNAMEPREFIX}artifacts>=0:security/py-artifacts@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}bencode.py>=0:converters/py-bencode.py@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}biplist>=0:devel/py-biplist@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}defusedxml>=0:devel/py-defusedxml@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}dfdatetime>=0:security/py-dfdatetime@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}dfvfs>=0:security/py-dfvfs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}dfwinreg>=0:security/py-dfwinreg@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}dtfabric>=0:devel/py-dtfabric@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}elasticsearch>=0:textproc/py-elasticsearch@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}lz4>=0:archivers/py-lz4@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}opensearch-py>=0:textproc/py-opensearch-py@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pefile>=0:devel/py-pefile@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing@${PY_FLAVOR} \
@@ -41,20 +43,23 @@ RUN_DEPENDS=	libesedb>=e:devel/libesedb \
 		${PYTHON_PKGNAMEPREFIX}pyzmq>=0:net/py-pyzmq@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}redis>=0:databases/py-redis@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py-urllib3@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}xattr>=0:devel/py-xattr@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}XlsxWriter>=0:textproc/py-xlsxwriter@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yara>=0:security/py-yara@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fakeredis>=0:databases/py-fakeredis@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
-		redis-server:databases/redis \
-		ca_root_nss>=0:security/ca_root_nss
+		${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR}
 
-USES=		python:3.5+
+USES=		python
 USE_LOCALE=	en_US.UTF-8
 USE_PYTHON=	distutils autoplist concurrent
+# Upstream archive contains files with UTF-8 names
 EXTRACT_CMD=	${SETENV} LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE} ${TAR}
+DO_MAKE_TEST=	${SETENV} ${TEST_ENV} ${PYTHON_CMD}
+TEST_TARGET=	run_tests.py
 
 NO_ARCH=	yes
 
@@ -65,8 +70,8 @@ post-patch:
 		${WRKSRC}/plaso/cli/helpers/data_location.py
 	${REINPLACE_CMD} "s|share/doc/plaso|${DOCSDIR_REL}| ; s|share/plaso|${DATADIR_REL}|" \
 		${WRKSRC}/setup.py
-
-do-test:
-	@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} run_tests.py)
+	${REINPLACE_CMD} "/pip/d" ${WRKSRC}/requirements.txt
+	${MV} ${WRKSRC}/test_data/link_to_testdir ${WRKSRC}/test_data/testdir
+	${LN} -s testdir ${WRKSRC}/test_data/link_to_testdir
 
 .include <bsd.port.mk>
diff --git a/security/py-plaso/distinfo b/security/py-plaso/distinfo
index e361c11fb2d4..7eb44e20ccb4 100644
--- a/security/py-plaso/distinfo
+++ b/security/py-plaso/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1623182628
-SHA256 (plaso-20210606.tar.gz) = e1922c32d25d7d942b33511375bda640ae6eddec4440c868232b3b6259ca8f09
-SIZE (plaso-20210606.tar.gz) = 144450810
+TIMESTAMP = 1677012858
+SHA256 (plaso-20221229.tar.gz) = 7b138138157247f9c40315732484cd8b2d47ea4f9c37e7b38fa3cf6386f83456
+SIZE (plaso-20221229.tar.gz) = 148343274