mariadb: move 50-client.cnf to lib pkg
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 27 Jan 2019 15:20:18 +0000 (16:20 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 27 Jan 2019 15:20:20 +0000 (16:20 +0100)
50-client.cnf is used by the client library, so it should be installed
with the library. This commit moves the configuration file to the
correct package and updates its depend (50-client.cnf is sourced by
my.cnf from mariadb-common).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
utils/mariadb/Makefile

index 6ee7894b4ab587052cefc73d23a5717155366acc..2b3f0aa9678eedc894959d607ceacdd31ed66994 100644 (file)
@@ -211,12 +211,17 @@ endef
 
 define Package/libmariadb
   $(call Package/libmariadb/Default)
-  DEPENDS:=$(MARIADB_COMMON_DEPENDS)
+  DEPENDS:=+mariadb-common \
+         $(MARIADB_COMMON_DEPENDS)
   TITLE:=MariaDB database client library
   MENU:=1
   PROVIDES:=libmariadbclient libmysqlclient libmysqlclient-r
 endef
 
+define Package/libmariadb/conffiles
+$(CONF_DIR)/conf.d/50-client.cnf
+endef
+
 define Package/libmariadb/description
 $(call Package/mariadb/description/Default)
 
@@ -256,7 +261,6 @@ define Package/mariadb-client-base
 endef
 
 define Package/mariadb-client-base/conffiles
-$(CONF_DIR)/conf.d/50-client.cnf
 $(CONF_DIR)/conf.d/50-mysql-clients.cnf
 endef
 
@@ -513,11 +517,13 @@ define Build/InstallDev
 endef
 
 define Package/libmariadb/install
+       $(INSTALL_DIR) $(1)$(CONF_DIR)/conf.d
        $(INSTALL_DIR) $(1)$(PLUGIN_DIR)
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{mariadb,mysqlclient}*.so* $(1)/usr/lib
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(PLUGIN_DIR)/dialog.so $(1)$(PLUGIN_DIR)
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(PLUGIN_DIR)/mysql_clear_password.so $(1)$(PLUGIN_DIR)
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(PLUGIN_DIR)/sha256_password.so $(1)$(PLUGIN_DIR)
+       $(INSTALL_CONF) conf/50-client.cnf $(1)$(CONF_DIR)/conf.d
 endef
 
 define Package/mariadb-client/install
@@ -531,7 +537,6 @@ endef
 
 define Package/mariadb-client-base/install
        $(INSTALL_DIR) $(1)$(CONF_DIR)/conf.d
-       $(INSTALL_CONF) conf/50-client.cnf $(1)$(CONF_DIR)/conf.d
        $(INSTALL_CONF) conf/50-mysql-clients.cnf $(1)$(CONF_DIR)/conf.d
 endef