libraries/libssh: Updated for version 0.4.1

This commit is contained in:
Larry Hajali 2010-05-13 00:31:55 +02:00 committed by Erik Hanson
parent 7d93f3f940
commit d9b20548fb
4 changed files with 52 additions and 43 deletions

View file

@ -4,7 +4,7 @@ is made by the programmer. With libssh, you can remotely execute programs,
transfer files, use a secure and transparent tunnel for your remote programs.
With its Secure FTP implementation, you can play with remote files easily,
without third-party programs others than libcrypto (from openssl).
libssh features SSH1 and SSH2 portocols and support for AES-128, AES-192,
AES-256, blowfish, and 3DES encryption.
libssh features : SSH1 and SSH2 portocols and support for AES-128,AES-192,
AES-256,blowfish,3DES encryption.
Note: libssh is neither related to nor conflicts with libssh2.

View file

@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=libssh
VERSION=${VERSION:-0.2}
VERSION=${VERSION:-0.4.1}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -17,10 +17,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -29,7 +32,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tgz
tar zxvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@ -38,36 +41,40 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--enable-ssh1 \
--disable-static \
--build=$ARCH-slackware-linux
mkdir build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DWITH_GCRYPT=1 \
-DWITH_SSH1=1 \
-DWITH_PCAP=1 \
-DWITH_SFTP=1 \
-DWITH_SERVER=1 \
-DWITH_STATIC_LIB=0 \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
make VERBOSE=1
make install DESTDIR=$PKG
cd -
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS CHANGELOG COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS BSD ChangeLog COPYING INSTALL README doc/{API*,libssh*.txt} \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}

View file

@ -1,8 +1,10 @@
PRGNAM="libssh"
VERSION="0.2"
HOMEPAGE="http://0xbadc0de.be/wiki/libssh:libssh"
DOWNLOAD="http://0xbadc0de.be/libssh/libssh-0.2.tgz"
MD5SUM="8a76c03579a3e27046e6bafe88ffd171"
VERSION="0.4.1"
HOMEPAGE="http://www.libssh.org/"
DOWNLOAD="http://www.libssh.org/files/libssh-0.4.1.tar.gz"
MD5SUM="258402bf1fabf664daeba4e5fc7a8d09"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="rworkman"
APPROVED="Erik Hanson"

View file

@ -7,13 +7,13 @@
|-----handy-ruler------------------------------------------------------|
libssh: libssh (A library for ssh)
libssh:
libssh: A library for accessing ssh client services through C libraries calls
libssh: in a simple manner. SSH library features C library functions for
libssh: manipulating a client-side SSH; fully configurable sessions; support
libssh: or AES-128, AES-192, AES-256, blowfish, in cbc mode; support for use
libssh: of multiple SSH connections in the same process at the same time;
libssh: a usable SFTP implementation; both public key and password auth
libssh:
libssh: Homepage: http://0xbadc0de.be/
libssh:
libssh: in a simple manner.
libssh: SSH library features:
libssh: - C library functions for manipulating a client-side SSH
libssh: - Fully configurable sessions
libssh: - Support for AES-128,AES-192,AES-256,blowfish, in cbc mode
libssh: - Use multiple SSH connections in a same process at same time
libssh: - Usable SFTP implementation
libssh: - Public key and password authentication
libssh: Homepage: http://www.libssh.org/