aboutsummaryrefslogtreecommitdiff
path: root/network/nsd/nsd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/nsd/nsd.SlackBuild')
-rw-r--r--network/nsd/nsd.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/network/nsd/nsd.SlackBuild b/network/nsd/nsd.SlackBuild
index af280220b5934..a5dabb9dbcfe1 100644
--- a/network/nsd/nsd.SlackBuild
+++ b/network/nsd/nsd.SlackBuild
@@ -30,6 +30,7 @@ GROUP=$PRGNAM
VERSION=${VERSION:-4.3.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if ! grep -q "^nsd:" /etc/group; then
echo "$0: Error: $PRGNAM group ($GROUP) doesn't exist."
@@ -53,6 +54,14 @@ if [ -z "$ARCH" ]; then
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 "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -140,4 +149,4 @@ mkdir -p "$PKG/var/log/$PRGNAM"
chown $USER:$GROUP "$PKG/var/log/$PRGNAM"
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"