aboutsummaryrefslogtreecommitdiff
path: root/system/collectd/collectd.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-11-08 13:48:36 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2013-11-08 17:35:12 +0100
commit1b393452df0547e7ca75ff1e3e74484a82e6072e (patch)
tree8724aaa6e9c68d48f8499fc785dd3d4d950937fb /system/collectd/collectd.SlackBuild
parenta1fda691eae13d28a10021c3fcab2f7ffd238c38 (diff)
system/collectd: Updated for version 5.4.0.
Added an rc script, fix for gcc-4.8.x, disabled static stuff Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/collectd/collectd.SlackBuild')
-rw-r--r--system/collectd/collectd.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/system/collectd/collectd.SlackBuild b/system/collectd/collectd.SlackBuild
index 06c44d08bfdd8..1a710047ec689 100644
--- a/system/collectd/collectd.SlackBuild
+++ b/system/collectd/collectd.SlackBuild
@@ -8,8 +8,10 @@
# Based on http://slackbuilds.org/template.SlackBuild
+# Modified by the SlackBuilds.org project
+
PRGNAM=collectd
-VERSION=${VERSION:-20120912_5cf0dd2}
+VERSION=${VERSION:-5.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,7 +57,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-./build.sh
+# Fix for gcc-4.8.x
+sed -i "s|\ -Werror||" src/Makefile.in
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -67,6 +70,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-perl-bindings="PREFIX=/usr INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3" \
+ --enable-static=no \
--build=$ARCH-slackware-linux
make
@@ -78,6 +82,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" \
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
+install -m 0644 -D $CWD/rc.collectd $PKG/etc/rc.d/rc.collectd.new
+
# Rename
mv $PKG/etc/collectd.conf $PKG/etc/collectd.conf.new
@@ -86,6 +92,8 @@ find $PKG -name "perllocal.pod" \
-o -name "*.bs" \
| xargs rm -f
+rm -fr $PKG/var/run $PKG/var/log
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS ChangeLog COPYING INSTALL README \