From a1c867b80817bc65a35405dbab57c9619448ba6e Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Thu, 13 May 2010 00:25:17 +0200 Subject: development/pycrypto: Updated for version 2.1.0 --- development/pycrypto/pycrypto.SlackBuild | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'development/pycrypto/pycrypto.SlackBuild') diff --git a/development/pycrypto/pycrypto.SlackBuild b/development/pycrypto/pycrypto.SlackBuild index a94ef1f89e..bc82c06bbd 100644 --- a/development/pycrypto/pycrypto.SlackBuild +++ b/development/pycrypto/pycrypto.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for pycrypto -# Copyright 2008-2009 Heinz Wiesinger +# Copyright 2008-2010 Heinz Wiesinger, Amsterdam, The Netherlands # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,9 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pycrypto -VERSION=2.0.1 +VERSION=2.1.0 ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -33,14 +33,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" -fi - set -e rm -rf $PKG @@ -56,16 +48,13 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fixes buffer overflow in the PyCrypto ARC2 module -patch -p1 -i $CWD/pycrypto-CVE-2009-0544.patch - python setup.py install --root=$PKG find $PKG | xargs file | grep "shared object" | grep ELF | \ cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a ACKS ChangeLog LICENSE MANIFEST PKG-INFO README TODO Doc \ +cp -a ACKS ChangeLog COPYRIGHT README TODO Doc \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -73,4 +62,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3