From c79360a54a9898895e1c31e7a3cf9772840aabfd Mon Sep 17 00:00:00 2001 From: Niels Horn Date: Wed, 14 Apr 2010 21:00:09 -0400 Subject: network/zabbix_agentd: Updated for version 1.8.2. --- network/zabbix_agentd/zabbix_agentd.SlackBuild | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'network/zabbix_agentd/zabbix_agentd.SlackBuild') 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 -# 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 -- cgit v1.2.3