summaryrefslogtreecommitdiff
path: root/network/zabbix_agentd
diff options
context:
space:
mode:
Diffstat (limited to 'network/zabbix_agentd')
-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 2efc64711f..24145475c7 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 a2c02940fc..e61d6fecad 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"