l/python-ldap: Upgraded to python-ldap-2.3.11.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent db4e79d05a
commit 221c325995
  1. 1
      l/python-ldap/python-ldap-2.3.11.tar.gz.sha1
  2. 1
      l/python-ldap/python-ldap-2.3.6.tar.gz.sha1
  3. 39
      l/python-ldap/python-ldap.SlackBuild

@ -0,0 +1 @@
bcc77e242b19092e4e2917e380be497ff4c9ce74 python-ldap-2.3.11.tar.gz

@ -1 +0,0 @@
96d094ed519a29abc07366445e4526085783311f python-ldap-2.3.6.tar.gz

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009 Damien Goutte-Gattat
# Copyright (C) 2009,2010 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,24 +23,24 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest python-ldap sourcecode is available at:
# <http://python-ldap.sourceforge.net/>.
# <http://www.python-ldap.org/>
# Source package infos
NAMESRC=${NAMESRC:-python-ldap}
VERSION=${VERSION:-2.3.6}
VERSION=${VERSION:-2.3.11}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://surfnet.dl.sourceforge.net/sourceforge/python-ldap/$ARCHIVE}
WGET=${WGET:-http://pypi.python.org/packages/source/p/python-ldap/$ARCHIVE}
# Built package infos
NAMETGZ=${NAMETGZ:-python-ldap}
# Build infos
NAMEPKG=${NAMEPKG:-python-ldap}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-i486}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -55,19 +55,10 @@ if [ ! -d $TMP ]; then
exit 1
fi
# Compilation flags
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
*)
CPUOPT="-O2"
;;
esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget "$WGET"
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -77,20 +68,16 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 \
CHANGES LICENCE README TODO \
$PKG/usr/doc/$NAME
install -m 644 CHANGES LICENCE README TODO $PKG/usr/doc/$NAME
cp -a Demo Doc $PKG/usr/doc/$NAME
# Copy slack-desc file
@ -101,7 +88,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save