--- /dev/null
+#
+# Copyright (C) 2019 Sebastian Kemper <sebastian_ml@gmx.net>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=mariadb-common
+PKG_VERSION:=1.0
+PKG_RELEASE:=1
+
+PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
+PKG_LICENSE:=GPL-2.0
+
+CONF_DIR:=/etc/mysql
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/mariadb-common
+ SECTION:=utils
+ CATEGORY:=Utilities
+ URL:=https://mariadb.org/
+ SUBMENU:=Database
+ TITLE:=MariaDB database common files
+ DEPENDS:=
+endef
+
+define Package/mariadb-common/conffiles
+$(CONF_DIR)/my.cnf
+endef
+
+define Package/mariadb-common/description
+MariaDB is a very fast and robust SQL database server.
+
+This package includes shared files, for example $(CONF_DIR)/my.cnf.
+
+endef
+
+define Package/mariadb-common/install
+ $(INSTALL_DIR) $(1)$(CONF_DIR)
+ $(INSTALL_CONF) conf/my.cnf $(1)$(CONF_DIR)
+endef
+
+define Build/Compile
+endef
+
+$(eval $(call BuildPackage,mariadb-common))
endef
-define Package/mariadb-common
- $(call Package/mariadb/Default)
- TITLE:=MariaDB database common files
- DEPENDS:=
-endef
-
-define Package/mariadb-common/conffiles
-$(CONF_DIR)/my.cnf
-endef
-
-define Package/mariadb-common/description
-$(call Package/mariadb/description/Default)
-
-This package includes shared files, for example $(CONF_DIR)/my.cnf.
-
-endef
-
define Package/mariadb-server
$(call Package/mariadb/Default)
DEPENDS:=mariadb-server-base
$(foreach b,$(MARIADB_CLIENT_EXTRA),$(call Package/mariadb/install/bin,$(1),$(b));)
endef
-define Package/mariadb-common/install
- $(INSTALL_DIR) $(1)$(CONF_DIR)
- $(INSTALL_CONF) conf/my.cnf $(1)$(CONF_DIR)
-endef
-
define Package/mariadb-server/install
$(INSTALL_DIR) $(1)/usr/bin
$(foreach b,$(MARIADB_SERVER),$(call Package/mariadb/install/bin,$(1),$(b));)
$(eval $(call BuildPackage,mariadb-client))
$(eval $(call BuildPackage,mariadb-client-base))
$(eval $(call BuildPackage,mariadb-client-extra))
-$(eval $(call BuildPackage,mariadb-common))
$(eval $(call BuildPackage,mariadb-server))
$(eval $(call BuildPackage,mariadb-server-base))
$(eval $(call BuildPackage,mariadb-server-extra))