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