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. transfer files, use a secure and transparent tunnel for your remote programs.
With its Secure FTP implementation, you can play with remote files easily, With its Secure FTP implementation, you can play with remote files easily,
without third-party programs others than libcrypto (from openssl). without third-party programs others than libcrypto (from openssl).
libssh features SSH1 and SSH2 portocols and support for AES-128, AES-192, libssh features : SSH1 and SSH2 portocols and support for AES-128,AES-192,
AES-256, blowfish, and 3DES encryption. AES-256,blowfish,3DES encryption.
Note: libssh is neither related to nor conflicts with libssh2. 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> # Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=libssh PRGNAM=libssh
VERSION=${VERSION:-0.2} VERSION=${VERSION:-0.4.1}
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -17,10 +17,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e set -e
@ -29,7 +32,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tgz tar zxvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find . \ find . \
@ -38,36 +41,40 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \ mkdir build
CXXFLAGS="$SLKCFLAGS" \ cd build
./configure \ cmake \
--prefix=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
--sysconfdir=/etc \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
--localstatedir=/var \ -DWITH_GCRYPT=1 \
--mandir=/usr/man \ -DWITH_SSH1=1 \
--enable-ssh1 \ -DWITH_PCAP=1 \
--disable-static \ -DWITH_SFTP=1 \
--build=$ARCH-slackware-linux -DWITH_SERVER=1 \
-DWITH_STATIC_LIB=0 \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release ..
make make VERBOSE=1
make install DESTDIR=$PKG make install DESTDIR=$PKG
cd -
( cd $PKG ( 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 "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null 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
) )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG 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" PRGNAM="libssh"
VERSION="0.2" VERSION="0.4.1"
HOMEPAGE="http://0xbadc0de.be/wiki/libssh:libssh" HOMEPAGE="http://www.libssh.org/"
DOWNLOAD="http://0xbadc0de.be/libssh/libssh-0.2.tgz" DOWNLOAD="http://www.libssh.org/files/libssh-0.4.1.tar.gz"
MD5SUM="8a76c03579a3e27046e6bafe88ffd171" MD5SUM="258402bf1fabf664daeba4e5fc7a8d09"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Larry Hajali" MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com" EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="rworkman" APPROVED="Erik Hanson"

View file

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