You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

548 lines
18 KiB

  1. #
  2. # Copyright (C) 2018 Sebastian Kemper <sebastian_ml@gmx.net>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mariadb
  9. PKG_VERSION:=10.1.33
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL := \
  13. https://mirror.netcologne.de/mariadb/$(PKG_NAME)-$(PKG_VERSION)/source \
  14. https://mirror.lstn.net/mariadb/$(PKG_NAME)-$(PKG_VERSION)/source \
  15. https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/$(PKG_NAME)-$(PKG_VERSION)/source \
  16. https://downloads.mariadb.org/interstitial/$(PKG_NAME)-$(PKG_VERSION)/source
  17. PKG_HASH:=94312c519f2c0c25e1964c64e22aff0036fb22dfb2685638f43a6b2211395d2d
  18. PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
  19. PKG_LICENSE:=GPL-2.0
  20. PKG_LICENSE_FILES:=COPYING
  21. HOST_BUILD_PARALLEL:=1
  22. PKG_BUILD_PARALLEL:=1
  23. PKG_USE_MIPS16:=0
  24. HOST_BUILD_DEPENDS:=libxml2/host
  25. # Without libevent2 tests/async_queries sporadically fails on the bots
  26. PKG_BUILD_DEPENDS:=libevent2 mariadb/host
  27. CMAKE_INSTALL:=1
  28. PLUGIN_DIR:=/usr/lib/mysql/plugin
  29. MARIADB_COMMON_DEPENDS := \
  30. +libatomic \
  31. +libopenssl \
  32. +libstdcpp \
  33. +zlib
  34. MARIADB_SERVER_PLUGINS := \
  35. adt_null \
  36. auth_0x0100 \
  37. auth_ed25519 \
  38. auth_socket \
  39. auth_test_plugin \
  40. client_ed25519 \
  41. debug_key_management \
  42. dialog_examples \
  43. disks \
  44. example_key_management \
  45. feedback \
  46. file_key_management \
  47. ha_archive \
  48. ha_blackhole \
  49. ha_connect \
  50. ha_example \
  51. ha_federated \
  52. ha_federatedx \
  53. ha_innodb \
  54. ha_spider \
  55. ha_test_sql_discovery \
  56. handlersocket \
  57. libdaemon_example \
  58. locales \
  59. metadata_lock_info \
  60. mypluglib \
  61. qa_auth_client \
  62. qa_auth_interface \
  63. qa_auth_server \
  64. query_cache_info \
  65. query_response_time \
  66. semisync_master \
  67. semisync_slave \
  68. server_audit \
  69. simple_password_check \
  70. sql_errlog \
  71. wsrep_info
  72. PKG_CONFIG_DEPENDS := \
  73. $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-server-plugin-%,$(subst _,-,$(MARIADB_SERVER_PLUGINS))) \
  74. CONFIG_PACKAGE_mariadb-server
  75. plugin-adt_null := PLUGIN_AUDIT_NULL
  76. plugin-auth_0x0100 := PLUGIN_AUTH_0X0100
  77. plugin-auth_ed25519 := PLUGIN_AUTH_ED25519
  78. plugin-auth_socket := PLUGIN_AUTH_SOCKET
  79. plugin-auth_test_plugin := PLUGIN_AUTH_TEST_PLUGIN
  80. plugin-client_ed25519 := PLUGIN_CLIENT_ED25519
  81. plugin-debug_key_management := PLUGIN_DEBUG_KEY_MANAGEMENT
  82. plugin-dialog_examples := PLUGIN_DIALOG_EXAMPLES
  83. plugin-disks := PLUGIN_DISKS
  84. plugin-example_key_management := PLUGIN_EXAMPLE_KEY_MANAGEMENT
  85. plugin-feedback := PLUGIN_FEEDBACK
  86. plugin-file_key_management := PLUGIN_FILE_KEY_MANAGEMENT
  87. plugin-ha_archive := PLUGIN_ARCHIVE
  88. plugin-ha_blackhole := PLUGIN_BLACKHOLE
  89. plugin-ha_connect := PLUGIN_CONNECT
  90. plugin-ha_example := PLUGIN_EXAMPLE
  91. plugin-ha_federated := PLUGIN_FEDERATED
  92. plugin-ha_federatedx := PLUGIN_FEDERATEDX
  93. plugin-ha_innodb := PLUGIN_INNOBASE
  94. plugin-ha_spider := PLUGIN_SPIDER
  95. plugin-ha_test_sql_discovery := PLUGIN_TEST_SQL_DISCOVERY
  96. plugin-handlersocket := PLUGIN_HANDLERSOCKET
  97. plugin-libdaemon_example := PLUGIN_DAEMON_EXAMPLE
  98. plugin-locales := PLUGIN_LOCALES
  99. plugin-metadata_lock_info := PLUGIN_METADATA_LOCK_INFO
  100. plugin-mypluglib := PLUGIN_FTEXAMPLE
  101. plugin-qa_auth_client := PLUGIN_QA_AUTH_CLIENT
  102. plugin-qa_auth_interface := PLUGIN_QA_AUTH_INTERFACE
  103. plugin-qa_auth_server := PLUGIN_QA_AUTH_SERVER
  104. plugin-query_cache_info := PLUGIN_QUERY_CACHE_INFO
  105. plugin-query_response_time := PLUGIN_QUERY_RESPONSE_TIME
  106. plugin-semisync_master := PLUGIN_SEMISYNC_MASTER
  107. plugin-semisync_slave := PLUGIN_SEMISYNC_SLAVE
  108. plugin-server_audit := PLUGIN_SERVER_AUDIT
  109. plugin-simple_password_check := PLUGIN_SIMPLE_PASSWORD_CHECK
  110. plugin-sql_errlog := PLUGIN_SQL_ERRLOG
  111. plugin-wsrep_info := PLUGIN_WSREP_INFO
  112. MARIADB_CLIENT := \
  113. mysql \
  114. mysqlcheck
  115. MARIADB_CLIENT_EXTRA := \
  116. mysql_find_rows \
  117. mysql_waitpid \
  118. mysqlaccess \
  119. mysqladmin \
  120. mysqldump \
  121. mysqlimport \
  122. mysqlshow \
  123. mysqlslap \
  124. mytop
  125. MARIADB_SERVER := \
  126. innochecksum \
  127. my_print_defaults \
  128. mysql_install_db \
  129. mysql_upgrade \
  130. mysqld
  131. MARIADB_SERVER_EXTRA := \
  132. aria* \
  133. mariabackup \
  134. msql2mysql \
  135. myisam_ftdump \
  136. myisamchk \
  137. myisamlog \
  138. myisampack \
  139. mysql_convert_table_format \
  140. mysql_fix_extensions \
  141. mysql_plugin \
  142. mysql_secure_installation \
  143. mysql_setpermission \
  144. mysql_tzinfo_to_sql \
  145. mysqlbinlog \
  146. mysqld_multi \
  147. mysqld_safe \
  148. mysqld_safe_helper \
  149. mysqldumpslow \
  150. mysqlhotcopy \
  151. perror \
  152. replace \
  153. resolve_stack_dump
  154. include $(INCLUDE_DIR)/package.mk
  155. include $(INCLUDE_DIR)/host-build.mk
  156. include $(INCLUDE_DIR)/cmake.mk
  157. define Package/mariadb/install/bin
  158. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(2) $(1)/usr/bin
  159. endef
  160. define Package/mariadb/description/Default
  161. MariaDB is a fast, stable and true multi-user, multi-threaded SQL
  162. database server. SQL (Structured Query Language) is the most popular
  163. database query language in the world. The main goals of MariaDB are
  164. speed, robustness and ease of use.
  165. endef
  166. define Package/libmariadbclient
  167. SECTION:=libs
  168. CATEGORY:=Libraries
  169. DEPENDS:=$(MARIADB_COMMON_DEPENDS)
  170. TITLE:=MariaDB database client library
  171. URL:=https://mariadb.org/
  172. PROVIDES:=libmysqlclient libmysqlclient-r
  173. endef
  174. define Package/libmariadbclient/description
  175. $(call Package/mariadb/description/Default)
  176. This package includes the client library.
  177. endef
  178. define Package/mariadb/Default
  179. SECTION:=utils
  180. CATEGORY:=Utilities
  181. URL:=https://mariadb.org/
  182. SUBMENU:=database
  183. endef
  184. define Package/mariadb-client
  185. $(call Package/mariadb/Default)
  186. TITLE:=MariaDB database core client binaries
  187. DEPENDS:= \
  188. $(MARIADB_COMMON_DEPENDS) \
  189. +libncursesw
  190. endef
  191. define Package/mariadb-client/description
  192. $(call Package/mariadb/description/Default)
  193. This package includes the following core client binaries:
  194. $(subst $(space),$(newline),$(MARIADB_CLIENT))
  195. endef
  196. define Package/mariadb-client-extra
  197. $(call Package/mariadb/Default)
  198. TITLE:=MariaDB database extra client binaries
  199. DEPENDS:=mariadb-client
  200. endef
  201. define Package/mariadb-client-extra/description
  202. $(call Package/mariadb/description/Default)
  203. This package includes the following extra client binaries:
  204. $(subst $(space),$(newline),$(MARIADB_CLIENT_EXTRA))
  205. endef
  206. define Package/mariadb-extra-charsets
  207. $(call Package/mariadb/Default)
  208. TITLE:=MariaDB database extra character sets
  209. DEPENDS:=mariadb-server
  210. endef
  211. define Package/mariadb-extra-charsets/description
  212. $(call Package/mariadb/description/Default)
  213. The MariaDB server packaged by OpenWrt only provides support for UTF-8.
  214. This package contains single Byte character sets and collations that can
  215. be added at run time.
  216. endef
  217. define Package/mariadb-server
  218. $(call Package/mariadb/Default)
  219. DEPENDS:= \
  220. $(MARIADB_COMMON_DEPENDS) \
  221. +!arc:libaio \
  222. +liblzma \
  223. +libpcre \
  224. +resolveip
  225. TITLE:=MariaDB database core server binaries
  226. MENU:=1
  227. PROVIDES:=mysql-server
  228. endef
  229. define Package/mariadb-server/description
  230. $(call Package/mariadb/description/Default)
  231. This package includes the following core server binaries:
  232. $(subst $(space),$(newline),$(MARIADB_SERVER))
  233. endef
  234. define Package/mariadb-server-extra
  235. $(call Package/mariadb/Default)
  236. TITLE:=MariaDB database extra server binaries
  237. DEPENDS:=mariadb-server
  238. endef
  239. define Package/mariadb-server-extra/description
  240. $(call Package/mariadb/description/Default)
  241. This package includes the following extra server binaries:
  242. $(subst $(space),$(newline),$(MARIADB_SERVER_EXTRA))
  243. endef
  244. # We won't need unit tests
  245. CMAKE_OPTIONS += -DWITH_UNIT_TESTS=0
  246. # This value is determined automatically during straight compile by compiling
  247. # and running a test code. You cannot do that during cross-compile. However the
  248. # stack grows downward in most if not all modern systems. The only exception
  249. # according to buildroot is PA-RISC which is not supported by OpenWrt as far as
  250. # I know. Therefore it makes sense to hardcode the value. If an arch is added
  251. # the stack of which grows up one should expect unpredictable behavior at run
  252. # time.
  253. CMAKE_OPTIONS += -DSTACK_DIRECTION=-1
  254. # Jemalloc was added for TokuDB. Since its configure script seems somewhat broken
  255. # when it comes to cross-compilation we shall disable it and also disable TokuDB.
  256. CMAKE_OPTIONS += -DWITH_JEMALLOC=no -DWITHOUT_TOKUDB=1
  257. # Make it explicit that we are cross-compiling
  258. CMAKE_OPTIONS += -DCMAKE_CROSSCOMPILING=1
  259. # Explicitly disable dtrace to avoid detection of a host version
  260. CMAKE_OPTIONS += -DENABLE_DTRACE=0
  261. # Prevent mariadb from messing with OpenWrt's C(XX)FLAGS
  262. CMAKE_OPTIONS += -DSECURITY_HARDENED=OFF
  263. ifeq ($(CONFIG_PACKAGE_mariadb-server),)
  264. CMAKE_OPTIONS += -DWITHOUT_SERVER=ON
  265. else
  266. CMAKE_OPTIONS += -DWITHOUT_SERVER=OFF
  267. endif
  268. CMAKE_OPTIONS += \
  269. -DCONNECT_WITH_JDBC=NO \
  270. -DCONNECT_WITH_LIBXML2=system \
  271. -DCONNECT_WITH_ODBC=NO \
  272. -DDEFAULT_CHARSET=utf8 \
  273. -DDEFAULT_COLLATION=utf8_general_ci \
  274. -DDISABLE_SHARED=NO \
  275. -DENABLED_PROFILING=OFF \
  276. -DENABLE_STATIC_LIBS=OFF \
  277. -DINSTALL_DOCDIR=share/doc/mariadb \
  278. -DINSTALL_DOCREADMEDIR=share/doc/mariadb \
  279. -DINSTALL_MANDIR=share/man \
  280. -DINSTALL_MYSQLSHAREDIR=share/mysql \
  281. -DINSTALL_MYSQLTESTDIR="" \
  282. -DINSTALL_PLUGINDIR=lib/mysql/plugin \
  283. -DINSTALL_SBINDIR=bin \
  284. -DINSTALL_SCRIPTDIR=bin \
  285. -DINSTALL_SQLBENCHDIR="" \
  286. -DINSTALL_SUPPORTFILESDIR=share/mysql \
  287. -DMYSQLD_USER=root \
  288. -DMYSQL_DATADIR=/var/lib/mysql \
  289. -DMYSQL_UNIX_ADDR=/var/run/mysqld.sock \
  290. -DSKIP_TESTS=ON \
  291. -DWITH_ASAN=OFF \
  292. -DWITH_EMBEDDED_SERVER=OFF \
  293. -DWITH_EXTRA_CHARSETS=none \
  294. -DWITH_INNODB_BZIP2=OFF \
  295. -DWITH_INNODB_LZ4=OFF \
  296. -DWITH_INNODB_LZMA=ON \
  297. -DWITH_INNODB_LZO=OFF \
  298. -DWITH_INNODB_SNAPPY=OFF \
  299. -DWITH_LIBEDIT=OFF \
  300. -DWITH_LIBNUMA=NO \
  301. -DWITH_LIBWRAP=OFF \
  302. -DWITH_LIBWSEP=OFF \
  303. -DWITH_MARIABACKUP=ON \
  304. -DWITH_PCRE=system \
  305. -DWITH_READLINE=OFF \
  306. -DWITH_SAFEMALLOC=OFF \
  307. -DWITH_SSL=system \
  308. -DWITH_SYSTEMD=no \
  309. -DWITH_VALGRIND=OFF \
  310. -DWITH_ZLIB=system
  311. # Default-disable some modules
  312. CMAKE_OPTIONS += \
  313. -DPLUGIN_CASSANDRA=NO \
  314. -DPLUGIN_MROONGA=NO \
  315. -DPLUGIN_OQGRAPH=NO \
  316. -DPLUGIN_ROCKSDB=NO \
  317. -DPLUGIN_SPHINX=NO \
  318. -DPLUGIN_TOKUDB=NO \
  319. -DPLUGIN_AUTH_PAM=NO \
  320. -DPLUGIN_AUTH_GSSAPI=NO \
  321. -DPLUGIN_AUTH_GSSAPI_CLIENT=NO \
  322. -DPLUGIN_CRACKLIB_PASSWORD_CHECK=NO
  323. CMAKE_OPTIONS += \
  324. $(foreach p,$(MARIADB_SERVER_PLUGINS),-D$(plugin-$(p))=$(if $(CONFIG_PACKAGE_$(PKG_NAME)-server-plugin-$(subst _,-,$(p))),DYNAMIC,NO))
  325. # Set CMAKE_FIND_ROOT_PATH_MODE_INCLUDE and CMAKE_FIND_ROOT_PATH_MODE_LIBRARY
  326. # to BOTH as otherwise the host build will not find some required dependencies
  327. # installed on the host machine, like ncurses.
  328. #
  329. # Add "$(STAGING_DIR_HOSTPKG)/lib" to the RPATH of the host helpers,
  330. # otherwise they might not find the location of a library at run time.
  331. CMAKE_HOST_OPTIONS += \
  332. -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE \
  333. -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH \
  334. -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH \
  335. -DCMAKE_INSTALL_RPATH="$(STAGING_DIR_HOSTPKG)/lib" \
  336. -DCMAKE_SKIP_RPATH=FALSE \
  337. -DWITHOUT_SERVER=OFF \
  338. -DWITHOUT_TOKUDB=1
  339. # Some helpers must be compiled for host in order to crosscompile mariadb for
  340. # the target. They are then included by import_executables.cmake which is
  341. # generated during the build of the host helpers. It is not necessary to build
  342. # the whole host package, only the "import_executables" target.
  343. # -DIMPORT_EXECUTABLES=$(HOST_BUILD_DIR)/import_executables.cmake
  344. # must then be passed to cmake during target build.
  345. # See also https://mariadb.com/kb/en/mariadb/cross-compiling-mariadb/
  346. CMAKE_OPTIONS += -DIMPORT_EXECUTABLES=$(STAGING_DIR_HOSTPKG)/share/mariadb/import_executables.cmake
  347. define Host/Compile
  348. $(call Host/Compile/Default,import_executables)
  349. endef
  350. define Host/Install
  351. $(SED) 's|$(HOST_BUILD_DIR)|$(STAGING_DIR_HOSTPKG)/share/mariadb|' $(HOST_BUILD_DIR)/import_executables.cmake
  352. $(INSTALL_DIR) $(1)/share/mariadb/{dbug,extra,scripts,sql}
  353. $(INSTALL_BIN) $(HOST_BUILD_DIR)/dbug/factorial $(1)/share/mariadb/dbug
  354. $(INSTALL_BIN) $(HOST_BUILD_DIR)/extra/comp_err $(1)/share/mariadb/extra
  355. $(INSTALL_BIN) $(HOST_BUILD_DIR)/scripts/comp_sql $(1)/share/mariadb/scripts
  356. $(INSTALL_BIN) $(HOST_BUILD_DIR)/sql/{gen_lex_hash,gen_lex_token} $(1)/share/mariadb/sql
  357. $(INSTALL_DATA) $(HOST_BUILD_DIR)/import_executables.cmake $(1)/share/mariadb
  358. endef
  359. define Build/InstallDev
  360. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin $(1)/usr/include $(1)/usr/lib/mysql $(1)/usr/lib/pkgconfig $(1)/usr/share/aclocal
  361. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mysql_config $(1)/usr/bin
  362. $(LN) $(STAGING_DIR)/usr/bin/mysql_config $(2)/bin
  363. $(CP) $(PKG_INSTALL_DIR)/usr/include/mysql $(1)/usr/include
  364. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmysqlclient*.so* $(1)/usr/lib
  365. cd $(1)/usr/lib/mysql; $(LN) ../libmysqlclient*.so* .
  366. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/pkgconfig/mariadb.pc $(1)/usr/lib/pkgconfig
  367. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/mysql.m4 $(1)/usr/share/aclocal
  368. endef
  369. define Package/libmariadbclient/install
  370. $(INSTALL_DIR) $(1)$(PLUGIN_DIR)
  371. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmysqlclient*.so* $(1)/usr/lib
  372. $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(PLUGIN_DIR)/dialog.so $(1)$(PLUGIN_DIR)
  373. $(INSTALL_BIN) $(PKG_INSTALL_DIR)$(PLUGIN_DIR)/mysql_clear_password.so $(1)$(PLUGIN_DIR)
  374. endef
  375. define Package/mariadb-client/install
  376. $(INSTALL_DIR) $(1)/usr/bin
  377. $(foreach b,$(MARIADB_CLIENT),$(call Package/mariadb/install/bin,$(1),$(b));)
  378. endef
  379. define Package/mariadb-client-extra/install
  380. $(INSTALL_DIR) $(1)/usr/bin
  381. $(foreach b,$(MARIADB_CLIENT_EXTRA),$(call Package/mariadb/install/bin,$(1),$(b));)
  382. endef
  383. define Package/mariadb-extra-charsets/install
  384. $(INSTALL_DIR) $(1)/usr/share/mysql/charsets
  385. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/mysql/charsets/* $(1)/usr/share/mysql/charsets
  386. endef
  387. define Package/mariadb-server/install
  388. $(INSTALL_DIR) $(1)/usr/bin
  389. $(foreach b,$(MARIADB_SERVER),$(call Package/mariadb/install/bin,$(1),$(b));)
  390. $(INSTALL_DIR) $(1)/etc/init.d
  391. $(INSTALL_DIR) $(1)/etc/mysql/conf.d
  392. $(INSTALL_BIN) files/mysqld.init $(1)/etc/init.d/mysqld
  393. $(INSTALL_CONF) conf/my.cnf $(1)/etc/mysql
  394. $(INSTALL_DIR) $(1)$(PLUGIN_DIR)
  395. $(INSTALL_CONF) $(PKG_INSTALL_DIR)$(PLUGIN_DIR)/daemon_example.ini $(1)$(PLUGIN_DIR)
  396. $(INSTALL_DIR) $(1)/usr/share/mysql/english
  397. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/mysql/english/errmsg.sys $(1)/usr/share/mysql/english
  398. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/mysql/fill_help_tables.sql $(1)/usr/share/mysql
  399. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/mysql/maria_add_gis_sp_bootstrap.sql $(1)/usr/share/mysql
  400. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/mysql/mysql_performance_tables.sql $(1)/usr/share/mysql
  401. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/mysql/mysql_system_tables.sql $(1)/usr/share/mysql
  402. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/mysql/mysql_system_tables_data.sql $(1)/usr/share/mysql
  403. endef
  404. define Package/mariadb-server-extra/install
  405. $(INSTALL_DIR) $(1)/usr/bin
  406. $(foreach b,$(MARIADB_SERVER_EXTRA),$(call Package/mariadb/install/bin,$(1),$(b));)
  407. endef
  408. define Package/mariadb-server/conffiles
  409. /etc/mysql/my.cnf
  410. /usr/lib/mysql/plugin/daemon_example.ini
  411. endef
  412. define BuildPlugin
  413. define Package/$(PKG_NAME)-server-plugin-$(subst _,-,$(1))
  414. $$(call Package/mariadb/Default)
  415. TITLE:=MariaDB database plugin
  416. DEPENDS:=mariadb-server $(patsubst +%,+PACKAGE_$(PKG_NAME)-server-plugin-$(subst _,-,$(1)):%,$(2))
  417. endef
  418. define Package/$(PKG_NAME)-server-plugin-$(subst _,-,$(1))/description
  419. $$(call Package/mariadb/description/Default)
  420. This package provides the $(1) plugin.
  421. endef
  422. define Package/$(PKG_NAME)-server-plugin-$(subst _,-,$(1))/install
  423. $(INSTALL_DIR) $$(1)$(PLUGIN_DIR)
  424. $(INSTALL_BIN) \
  425. $(PKG_INSTALL_DIR)$(PLUGIN_DIR)/$(1).so \
  426. $$(1)$(PLUGIN_DIR)
  427. endef
  428. $$(eval $$(call BuildPackage,$(PKG_NAME)-server-plugin-$(subst _,-,$(1))))
  429. endef
  430. $(eval $(call HostBuild))
  431. $(eval $(call BuildPackage,libmariadbclient))
  432. $(eval $(call BuildPackage,mariadb-client))
  433. $(eval $(call BuildPackage,mariadb-client-extra))
  434. $(eval $(call BuildPackage,mariadb-extra-charsets))
  435. $(eval $(call BuildPackage,mariadb-server))
  436. $(eval $(call BuildPackage,mariadb-server-extra))
  437. $(eval $(call BuildPlugin,adt_null,))
  438. $(eval $(call BuildPlugin,auth_0x0100,))
  439. $(eval $(call BuildPlugin,auth_ed25519,))
  440. $(eval $(call BuildPlugin,auth_socket,))
  441. $(eval $(call BuildPlugin,auth_test_plugin,))
  442. $(eval $(call BuildPlugin,client_ed25519,))
  443. $(eval $(call BuildPlugin,debug_key_management,))
  444. $(eval $(call BuildPlugin,dialog_examples,))
  445. $(eval $(call BuildPlugin,disks,))
  446. $(eval $(call BuildPlugin,example_key_management,))
  447. $(eval $(call BuildPlugin,feedback,))
  448. $(eval $(call BuildPlugin,file_key_management,))
  449. $(eval $(call BuildPlugin,ha_archive,))
  450. $(eval $(call BuildPlugin,ha_blackhole,))
  451. $(eval $(call BuildPlugin,ha_connect,+libxml2))
  452. $(eval $(call BuildPlugin,ha_federated,))
  453. $(eval $(call BuildPlugin,ha_federatedx,))
  454. $(eval $(call BuildPlugin,ha_innodb,))
  455. $(eval $(call BuildPlugin,ha_spider,))
  456. $(eval $(call BuildPlugin,ha_test_sql_discovery,))
  457. $(eval $(call BuildPlugin,handlersocket,))
  458. $(eval $(call BuildPlugin,libdaemon_example,))
  459. $(eval $(call BuildPlugin,locales,))
  460. $(eval $(call BuildPlugin,metadata_lock_info,))
  461. $(eval $(call BuildPlugin,mypluglib,))
  462. $(eval $(call BuildPlugin,qa_auth_client,))
  463. $(eval $(call BuildPlugin,qa_auth_interface,))
  464. $(eval $(call BuildPlugin,qa_auth_server,))
  465. $(eval $(call BuildPlugin,query_cache_info,))
  466. $(eval $(call BuildPlugin,query_response_time,))
  467. $(eval $(call BuildPlugin,semisync_master,))
  468. $(eval $(call BuildPlugin,semisync_slave,))
  469. $(eval $(call BuildPlugin,server_audit,))
  470. $(eval $(call BuildPlugin,simple_password_check,))
  471. $(eval $(call BuildPlugin,sql_errlog,))
  472. $(eval $(call BuildPlugin,wsrep_info,))