gnu: zabbix-agentd: Enable TLS support.

* gnu/packages/monitoring.scm (zabbix-agentd)[arguments]: Pass "--with-gnutls"
in #:configure-flags.
[inputs]: Add GNUTLS.
(zabbix-server): Inherit these changes.
This commit is contained in:
Marius Bakke 2022-10-26 16:17:48 +02:00
parent 176a501360
commit 593548f063
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -188,12 +188,17 @@ (define-public zabbix-agentd
"/run/setuid-programs/fping")))))
(build-system gnu-build-system)
(arguments
'(#:configure-flags
'("--enable-agent" "--enable-ipv6" "--with-libpcre2")))
(list #:configure-flags
#~(list "--enable-agent"
"--enable-ipv6"
"--with-libpcre2"
"--with-gnutls"
(string-append "--with-gnutls="
(assoc-ref %build-inputs "gnutls")))))
(native-inputs
(list pkg-config))
(inputs
(list pcre2))
(list gnutls pcre2))
(home-page "https://www.zabbix.com/")
(synopsis "Distributed monitoring solution (client-side agent)")
(description "This package provides a distributed monitoring
@ -239,8 +244,6 @@ (define-public zabbix-server
(string-append "--with-libevent="
(assoc-ref %build-inputs "libevent"))
"--with-net-snmp"
(string-append "--with-gnutls="
(assoc-ref %build-inputs "gnutls"))
"--with-libcurl"
(string-append "--with-zlib="
(assoc-ref %build-inputs "zlib")))
@ -249,7 +252,6 @@ (define-public zabbix-server
(modify-inputs (package-inputs zabbix-agentd)
(prepend curl
libevent
gnutls
net-snmp
postgresql
zlib)))