diff options
Diffstat (limited to 'system/prometheus')
-rw-r--r-- | system/prometheus/prometheus.SlackBuild | 20 | ||||
-rw-r--r-- | system/prometheus/prometheus.info | 6 | ||||
-rw-r--r-- | system/prometheus/slack-desc | 2 |
3 files changed, 19 insertions, 9 deletions
diff --git a/system/prometheus/prometheus.SlackBuild b/system/prometheus/prometheus.SlackBuild index 6239090edd..97cc74954f 100644 --- a/system/prometheus/prometheus.SlackBuild +++ b/system/prometheus/prometheus.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Prometheus -# Copyright 2017-2020 Ebben Aries <slackbuilds@dscp.org> +# Copyright 2017-2024 Ebben Aries <slackbuilds@dscp.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # 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) + PRGNAM=prometheus -VERSION=${VERSION:-2.25.0} +VERSION=${VERSION:-2.51.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -46,7 +49,14 @@ elif ! getent passwd $PRGNAM; then exit 1 fi -CWD=$(pwd) +# 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} @@ -103,4 +113,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 diff --git a/system/prometheus/prometheus.info b/system/prometheus/prometheus.info index 7b1131dac9..594936a452 100644 --- a/system/prometheus/prometheus.info +++ b/system/prometheus/prometheus.info @@ -1,10 +1,10 @@ PRGNAM="prometheus" -VERSION="2.25.0" +VERSION="2.51.1" HOMEPAGE="https://prometheus.io" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://github.com/prometheus/prometheus/releases/download/v2.25.0/prometheus-2.25.0.linux-amd64.tar.gz" -MD5SUM_x86_64="cdd95e04f102504ad7abc52fc5448da9" +DOWNLOAD_x86_64="https://github.com/prometheus/prometheus/releases/download/v2.51.1/prometheus-2.51.1.linux-amd64.tar.gz" +MD5SUM_x86_64="ba67aa6f4b383c3839bc82d477948828" REQUIRES="" MAINTAINER="Ebben Aries" EMAIL="slackbuilds@dscp.org" diff --git a/system/prometheus/slack-desc b/system/prometheus/slack-desc index 30bd4f1c35..ca2456e914 100644 --- a/system/prometheus/slack-desc +++ b/system/prometheus/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -prometheus: Prometheus (An Open-Source Monitoring and Alerting Toolkit) +prometheus: prometheus (An Open-Source Monitoring and Alerting Toolkit) prometheus: prometheus: Prometheus is an open-source systems monitoring and alerting toolkit prometheus: originally built at SoundCloud. |