diff options
Diffstat (limited to 'network/pdns/pdns.SlackBuild')
-rw-r--r-- | network/pdns/pdns.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/network/pdns/pdns.SlackBuild b/network/pdns/pdns.SlackBuild index 023055bcb8db2..8aca52549b311 100644 --- a/network/pdns/pdns.SlackBuild +++ b/network/pdns/pdns.SlackBuild @@ -27,6 +27,7 @@ PRGNAM=pdns VERSION=${VERSION:-4.1.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,6 +37,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} @@ -112,4 +121,4 @@ cat $CWD/rc.pdns > $PKG/etc/rc.d/rc.pdns.new mv $PKG/etc/pdns.conf-dist $PKG/etc/pdns.conf.new 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 |