|
@ -8,7 +8,7 @@ |
|
|
include $(TOPDIR)/rules.mk |
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=mariadb |
|
|
PKG_NAME:=mariadb |
|
|
PKG_VERSION:=10.1.33 |
|
|
|
|
|
|
|
|
PKG_VERSION:=10.2.16 |
|
|
PKG_RELEASE:=1 |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
@ -18,10 +18,10 @@ PKG_SOURCE_URL := \ |
|
|
https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/$(PKG_NAME)-$(PKG_VERSION)/source \
|
|
|
https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/$(PKG_NAME)-$(PKG_VERSION)/source \
|
|
|
https://downloads.mariadb.org/interstitial/$(PKG_NAME)-$(PKG_VERSION)/source |
|
|
https://downloads.mariadb.org/interstitial/$(PKG_NAME)-$(PKG_VERSION)/source |
|
|
|
|
|
|
|
|
PKG_HASH:=94312c519f2c0c25e1964c64e22aff0036fb22dfb2685638f43a6b2211395d2d |
|
|
|
|
|
|
|
|
PKG_HASH:=c182ee93bacee9c1395a4cece56acfc433bc5153ec627c4898927b93eee54dc4 |
|
|
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net> |
|
|
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net> |
|
|
PKG_LICENSE:=GPL-2.0 |
|
|
|
|
|
PKG_LICENSE_FILES:=COPYING |
|
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-2.0 LGPL-2.1 |
|
|
|
|
|
PKG_LICENSE_FILES:=COPYING libmariadb/COPYING.LIB |
|
|
|
|
|
|
|
|
HOST_BUILD_PARALLEL:=1 |
|
|
HOST_BUILD_PARALLEL:=1 |
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
PKG_BUILD_PARALLEL:=1 |
|
@ -60,7 +60,8 @@ MARIADB_SERVER_PLUGINS := \ |
|
|
ha_example \
|
|
|
ha_example \
|
|
|
ha_federated \
|
|
|
ha_federated \
|
|
|
ha_federatedx \
|
|
|
ha_federatedx \
|
|
|
ha_innodb \
|
|
|
|
|
|
|
|
|
ha_sequence \
|
|
|
|
|
|
ha_sphinx \
|
|
|
ha_spider \
|
|
|
ha_spider \
|
|
|
ha_test_sql_discovery \
|
|
|
ha_test_sql_discovery \
|
|
|
handlersocket \
|
|
|
handlersocket \
|
|
@ -102,7 +103,8 @@ plugin-ha_connect := PLUGIN_CONNECT |
|
|
plugin-ha_example := PLUGIN_EXAMPLE |
|
|
plugin-ha_example := PLUGIN_EXAMPLE |
|
|
plugin-ha_federated := PLUGIN_FEDERATED |
|
|
plugin-ha_federated := PLUGIN_FEDERATED |
|
|
plugin-ha_federatedx := PLUGIN_FEDERATEDX |
|
|
plugin-ha_federatedx := PLUGIN_FEDERATEDX |
|
|
plugin-ha_innodb := PLUGIN_INNOBASE |
|
|
|
|
|
|
|
|
plugin-ha_sequence := PLUGIN_SEQUENCE |
|
|
|
|
|
plugin-ha_sphinx := PLUGIN_SPHINX |
|
|
plugin-ha_spider := PLUGIN_SPIDER |
|
|
plugin-ha_spider := PLUGIN_SPIDER |
|
|
plugin-ha_test_sql_discovery := PLUGIN_TEST_SQL_DISCOVERY |
|
|
plugin-ha_test_sql_discovery := PLUGIN_TEST_SQL_DISCOVERY |
|
|
plugin-handlersocket := PLUGIN_HANDLERSOCKET |
|
|
plugin-handlersocket := PLUGIN_HANDLERSOCKET |
|
@ -183,16 +185,16 @@ database query language in the world. The main goals of MariaDB are |
|
|
speed, robustness and ease of use. |
|
|
speed, robustness and ease of use. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/libmariadbclient |
|
|
|
|
|
|
|
|
define Package/libmariadb |
|
|
SECTION:=libs |
|
|
SECTION:=libs |
|
|
CATEGORY:=Libraries |
|
|
CATEGORY:=Libraries |
|
|
DEPENDS:=$(MARIADB_COMMON_DEPENDS) |
|
|
DEPENDS:=$(MARIADB_COMMON_DEPENDS) |
|
|
TITLE:=MariaDB database client library |
|
|
TITLE:=MariaDB database client library |
|
|
URL:=https://mariadb.org/ |
|
|
URL:=https://mariadb.org/ |
|
|
PROVIDES:=libmysqlclient libmysqlclient-r |
|
|
|
|
|
|
|
|
PROVIDES:=libmariadbclient libmysqlclient libmysqlclient-r |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/libmariadbclient/description |
|
|
|
|
|
|
|
|
define Package/libmariadb/description |
|
|
$(call Package/mariadb/description/Default) |
|
|
$(call Package/mariadb/description/Default) |
|
|
|
|
|
|
|
|
This package includes the client library. |
|
|
This package includes the client library. |
|
@ -247,7 +249,6 @@ endef |
|
|
define Package/mariadb-extra-charsets/description |
|
|
define Package/mariadb-extra-charsets/description |
|
|
$(call Package/mariadb/description/Default) |
|
|
$(call Package/mariadb/description/Default) |
|
|
|
|
|
|
|
|
The MariaDB server packaged by OpenWrt only provides support for UTF-8. |
|
|
|
|
|
This package contains single Byte character sets and collations that can |
|
|
This package contains single Byte character sets and collations that can |
|
|
be added at run time. |
|
|
be added at run time. |
|
|
|
|
|
|
|
@ -264,6 +265,7 @@ define Package/mariadb-server |
|
|
TITLE:=MariaDB database core server binaries |
|
|
TITLE:=MariaDB database core server binaries |
|
|
MENU:=1 |
|
|
MENU:=1 |
|
|
PROVIDES:=mysql-server |
|
|
PROVIDES:=mysql-server |
|
|
|
|
|
USERID:=mariadb=376:mariadb=376 |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/mariadb-server/description |
|
|
define Package/mariadb-server/description |
|
@ -340,13 +342,14 @@ CMAKE_OPTIONS += \ |
|
|
-DINSTALL_SCRIPTDIR=bin \
|
|
|
-DINSTALL_SCRIPTDIR=bin \
|
|
|
-DINSTALL_SQLBENCHDIR="" \
|
|
|
-DINSTALL_SQLBENCHDIR="" \
|
|
|
-DINSTALL_SUPPORTFILESDIR=share/mysql \
|
|
|
-DINSTALL_SUPPORTFILESDIR=share/mysql \
|
|
|
-DMYSQLD_USER=root \
|
|
|
|
|
|
|
|
|
-DINSTALL_UNIX_ADDRDIR=/var/run/mysqld/mysqld.sock \
|
|
|
|
|
|
-DMYSQLD_USER=mariadb \
|
|
|
-DMYSQL_DATADIR=/var/lib/mysql \
|
|
|
-DMYSQL_DATADIR=/var/lib/mysql \
|
|
|
-DMYSQL_UNIX_ADDR=/var/run/mysqld.sock \
|
|
|
|
|
|
|
|
|
-DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
|
|
|
-DSKIP_TESTS=ON \
|
|
|
-DSKIP_TESTS=ON \
|
|
|
-DWITH_ASAN=OFF \
|
|
|
-DWITH_ASAN=OFF \
|
|
|
-DWITH_EMBEDDED_SERVER=OFF \
|
|
|
-DWITH_EMBEDDED_SERVER=OFF \
|
|
|
-DWITH_EXTRA_CHARSETS=none \
|
|
|
|
|
|
|
|
|
-DWITH_EXTRA_CHARSETS=complex \
|
|
|
-DWITH_INNODB_BZIP2=OFF \
|
|
|
-DWITH_INNODB_BZIP2=OFF \
|
|
|
-DWITH_INNODB_LZ4=OFF \
|
|
|
-DWITH_INNODB_LZ4=OFF \
|
|
|
-DWITH_INNODB_LZMA=ON \
|
|
|
-DWITH_INNODB_LZMA=ON \
|
|
@ -371,7 +374,6 @@ CMAKE_OPTIONS += \ |
|
|
-DPLUGIN_MROONGA=NO \
|
|
|
-DPLUGIN_MROONGA=NO \
|
|
|
-DPLUGIN_OQGRAPH=NO \
|
|
|
-DPLUGIN_OQGRAPH=NO \
|
|
|
-DPLUGIN_ROCKSDB=NO \
|
|
|
-DPLUGIN_ROCKSDB=NO \
|
|
|
-DPLUGIN_SPHINX=NO \
|
|
|
|
|
|
-DPLUGIN_TOKUDB=NO \
|
|
|
-DPLUGIN_TOKUDB=NO \
|
|
|
-DPLUGIN_AUTH_PAM=NO \
|
|
|
-DPLUGIN_AUTH_PAM=NO \
|
|
|
-DPLUGIN_AUTH_GSSAPI=NO \
|
|
|
-DPLUGIN_AUTH_GSSAPI=NO \
|
|
@ -425,15 +427,15 @@ define Build/InstallDev |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mysql_config $(1)/usr/bin |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mysql_config $(1)/usr/bin |
|
|
$(LN) $(STAGING_DIR)/usr/bin/mysql_config $(2)/bin |
|
|
$(LN) $(STAGING_DIR)/usr/bin/mysql_config $(2)/bin |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/mysql $(1)/usr/include |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/mysql $(1)/usr/include |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmysqlclient*.so* $(1)/usr/lib |
|
|
|
|
|
cd $(1)/usr/lib/mysql; $(LN) ../libmysqlclient*.so* . |
|
|
|
|
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{mariadb,mysqlclient}*.so* $(1)/usr/lib |
|
|
|
|
|
cd $(1)/usr/lib/mysql; $(LN) ../lib{mariadb,mysqlclient}*.so* . |
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/pkgconfig/mariadb.pc $(1)/usr/lib/pkgconfig |
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/pkgconfig/mariadb.pc $(1)/usr/lib/pkgconfig |
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/mysql.m4 $(1)/usr/share/aclocal |
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/mysql.m4 $(1)/usr/share/aclocal |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/libmariadbclient/install |
|
|
|
|
|
|
|
|
define Package/libmariadb/install |
|
|
$(INSTALL_DIR) $(1)$(PLUGIN_DIR) |
|
|
$(INSTALL_DIR) $(1)$(PLUGIN_DIR) |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmysqlclient*.so* $(1)/usr/lib |
|
|
|
|
|
|
|
|
$(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)/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)/mysql_clear_password.so $(1)$(PLUGIN_DIR) |
|
|
endef |
|
|
endef |
|
@ -441,6 +443,10 @@ endef |
|
|
define Package/mariadb-client/install |
|
|
define Package/mariadb-client/install |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(foreach b,$(MARIADB_CLIENT),$(call Package/mariadb/install/bin,$(1),$(b));) |
|
|
$(foreach b,$(MARIADB_CLIENT),$(call Package/mariadb/install/bin,$(1),$(b));) |
|
|
|
|
|
# Install convenience links for mysqlcheck multi-call binary |
|
|
|
|
|
cd $(1)/usr/bin; $(LN) mysqlcheck mysqlanalyze |
|
|
|
|
|
cd $(1)/usr/bin; $(LN) mysqlcheck mysqlrepair |
|
|
|
|
|
cd $(1)/usr/bin; $(LN) mysqlcheck mysqloptimize |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/mariadb-client-extra/install |
|
|
define Package/mariadb-client-extra/install |
|
@ -456,10 +462,12 @@ endef |
|
|
define Package/mariadb-server/install |
|
|
define Package/mariadb-server/install |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(foreach b,$(MARIADB_SERVER),$(call Package/mariadb/install/bin,$(1),$(b));) |
|
|
$(foreach b,$(MARIADB_SERVER),$(call Package/mariadb/install/bin,$(1),$(b));) |
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/default |
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
$(INSTALL_DIR) $(1)/etc/mysql/conf.d |
|
|
$(INSTALL_DIR) $(1)/etc/mysql/conf.d |
|
|
$(INSTALL_BIN) files/mysqld.init $(1)/etc/init.d/mysqld |
|
|
$(INSTALL_BIN) files/mysqld.init $(1)/etc/init.d/mysqld |
|
|
$(INSTALL_CONF) conf/my.cnf $(1)/etc/mysql |
|
|
$(INSTALL_CONF) conf/my.cnf $(1)/etc/mysql |
|
|
|
|
|
$(INSTALL_CONF) conf/mysqld.default $(1)/etc/default/mysqld |
|
|
$(INSTALL_DIR) $(1)$(PLUGIN_DIR) |
|
|
$(INSTALL_DIR) $(1)$(PLUGIN_DIR) |
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)$(PLUGIN_DIR)/daemon_example.ini $(1)$(PLUGIN_DIR) |
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)$(PLUGIN_DIR)/daemon_example.ini $(1)$(PLUGIN_DIR) |
|
|
$(INSTALL_DIR) $(1)/usr/share/mysql/english |
|
|
$(INSTALL_DIR) $(1)/usr/share/mysql/english |
|
@ -477,8 +485,9 @@ define Package/mariadb-server-extra/install |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/mariadb-server/conffiles |
|
|
define Package/mariadb-server/conffiles |
|
|
|
|
|
/etc/default/mysqld |
|
|
/etc/mysql/my.cnf |
|
|
/etc/mysql/my.cnf |
|
|
/usr/lib/mysql/plugin/daemon_example.ini |
|
|
|
|
|
|
|
|
$(PLUGIN_DIR)/daemon_example.ini |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define BuildPlugin |
|
|
define BuildPlugin |
|
@ -503,7 +512,7 @@ This package provides the $(1) plugin. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
$(eval $(call HostBuild)) |
|
|
$(eval $(call HostBuild)) |
|
|
$(eval $(call BuildPackage,libmariadbclient)) |
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libmariadb)) |
|
|
$(eval $(call BuildPackage,mariadb-client)) |
|
|
$(eval $(call BuildPackage,mariadb-client)) |
|
|
$(eval $(call BuildPackage,mariadb-client-extra)) |
|
|
$(eval $(call BuildPackage,mariadb-client-extra)) |
|
|
$(eval $(call BuildPackage,mariadb-extra-charsets)) |
|
|
$(eval $(call BuildPackage,mariadb-extra-charsets)) |
|
@ -525,9 +534,11 @@ $(eval $(call BuildPlugin,file_key_management,)) |
|
|
$(eval $(call BuildPlugin,ha_archive,)) |
|
|
$(eval $(call BuildPlugin,ha_archive,)) |
|
|
$(eval $(call BuildPlugin,ha_blackhole,)) |
|
|
$(eval $(call BuildPlugin,ha_blackhole,)) |
|
|
$(eval $(call BuildPlugin,ha_connect,+libxml2)) |
|
|
$(eval $(call BuildPlugin,ha_connect,+libxml2)) |
|
|
|
|
|
$(eval $(call BuildPlugin,ha_example,)) |
|
|
$(eval $(call BuildPlugin,ha_federated,)) |
|
|
$(eval $(call BuildPlugin,ha_federated,)) |
|
|
$(eval $(call BuildPlugin,ha_federatedx,)) |
|
|
$(eval $(call BuildPlugin,ha_federatedx,)) |
|
|
$(eval $(call BuildPlugin,ha_innodb,)) |
|
|
|
|
|
|
|
|
$(eval $(call BuildPlugin,ha_sequence,)) |
|
|
|
|
|
$(eval $(call BuildPlugin,ha_sphinx,)) |
|
|
$(eval $(call BuildPlugin,ha_spider,)) |
|
|
$(eval $(call BuildPlugin,ha_spider,)) |
|
|
$(eval $(call BuildPlugin,ha_test_sql_discovery,)) |
|
|
$(eval $(call BuildPlugin,ha_test_sql_discovery,)) |
|
|
$(eval $(call BuildPlugin,handlersocket,)) |
|
|
$(eval $(call BuildPlugin,handlersocket,)) |
|
|