pkgsrc/security/py-rsa40/Makefile
wiz 20876659d5 security/py-rsa40: re-import py-rsa-4.0 for Python 2.x
Python-RSA is a pure-Python RSA implementation. It supports encryption
and decryption, signing and verifying signatures, and key generation
according to PKCS#1 version 1.5. It can be used as a Python library
as well as on the commandline.

This package contains the last version supported by Python 2.x.
2020-09-01 04:06:11 +00:00

30 lines
980 B
Makefile

# $NetBSD: Makefile,v 1.1 2020/09/01 04:06:11 wiz Exp $
DISTNAME= rsa-4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= security python
MASTER_SITES= ${MASTER_SITE_PYPI:=r/rsa/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/sybrenstuvel/python-rsa
COMMENT= Pure-Python RSA implementation (for Python 2.x)
LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-asn1>=0.1.3:../../security/py-asn1
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
PYTHON_VERSIONS_ACCEPTED= 27
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} pyrsa-decrypt pyrsa-decrypt-${PYVERSSUFFIX} && \
${MV} pyrsa-encrypt pyrsa-encrypt-${PYVERSSUFFIX} && \
${MV} pyrsa-keygen pyrsa-keygen-${PYVERSSUFFIX} && \
${MV} pyrsa-priv2pub pyrsa-priv2pub-${PYVERSSUFFIX} && \
${MV} pyrsa-sign pyrsa-sign-${PYVERSSUFFIX} && \
${MV} pyrsa-verify pyrsa-verify-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"