aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authortj <tj@FreeBSD.org>2012-06-14 08:28:47 +0800
committertj <tj@FreeBSD.org>2012-06-14 08:28:47 +0800
commit271af5e9f0a864117a5e09d376f6901b438029d0 (patch)
tree56857b292e7ce7185f5b05c076b0dfad986c6e53 /security
parent641199abcf506fadd44410b2a65e85dad1dd829a (diff)
downloadfreebsd-ports-gnome-271af5e9f0a864117a5e09d376f6901b438029d0.tar.gz
freebsd-ports-gnome-271af5e9f0a864117a5e09d376f6901b438029d0.tar.zst
freebsd-ports-gnome-271af5e9f0a864117a5e09d376f6901b438029d0.zip
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. WWW: http://stuvel.eu/rsa PR: ports/168460 Submitted by: koobs <koobs.freebsd@gmail.com> Approved by: eadler (mentor)
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/py-rsa/Makefile31
-rw-r--r--security/py-rsa/distinfo2
-rw-r--r--security/py-rsa/files/patch-setup.py12
-rw-r--r--security/py-rsa/pkg-descr5
-rw-r--r--security/py-rsa/pkg-plist64
6 files changed, 115 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index ae93e4670e5c..7fa54e5d0936 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -749,6 +749,7 @@
SUBDIR += py-pylibacl
SUBDIR += py-pyme
SUBDIR += py-rijndael
+ SUBDIR += py-rsa
SUBDIR += py-ssh
SUBDIR += py-sslstrip
SUBDIR += py-tlslite
diff --git a/security/py-rsa/Makefile b/security/py-rsa/Makefile
new file mode 100644
index 000000000000..48dee4fe9dfb
--- /dev/null
+++ b/security/py-rsa/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: py-rsa
+# Date created: 2012-05-24
+# Whom: koobs <koobs.freebsd@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= rsa
+PORTVERSION= 3.0.1
+CATEGORIES= security python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= koobs.freebsd@gmail.com
+COMMENT= Pure-Python RSA implementation
+
+LICENSE= AL2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1>=0.0.13:${PORTSDIR}/devel/py-asn1
+
+USE_ZIP= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS=easy_install
+
+PYDISTUTILS_INSTALLARGS= -Z -q -O 1 -N -S ${PYTHON_SITELIBDIR} \
+ -d ${PYEASYINSTALL_SITELIBDIR} \
+ -s ${PYEASYINSTALL_BINDIR} \
+ ${WRKSRC}/dist/${PYEASYINSTALL_EGG}
+
+.include <bsd.port.mk>
diff --git a/security/py-rsa/distinfo b/security/py-rsa/distinfo
new file mode 100644
index 000000000000..dcbf4e3afa4f
--- /dev/null
+++ b/security/py-rsa/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rsa-3.0.1.zip) = 2c36df5690f476154c32537b6a0a0bce85c26b4b4a365e23b6e5ac6773355668
+SIZE (rsa-3.0.1.zip) = 49380
diff --git a/security/py-rsa/files/patch-setup.py b/security/py-rsa/files/patch-setup.py
new file mode 100644
index 000000000000..5e8ec91b2d06
--- /dev/null
+++ b/security/py-rsa/files/patch-setup.py
@@ -0,0 +1,12 @@
+--- ./setup.py.orig 2012-05-26 03:11:35.000000000 +1000
++++ ./setup.py 2012-05-26 03:11:46.000000000 +1000
+@@ -1,9 +1,5 @@
+ #!/usr/bin/env python
+
+-# Ensure that a reasonably recent version of 'distribute' is installed.
+-from distribute_setup import use_setuptools
+-use_setuptools('0.6.10')
+-
+ from setuptools import setup
+
+ import rsa
diff --git a/security/py-rsa/pkg-descr b/security/py-rsa/pkg-descr
new file mode 100644
index 000000000000..09bcba45e15e
--- /dev/null
+++ b/security/py-rsa/pkg-descr
@@ -0,0 +1,5 @@
+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.
+
+WWW: http://stuvel.eu/rsa
diff --git a/security/py-rsa/pkg-plist b/security/py-rsa/pkg-plist
new file mode 100644
index 000000000000..c8334e2d7b39
--- /dev/null
+++ b/security/py-rsa/pkg-plist
@@ -0,0 +1,64 @@
+@comment $FreeBSD$
+bin/pyrsa-encrypt-bigfile
+bin/pyrsa-encrypt
+bin/pyrsa-verify
+bin/pyrsa-sign
+bin/pyrsa-priv2pub
+bin/pyrsa-decrypt
+bin/pyrsa-keygen
+bin/pyrsa-decrypt-bigfile
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/bigfile.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/cli.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/common.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/core.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/key.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/pem.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/pkcs1.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/prime.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/randnum.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/transform.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/util.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/varblock.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/_version133.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/_version200.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/bigfile.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/cli.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/common.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/core.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/key.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/pem.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/pkcs1.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/prime.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/randnum.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/transform.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/util.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/varblock.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/_version133.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/_version200.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/bigfile.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/cli.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/common.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/core.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/key.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/pem.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/pkcs1.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/prime.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/randnum.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/transform.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/util.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/varblock.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/_version133.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/_version200.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/zip-safe
+@dirrmtry %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/rsa
+@dirrmtry %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrmtry %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/