diff options
| author | Trevor Gamblin <trevor.gamblin@windriver.com> | 2019-11-13 13:44:44 -0500 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-11-13 12:01:51 -0800 |
| commit | 923d937a996b8fa5332df3cf3793d0fe366cae1a (patch) | |
| tree | a3b86e9f1b362e1700787829ee3b1ace5f1e5a0c /meta-oe/recipes-connectivity/zabbix/zabbix_4.4.1.bb | |
| parent | 4f59d3b5dc92ba43fe21ae6289df1da34a8d005e (diff) | |
| download | meta-openembedded-923d937a996b8fa5332df3cf3793d0fe366cae1a.tar.gz | |
zabbix: upgrade 4.2.8 -> 4.4.1
Note that zabbix as of 4.4.0alpha3 no longer supports Jabber
(see https://support.zabbix.com/browse/ZBXNEXT-5416). That
config option has been removed from the recipe (builds output
a warning about unrecognized config options otherwise).
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity/zabbix/zabbix_4.4.1.bb')
| -rw-r--r-- | meta-oe/recipes-connectivity/zabbix/zabbix_4.4.1.bb | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/zabbix/zabbix_4.4.1.bb b/meta-oe/recipes-connectivity/zabbix/zabbix_4.4.1.bb new file mode 100644 index 0000000000..656ff0dd89 --- /dev/null +++ b/meta-oe/recipes-connectivity/zabbix/zabbix_4.4.1.bb | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | SUMMARY = "Open-source monitoring solution for your IT infrastructure" | ||
| 2 | DESCRIPTION = "\ | ||
| 3 | ZABBIX is software that monitors numerous parameters of a network and the \ | ||
| 4 | health and integrity of servers. ZABBIX uses a flexible notification \ | ||
| 5 | mechanism that allows users to configure e-mail based alerts for virtually \ | ||
| 6 | any event. This allows a fast reaction to server problems. ZABBIX offers \ | ||
| 7 | excellent reporting and data visualisation features based on the stored \ | ||
| 8 | data. This makes ZABBIX ideal for capacity planning. \ | ||
| 9 | \ | ||
| 10 | ZABBIX supports both polling and trapping. All ZABBIX reports and \ | ||
| 11 | statistics, as well as configuration parameters are accessed through a \ | ||
| 12 | web-based front end. A web-based front end ensures that the status of \ | ||
| 13 | your network and the health of your servers can be assessed from any \ | ||
| 14 | location. Properly configured, ZABBIX can play an important role in \ | ||
| 15 | monitoring IT infrastructure. This is equally true for small \ | ||
| 16 | organisations with a few servers and for large companies with a \ | ||
| 17 | multitude of servers." | ||
| 18 | HOMEPAGE = "http://www.zabbix.com/" | ||
| 19 | SECTION = "Applications/Internet" | ||
| 20 | LICENSE = "GPLv2+" | ||
| 21 | LIC_FILES_CHKSUM = "file://COPYING;md5=300e938ad303147fede2294ed78fe02e" | ||
| 22 | DEPENDS = "libevent libpcre openldap virtual/libiconv zlib" | ||
| 23 | |||
| 24 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 25 | |||
| 26 | SRC_URI = "http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/${PV}/${BPN}-${PV}.tar.gz \ | ||
| 27 | file://0001-Fix-configure.ac.patch \ | ||
| 28 | file://zabbix-agent.service \ | ||
| 29 | " | ||
| 30 | |||
| 31 | SRC_URI[md5sum] = "e9df94149790f86732f18d042b70155d" | ||
| 32 | SRC_URI[sha256sum] = "0bf74e597dd41a558305fe17a2b1ed6fe2d77044b87696a92e4227fbf315564a" | ||
| 33 | |||
| 34 | inherit autotools-brokensep linux-kernel-base pkgconfig systemd useradd | ||
| 35 | |||
| 36 | SYSTEMD_PACKAGES = "${PN}" | ||
| 37 | SYSTEMD_SERVICE_${PN} = "zabbix-agent.service" | ||
| 38 | SYSTEMD_AUTO_ENABLE = "enable" | ||
| 39 | |||
| 40 | USERADD_PACKAGES = "${PN}" | ||
| 41 | GROUPADD_PARAM_${PN} = "-r zabbix" | ||
| 42 | USERADD_PARAM_${PN} = "-r -g zabbix -d /var/lib/zabbix \ | ||
| 43 | -s /sbin/nologin -c \"Zabbix Monitoring System\" zabbix \ | ||
| 44 | " | ||
| 45 | |||
| 46 | KERNEL_VERSION = "${@get_kernelversion_headers('${STAGING_KERNEL_DIR}')}" | ||
| 47 | |||
| 48 | EXTRA_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 \ | ||
| 60 | --with-libpcre \ | ||
| 61 | " | ||
| 62 | CFLAGS_append = " -lldap -llber -pthread" | ||
| 63 | |||
| 64 | do_configure_prepend() { | ||
| 65 | export KERNEL_VERSION="${KERNEL_VERSION}" | ||
| 66 | } | ||
| 67 | |||
| 68 | do_install_append() { | ||
| 69 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 70 | install -d ${D}${systemd_unitdir}/system | ||
| 71 | install -m 0644 ${WORKDIR}/zabbix-agent.service ${D}${systemd_unitdir}/system/ | ||
| 72 | sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/zabbix-agent.service | ||
| 73 | fi | ||
| 74 | } | ||
| 75 | |||
| 76 | FILES_${PN} += "${libdir}" | ||
| 77 | |||
| 78 | RDEPENDS_${PN} = "logrotate" | ||
