diff options
Diffstat (limited to 'network/iodine')
-rw-r--r-- | network/iodine/README | 6 | ||||
-rw-r--r-- | network/iodine/iodine.SlackBuild | 22 |
2 files changed, 19 insertions, 9 deletions
diff --git a/network/iodine/README b/network/iodine/README index 8f0bfc9659..80d5859947 100644 --- a/network/iodine/README +++ b/network/iodine/README @@ -1,5 +1,5 @@ iodine (DNS tunnel) -iodine lets you tunnel IPv4 data through a DNS server. This can be usable in -different situations where internet access is firewalled, but DNS queries -are allowed. +iodine lets you tunnel IPv4 data through a DNS server. This can be +usable in different situations where internet access is firewalled, +but DNS queries are allowed. diff --git a/network/iodine/iodine.SlackBuild b/network/iodine/iodine.SlackBuild index fef460289a..21d79ba2de 100644 --- a/network/iodine/iodine.SlackBuild +++ b/network/iodine/iodine.SlackBuild @@ -1,32 +1,42 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for iodine # Written by David Miller dave@frop.net # This script is released into the public domain +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=iodine VERSION=${VERSION:-0.6.0_rc1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCVERSION=$(echo $VERSION |tr _ -) 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" @@ -75,4 +85,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 |