From 4324619eac6b4029e6b1352ee22e422f47a8f39c Mon Sep 17 00:00:00 2001
From: Kevin Daudt <kdaudt@alpinelinux.org>
Date: Sun, 19 Apr 2020 07:21:04 +0000
Subject: [PATCH] community/zabbix: enable on mips(64)

Currently it's disbled on mips because agent2 does not build. Instead, just
disable agent2 and build the rest.
---
 community/zabbix/APKBUILD | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/community/zabbix/APKBUILD b/community/zabbix/APKBUILD
index 17c12bfd7a58..23f6ce872bb6 100644
--- a/community/zabbix/APKBUILD
+++ b/community/zabbix/APKBUILD
@@ -4,11 +4,10 @@
 # Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
 pkgname=zabbix
 pkgver=4.4.7
-pkgrel=0
+pkgrel=1
 pkgdesc="Enterprise-class open source distributed monitoring"
 url="http://www.zabbix.com"
-# go components FTBFS on mips
-arch="all !mips !mips64"
+arch="all"
 license="GPL-2.0-or-later"
 depends="fping"
 _php=php7
@@ -44,8 +43,9 @@ source="https://downloads.sourceforge.net/zabbix/zabbix-${pkgver/_/}.tar.gz
 
 builddir="$srcdir/$pkgname-${pkgver/_/}"
 
-# Agent2 does not build on x86 atm
 case $CARCH in
+mips|mips64)
+	_build_agent2=false;;
 *)
 	subpackages="$subpackages $pkgname-agent2 $pkgname-agent2-openrc:agent2_openrc"
 	makedepends="$makedepends go"
-- 
GitLab