diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-04-14 21:00:49 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-15 10:38:02 +0200 |
commit | 9bae09be5939de825b0659afbbf6eec5ab177b86 (patch) | |
tree | 402c2b18444afca8ecdf2bcc69b2fb006bafb1ff /network/zabbix_server/zabbix_server.SlackBuild | |
parent | c79360a54a9898895e1c31e7a3cf9772840aabfd (diff) | |
download | slackbuilds-9bae09be5939de825b0659afbbf6eec5ab177b86.tar.gz |
network/zabbix_server: Updated for version 1.8.2.
Diffstat (limited to 'network/zabbix_server/zabbix_server.SlackBuild')
-rw-r--r-- | network/zabbix_server/zabbix_server.SlackBuild | 21 |
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 |