mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
libraries/libssh2: Updated for version 1.2.6.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
9123bfe40e
commit
af33efe208
2 changed files with 13 additions and 15 deletions
|
@ -2,23 +2,21 @@
|
||||||
|
|
||||||
# Slackware build script for Libssh2
|
# Slackware build script for Libssh2
|
||||||
|
|
||||||
# Written by Menno E. Duursma <druiloor@zonnet.nl>
|
# Written by Menno Duursma <druiloor@zonnet.nl>
|
||||||
|
|
||||||
# This program is free software. It comes without any warranty.
|
# This program is free software. It comes without any warranty.
|
||||||
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
|
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
|
||||||
# http://sam.zoy.org/wtfpl/COPYING for more details.
|
# http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||||
|
|
||||||
PRGNAM=libssh2
|
PRGNAM=libssh2
|
||||||
VERSION=${VERSION:-1.2.2}
|
VERSION=${VERSION:-1.2.6}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +24,7 @@ fi
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
@ -57,14 +55,16 @@ find . -type d -exec chmod 0755 {} \; -o -type f -exec chmod u+rw,go+r-w,a-s {}
|
||||||
# --enable-mac-none Permit "none" MAC -- NOT RECOMMENDED
|
# --enable-mac-none Permit "none" MAC -- NOT RECOMMENDED
|
||||||
# --disable-gex-new Disable "new" diffie-hellman-group-exchange-sha1 method
|
# --disable-gex-new Disable "new" diffie-hellman-group-exchange-sha1 method
|
||||||
# --enable-debug Enable pedantic and debug options
|
# --enable-debug Enable pedantic and debug options
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS -ldl" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
|
--disable-static \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man
|
--mandir=/usr/man \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install-strip DESTDIR=$PKG
|
make install-strip DESTDIR=$PKG
|
||||||
|
@ -72,10 +72,8 @@ make install-strip DESTDIR=$PKG
|
||||||
find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \
|
find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \
|
||||||
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||||
|
|
||||||
( cd $PKG/usr/man || exit 1
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
find . -type f -exec gzip -9 {} \;
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
|
||||||
)
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a [A-Z][A-Z][A-Z]* $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a [A-Z][A-Z][A-Z]* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="libssh2"
|
PRGNAM="libssh2"
|
||||||
VERSION="1.2.2"
|
VERSION="1.2.6"
|
||||||
HOMEPAGE="http://www.libssh2.org/"
|
HOMEPAGE="http://www.libssh2.org/"
|
||||||
DOWNLOAD="http://www.libssh2.org/download/libssh2-1.2.2.tar.gz"
|
DOWNLOAD="http://www.libssh2.org/download/libssh2-1.2.6.tar.gz"
|
||||||
MD5SUM="fa8d9cd425bdd62f57244fc61fb54da7"
|
MD5SUM="7887bd95f1d5fc69780bfc5784410574"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Menno Duursma"
|
MAINTAINER="Menno Duursma"
|
||||||
EMAIL="druiloor@zonnet.nl"
|
EMAIL="druiloor@zonnet.nl"
|
||||||
APPROVED="dsomero"
|
APPROVED="Erik Hanson"
|
||||||
|
|
Loading…
Reference in a new issue