[packages/zabbix] Allow building without any database

jajcus jajcus at pld-linux.org
Sat Oct 1 19:08:33 CEST 2016


commit 2a82feb152d95871118000a976fb744938738eb4
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Sat Oct 1 19:05:34 2016 +0200

    Allow building without any database
    
    No server and no proxy will be built.

 zabbix.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/zabbix.spec b/zabbix.spec
index 3b22e13..6072f1e 100644
--- a/zabbix.spec
+++ b/zabbix.spec
@@ -8,6 +8,7 @@
 %bcond_without	java	# disable java support
 
 %define databases %{?with_pgsql:postgresql} %{?with_mysql:mysql} %{?with_sqlite3:sqlite3}
+%define any_database %{with pgsql}%{with mysql}%{with sqlite3}
 
 %define		php_min_version 5.4.0
 Summary:	Zabbix - network monitoring software
@@ -575,6 +576,7 @@ ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
 %attr(755,root,root) %{_bindir}/zabbix_get
 %{_mandir}/man1/zabbix_get*
 
+%if %{any_database}
 %files proxy
 %defattr(644,root,root,755)
 %attr(640,root,zabbix) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zabbix_proxy.conf
@@ -582,6 +584,7 @@ ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
 %ghost %attr(755,root,root) %{_sbindir}/zabbix_proxy
 %{_mandir}/man8/zabbix_proxy*
 %{systemdunitdir}/zabbix_proxy.service
+%endif
 
 %if %{with mysql}
 %files proxy-mysql
@@ -606,6 +609,7 @@ ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
 %attr(755,root,root) %{_bindir}/zabbix_sender
 %{_mandir}/man1/zabbix_sender*
 
+%if %{any_database}
 %files server
 %defattr(644,root,root,755)
 %doc upgrades/dbpatches
@@ -614,6 +618,7 @@ ln -sf %{_sbindir}/zabbix_proxy-sqlite3 %{_sbindir}/zabbix_proxy || :
 %ghost %attr(755,root,root) %{_sbindir}/zabbix_server
 %{_mandir}/man8/zabbix_server*
 %{systemdunitdir}/zabbix_server.service
+%endif
 
 %if %{with mysql}
 %files server-mysql
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zabbix.git/commitdiff/30d58f273913dd6b947a624dab38dc7338581344



More information about the pld-cvs-commit mailing list