opnsense-ports/security/cpfx/Makefile
Franco Fichtner bc9fc2848c */*: sync with upstream
Taken from: FreeBSD
2023-04-11 09:42:51 +02:00

33 lines
810 B
Makefile

PORTNAME= cpfx
DISTVERSION= g20221025
CATEGORIES= security
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= eugen@FreeBSD.org
COMMENT= PFX decoder for CryptoPro GOST R 34.10-2012 implementation
WWW= https://github.com/li0ard/cpfx
LICENSE= APACHE20
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1>=2.6.0:devel/py-asn1@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pygost>=5.11:security/pygost@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyderasn>=9.3:devel/pyderasn@${PY_FLAVOR}
PLIST_FILES= bin/cpfx.py bin/schemas.py
USES= python
USE_PYTHON= flavors
USE_GITHUB= yes
GH_ACCOUNT= li0ard
GH_TAGNAME= 69c3d7d
NO_ARCH= yes
NO_BUILD= yes
do-install:
@cd ${WRKSRC} && \
${REINPLACE_CMD} $$'1s,^,#!${PYTHON_CMD}\\n,' cpfx.py && \
${INSTALL_SCRIPT} cpfx.py schemas.py ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>