From d88d4f56f7fbac9321cd09f7d050c1867e44342f Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Sun, 29 Jun 2025 19:26:10 +0800 Subject: [PATCH] security/py-pyhanko-cli: Add py-pyhanko-cli 0.1.2 The lack of open-source CLI tooling to handle digitally signing and stamping PDF files was bothering me, so I went ahead and rolled my own. --- security/Makefile | 1 + security/py-pyhanko-cli/Makefile | 29 +++++++++++++++++++ security/py-pyhanko-cli/distinfo | 3 ++ .../py-pyhanko-cli/files/patch-pyproject.toml | 19 ++++++++++++ security/py-pyhanko-cli/pkg-descr | 2 ++ 5 files changed, 54 insertions(+) create mode 100644 security/py-pyhanko-cli/Makefile create mode 100644 security/py-pyhanko-cli/distinfo create mode 100644 security/py-pyhanko-cli/files/patch-pyproject.toml create mode 100644 security/py-pyhanko-cli/pkg-descr diff --git a/security/Makefile b/security/Makefile index d8b14da244aa..709e49a80ab7 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1026,6 +1026,7 @@ SUBDIR += py-pyelliptic SUBDIR += py-pyhanko SUBDIR += py-pyhanko-certvalidator + SUBDIR += py-pyhanko-cli SUBDIR += py-pykeepass SUBDIR += py-pykeepass-cache SUBDIR += py-pylibacl diff --git a/security/py-pyhanko-cli/Makefile b/security/py-pyhanko-cli/Makefile new file mode 100644 index 000000000000..9072a46e37ba --- /dev/null +++ b/security/py-pyhanko-cli/Makefile @@ -0,0 +1,29 @@ +PORTNAME= pyhanko-cli +DISTNAME= pyhanko_cli-${PORTVERSION} +PORTVERSION= 0.1.2 +CATEGORIES= security python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= CLI tools for stamping and signing PDF files +WWW= https://pyhanko.readthedocs.io/en/latest/cli-guide/ \ + https://github.com/MatthiasValvekens/pyHanko + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.5.1:devel/py-asn1crypto@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>=8.1.3:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyhanko>=0.29.1<0.30:security/py-pyhanko@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyhanko-certvalidator>=0.27.0<0.28:security/py-pyhanko-certvalidator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tzlocal>=4.3:devel/py-tzlocal@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/security/py-pyhanko-cli/distinfo b/security/py-pyhanko-cli/distinfo new file mode 100644 index 000000000000..531fc9827b55 --- /dev/null +++ b/security/py-pyhanko-cli/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1750954096 +SHA256 (pyhanko_cli-0.1.2.tar.gz) = 932c09c46a07ff070db6afc3b1475d3a61cb489ea4b0a0a3be84c70db2c41e6e +SIZE (pyhanko_cli-0.1.2.tar.gz) = 27304 diff --git a/security/py-pyhanko-cli/files/patch-pyproject.toml b/security/py-pyhanko-cli/files/patch-pyproject.toml new file mode 100644 index 000000000000..975a0994ebe7 --- /dev/null +++ b/security/py-pyhanko-cli/files/patch-pyproject.toml @@ -0,0 +1,19 @@ +--- pyproject.toml.orig 2025-06-20 20:47:42 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools>=80.8.0"] ++requires = ["setuptools>=61"] + build-backend = "setuptools.build_meta" + + [project] +@@ -7,8 +7,7 @@ maintainers = [{name = "Matthias Valvekens", email = " + description = "CLI tools for stamping and signing PDF files" + authors = [{name = "Matthias Valvekens", email = "dev@mvalvekens.be"}] + maintainers = [{name = "Matthias Valvekens", email = "dev@mvalvekens.be"}] +-license = "MIT" +-license-files = ["LICENSE"] ++license = {text = "MIT"} + keywords = [ + "signature", + "pdf", diff --git a/security/py-pyhanko-cli/pkg-descr b/security/py-pyhanko-cli/pkg-descr new file mode 100644 index 000000000000..79ee1fdf337a --- /dev/null +++ b/security/py-pyhanko-cli/pkg-descr @@ -0,0 +1,2 @@ +The lack of open-source CLI tooling to handle digitally signing and stamping PDF +files was bothering me, so I went ahead and rolled my own.