Bug 246447 - [NEW PORT] net-mgmt/zabbix5-*: Zabbix Ports (5.0.X)
Summary: [NEW PORT] net-mgmt/zabbix5-*: Zabbix Ports (5.0.X)
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL: https://www.zabbix.com/rn/rn5.0.0
Keywords: feature, needs-patch, needs-qa
: 246555 (view as bug list)
Depends on:
Reported: 2020-05-13 20:22 UTC by VVD
Modified: 2020-05-27 14:08 UTC (History)
7 users (show)

See Also:

zabbix 5.0 (93.02 KB, text/plain)
2020-05-19 06:46 UTC, Juraj Lutter
no flags Details
zabbix 5.0 (93.03 KB, text/plain)
2020-05-19 07:07 UTC, Juraj Lutter
no flags Details
zabbix 5.0 suite diff (136.02 KB, patch)
2020-05-20 12:39 UTC, Juraj Lutter
no flags Details | Diff
zabbix 5.0 suite diff (152.43 KB, patch)
2020-05-26 20:38 UTC, Juraj Lutter
no flags Details | Diff
New port of Zabbix 5 (57.94 KB, patch)
2020-05-27 14:08 UTC, pg
pg: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description VVD 2020-05-13 20:22:17 UTC
11 May 2020
Zabbix Team is pleased to announce the availability of Zabbix 5.0.0.


BTW, 4.2 is unsupported upstream already.
Comment 1 Peter Kubica 2020-05-14 12:59:16 UTC
Please include Agent 2.
Comment 2 Juraj Lutter 2020-05-18 21:50:35 UTC
I've created:


I can also try agent2.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2020-05-19 02:57:02 UTC
Thank you Juraj

Could you please attach the patch from bug 246555 here please
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2020-05-19 02:58:08 UTC
*** Bug 246555 has been marked as a duplicate of this bug. ***
Comment 5 Juraj Lutter 2020-05-19 06:46:07 UTC
Created attachment 214622 [details]
zabbix 5.0
Comment 6 Juraj Lutter 2020-05-19 07:07:31 UTC
Created attachment 214623 [details]
zabbix 5.0
Comment 7 Juraj Lutter 2020-05-19 07:08:01 UTC
(In reply to Juraj Lutter from comment #6)

This patch contains updated pkg-message.in
Comment 9 Danilo G. Baio freebsd_committer 2020-05-19 20:56:17 UTC
(In reply to Juraj Lutter from comment #7)

Hi Juraj.

Thanks for your work.

A few tweaks, instead of a shar file, please send a diff here, it will simplify things.

$ svn cp net-mgmt/zabbix4-server net-mgmt/zabbix5-server
$ svn cp net-mgmt/zabbix4-agent net-mgmt/zabbix5-agent
and go on ... 
then you just need to `svn diff net-mgmt/zabbix5*` and send the patch here.

Adjust conflicts;  MASTER_SITES as zabbix44;

The naming, please follow the standard of the other 20 Zabbix ports:
  zabbix3  — 3.0.X
  zabbix4  - 4.0.X
  zabbix42 - 4.2.X
  zabbix44 - 4.4.X
  zabbix5  - 5.0.X  <---
Comment 10 Juraj Lutter 2020-05-19 22:22:29 UTC
I have been able to run agent2:


It will require some more minor work, though (agent2 runs in foreground by default, it will require involvment of daemon(8), more FreeBSD-specific testing is need as well.)
Comment 11 Peter Kubica 2020-05-20 03:30:04 UTC
(In reply to Juraj Lutter from comment #10)

Thanks Juraj, great news.
Comment 12 Juraj Lutter 2020-05-20 12:39:49 UTC
Created attachment 214691 [details]
zabbix 5.0 suite diff

New zabbix 5.0 ports in diff format
Comment 13 Mikael Urankar freebsd_committer 2020-05-20 13:30:33 UTC
Do you have a phab account? I have a few remarks and it's easier to do it in phab.
Does agent2 build under poudriere?
Comment 14 Juraj Lutter 2020-05-20 13:35:26 UTC
phab link:


agent2 does not build in poudriere (as of now), it requires some go modules that are being downloaded from the Internet amidst build. I'd be happy to see how to work arond this issue that is preventing agent2 from build in poudriere.
Comment 15 Mikael Urankar freebsd_committer 2020-05-20 13:53:16 UTC
(In reply to Juraj Lutter from comment #14)
Thanks for the phab review.

This is what I've done for zabbix-agent2:
Comment 16 Juraj Lutter 2020-05-23 19:45:41 UTC
I have fixed the agent2 build, see the diff in phabricator.
Comment 17 VVD 2020-05-26 18:10:21 UTC
5.0.1 released: https://cdn.zabbix.com/zabbix/sources/stable/5.0/
Comment 18 Juraj Lutter 2020-05-26 20:38:40 UTC
Created attachment 214890 [details]
zabbix 5.0 suite diff
Comment 19 Juraj Lutter 2020-05-26 20:40:10 UTC
Patch updated to 5.0.1.

It also contains zabbix-agent2 that will need more work. I suggest to review and commit it without agent2 for the time being, I am working on make it ready (to clean up Linux-isms where possible.)
Comment 20 pg 2020-05-27 14:08:52 UTC
Created attachment 214918 [details]
New port of Zabbix 5

Many people ask for a port with Zabbix 5. I think it's a good idea to commit it without agent2 now and continue to work further. I created the patch with Zabbix 5.0.1. I also fixed the use deprecated USE_PHP and other minor changes. It's build in poudriere without errors.