[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: gnu: zabbix-server: Split output.
From: |
guix-commits |
Subject: |
01/07: gnu: zabbix-server: Split output. |
Date: |
Mon, 17 Dec 2018 14:17:54 -0500 (EST) |
wigust pushed a commit to branch master
in repository guix.
commit 2c9ac8392ad867f65b1313216dbe7179d6083df5
Author: Oleg Pykhalov <address@hidden>
Date: Thu Nov 29 19:48:02 2018 +0300
gnu: zabbix-server: Split output.
* gnu/packages/monitoring.scm (zabbix-server)[outputs]: Add 'front-end' and
'schema' outputs.
---
gnu/packages/monitoring.scm | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index b69ec07..35fe4c76 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -182,21 +182,34 @@ solution (client-side agent)")
(package
(inherit zabbix-agentd)
(name "zabbix-server")
+ (outputs '("out" "front-end" "schema"))
(arguments
(substitute-keyword-arguments
`(#:phases
(modify-phases %standard-phases
- (add-after 'install 'install-frontend
+ (add-after 'install 'install-front-end
(lambda* (#:key outputs #:allow-other-keys)
- (let* ((php (string-append (assoc-ref outputs "out")
+ (let* ((php (string-append (assoc-ref outputs "front-end")
"/share/zabbix/php"))
(front-end-conf (string-append php "/conf"))
(etc (string-append php "/etc")))
(mkdir-p php)
- (copy-recursively "./frontends/php" php)
+ (copy-recursively "frontends/php" php)
+ ;; Make front-end write config to ‘/etc/zabbix’ directory.
(rename-file front-end-conf
(string-append front-end-conf "-example"))
- (symlink "/etc/zabbix" front-end-conf)))))
+ (symlink "/etc/zabbix" front-end-conf))
+ #t))
+ (add-after 'install 'install-schema
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((database-directory
+ (string-append (assoc-ref outputs "schema")
+ "/database")))
+ (for-each delete-file
+ (find-files "database" "Makefile\\.in|\\.am$"))
+ (mkdir-p database-directory)
+ (copy-recursively "database" database-directory))
+ #t)))
,@(package-arguments zabbix-agentd))
((#:configure-flags flags)
`(cons* "--enable-server"
- branch master updated (a7ad051 -> f2f9560), guix-commits, 2018/12/17
- 01/07: gnu: zabbix-server: Split output.,
guix-commits <=
- 05/07: gnu: Add php-with-bcmath., guix-commits, 2018/12/17
- 04/07: services: php-fpm: Add 'timezone' configuration., guix-commits, 2018/12/17
- 07/07: gnu: zabbix-agentd: Update to 4.0.2., guix-commits, 2018/12/17
- 03/07: services: monitoring: Add 'zabbix-agent'., guix-commits, 2018/12/17
- 02/07: services: monitoring: Add 'zabbix-server'., guix-commits, 2018/12/17
- 06/07: services: monitoring: Add 'zabbix-front-end'., guix-commits, 2018/12/17