aboutsummaryrefslogtreecommitdiff
path: root/network/amavisd-new/amavisd-new.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/amavisd-new/amavisd-new.SlackBuild')
-rw-r--r--network/amavisd-new/amavisd-new.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/network/amavisd-new/amavisd-new.SlackBuild b/network/amavisd-new/amavisd-new.SlackBuild
index e14c2c3403dd..3da69eb7695e 100644
--- a/network/amavisd-new/amavisd-new.SlackBuild
+++ b/network/amavisd-new/amavisd-new.SlackBuild
@@ -32,6 +32,15 @@ VERSION=${VERSION:-2.11.1}
ARCH="noarch"
BUILD=${BUILD:-2}
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
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -126,4 +135,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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