summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-07-11 10:08:02 -0400
committerErik Hanson <erik@slackbuilds.org>2010-07-11 10:28:11 -0500
commit609c4c8c4facb02f0f3a30079ed7a41767395e54 (patch)
tree9f5fefa15301fb1e3798dcbb089fbdde996ac0e4
parentf8f6818f9415a7f5ca7986bf8e434327958b3778 (diff)
downloadslackbuilds-609c4c8c4facb02f0f3a30079ed7a41767395e54.tar.gz
network/zabbix_server: Miscellaneous cleanups
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--network/zabbix_server/zabbix_server.SlackBuild23
1 files changed, 16 insertions, 7 deletions
diff --git a/network/zabbix_server/zabbix_server.SlackBuild b/network/zabbix_server/zabbix_server.SlackBuild
index c5773fa7fe..5ed9af5053 100644
--- a/network/zabbix_server/zabbix_server.SlackBuild
+++ b/network/zabbix_server/zabbix_server.SlackBuild
@@ -5,11 +5,18 @@
# revision date 2010-03-30
PRGNAM=zabbix_server
-VERSION=1.8.2
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-1.8.2}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
PRGSHORT=zabbix
DOCROOT=${DOCROOT:-/var/www/htdocs}
@@ -57,6 +64,10 @@ elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4t"
LIBDIRSUFFIX=""
ARCHQUADLET="-gnueabi"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET=""
fi
rm -rf $PKG
@@ -94,10 +105,8 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | 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
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Install "frontend" to $DOCROOT/zabbix
mkdir -p $PKG/$DOCROOT/$PRGSHORT