summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/zabbix/zabbix_7.0.9.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-connectivity/zabbix/zabbix_7.0.9.bb')
-rw-r--r--meta-oe/recipes-connectivity/zabbix/zabbix_7.0.9.bb77
1 files changed, 77 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/zabbix/zabbix_7.0.9.bb b/meta-oe/recipes-connectivity/zabbix/zabbix_7.0.9.bb
new file mode 100644
index 0000000000..a7c5478b64
--- /dev/null
+++ b/meta-oe/recipes-connectivity/zabbix/zabbix_7.0.9.bb
@@ -0,0 +1,77 @@
1SUMMARY = "Open-source monitoring solution for your IT infrastructure"
2DESCRIPTION = "\
3ZABBIX is software that monitors numerous parameters of a network and the \
4health and integrity of servers. ZABBIX uses a flexible notification \
5mechanism that allows users to configure e-mail based alerts for virtually \
6any event. This allows a fast reaction to server problems. ZABBIX offers \
7excellent reporting and data visualisation features based on the stored \
8data. This makes ZABBIX ideal for capacity planning. \
9\
10ZABBIX supports both polling and trapping. All ZABBIX reports and \
11statistics, as well as configuration parameters are accessed through a \
12web-based front end. A web-based front end ensures that the status of \
13your network and the health of your servers can be assessed from any \
14location. Properly configured, ZABBIX can play an important role in \
15monitoring IT infrastructure. This is equally true for small \
16organisations with a few servers and for large companies with a \
17multitude of servers."
18HOMEPAGE = "http://www.zabbix.com/"
19SECTION = "Applications/Internet"
20LICENSE = "AGPL-3.0-only"
21LIC_FILES_CHKSUM = "file://COPYING;md5=eb1e647870add0502f8f010b19de32af"
22DEPENDS = "libevent libpcre openldap virtual/libiconv zlib"
23
24PACKAGE_ARCH = "${MACHINE_ARCH}"
25
26SRC_URI = "https://cdn.zabbix.com/zabbix/sources/stable/7.0/${BPN}-${PV}.tar.gz \
27 file://0001-Fix-configure.ac.patch \
28 file://zabbix-agent.service \
29"
30SRC_URI[sha256sum] = "8d7755576f30b5d6099ff5e3574549fc248229c017f9753828565174125069f6"
31
32inherit autotools-brokensep linux-kernel-base pkgconfig systemd useradd
33
34SYSTEMD_PACKAGES = "${PN}"
35SYSTEMD_SERVICE:${PN} = "zabbix-agent.service"
36SYSTEMD_AUTO_ENABLE = "enable"
37
38USERADD_PACKAGES = "${PN}"
39GROUPADD_PARAM:${PN} = "-r zabbix"
40USERADD_PARAM:${PN} = "-r -g zabbix -d /var/lib/zabbix \
41 -s /sbin/nologin -c \"Zabbix Monitoring System\" zabbix \
42"
43
44KERNEL_VERSION = "${@get_kernelversion_headers('${STAGING_KERNEL_DIR}')}"
45
46EXTRA_OECONF = " \
47 --enable-dependency-tracking \
48 --enable-agent \
49 --enable-ipv6 \
50 --with-net-snmp \
51 --with-ldap=${STAGING_EXECPREFIXDIR} \
52 --with-unixodbc \
53 --with-ssh2 \
54 --with-sqlite3 \
55 --with-zlib \
56 --with-libpthread \
57 --with-libevent \
58 --with-libpcre=${STAGING_EXECPREFIXDIR} \
59 --with-iconv=${STAGING_EXECPREFIXDIR} \
60"
61CFLAGS:append = " -lldap -llber -pthread"
62
63do_configure:prepend() {
64 export KERNEL_VERSION="${KERNEL_VERSION}"
65}
66
67do_install:append() {
68 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
69 install -d ${D}${systemd_unitdir}/system
70 install -m 0644 ${UNPACKDIR}/zabbix-agent.service ${D}${systemd_unitdir}/system/
71 sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/zabbix-agent.service
72 fi
73}
74
75FILES:${PN} += "${libdir}"
76
77RDEPENDS:${PN} = "logrotate"