summaryrefslogtreecommitdiffstats
path: root/source/n/wireless_tools/wireless_tools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsource/n/wireless_tools/wireless_tools.SlackBuild (renamed from source/n/wireless-tools/wireless_tools.SlackBuild)29
1 files changed, 19 insertions, 10 deletions
diff --git a/source/n/wireless-tools/wireless_tools.SlackBuild b/source/n/wireless_tools/wireless_tools.SlackBuild
index 21607d3dd..48ffa8ca9 100755
--- a/source/n/wireless-tools/wireless_tools.SlackBuild
+++ b/source/n/wireless_tools/wireless_tools.SlackBuild
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/bash
-# Copyright 2008, 2009, 2010, 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2012, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -20,29 +20,38 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+PKGNAM=wireless_tools
VERSION=29
-BUILD=${BUILD:-9}
+BUILD=${BUILD:-12}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
esac
fi
+# 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
+ exit 0
+fi
+
if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp}
-PKG=$TMP/package-wireless-tools
+PKG=$TMP/package-wireless_tools
rm -rf $PKG
mkdir -p $TMP $PKG
@@ -85,11 +94,11 @@ for file in *.8 ; do
cat $file | gzip -9c > $PKG/usr/man/man8/$file.gz
done
-mkdir -p $PKG/usr/doc/wireless-tools-$VERSION
+mkdir -p $PKG/usr/doc/wireless_tools-$VERSION
cp -a \
COPYING INSTALL *.txt README* \
- $PKG/usr/doc/wireless-tools-$VERSION
-chmod 644 $PKG/usr/doc/wireless-tools-$VERSION/*
+ $PKG/usr/doc/wireless_tools-$VERSION
+chmod 644 $PKG/usr/doc/wireless_tools-$VERSION/*
# Add init scripts from Eric Hameleers:
mkdir -p $PKG/etc/rc.d
@@ -104,5 +113,5 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $TMP/wireless-tools-$VERSION-$ARCH-$BUILD.txz
+/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz