summaryrefslogtreecommitdiff
path: root/source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild')
-rwxr-xr-xsource/a/sysvinit-scripts/sysvinit-scripts.SlackBuild19
1 files changed, 14 insertions, 5 deletions
diff --git a/source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild b/source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild
index e165bfe2..ca09faf8 100755
--- a/source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild
+++ b/source/a/sysvinit-scripts/sysvinit-scripts.SlackBuild
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/bash
-# Copyright 2005-2016 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2005-2018 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -20,12 +20,21 @@
# 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)
-VERSION=${VERSION:-2.0}
+PKGNAM=sysvinit-scripts
+VERSION=${VERSION:-2.1}
ARCH=noarch
-BUILD=${BUILD:-33}
+BUILD=${BUILD:-9}
+
+# 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
-CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-sysvinit-scripts