summaryrefslogtreecommitdiffstats
path: root/system/telegraf
diff options
context:
space:
mode:
Diffstat (limited to 'system/telegraf')
-rw-r--r--system/telegraf/README3
-rw-r--r--system/telegraf/slack-desc2
-rw-r--r--system/telegraf/telegraf.SlackBuild22
-rw-r--r--system/telegraf/telegraf.default3
-rw-r--r--system/telegraf/telegraf.info12
5 files changed, 25 insertions, 17 deletions
diff --git a/system/telegraf/README b/system/telegraf/README
index 5603c0571c..96a46d299c 100644
--- a/system/telegraf/README
+++ b/system/telegraf/README
@@ -11,7 +11,8 @@ Kafka, MQTT, NSQ, and many others.
Groupname and Username
-You must have the "telegraf" group and user to run this script, for example:
+You must have the "telegraf" group and user to run this script, for
+example:
groupadd -g 349 telegraf
useradd -u 349 -s /bin/false -d /dev/null -g telegraf telegraf
diff --git a/system/telegraf/slack-desc b/system/telegraf/slack-desc
index e302ddec05..30a670256c 100644
--- a/system/telegraf/slack-desc
+++ b/system/telegraf/slack-desc
@@ -10,7 +10,7 @@ telegraf: telegraf (An Open-Source Collecting & Reporting Agent)
telegraf:
telegraf: It is part of the TICK stack and is a plugin-driven server agent for
telegraf: collecting and reporting metrics. Telegraf has plugins or integrations
-telegraf: to source a variety of metrics directly from the system it’s running
+telegraf: to source a variety of metrics directly from the system it's running
telegraf: on, pull metrics from third-party APIs, or even listen for metrics via
telegraf: a StatsD and Kafka consumer services. It also has output plugins to
telegraf: send metrics to a variety of other datastores, services, and message
diff --git a/system/telegraf/telegraf.SlackBuild b/system/telegraf/telegraf.SlackBuild
index 9da412809f..779f723af2 100644
--- a/system/telegraf/telegraf.SlackBuild
+++ b/system/telegraf/telegraf.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for Telegraf
-# Copyright 2017-2020 Ebben Aries <e@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=telegraf
-VERSION=${VERSION:-1.13.3}
+VERSION=${VERSION:-1.30.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}
@@ -67,7 +77,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM
tar xvf $CWD/$PRGNAM-${VERSION}_linux_${PKG_ARCH}.tar.gz
-cd $PRGNAM
+cd $PRGNAM-${VERSION}
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -104,4 +114,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/telegraf/telegraf.default b/system/telegraf/telegraf.default
deleted file mode 100644
index 56276508e3..0000000000
--- a/system/telegraf/telegraf.default
+++ /dev/null
@@ -1,3 +0,0 @@
-# Telegraf options
-
-TELEGRAF_OPTS=""
diff --git a/system/telegraf/telegraf.info b/system/telegraf/telegraf.info
index 503830ba2d..f78a096890 100644
--- a/system/telegraf/telegraf.info
+++ b/system/telegraf/telegraf.info
@@ -1,10 +1,10 @@
PRGNAM="telegraf"
-VERSION="1.13.3"
+VERSION="1.30.1"
HOMEPAGE="https://www.influxdata.com"
-DOWNLOAD="https://dl.influxdata.com/telegraf/releases/telegraf-1.13.3_linux_i386.tar.gz"
-MD5SUM="4c8fb38934053dbc7e23052934f5395f"
-DOWNLOAD_x86_64="https://dl.influxdata.com/telegraf/releases/telegraf-1.13.3_linux_amd64.tar.gz"
-MD5SUM_x86_64="c4e9024da0221a663449994d8719da89"
+DOWNLOAD="https://dl.influxdata.com/telegraf/releases/telegraf-1.30.1_linux_i386.tar.gz"
+MD5SUM="d765bebe51033ec8bfd8098b52da5ac1"
+DOWNLOAD_x86_64="https://dl.influxdata.com/telegraf/releases/telegraf-1.30.1_linux_amd64.tar.gz"
+MD5SUM_x86_64="b592f7423f327991ff178a40460f73ea"
REQUIRES=""
MAINTAINER="Ebben Aries"
-EMAIL="e@dscp.org"
+EMAIL="slackbuilds@dscp.org"