aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-04-14 21:00:09 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-15 10:38:02 +0200
commitc79360a54a9898895e1c31e7a3cf9772840aabfd (patch)
tree47a750d7089e0d0ecbfeff1b4087c563178ea3c4
parentac295d9cd6807d452431cfe155fd8bd54f2acffd (diff)
network/zabbix_agentd: Updated for version 1.8.2.
-rw-r--r--network/zabbix_agentd/zabbix_agentd.SlackBuild20
-rw-r--r--network/zabbix_agentd/zabbix_agentd.info8
2 files changed, 20 insertions, 8 deletions
diff --git a/network/zabbix_agentd/zabbix_agentd.SlackBuild b/network/zabbix_agentd/zabbix_agentd.SlackBuild
index 2efc64711f32..24145475c7d7 100644
--- a/network/zabbix_agentd/zabbix_agentd.SlackBuild
+++ b/network/zabbix_agentd/zabbix_agentd.SlackBuild
@@ -2,10 +2,10 @@
# Slackware build script for zabbix_agentd
# maintained by Niels Horn <niels.horn@gmail.com>
-# revision date 2010-01-27
+# revision date 2010-03-30
PRGNAM=zabbix_agentd
-VERSION=1.8.1
+VERSION=1.8.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,12 +40,19 @@ fi
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCHQUADLET=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
+ ARCHQUADLET=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+ ARCHQUADLET=""
+elif [ "$ARCH" = "arm" ]; then
+ SLKCFLAGS="-O2 -march=armv4t"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET="-gnueabi"
fi
rm -rf $PKG
@@ -72,7 +79,7 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-agent \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux$ARCHQUADLET
make
make install DESTDIR=$PKG
@@ -84,6 +91,11 @@ make install DESTDIR=$PKG
xargs strip --strip-unneeded 2> /dev/null || true
)
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
# Initial log file
mkdir -p $PKG/var/log/$PRGSHORT
touch $PKG/var/log/$PRGSHORT/${PRGNAM}.log.new
@@ -95,7 +107,7 @@ chown -R $ZABBIXUSER:$ZABBIXGROUP $PKG/var/run/$PRGSHORT
# Configuration file
mkdir -p $PKG/etc/$PRGSHORT
-sed -e "s,PidFile=/var/tmp/,PidFile=/var/run/$PRGSHORT/," \
+sed -e "s,# PidFile=/tmp/,PidFile=/var/run/$PRGSHORT/," \
-e "s,LogFile=/tmp/,LogFile=/var/log/$PRGSHORT/," \
misc/conf/$PRGNAM.conf > $PKG/etc/$PRGSHORT/$PRGNAM.conf.new
diff --git a/network/zabbix_agentd/zabbix_agentd.info b/network/zabbix_agentd/zabbix_agentd.info
index a2c02940fc99..e61d6fecad1a 100644
--- a/network/zabbix_agentd/zabbix_agentd.info
+++ b/network/zabbix_agentd/zabbix_agentd.info
@@ -1,10 +1,10 @@
PRGNAM="zabbix_agentd"
-VERSION="1.8.1"
+VERSION="1.8.2"
HOMEPAGE="http://www.zabbix.com"
-DOWNLOAD="http://downloads.sourceforge.net/zabbix/zabbix-1.8.1.tar.gz"
-MD5SUM="ab1a5006a885d780084bb870320abbc9"
+DOWNLOAD="http://downloads.sourceforge.net/zabbix/zabbix-1.8.2.tar.gz"
+MD5SUM="fa4be4fa7ac20a33cc0aa5c27b827746"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Niels Horn"
EMAIL="niels.horn@gmail.com"
-APPROVED="Erik Hanson"
+APPROVED="dsomero"