From c941dd4e497fbe45c55e396e45119adc948368f1 Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Wed, 12 May 2010 23:30:42 +0200 Subject: libraries/libssh: Added to 12.2 repository --- libraries/libssh/README | 10 ++++++ libraries/libssh/libssh.SlackBuild | 73 ++++++++++++++++++++++++++++++++++++++ libraries/libssh/libssh.info | 8 +++++ libraries/libssh/slack-desc | 19 ++++++++++ 4 files changed, 110 insertions(+) create mode 100644 libraries/libssh/README create mode 100644 libraries/libssh/libssh.SlackBuild create mode 100644 libraries/libssh/libssh.info create mode 100644 libraries/libssh/slack-desc (limited to 'libraries') diff --git a/libraries/libssh/README b/libraries/libssh/README new file mode 100644 index 0000000000..69482f47e0 --- /dev/null +++ b/libraries/libssh/README @@ -0,0 +1,10 @@ +libssh is a library designed to be used by programmers needing a working +SSH implementation by means of a library. The complete control of the client +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. + +Note: libssh is neither related to nor conflicts with libssh2. diff --git a/libraries/libssh/libssh.SlackBuild b/libraries/libssh/libssh.SlackBuild new file mode 100644 index 0000000000..3ad437c5a9 --- /dev/null +++ b/libraries/libssh/libssh.SlackBuild @@ -0,0 +1,73 @@ +#!/bin/sh + +# Slackware build script for libssh + +# Written by Larry Hajali + +PRGNAM=libssh +VERSION=${VERSION:-0.2} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +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 +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tgz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -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 + +make +make install DESTDIR=$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 "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 +cp -a AUTHORS CHANGELOG COPYING README $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 diff --git a/libraries/libssh/libssh.info b/libraries/libssh/libssh.info new file mode 100644 index 0000000000..09e9831f01 --- /dev/null +++ b/libraries/libssh/libssh.info @@ -0,0 +1,8 @@ +PRGNAM="libssh" +VERSION="0.2" +HOMEPAGE="http://0xbadc0de.be/wiki/libssh:libssh" +DOWNLOAD="http://0xbadc0de.be/libssh/libssh-0.2.tgz" +MD5SUM="8a76c03579a3e27046e6bafe88ffd171" +MAINTAINER="Larry Hajali" +EMAIL="larryhaja[at]gmail[dot]com" +APPROVED="rworkman" diff --git a/libraries/libssh/slack-desc b/libraries/libssh/slack-desc new file mode 100644 index 0000000000..4580099ca9 --- /dev/null +++ b/libraries/libssh/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----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: -- cgit v1.2.3