diff options
Diffstat (limited to 'network/mysecureshell')
-rw-r--r-- | network/mysecureshell/README | 9 | ||||
-rw-r--r-- | network/mysecureshell/mysecureshell.SlackBuild | 22 | ||||
-rw-r--r-- | network/mysecureshell/mysecureshell.info | 4 |
3 files changed, 22 insertions, 13 deletions
diff --git a/network/mysecureshell/README b/network/mysecureshell/README index 43e5369b35..4c0ccbda7b 100644 --- a/network/mysecureshell/README +++ b/network/mysecureshell/README @@ -1,9 +1,9 @@ MySecureShell (sftp server based on OpenSSH's internal sftp-server) -MySecureShell is a replacement for the OpenSSH sftp-server subsystem that -offers advanced features such as jailing, group-based access controls, -and up/download limits. The configuration file is easy to read and -resembles apache/ProFTPd. +MySecureShell is a replacement for the OpenSSH sftp-server subsystem +that offers advanced features such as jailing, group-based access +controls, and up/download limits. The configuration file is easy to +read and resembles apache/ProFTPd. After installing the package, add the following to your sshd_config, commenting out the previous sftp entry if there was one: @@ -11,4 +11,3 @@ commenting out the previous sftp entry if there was one: Subsystem sftp /bin/MySecureShell -c sftp-server and restart sshd (/etc/rc.d/rc.sshd restart) - diff --git a/network/mysecureshell/mysecureshell.SlackBuild b/network/mysecureshell/mysecureshell.SlackBuild index b846c9dcd4..2522481c94 100644 --- a/network/mysecureshell/mysecureshell.SlackBuild +++ b/network/mysecureshell/mysecureshell.SlackBuild @@ -1,32 +1,42 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for MySecureShell # Written by adaptr <jeroen@adaptr.nl> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=mysecureshell VERSION=${VERSION:-1.25} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ## The source has an underscore SRCNAME=$PRGNAM\_$VERSION if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -88,4 +98,4 @@ 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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/mysecureshell/mysecureshell.info b/network/mysecureshell/mysecureshell.info index 7112264535..cef3380479 100644 --- a/network/mysecureshell/mysecureshell.info +++ b/network/mysecureshell/mysecureshell.info @@ -6,5 +6,5 @@ MD5SUM="f612d96c9ff3e99806c3c076acef0946" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="adaptr" -EMAIL="jeroen@adaptr.nl" +MAINTAINER="Matteo Bernardini" +EMAIL="ponce@slackbuilds.org" |