summaryrefslogtreecommitdiffstats
path: root/system/debootstrap/debootstrap.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/debootstrap/debootstrap.SlackBuild')
-rw-r--r--system/debootstrap/debootstrap.SlackBuild24
1 files changed, 18 insertions, 6 deletions
diff --git a/system/debootstrap/debootstrap.SlackBuild b/system/debootstrap/debootstrap.SlackBuild
index 44b00fbe81..1fa82ce652 100644
--- a/system/debootstrap/debootstrap.SlackBuild
+++ b/system/debootstrap/debootstrap.SlackBuild
@@ -1,8 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for Debootstrap
# Copyright 2009 Marco Bonetti <sid77@slackware.it>
+# Copyright 2022, 2024 Mario Preksavec, Zagreb, Croatia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,13 +23,23 @@
# 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)
+
PRGNAM=debootstrap
-VERSION=${VERSION:-1.0.79}
+VERSION=${VERSION:-1.0.134}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+# 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
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -42,9 +53,10 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM
tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+cd $PRGNAM || cd $PRGNAM-$VERSION
-cp $CWD/devices.tar.gz .
+# Excise all devices.tar.gz code. Closes: #830869
+#cp $CWD/devices.tar.gz .
chown -R root:root .
find -L . \
@@ -70,4 +82,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