changeset 378d37c5f26c in /var/www/hg/geexbox
author: Davide Cavalca <
dav...@geexbox.org>
details:
http://hg.geexbox.org/geexbox?cmd=changeset;node=378d37c5f26c
description:
cryptopy: import v1.2.5
diffstat:
packages/cryptopy/build | 12 +++++
packages/cryptopy/install | 7 +++
packages/cryptopy/installdev | 7 +++
packages/cryptopy/meta | 10 ++++
packages/cryptopy/patches/10_deprecated-functions.diff | 40 ++++++++++++++++++
packages/cryptopy/patches/20_setuptools.diff | 16 +++++++
6 files changed, 92 insertions(+), 0 deletions(-)
diffs (119 lines):
diff -r d1ae4e0093f9 -r 378d37c5f26c packages/cryptopy/build
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/cryptopy/build Mon May 21 21:45:43 2012 -0700
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+. config/options
+
+cd $BUILD/$1*
+
+export PYTHONXCPREFIX="$LIB_PREFIX"
+
+python setup.py build --cross-compile
+python setup.py install -O1 --skip-build --prefix /usr --root .install
+
+do_python_strip
diff -r d1ae4e0093f9 -r 378d37c5f26c packages/cryptopy/install
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/cryptopy/install Mon May 21 21:45:43 2012 -0700
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+. config/options
+
+cd $BUILD/$1*
+
+do_install usr/lib
diff -r d1ae4e0093f9 -r 378d37c5f26c packages/cryptopy/installdev
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/cryptopy/installdev Mon May 21 21:45:43 2012 -0700
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+. config/options
+
+cd $BUILD/$1*
+
+do_installdev usr/lib
diff -r d1ae4e0093f9 -r 378d37c5f26c packages/cryptopy/meta
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/cryptopy/meta Mon May 21 21:45:43 2012 -0700
@@ -0,0 +1,10 @@
+PKG_NAME=cryptopy
+PKG_VERSION=1.2.5
+PKG_URL="$SFNET_SRCS/cryptopy/cryptopy-${PKG_VERSION}.tar.gz"
+PKG_REV=1
+PKG_BUILD_DEPENDS="toolchain python-distutilscross"
+PKG_DEPENDS="Python"
+PKG_PRIORITY=optional
+PKG_SECTION=python
+PKG_SHORTDESC="pure python implmentation of cryptographic algorithms and applications"
+PKG_LONGDESC="CryptoPy is a pure python implmentation of cryptographic algorithms and applications. The algorithms are developed for readability more than speed. The collection now includes IEEE 802.11i specific algorithms that generated the test vectors for 802.11i."
diff -r d1ae4e0093f9 -r 378d37c5f26c packages/cryptopy/patches/10_deprecated-functions.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/cryptopy/patches/10_deprecated-functions.diff Mon May 21 21:45:43 2012 -0700
@@ -0,0 +1,42 @@
+diff -Naur cryptopy-1.2.5/crypto/hash/md5Hash.py cryptopy-1.2.5a/crypto/hash/md5Hash.py
+--- cryptopy-1.2.5/crypto/hash/md5Hash.py 2002-10-21 17:38:55.000000000 -0700
++++ cryptopy-1.2.5a/crypto/hash/md5Hash.py 2012-05-21 21:14:16.254897390 -0700
+@@ -1,7 +1,7 @@
+ """ md5Hash.py
+ Wrapper for python md5 module to support crypo module standard interface
+ """
+-import md5
++import hashlib
+ from crypto.hash.hash import Hash
+
+ class MD5(Hash):
+@@ -14,7 +14,7 @@
+ self.reset()
+
+ def reset(self):
+- self.pymd5 =
md5.new()
++ self.pymd5 = hashlib.md5()
+ def update(self,data):
+ """ Update the md5 object with the string arg. Repeated calls are
+ equivalent to a single call with the concatenation of all the
+diff -Naur cryptopy-1.2.5/crypto/hash/sha1Hash.py cryptopy-1.2.5a/crypto/hash/sha1Hash.py
+--- cryptopy-1.2.5/crypto/hash/sha1Hash.py 2003-02-21 21:36:37.000000000 -0800
++++ cryptopy-1.2.5a/crypto/hash/sha1Hash.py 2012-05-21 21:14:16.254897390 -0700
+@@ -5,7 +5,7 @@
+ Copyright © (c) 2002 by Paul A. Lambert
+ Read LICENSE.txt for license information.
+ """
+-import sha
++import hashlib
+ from crypto.hash.hash import Hash
+
+ class SHA1(Hash):
+@@ -18,7 +18,7 @@
+ self.reset()
+
+ def reset(self):
+- self.pysha1 =
sha.new()
++ self.pysha1 = hashlib.sha1()
+
+ def update(self,data):
+ """ Update the sha object with the string arg. Repeated calls are
diff -r d1ae4e0093f9 -r 378d37c5f26c packages/cryptopy/patches/20_setuptools.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/cryptopy/patches/20_setuptools.diff Mon May 21 21:45:43 2012 -0700
@@ -0,0 +1,17 @@
+diff -Naur cryptopy-1.2.5/setup.py cryptopy-1.2.5a/setup.py
+--- cryptopy-1.2.5/setup.py 2003-03-02 20:31:42.000000000 -0800
++++ cryptopy-1.2.5a/setup.py 2012-05-21 21:18:59.049469077 -0700
+@@ -12,11 +12,11 @@
+ See
http://software-carpentry.codesourcery.com/entries/build/Distutils/Distutils.html
+ for more information about this file
+
+- Copyright © (c) 2002 by Paul A. Lambert
++ Copyright (c) 2002 by Paul A. Lambert
+ Read LICENSE.txt for license information.
+ """
+
+-from distutils.core import setup
++from setuptools import setup
+ #import sys
+ #assert sys.version >= '2', "Error -> Please install Python 2.0 or greater."
+