2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2016, Adam Stevko <adam.stevko@gmail.com>
13 # Copyright (c) 2024, Carsten Grzemba
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= zabbix-server
19 COMPONENT_VERSION
= 7.0.1
20 COMPONENT_SUMMARY
= Zabbix server
21 COMPONENT_PROJECT_URL
= http
://www.zabbix.com
/
22 COMPONENT_FMRI
= application
/management
/$(COMPONENT_NAME
)
23 COMPONENT_FMRI_AGENT
= application
/management
/zabbix-agent
24 COMPONENT_FMRI_PROXY
= application
/management
/zabbix-proxy
25 COMPONENT_CLASSIFICATION
= Applications
/System Utilities
26 COMPONENT_SRC
= zabbix-
$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= zabbix-
$(COMPONENT_VERSION
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= sha256
:bbc749cefb296ffdf7ff48cfafd41632113f97225c7966f4e043436fcbef8ea1
29 COMPONENT_ARCHIVE_URL
= https
://cdn.zabbix.com
/zabbix
/sources
/stable
/$(basename $(COMPONENT_VERSION
))/$(COMPONENT_ARCHIVE
)
30 COMPONENT_LICENSE
= GPLv2
31 COMPONENT_LICENSE_FILE
= COPYING
33 PKG_VARS
+= COMPONENT_FMRI_AGENT COMPONENT_FMRI_PROXY
35 include $(WS_MAKE_RULES
)/common.mk
37 # because we patched an am file
38 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && aclocal
-I m4
&& autoconf
&& autoheader
&& automake
-a
&& automake
)
40 # Ugly hack for fixing problems with missing files in source directory
41 COMPONENT_POST_CONFIGURE_ACTION
= $(CP
) $(BUILD_DIR_
$(BITS
))/include/common
/config.h
$(SOURCE_DIR
)/include/common
/config.h
43 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
/zabbix
44 CONFIGURE_OPTIONS
+= --enable-ipv6
45 CONFIGURE_OPTIONS
+= --enable-server
46 CONFIGURE_OPTIONS
+= --enable-agent
47 CONFIGURE_OPTIONS
+= --enable-proxy
48 CONFIGURE_OPTIONS
+= --with-postgresql
49 CONFIGURE_OPTIONS
+= --with-libevent
50 CONFIGURE_OPTIONS
+= --with-libevent-include
=/usr
/include/libevent2
51 CONFIGURE_OPTIONS
+= --with-net-snmp
52 CONFIGURE_OPTIONS
+= --with-libcurl
53 CONFIGURE_OPTIONS
+= --with-libxml2
54 CONFIGURE_OPTIONS
+= --with-openssl
=$(OPENSSL_PREFIX
)
55 CONFIGURE_OPTIONS
+= --with-ldap
57 COMPONENT_POST_INSTALL_ACTION
= (cd
$(SOURCE_DIR
)/ui
&& \
58 mkdir
-p
$(PROTOUSRSHAREDIR
)/zabbix
/html
&& \
59 cp
-rp
* $(PROTOUSRSHAREDIR
)/zabbix
/html
;);
60 COMPONENT_POST_INSTALL_ACTION
+= (cd
$(SOURCE_DIR
)/database
&& \
61 mkdir
-p
$(PROTOUSRSHAREDIR
)/zabbix-sql-scripts
&& \
62 cp
-rp
* $(PROTOUSRSHAREDIR
)/zabbix-sql-scripts
;);
63 COMPONENT_POST_INSTALL_ACTION
+= (cd
$(SOURCE_DIR
)/man
&& \
64 for f in zabbix_proxy
; do cp
$${f}.man
$(PROTOUSRSHAREMANDIR
)/man8
/$${f}.8; done
; );
66 # Manually added build dependencies
67 REQUIRED_PACKAGES
+= $(PG_DEVELOPER_PKG
)
69 # Auto-generated dependencies
70 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
71 REQUIRED_PACKAGES
+= $(PG_LIBRARY_PKG
)
72 REQUIRED_PACKAGES
+= SUNWcs
73 REQUIRED_PACKAGES
+= library
/libevent2
74 REQUIRED_PACKAGES
+= library
/libxml2
75 REQUIRED_PACKAGES
+= library
/pcre
76 REQUIRED_PACKAGES
+= library
/zlib
77 REQUIRED_PACKAGES
+= system
/library
78 REQUIRED_PACKAGES
+= system
/library
/math
79 REQUIRED_PACKAGES
+= system
/management
/snmp
/net-snmp
80 REQUIRED_PACKAGES
+= web
/curl