summaryrefslogtreecommitdiff
path: root/system/collectd/collectd.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-16 13:09:58 +0200
committerdsomero <xgizzmo@slackbuilds.org>2012-09-16 19:44:42 -0400
commite9e13e288db26e827b73635a57a4500f36d30c88 (patch)
treec992a1416e913e807d633480d05cbabf3ff4d527 /system/collectd/collectd.SlackBuild
parentaa1f82bec5bc8594fa33f5b074af076402e0ffaf (diff)
downloadslackbuilds-e9e13e288db26e827b73635a57a4500f36d30c88.tar.gz
system/collectd: Updated for version 20120912_5cf0dd2, cleanups.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/collectd/collectd.SlackBuild')
-rw-r--r--system/collectd/collectd.SlackBuild17
1 files changed, 7 insertions, 10 deletions
diff --git a/system/collectd/collectd.SlackBuild b/system/collectd/collectd.SlackBuild
index e97a5d20a4..06c44d08bf 100644
--- a/system/collectd/collectd.SlackBuild
+++ b/system/collectd/collectd.SlackBuild
@@ -9,7 +9,7 @@
# Based on http://slackbuilds.org/template.SlackBuild
PRGNAM=collectd
-VERSION=${VERSION:-5.1.0}
+VERSION=${VERSION:-20120912_5cf0dd2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,7 +46,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -55,6 +55,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+./build.sh
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -64,8 +66,8 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux \
- --without-libgcrypt
+ --with-perl-bindings="PREFIX=/usr INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3" \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -73,15 +75,10 @@ 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
-mv $PKG/usr/share/man/man3 $PKG/usr/man
-rmdir $PKG/usr/share/man
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
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Rename
-mv $PKG/usr/lib${LIBDIRSUFFIX}/perl5/site_perl $PKG/usr/lib${LIBDIRSUFFIX}/perl5/vendor_perl
mv $PKG/etc/collectd.conf $PKG/etc/collectd.conf.new
find $PKG -name "perllocal.pod" \