diff options
Diffstat (limited to 'network/tunctl')
-rw-r--r-- | network/tunctl/README | 8 | ||||
-rw-r--r-- | network/tunctl/tunctl.SlackBuild | 22 |
2 files changed, 20 insertions, 10 deletions
diff --git a/network/tunctl/README b/network/tunctl/README index 86724ecd5e..174ef4f7eb 100644 --- a/network/tunctl/README +++ b/network/tunctl/README @@ -1,4 +1,4 @@ -tunctl is used to set up and maintain persistent TUN/TAP network interfaces, -enabling user applications to simulate network traffic. Such interfaces -is useful for VPN software, virtualization, emulation, simulation, and a -number of other applications. +tunctl is used to set up and maintain persistent TUN/TAP network +interfaces, enabling user applications to simulate network +traffic. Such interfaces is useful for VPN software, virtualization, +emulation, simulation, and a number of other applications. diff --git a/network/tunctl/tunctl.SlackBuild b/network/tunctl/tunctl.SlackBuild index 57b881ec63..27818f6f2b 100644 --- a/network/tunctl/tunctl.SlackBuild +++ b/network/tunctl/tunctl.SlackBuild @@ -1,29 +1,39 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for tunctl # Written by Murat D. Kadirov <banderols@gmail.com> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=tunctl VERSION=${VERSION:-1.5} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} 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" @@ -73,4 +83,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 |