summaryrefslogtreecommitdiff
path: root/system/collectd/collectd.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-11 21:36:40 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-13 09:17:45 +0700
commit9758714daeebc2587ba39dcc62eeb76fc724f1b7 (patch)
tree7221885e09cb37212b7bb613ff38396a99780728 /system/collectd/collectd.SlackBuild
parentbf226cca5f35644797f6547594fa4988021583bc (diff)
downloadslackbuilds-9758714daeebc2587ba39dcc62eeb76fc724f1b7.tar.gz
system/collectd: Updated for version 5.12.0.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/collectd/collectd.SlackBuild')
-rw-r--r--system/collectd/collectd.SlackBuild28
1 files changed, 13 insertions, 15 deletions
diff --git a/system/collectd/collectd.SlackBuild b/system/collectd/collectd.SlackBuild
index 930150310b..f7dba59369 100644
--- a/system/collectd/collectd.SlackBuild
+++ b/system/collectd/collectd.SlackBuild
@@ -1,4 +1,5 @@
#!/bin/bash
+
# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST
# Copyright 2009, 2010, 2011, 2012 Eric Hameleers, Eindhoven, Netherlands
@@ -12,10 +13,12 @@
# Copyright (c) 2017-2019, Modified by: Ricardo J. Barberis <ricardo.barberis@gmail.com>
+# 20220211 bkw: fix build on 15.0 (by updating to v5.12.0).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=collectd
-VERSION=${VERSION:-5.10.0}
+VERSION=${VERSION:-5.12.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -28,9 +31,6 @@ 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
@@ -65,9 +65,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -81,16 +81,16 @@ CXXFLAGS="$SLKCFLAGS" \
--with-perl-bindings="PREFIX=/usr INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3" \
--enable-static=no \
--without-java \
+ --disable-werror \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" \
- | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+make install-strip DESTDIR=$PKG
+gzip -9 $PKG/usr/man/man*/*
+rm -f $PKG/usr/lib*/*.la
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+# don't need these empty dirs in the package:
+rmdir $PKG/var/{log,run}
install -m 0644 -D $CWD/rc.collectd $PKG/etc/rc.d/rc.collectd.new
@@ -105,9 +105,7 @@ find $PKG -name "perllocal.pod" \
rm -fr $PKG/var/run $PKG/var/log
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install