diff options
Diffstat (limited to 'network/autossh/autossh.SlackBuild')
-rw-r--r-- | network/autossh/autossh.SlackBuild | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/network/autossh/autossh.SlackBuild b/network/autossh/autossh.SlackBuild index debd13910f010..7a32d35fbc4fc 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} |