summaryrefslogtreecommitdiff
path: root/source/a/pkgtools/pkgtools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/pkgtools/pkgtools.SlackBuild')
-rwxr-xr-xsource/a/pkgtools/pkgtools.SlackBuild25
1 files changed, 17 insertions, 8 deletions
diff --git a/source/a/pkgtools/pkgtools.SlackBuild b/source/a/pkgtools/pkgtools.SlackBuild
index c33fb062..5ee4d1d2 100755
--- a/source/a/pkgtools/pkgtools.SlackBuild
+++ b/source/a/pkgtools/pkgtools.SlackBuild
@@ -1,5 +1,5 @@
-#!/bin/sh
-# Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Patrick J. Volkerding, Sebeka, MN, USA
+#!/bin/bash
+# Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2018 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -20,16 +20,25 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Set initial variables:
-CWD=`pwd`
+cd $(dirname $0) ; CWD=$(pwd)
if [ "$TMP" = "" ]; then
TMP=/tmp
fi
PKG=$TMP/package-pkgtools
+PKGNAM=pkgtools
# *** UPDATE THESE WITH EACH BUILD:
-VERSION=14.2
+VERSION=15.0
ARCH=${ARCH:-noarch}
-BUILD=10
+BUILD=${BUILD:-13}
+
+# 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 [ ! -d $TMP ]; then
mkdir -p $TMP # location to build the source
@@ -40,8 +49,8 @@ mkdir -p $PKG
# Install Slackware script manpages:
( cd $CWD/manpages
mkdir -p $PKG/usr/man/man8
- for page in explodepkg.8 installpkg.8 makepkg.8 upgradepkg.8 pkgtool.8 \
- removepkg.8 ; do
+ for page in explodepkg.8 installpkg.8 makepkg.8 upgradepkg.8 pkgdiff.8 \
+ pkgtool.8 removepkg.8 ; do
cat $page | gzip -9c > $PKG/usr/man/man8/$page.gz
done
)
@@ -65,7 +74,7 @@ mkdir -p $PKG
mkdir -p $PKG/sbin
# Don't include makebootdisk... it's useless since a kernel won't fit on a
# floppy disk, and nobody uses floppies any more anyway.
- for file in explodepkg installpkg makepkg pkgtool removepkg upgradepkg ; do
+ for file in explodepkg installpkg makepkg pkgdiff pkgtool removepkg upgradepkg ; do
cp -a $CWD/scripts/$file $PKG/sbin
done
chown root:root $PKG/sbin/*