pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security/py-rsa40
Module Name: pkgsrc
Committed By: wiz
Date: Tue Sep 1 04:06:11 UTC 2020
Added Files:
pkgsrc/security/py-rsa40: ALTERNATIVES DESCR Makefile PLIST distinfo
pkgsrc/security/py-rsa40/patches: patch-setup.py
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/security/py-rsa40/ALTERNATIVES \
pkgsrc/security/py-rsa40/DESCR pkgsrc/security/py-rsa40/Makefile \
pkgsrc/security/py-rsa40/PLIST pkgsrc/security/py-rsa40/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/security/py-rsa40/patches/patch-setup.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/security/py-rsa40/ALTERNATIVES
diff -u /dev/null pkgsrc/security/py-rsa40/ALTERNATIVES:1.1
--- /dev/null Tue Sep 1 04:06:11 2020
+++ pkgsrc/security/py-rsa40/ALTERNATIVES Tue Sep 1 04:06:11 2020
@@ -0,0 +1,6 @@
+bin/pyrsa-decrypt @PREFIX@/bin/pyrsa-decrypt-@PYVERSSUFFIX@
+bin/pyrsa-encrypt @PREFIX@/bin/pyrsa-encrypt-@PYVERSSUFFIX@
+bin/pyrsa-keygen @PREFIX@/bin/pyrsa-keygen-@PYVERSSUFFIX@
+bin/pyrsa-priv2pub @PREFIX@/bin/pyrsa-priv2pub-@PYVERSSUFFIX@
+bin/pyrsa-sign @PREFIX@/bin/pyrsa-sign-@PYVERSSUFFIX@
+bin/pyrsa-verify @PREFIX@/bin/pyrsa-verify-@PYVERSSUFFIX@
Index: pkgsrc/security/py-rsa40/DESCR
diff -u /dev/null pkgsrc/security/py-rsa40/DESCR:1.1
--- /dev/null Tue Sep 1 04:06:11 2020
+++ pkgsrc/security/py-rsa40/DESCR Tue Sep 1 04:06:11 2020
@@ -0,0 +1,6 @@
+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.
Index: pkgsrc/security/py-rsa40/Makefile
diff -u /dev/null pkgsrc/security/py-rsa40/Makefile:1.1
--- /dev/null Tue Sep 1 04:06:11 2020
+++ pkgsrc/security/py-rsa40/Makefile Tue Sep 1 04:06:11 2020
@@ -0,0 +1,30 @@
+# $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@localhost
+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"
Index: pkgsrc/security/py-rsa40/PLIST
diff -u /dev/null pkgsrc/security/py-rsa40/PLIST:1.1
--- /dev/null Tue Sep 1 04:06:11 2020
+++ pkgsrc/security/py-rsa40/PLIST Tue Sep 1 04:06:11 2020
@@ -0,0 +1,61 @@
+@comment $NetBSD: PLIST,v 1.1 2020/09/01 04:06:11 wiz Exp $
+bin/pyrsa-decrypt-${PYVERSSUFFIX}
+bin/pyrsa-encrypt-${PYVERSSUFFIX}
+bin/pyrsa-keygen-${PYVERSSUFFIX}
+bin/pyrsa-priv2pub-${PYVERSSUFFIX}
+bin/pyrsa-sign-${PYVERSSUFFIX}
+bin/pyrsa-verify-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/rsa/__init__.py
+${PYSITELIB}/rsa/__init__.pyc
+${PYSITELIB}/rsa/__init__.pyo
+${PYSITELIB}/rsa/_compat.py
+${PYSITELIB}/rsa/_compat.pyc
+${PYSITELIB}/rsa/_compat.pyo
+${PYSITELIB}/rsa/asn1.py
+${PYSITELIB}/rsa/asn1.pyc
+${PYSITELIB}/rsa/asn1.pyo
+${PYSITELIB}/rsa/cli.py
+${PYSITELIB}/rsa/cli.pyc
+${PYSITELIB}/rsa/cli.pyo
+${PYSITELIB}/rsa/common.py
+${PYSITELIB}/rsa/common.pyc
+${PYSITELIB}/rsa/common.pyo
+${PYSITELIB}/rsa/core.py
+${PYSITELIB}/rsa/core.pyc
+${PYSITELIB}/rsa/core.pyo
+${PYSITELIB}/rsa/key.py
+${PYSITELIB}/rsa/key.pyc
+${PYSITELIB}/rsa/key.pyo
+${PYSITELIB}/rsa/machine_size.py
+${PYSITELIB}/rsa/machine_size.pyc
+${PYSITELIB}/rsa/machine_size.pyo
+${PYSITELIB}/rsa/parallel.py
+${PYSITELIB}/rsa/parallel.pyc
+${PYSITELIB}/rsa/parallel.pyo
+${PYSITELIB}/rsa/pem.py
+${PYSITELIB}/rsa/pem.pyc
+${PYSITELIB}/rsa/pem.pyo
+${PYSITELIB}/rsa/pkcs1.py
+${PYSITELIB}/rsa/pkcs1.pyc
+${PYSITELIB}/rsa/pkcs1.pyo
+${PYSITELIB}/rsa/pkcs1_v2.py
+${PYSITELIB}/rsa/pkcs1_v2.pyc
+${PYSITELIB}/rsa/pkcs1_v2.pyo
+${PYSITELIB}/rsa/prime.py
+${PYSITELIB}/rsa/prime.pyc
+${PYSITELIB}/rsa/prime.pyo
+${PYSITELIB}/rsa/randnum.py
+${PYSITELIB}/rsa/randnum.pyc
+${PYSITELIB}/rsa/randnum.pyo
+${PYSITELIB}/rsa/transform.py
+${PYSITELIB}/rsa/transform.pyc
+${PYSITELIB}/rsa/transform.pyo
+${PYSITELIB}/rsa/util.py
+${PYSITELIB}/rsa/util.pyc
+${PYSITELIB}/rsa/util.pyo
Index: pkgsrc/security/py-rsa40/distinfo
diff -u /dev/null pkgsrc/security/py-rsa40/distinfo:1.1
--- /dev/null Tue Sep 1 04:06:11 2020
+++ pkgsrc/security/py-rsa40/distinfo Tue Sep 1 04:06:11 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/09/01 04:06:11 wiz Exp $
+
+SHA1 (rsa-4.0.tar.gz) = 8a68dcee7bd2a7727c253b9ed2820cd1b5b9241a
+RMD160 (rsa-4.0.tar.gz) = 806f139f5b69af170c7a04977665cdf8d4c046c7
+SHA512 (rsa-4.0.tar.gz) = e11106741cc4275246c986d39b3f028b5a4df6fbffdd08a78072ac3d3a9a7ade7a39789c504a2705f54d858a9bdbf03981251f32f9c45baba71e4a986e14b24e
+Size (rsa-4.0.tar.gz) = 37385 bytes
+SHA1 (patch-setup.py) = 8335daf31dd1acd8b47512b647f83196cfaa38d5
Index: pkgsrc/security/py-rsa40/patches/patch-setup.py
diff -u /dev/null pkgsrc/security/py-rsa40/patches/patch-setup.py:1.1
--- /dev/null Tue Sep 1 04:06:11 2020
+++ pkgsrc/security/py-rsa40/patches/patch-setup.py Tue Sep 1 04:06:11 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-setup.py,v 1.1 2020/09/01 04:06:11 wiz Exp $
+
+Pull in fix from https://github.com/sybrenstuvel/python-rsa/pull/122/files
+
+--- setup.py.orig 2018-09-16 11:39:35.000000000 +0000
++++ setup.py
+@@ -15,8 +15,9 @@
+ # limitations under the License.
+
+ from setuptools import setup
++from io import open
+
+-with open('README.md') as f:
++with open('README.md', 'r', encoding='utf-8') as f:
+ long_description = f.read()
+
+ if __name__ == '__main__':
Home |
Main Index |
Thread Index |
Old Index