diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-08-28 06:33:08 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-08-28 06:33:08 +0000 |
commit | 52cb438faada715c86b542af280ec93a0d2ec974 (patch) | |
tree | 4b57b503e90f984969aeb47e9d29bf8bda51e8f2 /main/zabbix/APKBUILD | |
parent | 3340714c76d95df5f2a4d9571f336099a3106b61 (diff) | |
download | aports-52cb438faada715c86b542af280ec93a0d2ec974.tar.bz2 aports-52cb438faada715c86b542af280ec93a0d2ec974.tar.xz |
main/zabbix: improve libc detection for selective patching
Diffstat (limited to 'main/zabbix/APKBUILD')
-rw-r--r-- | main/zabbix/APKBUILD | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/main/zabbix/APKBUILD b/main/zabbix/APKBUILD index 7558911565..d37c6750a3 100644 --- a/main/zabbix/APKBUILD +++ b/main/zabbix/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=zabbix pkgver=2.2.6 -pkgrel=0 +pkgrel=1 pkgdesc="Enterprise-class open source distributed monitoring" url="http://www.zabbix.com" arch="all" @@ -40,15 +40,13 @@ prepare() { for i in $source; do case $i in *uclibc*.patch) - ret=`echo $CHOST | grep -q uclibc` - if [ "$ret" == "0" ]; then + if [ "$CLIBC" == "uclibc" ]; then msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 fi ;; *eglibc*.patch) - ret=`echo $CHOST | grep -q eglibc` - if [ "$ret" = "0" ]; then + if [ "$CLIBC" == "eglibc" ]; then msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 fi |