summaryrefslogtreecommitdiff
path: root/network/zabbix_agentd/zabbix_agentd.SlackBuild
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 /network/zabbix_agentd/zabbix_agentd.SlackBuild
parentac295d9cd6807d452431cfe155fd8bd54f2acffd (diff)
downloadslackbuilds-c79360a54a9898895e1c31e7a3cf9772840aabfd.tar.gz
network/zabbix_agentd: Updated for version 1.8.2.
Diffstat (limited to 'network/zabbix_agentd/zabbix_agentd.SlackBuild')
-rw-r--r--network/zabbix_agentd/zabbix_agentd.SlackBuild20
1 files changed, 16 insertions, 4 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