summaryrefslogtreecommitdiff
path: root/network/autossh
diff options
context:
space:
mode:
Diffstat (limited to 'network/autossh')
-rw-r--r--network/autossh/autossh.SlackBuild29
-rw-r--r--network/autossh/autossh.info8
-rw-r--r--network/autossh/slack-desc2
3 files changed, 26 insertions, 13 deletions
diff --git a/network/autossh/autossh.SlackBuild b/network/autossh/autossh.SlackBuild
index debd13910f..7a32d35fbc 100644
--- a/network/autossh/autossh.SlackBuild
+++ b/network/autossh/autossh.SlackBuild
@@ -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}
diff --git a/network/autossh/autossh.info b/network/autossh/autossh.info
index 692050f00d..17902deb6c 100644
--- a/network/autossh/autossh.info
+++ b/network/autossh/autossh.info
@@ -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"
diff --git a/network/autossh/slack-desc b/network/autossh/slack-desc
index 00d0928074..b66cb1c197 100644
--- a/network/autossh/slack-desc
+++ b/network/autossh/slack-desc
@@ -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: