summaryrefslogtreecommitdiff
path: root/network/zabbix_server/zabbix_server.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/zabbix_server/zabbix_server.SlackBuild')
-rw-r--r--network/zabbix_server/zabbix_server.SlackBuild21
1 files changed, 17 insertions, 4 deletions
diff --git a/network/zabbix_server/zabbix_server.SlackBuild b/network/zabbix_server/zabbix_server.SlackBuild
index fc4b944622..b824166963 100644
--- a/network/zabbix_server/zabbix_server.SlackBuild
+++ b/network/zabbix_server/zabbix_server.SlackBuild
@@ -2,10 +2,10 @@
# Slackware build script for zabbix_server
# maintained by Niels Horn <niels.horn@gmail.com>
-# revision date 2010-01-27
+# revision date 2010-03-30
PRGNAM=zabbix_server
-VERSION=1.8.1
+VERSION=1.8.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -44,12 +44,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
@@ -79,7 +86,7 @@ CXXFLAGS="$SLKCFLAGS" \
--with-mysql \
--with-net-snmp \
--with-libcurl \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux$ARCHQUADLET
make
make install DESTDIR=$PKG
@@ -91,6 +98,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
+)
+
# Install "frontend" to $DOCROOT/zabbix
mkdir -p $PKG/$DOCROOT/$PRGSHORT
cp -a frontends/php/* \
@@ -115,7 +127,8 @@ 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,# DBSocket=/tmp/,DBSocket=/var/run/mysql/," \
-e "s,LogFile=/tmp/,LogFile=/var/log/$PRGSHORT/," \
misc/conf/$PRGNAM.conf > $PKG/etc/$PRGSHORT/$PRGNAM.conf.new