ports/149423: Update port: security/py-pycrypto

Frederic Culot frederic at culot.org
Sun Aug 8 12:20:13 UTC 2010


>Number:         149423
>Category:       ports
>Synopsis:       Update port: security/py-pycrypto
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 08 12:20:13 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Frederic Culot
>Release:        FreeBSD 8.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD 0xd0.org 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Update to 2.2:
- files/patch-setup.py updated
- pkg-plist updated
>How-To-Repeat:
>Fix:
diff -ruN py-pycrypto.bak/Makefile py-pycrypto/Makefile
--- py-pycrypto.bak/Makefile	2010-08-08 14:00:47.403004858 +0200
+++ py-pycrypto/Makefile	2010-08-08 14:01:18.304211016 +0200
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	pycrypto
-PORTVERSION=	2.1.0
-PORTREVISION=	1
+PORTVERSION=	2.2
 CATEGORIES=	security python
 MASTER_SITES=	http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff -ruN py-pycrypto.bak/distinfo py-pycrypto/distinfo
--- py-pycrypto.bak/distinfo	2010-08-08 14:00:47.403004858 +0200
+++ py-pycrypto/distinfo	2010-08-08 14:01:58.105879664 +0200
@@ -1,3 +1,3 @@
-MD5 (pycrypto-2.1.0.tar.gz) = 1d3eb04f06e6f09a080bc37fb019f9bf
-SHA256 (pycrypto-2.1.0.tar.gz) = 253e1c22ea0249f0429df4f7e2eb973b119c83b146c0f421298f5e8e6822d8a2
-SIZE (pycrypto-2.1.0.tar.gz) = 265388
+MD5 (pycrypto-2.2.tar.gz) = 4f0ed728b14b98f09120cb2ec461ec98
+SHA256 (pycrypto-2.2.tar.gz) = 9219449bc85ab4f4ff61fc83b0cbe0ec23d46943caab3d5413c6ba52da6f922c
+SIZE (pycrypto-2.2.tar.gz) = 331270
diff -ruN py-pycrypto.bak/files/patch-setup.py py-pycrypto/files/patch-setup.py
--- py-pycrypto.bak/files/patch-setup.py	2010-08-08 14:00:47.401978470 +0200
+++ py-pycrypto/files/patch-setup.py	2010-08-08 14:04:54.826997572 +0200
@@ -1,14 +1,14 @@
---- ./setup.py.orig	2009-12-13 21:39:29.000000000 +0100
-+++ ./setup.py	2009-12-14 16:48:47.000000000 +0100
-@@ -136,6 +136,7 @@
+--- setup.py.orig	2010-08-08 14:02:23.895825034 +0200
++++ setup.py	2010-08-08 14:04:31.663792751 +0200
+@@ -139,6 +139,7 @@
                  # especially helps the DES modules.
                  self.__add_compiler_option("-O3")
                  self.__add_compiler_option("-fomit-frame-pointer")
-+                self.__add_compiler_option("-D_WCHAR_T_DEFINED")
++		self.__add_compiler_option("-D_WCHAR_T_DEFINED")
                  # Don't include debug symbols unless debugging
                  self.__remove_compiler_option("-g")
-             if USE_GCOV:
-@@ -152,7 +153,7 @@
+                 # Don't include profiling information (incompatible with -fomit-frame-pointer)
+@@ -157,7 +158,7 @@
              self.compiler.include_dirs.insert(0, "src/inc-msvc/")
  
          # Detect libgmp and don't build _fastmath if it is missing.
@@ -17,11 +17,11 @@
          if not (self.compiler.find_library_file(lib_dirs, 'gmp')):
              print >>sys.stderr, "warning: GMP library not found; Not building Crypto.PublicKey._fastmath."
              self.__remove_extensions(["Crypto.PublicKey._fastmath"])
-@@ -259,6 +260,7 @@
+@@ -264,6 +265,7 @@
              Extension("Crypto.PublicKey._fastmath",
                        include_dirs=['src/'],
                        libraries=['gmp'],
-+                      library_dirs=['%%LOCALBASE%%/lib'],
++		      library_dirs=['%%LOCALBASE%%/lib'],
                        sources=["src/_fastmath.c"]),
  
              # Hash functions
diff -ruN py-pycrypto.bak/pkg-plist py-pycrypto/pkg-plist
--- py-pycrypto.bak/pkg-plist	2010-08-08 14:00:47.401978470 +0200
+++ py-pycrypto/pkg-plist	2010-08-08 14:12:44.153925436 +0200
@@ -175,6 +175,9 @@
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/PublicKey/test_RSA.py
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/PublicKey/test_RSA.pyc
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/PublicKey/test_RSA.pyo
+%%PYTHON_SITELIBDIR%%/Crypto/SelfTest/PublicKey/test_importKey.py
+%%PYTHON_SITELIBDIR%%/Crypto/SelfTest/PublicKey/test_importKey.pyc
+%%PYTHON_SITELIBDIR%%/Crypto/SelfTest/PublicKey/test_importKey.pyo
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Random/Fortuna/__init__.py
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Random/Fortuna/__init__.pyc
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Random/Fortuna/__init__.pyo
@@ -217,6 +220,9 @@
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Util/__init__.py
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Util/__init__.pyc
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Util/__init__.pyo
+%%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Util/test_asn1.py
+%%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Util/test_asn1.pyc
+%%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Util/test_asn1.pyo
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Util/test_Counter.py
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Util/test_Counter.pyc
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/Util/test_Counter.pyo
@@ -232,6 +238,9 @@
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/st_common.py
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/st_common.pyc
 %%PYTHON_SITELIBDIR%%/Crypto/SelfTest/st_common.pyo
+%%PYTHON_SITELIBDIR%%/Crypto/Util/asn1.py
+%%PYTHON_SITELIBDIR%%/Crypto/Util/asn1.pyc
+%%PYTHON_SITELIBDIR%%/Crypto/Util/asn1.pyo
 %%PYTHON_SITELIBDIR%%/Crypto/Util/Counter.py
 %%PYTHON_SITELIBDIR%%/Crypto/Util/Counter.pyc
 %%PYTHON_SITELIBDIR%%/Crypto/Util/Counter.pyo
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list