Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2016 10:44:34 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r408022 - in branches/2016Q1/security/py-rsa: . files
Message-ID:  <201602041044.u14AiYZL036125@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Thu Feb  4 10:44:33 2016
New Revision: 408022
URL: https://svnweb.freebsd.org/changeset/ports/408022

Log:
  MFH: r408021 security/py-rsa: Update to 3.3 (Fixes CVE-2016-1494)
  
  - Update PORTVERSION and distinfo checksum (3.3)
  - Modernize TEST entries (test target, TEST_DEPENDS, et al)
  - Update setup.py patch (zip_safe no longer needed)
  - Add LICENSE_FILE
  - Enable NO_ARCH
  
  This version fixed a security vulnerability:
  
  https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-1494
  
  PR:		206746
  Reported by:	Sevan Janiyan <venture37 geeklan co.uk>
  Security:	e78bfc9d-cb1e-11e5-b251-0050562a4d7b
  Security:	CVE-2016-1494
  
  Approved by:	ports-secteam (security)

Modified:
  branches/2016Q1/security/py-rsa/Makefile
  branches/2016Q1/security/py-rsa/distinfo
  branches/2016Q1/security/py-rsa/files/patch-setup.py
Directory Properties:
  branches/2016Q1/   (props changed)

Modified: branches/2016Q1/security/py-rsa/Makefile
==============================================================================
--- branches/2016Q1/security/py-rsa/Makefile	Thu Feb  4 10:39:48 2016	(r408021)
+++ branches/2016Q1/security/py-rsa/Makefile	Thu Feb  4 10:44:33 2016	(r408022)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	rsa
-PORTVERSION=	3.1.4
-PORTREVISION=	1
+PORTVERSION=	3.3
 CATEGORIES=	security python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,20 +11,17 @@ MAINTAINER=	koobs@FreeBSD.org
 COMMENT=	Pure-Python RSA implementation
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyasn1>=0.1.3:${PORTSDIR}/devel/py-pyasn1
-TEST_DEPENDS:=	${PYTHON_PKGNAMEPREFIX}unittest2>0:${PORTSDIR}/devel/py-unittest2 \
-		${RUN_DEPENDS}
-
-OPTIONS_DEFINE=	TESTS
-
-TESTS_DESC=		Install tools for unit tests
-TESTS_BUILD_DEPENDS=	${TEST_DEPENDS}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}unittest2>0:${PORTSDIR}/devel/py-unittest2
 
 USES=		python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
 
-regression-test: build
+do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} run_tests.py
 
 .include <bsd.port.mk>

Modified: branches/2016Q1/security/py-rsa/distinfo
==============================================================================
--- branches/2016Q1/security/py-rsa/distinfo	Thu Feb  4 10:39:48 2016	(r408021)
+++ branches/2016Q1/security/py-rsa/distinfo	Thu Feb  4 10:44:33 2016	(r408022)
@@ -1,2 +1,2 @@
-SHA256 (rsa-3.1.4.tar.gz) = e2b0b05936c276b1edd2e1525553233b666df9e29b5c3ba223eed738277c82a0
-SIZE (rsa-3.1.4.tar.gz) = 36181
+SHA256 (rsa-3.3.tar.gz) = 03f3d9bebad06681771016b8752a40b12f615ff32363c7aa19b3798e73ccd615
+SIZE (rsa-3.3.tar.gz) = 33449

Modified: branches/2016Q1/security/py-rsa/files/patch-setup.py
==============================================================================
--- branches/2016Q1/security/py-rsa/files/patch-setup.py	Thu Feb  4 10:39:48 2016	(r408021)
+++ branches/2016Q1/security/py-rsa/files/patch-setup.py	Thu Feb  4 10:44:33 2016	(r408022)
@@ -1,9 +1,12 @@
---- ./setup.py.orig	2013-09-26 22:34:41.233363167 +1000
-+++ ./setup.py	2013-09-26 22:34:50.192985862 +1000
-@@ -42,5 +42,5 @@
-         'pyrsa-encrypt-bigfile = rsa.cli:encrypt_bigfile',
-         'pyrsa-decrypt-bigfile = rsa.cli:decrypt_bigfile',
-     ]},
--
-+    zip_safe=False,
- )
+--- setup.py.orig	2016-01-13 08:43:51 UTC
++++ setup.py
+@@ -42,6 +42,9 @@ setup(name='rsa',
+       install_requires=[
+           'pyasn1 >= 0.1.3',
+       ],
++      tests_require=[
++          'unittest2',
++      ],
+       entry_points={'console_scripts': [
+           'pyrsa-priv2pub = rsa.util:private_to_public',
+           'pyrsa-keygen = rsa.cli:keygen',



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602041044.u14AiYZL036125>