aboutsummaryrefslogtreecommitdiff
path: root/network/zabbix_agentd
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2010-07-11 10:07:32 -0400
committerErik Hanson <erik@slackbuilds.org>2010-07-11 10:28:11 -0500
commitf8f6818f9415a7f5ca7986bf8e434327958b3778 (patch)
tree352006dffa2010d833cc5130f97953d94afbe1e5 /network/zabbix_agentd
parent8077c7346f334057721f3ec7dfdc9c75e47a0f41 (diff)
network/zabbix_agentd: Miscellaneous cleanups
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/zabbix_agentd')
-rw-r--r--network/zabbix_agentd/zabbix_agentd.SlackBuild25
1 files changed, 17 insertions, 8 deletions
diff --git a/network/zabbix_agentd/zabbix_agentd.SlackBuild b/network/zabbix_agentd/zabbix_agentd.SlackBuild
index 6a0f7e06878d2..c0fc9858d139b 100644
--- a/network/zabbix_agentd/zabbix_agentd.SlackBuild
+++ b/network/zabbix_agentd/zabbix_agentd.SlackBuild
@@ -2,14 +2,21 @@
# Slackware build script for zabbix_agentd
# maintained by Niels Horn <niels.horn@gmail.com>
-# revision date 2010-03-30
+# revision date: 2010/07/10
PRGNAM=zabbix_agentd
-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
ZABBIXUSER=${ZABBIXUSER:-zabbix}
@@ -53,6 +60,10 @@ elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4t"
LIBDIRSUFFIX=""
ARCHQUADLET="-gnueabi"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+ ARCHQUADLET=""
fi
rm -rf $PKG
@@ -87,10 +98,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
# Initial log file
mkdir -p $PKG/var/log/$PRGSHORT