zabbix: move small config-xx.in back to Makefile

Based on https://github.com/openwrt/packages/issues/28709#issuecomment-4060013105
it has been noted that the number config.in files was high compared to actual
config selections.

Therefore move smaller selection back into the Makefile. They are still kept
with the most appropriate package which they configure.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
This commit is contained in:
Daniel F. Dickinson
2026-03-16 02:30:50 -04:00
committed by Florian Eckert
parent fd5c7badcc
commit ee93470984
3 changed files with 20 additions and 23 deletions

View File

@@ -1,8 +0,0 @@
config ZABBIX_BUILD_SUPPORT_BIN
bool
depends on (PACKAGE_zabbix-agentd || PACKAGE_zabbix-proxy || PACKAGE_zabbix-server)
default y
help
This option exists to prevent trying to build get and/or sender when none
of agentd, server, or proxy are being built. In that case get and sender are
not built by the Zabbix build system.

View File

@@ -1,13 +0,0 @@
choice
prompt "Select Database Software for Zabbix"
default ZABBIX_POSTGRESQL
config ZABBIX_MYSQL
bool "MySQL/MariaDB"
config ZABBIX_POSTGRESQL
bool "PostgreSQL"
config ZABBIX_SQLITE
bool "SQLite3"
endchoice

View File

@@ -42,11 +42,29 @@ define Package/zabbix-agentd/config
endef
define Package/zabbix-proxy/config
source "$(SOURCE)/Config-db.in"
choice
prompt "Select Database Software for Zabbix"
default ZABBIX_POSTGRESQL
config ZABBIX_MYSQL
bool "MySQL/MariaDB"
config ZABBIX_POSTGRESQL
bool "PostgreSQL"
config ZABBIX_SQLITE
bool "SQLite3"
endchoice
endef
define Package/zabbix-get/config
source "$(SOURCE)/Config-build.in"
config ZABBIX_BUILD_SUPPORT_BIN
bool
default y
help
This option exists to prevent trying to build get and/or sender when none
of agentd, server, or proxy are being built. In that case get and sender are
not built by the Zabbix build system.
endef
define Package/zabbix/Default