Bug 231895

Summary: New ports: net-mgmt/zabbix4-[agent|frontend|java|proxy|server]
Product: Ports & Packages Reporter: Danilo G. Baio <dbaio>
Component: Individual Port(s)Assignee: Danilo G. Baio <dbaio>
Status: Closed FIXED    
Severity: Affects Some People CC: pg
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://www.zabbix.com/documentation/4.0/manual/introduction/whatsnew400
Attachments:
Description Flags
zabbix4-NEW.patch pg: maintainer-approval+

Description Danilo G. Baio freebsd_committer 2018-10-03 02:25:43 UTC
Created attachment 197726 [details]
zabbix4-NEW.patch

net-mgmt/zabbix34 -> net-mgmt/zabbix4

What's new in Zabbix 4.0.0:
https://www.zabbix.com/documentation/4.0/manual/introduction/whatsnew400



How to apply the patch:

cd $PORTSDIR/net-mgmt
svn cp zabbix34-server zabbix4-server
svn cp zabbix34-agent zabbix4-agent
svn cp zabbix34-frontend zabbix4-frontend
svn cp zabbix34-java zabbix4-java
svn cp zabbix34-proxy zabbix4-proxy

cd zabbix34-server
svn del files/patch-src_zabbix__agent_zabbix__agentd.c
svn del files/patch-src_zabbix__proxy_proxy.c
svn del files/patch-src_zabbix__server_server.c

cd ../../
svn patch /tmp/zabbix4-NEW.patch

fix permissions on all files that were merged.


These are the main changes applied:

- Remove SQLite from Server/Frontend

Since Zabbix 3.4, SQLite is no longer supported as a backend database for
Zabbix server and frontend. It is still supported for Zabbix proxy.

- Use options helpers on Frontend

- Drop IODBC option, it's not supported anymore.

- Merge Patches and Sed's
  We were changing files from files/patch* and in the Makefile, now all
  changes are in the Makefile, to simplify future upgrades.



I still haven't upgraded an older Zabbix Server to 4.0.0, I just have a new
4.0.0 server running.

Could you take a look and help in testing?

Regards.
Comment 1 Danilo G. Baio freebsd_committer 2018-10-04 01:50:27 UTC
I've just upgraded a Zabbix server from 3.0 to 4.0 (with a large database), apparently it's all fine.
Comment 2 pg 2018-10-04 06:29:20 UTC
Comment on attachment 197726 [details]
zabbix4-NEW.patch

Approved, thanks
Comment 3 commit-hook freebsd_committer 2018-10-04 12:04:31 UTC
A commit references this bug:

Author: dbaio
Date: Thu Oct  4 12:04:02 UTC 2018
New revision: 481218
URL: https://svnweb.freebsd.org/changeset/ports/481218

Log:
  New ports: net-mgmt/zabbix4-[agent|frontend|java|proxy|server]

  net-mgmt/zabbix34 -> net-mgmt/zabbix4

  What's new in Zabbix 4.0.0:
  https://www.zabbix.com/documentation/4.0/manual/introduction/whatsnew400

  Main changes applied:

  - Drop IODBC option, it's not supported anymore.

  - Merge Patches and Sed's
    We were patching files with files/patch* and Makefile, now all changes are in
    the Makefile, to simplify the port and future upgrades.

  - Remove SQLite from Server/Frontend
    Since Zabbix 3.4, SQLite is no longer supported as a backend database for
    Zabbix server and frontend. It is still supported for Zabbix proxy.

  - Switch to options helper (Frontend)

  PR:		231895
  Approved by:	Pakhom Golynga <pg@pakhom.spb.ru> (maintainer)

Changes:
  head/net-mgmt/Makefile
  head/net-mgmt/zabbix4-agent/
  head/net-mgmt/zabbix4-agent/Makefile
  head/net-mgmt/zabbix4-frontend/
  head/net-mgmt/zabbix4-frontend/Makefile
  head/net-mgmt/zabbix4-java/
  head/net-mgmt/zabbix4-java/Makefile
  head/net-mgmt/zabbix4-proxy/
  head/net-mgmt/zabbix4-proxy/Makefile
  head/net-mgmt/zabbix4-server/
  head/net-mgmt/zabbix4-server/Makefile
  head/net-mgmt/zabbix4-server/distinfo
  head/net-mgmt/zabbix4-server/files/patch-src_zabbix__agent_zabbix__agentd.c
  head/net-mgmt/zabbix4-server/files/patch-src_zabbix__proxy_proxy.c
  head/net-mgmt/zabbix4-server/files/patch-src_zabbix__server_server.c
  head/net-mgmt/zabbix4-server/files/pkg-message.in
  head/net-mgmt/zabbix4-server/pkg-plist
  head/net-mgmt/zabbix4-server/pkg-plist.agent
  head/net-mgmt/zabbix4-server/pkg-plist.frontend