diff options
Diffstat (limited to 'network/ddclient/ddclient.SlackBuild')
-rw-r--r-- | network/ddclient/ddclient.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/network/ddclient/ddclient.SlackBuild b/network/ddclient/ddclient.SlackBuild index 5c43f90ac7e9e..cb50313e099a9 100644 --- a/network/ddclient/ddclient.SlackBuild +++ b/network/ddclient/ddclient.SlackBuild @@ -31,9 +31,18 @@ PRGNAM=ddclient VERSION=${VERSION:-3.9.1} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch # it's only a perl script +# 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} @@ -79,4 +88,4 @@ chmod 0600 $PKG/etc/ddclient/ddclient.conf.new mkdir -p $PKG/var/cache/ddclient 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 |