diff options
Diffstat (limited to 'system/kapacitor')
-rw-r--r-- | system/kapacitor/README | 6 | ||||
-rw-r--r-- | system/kapacitor/kapacitor.SlackBuild | 36 | ||||
-rw-r--r-- | system/kapacitor/kapacitor.info | 10 |
3 files changed, 34 insertions, 18 deletions
diff --git a/system/kapacitor/README b/system/kapacitor/README index 10151a24ed..b3a0c317e6 100644 --- a/system/kapacitor/README +++ b/system/kapacitor/README @@ -10,7 +10,9 @@ OpsGenie, Alerta, Sensu, PagerDuty, Slack, and more. Groupname and Username -You must have the "kapacitor" group and user to run this script, for example: +You must have the "kapacitor" group and user to run this script, for +example: groupadd -g 351 kapacitor - useradd -u 351 -s /bin/false -d /var/lib/kapacitor -g kapacitor kapacitor + useradd -u 351 -s /bin/false \ + -d /var/lib/kapacitor -g kapacitor kapacitor diff --git a/system/kapacitor/kapacitor.SlackBuild b/system/kapacitor/kapacitor.SlackBuild index 730e37a939..2a9d276b46 100644 --- a/system/kapacitor/kapacitor.SlackBuild +++ b/system/kapacitor/kapacitor.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Kapacitor -# Copyright 2017-2021 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=kapacitor -VERSION=${VERSION:-1.5.8} +VERSION=${VERSION:-1.7.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,17 +39,28 @@ if [ -z "$ARCH" ]; then fi UIDGID=351 + +nobuild() { + echo " You must have the \"$PRGNAM\" group and user to run this script." + echo " # groupadd -g $UIDGID $PRGNAM" + echo " # useradd -u $UIDGID -s /bin/false -d /var/lib/kapacitor -g $PRGNAM $PRGNAM" + exit 1 +} + if ! getent group $PRGNAM; then - echo " You must have the \"$PRGNAM\" group to run this script." - echo " # groupadd -g $UIDGID $PRGNAM" - exit 1 + nobuild elif ! getent passwd $PRGNAM; then - echo " You must have the \"$PRGNAM\" user to run this script." - echo " # useradd -u $UIDGID -s /bin/false -d /var/lib/kapacitor -g $PRGNAM $PRGNAM" - exit 1 + nobuild +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 -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -103,4 +117,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/kapacitor/kapacitor.info b/system/kapacitor/kapacitor.info index 6b56358db1..820cd24e14 100644 --- a/system/kapacitor/kapacitor.info +++ b/system/kapacitor/kapacitor.info @@ -1,10 +1,10 @@ PRGNAM="kapacitor" -VERSION="1.5.8" +VERSION="1.7.3" HOMEPAGE="https://www.influxdata.com" -DOWNLOAD="https://dl.influxdata.com/kapacitor/releases/kapacitor-1.5.8_linux_i386.tar.gz" -MD5SUM="06d9e8841cc7ddd4a42f6bf58923f636" -DOWNLOAD_x86_64="https://dl.influxdata.com/kapacitor/releases/kapacitor-1.5.8_linux_amd64.tar.gz" -MD5SUM_x86_64="1fc6105c17083488ea18d1bfe9f010e1" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://dl.influxdata.com/kapacitor/releases/kapacitor-1.7.3_linux_amd64.tar.gz" +MD5SUM_x86_64="3760718ff184d7405783cc875ed4efb3" REQUIRES="" MAINTAINER="Ebben Aries" EMAIL="slackbuilds@dscp.org" |