git: 18be0977c739 - main - security/py-pnu-vuxml: New port: FreeBSD VuXML library and query tool

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Mon, 18 Mar 2024 11:09:50 UTC
The branch main has been updated by eduardo:

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

commit 18be0977c739e369b029abb2b9d254bccf02b271
Author:     Hubert Tournier <hubert.tournier@gmail.com>
AuthorDate: 2024-03-18 11:06:50 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-03-18 11:06:50 +0000

    security/py-pnu-vuxml: New port: FreeBSD VuXML library and query tool
    
    - Submitter becomes maintainer
    
    pnu-vuxml is both a Python command-line tool and a library that can be
    used to query or process the FreeBSD VuXML "database" of vulnerable
    ports, making it much more user-friendly and useful.
    
    (Dependency of upcomming Port Tree Linter port)
    
    PR:             277766
---
 security/Makefile               |  1 +
 security/py-pnu-vuxml/Makefile  | 28 ++++++++++++++++++++++++++++
 security/py-pnu-vuxml/distinfo  |  3 +++
 security/py-pnu-vuxml/pkg-descr |  3 +++
 4 files changed, 35 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index 0c1714e1709a..73dec2fb875d 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -981,6 +981,7 @@
     SUBDIR += py-pgpdump
     SUBDIR += py-pgpy
     SUBDIR += py-plaso
+    SUBDIR += py-pnu-vuxml
     SUBDIR += py-potr
     SUBDIR += py-pwntools
     SUBDIR += py-pyaes
diff --git a/security/py-pnu-vuxml/Makefile b/security/py-pnu-vuxml/Makefile
new file mode 100644
index 000000000000..09e2c0d3e046
--- /dev/null
+++ b/security/py-pnu-vuxml/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	pnu-vuxml
+DISTVERSION=	1.2.0
+CATEGORIES=	security ports-mgmt python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	hubert.tournier@gmail.com
+COMMENT=	FreeBSD VuXML library and query tool
+WWW=		https://github.com/HubTou/vuxml
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/License
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}colorama>0:devel/py-colorama@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}defusedxml>0:devel/py-defusedxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}html2text>0:textproc/py-html2text@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pnu-libpnu>=1.3.0:devel/py-pnu-libpnu@${PY_FLAVOR}
+
+USES=		python shebangfix
+USE_PYTHON=	autoplist flavors pep517
+
+SHEBANG_FILES=	src/vuxml/*.py
+
+.include <bsd.port.mk>
diff --git a/security/py-pnu-vuxml/distinfo b/security/py-pnu-vuxml/distinfo
new file mode 100644
index 000000000000..4a99702ab426
--- /dev/null
+++ b/security/py-pnu-vuxml/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1710705062
+SHA256 (pnu-vuxml-1.2.0.tar.gz) = 5ea18b1902bef0f783718470fc844f47273f511dc04e95fe53fc5cb4f51b76f2
+SIZE (pnu-vuxml-1.2.0.tar.gz) = 14300
diff --git a/security/py-pnu-vuxml/pkg-descr b/security/py-pnu-vuxml/pkg-descr
new file mode 100644
index 000000000000..f216fe6a2232
--- /dev/null
+++ b/security/py-pnu-vuxml/pkg-descr
@@ -0,0 +1,3 @@
+pnu-vuxml is both a Python command-line tool and a library that can be
+used to query or process the FreeBSD VuXML "database" of vulnerable
+ports, making it much more user-friendly and useful.