mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/autossh: Updated for version 1.4b
This commit is contained in:
parent
239c7bfd46
commit
3f8f2deb7c
3 changed files with 26 additions and 13 deletions
|
@ -1,9 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for autossh
|
||||
|
||||
# Copyright (c) 2007, Written by Mark Walling <mark@markwalling.com>
|
||||
# Copyright (C) 2008 paul wisehart wise@lupulin.net
|
||||
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
@ -25,13 +25,12 @@
|
|||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
set -e
|
||||
|
||||
PRGNAM=autossh
|
||||
VERSION=1.4a
|
||||
VERSION=1.4b
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -39,15 +38,22 @@ 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
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar -xzvf $CWD/$PRGNAM-$VERSION.tgz
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tgz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
@ -56,14 +62,19 @@ CFLAGS="$SLKCFLAGS" \
|
|||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var
|
||||
--localstatedir=/var \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
mkdir -p $PKG/usr/bin $PKG/usr/man/man1
|
||||
|
||||
mkdir -p $PKG/usr/bin
|
||||
install -m 0755 autossh $PKG/usr/bin
|
||||
strip --strip-unneeded $PKG/usr/bin/autossh
|
||||
cat autossh.1 | gzip -9 > $PKG/usr/man/man1/autossh.1.gz
|
||||
|
||||
mkdir -p $PKG/usr/man/man1
|
||||
cat autossh.1 | gzip -9c > $PKG/usr/man/man1/autossh.1.gz
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CHANGES INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
@ -75,4 +86,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.tgz
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
PRGNAM="autossh"
|
||||
VERSION="1.4a"
|
||||
VERSION="1.4b"
|
||||
HOMEPAGE="http://www.harding.motd.ca/autossh/"
|
||||
DOWNLOAD="http://www.harding.motd.ca/autossh/autossh-1.4a.tgz"
|
||||
MD5SUM="a5497938986f0c179926f1ebba603767"
|
||||
DOWNLOAD="http://www.harding.motd.ca/autossh/autossh-1.4b.tgz"
|
||||
MD5SUM="8f9aa006f6f69e912d3c2f504622d6f7"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Paul Wisehart"
|
||||
EMAIL="wise@lupulin"
|
||||
APPROVED="rworkman"
|
||||
|
|
|
@ -11,7 +11,7 @@ autossh:
|
|||
autossh: autossh is a program to start a copy of ssh and monitor it,
|
||||
autossh: restarting it as necessary should it die or stop passing traffic.
|
||||
autossh:
|
||||
autossh: http://www.harding.motd.ca/autossh/
|
||||
autossh: http://www.harding.motd.ca/autossh/
|
||||
autossh:
|
||||
autossh:
|
||||
autossh:
|
||||
|
|
Loading…
Reference in a new issue