summaryrefslogtreecommitdiff
path: root/security/py-certipy
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--security/py-certipy/Makefile32
-rw-r--r--security/py-certipy/distinfo3
-rw-r--r--security/py-certipy/files/patch-pyproject.toml11
-rw-r--r--security/py-certipy/pkg-descr13
4 files changed, 59 insertions, 0 deletions
diff --git a/security/py-certipy/Makefile b/security/py-certipy/Makefile
new file mode 100644
index 000000000000..85a58c2c49ba
--- /dev/null
+++ b/security/py-certipy/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= certipy
+PORTVERSION= 0.2.2
+CATEGORIES= security python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Utility to create and sign CAs and certificates
+WWW= https://github.com/LLNL/certipy
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=7:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flask>0:www/py-flask@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist concurrent pytest
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest certipy/test/ -v
+
+# tests as of 0.2.2: 7 passed, 1 warning in 8.94s
+
+.include <bsd.port.mk>
diff --git a/security/py-certipy/distinfo b/security/py-certipy/distinfo
new file mode 100644
index 000000000000..2ef868267d23
--- /dev/null
+++ b/security/py-certipy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759474134
+SHA256 (certipy-0.2.2.tar.gz) = fef1f3d8819ee29c4c67719171c988302823dfe0b6cfbb47d249f374809ba05e
+SIZE (certipy-0.2.2.tar.gz) = 20591
diff --git a/security/py-certipy/files/patch-pyproject.toml b/security/py-certipy/files/patch-pyproject.toml
new file mode 100644
index 000000000000..6caafb486e20
--- /dev/null
+++ b/security/py-certipy/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2025-01-02 23:51:00 UTC
++++ pyproject.toml
+@@ -10,7 +10,7 @@
+ # SPDX-License-Identifier: BSD-3-Clause
+ ###############################################################################
+ [build-system]
+-requires = ["setuptools>=64", "setuptools_scm>=7"]
++requires = ["setuptools", "setuptools_scm>=7"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
diff --git a/security/py-certipy/pkg-descr b/security/py-certipy/pkg-descr
new file mode 100644
index 000000000000..a238de2106b9
--- /dev/null
+++ b/security/py-certipy/pkg-descr
@@ -0,0 +1,13 @@
+certipy is a simple python tool for creating certificate authorities
+and certificates on the fly.
+
+Certipy was made to simplify the certificate creation process. To that end,
+Certipy exposes methods for creating and managing certificate authorities,
+certificates, signing and building trust bundles.
+
+Behind the scenes Certipy:
+
+* Manages records of all certificates it creates
+* External certs can be imported and managed by Certipy
+* Maintains signing hierarchy
+* Persists certificates to files with appropriate permissions