blob: b5ab15df48570f94b8c431415c34f477cd9b1278 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "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 = "GPLv2+"
21LIC_FILES_CHKSUM = "file://COPYING;md5=300e938ad303147fede2294ed78fe02e"
22DEPENDS = "libevent libpcre openldap virtual/libiconv zlib"
23
24PACKAGE_ARCH = "${MACHINE_ARCH}"
25
Andrew Geissler32b11992021-03-31 13:37:05 -050026SRC_URI = "https://cdn.zabbix.com/zabbix/sources/stable/5.2/${BPN}-${PV}.tar.gz \
Andrew Geissler82c905d2020-04-13 13:39:40 -050027 file://0001-Fix-configure.ac.patch \
28 file://zabbix-agent.service \
Andrew Geissler82c905d2020-04-13 13:39:40 -050029"
30
Andrew Geisslere34f8962021-04-15 15:53:51 -050031SRC_URI[md5sum] = "31dab3535a1fa212f5724902727f6d4d"
32SRC_URI[sha256sum] = "76cb704f2a04fbc87bb3eff44fa71339c355d467f7bbd8fb53f8927c760e1680"
Andrew Geissler82c905d2020-04-13 13:39:40 -050033
34inherit autotools-brokensep linux-kernel-base pkgconfig systemd useradd
35
36SYSTEMD_PACKAGES = "${PN}"
Patrick Williams213cb262021-08-07 19:21:33 -050037SYSTEMD_SERVICE:${PN} = "zabbix-agent.service"
Andrew Geissler82c905d2020-04-13 13:39:40 -050038SYSTEMD_AUTO_ENABLE = "enable"
39
40USERADD_PACKAGES = "${PN}"
Patrick Williams213cb262021-08-07 19:21:33 -050041GROUPADD_PARAM:${PN} = "-r zabbix"
42USERADD_PARAM:${PN} = "-r -g zabbix -d /var/lib/zabbix \
Andrew Geissler82c905d2020-04-13 13:39:40 -050043 -s /sbin/nologin -c \"Zabbix Monitoring System\" zabbix \
44"
45
46KERNEL_VERSION = "${@get_kernelversion_headers('${STAGING_KERNEL_DIR}')}"
47
48EXTRA_OECONF = " \
49 --enable-dependency-tracking \
50 --enable-agent \
51 --enable-ipv6 \
52 --with-net-snmp \
53 --with-ldap=${STAGING_EXECPREFIXDIR} \
54 --with-unixodbc \
55 --with-ssh2 \
56 --with-sqlite3 \
57 --with-zlib \
58 --with-libpthread \
59 --with-libevent \
Andrew Geissler32b11992021-03-31 13:37:05 -050060 --with-libpcre=${STAGING_EXECPREFIXDIR} \
61 --with-iconv=${STAGING_EXECPREFIXDIR} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050062"
Patrick Williams213cb262021-08-07 19:21:33 -050063CFLAGS:append = " -lldap -llber -pthread"
Andrew Geissler82c905d2020-04-13 13:39:40 -050064
Patrick Williams213cb262021-08-07 19:21:33 -050065do_configure:prepend() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050066 export KERNEL_VERSION="${KERNEL_VERSION}"
67}
68
Patrick Williams213cb262021-08-07 19:21:33 -050069do_install:append() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050070 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
71 install -d ${D}${systemd_unitdir}/system
72 install -m 0644 ${WORKDIR}/zabbix-agent.service ${D}${systemd_unitdir}/system/
73 sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/zabbix-agent.service
74 fi
75}
76
Patrick Williams213cb262021-08-07 19:21:33 -050077FILES:${PN} += "${libdir}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050078
Patrick Williams213cb262021-08-07 19:21:33 -050079RDEPENDS:${PN} = "logrotate"