2 # Copyright (C) 2018 Sebastian Kemper <sebastian_ml@gmx.net>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 https
://mirror.netcologne.de
/mariadb
/$(PKG_NAME
)-$(PKG_VERSION
)/source \
17 https
://mirror.lstn.net
/mariadb
/$(PKG_NAME
)-$(PKG_VERSION
)/source \
18 https
://ftp.yz.yamagata-u.ac.jp
/pub
/dbms
/mariadb
/$(PKG_NAME
)-$(PKG_VERSION
)/source \
19 https
://downloads.mariadb.org
/interstitial
/$(PKG_NAME
)-$(PKG_VERSION
)/source
21 PKG_HASH
:=152fe941c4f2a352b2b3a4db1ef64e70235fd9ff055af62ad7bda9f2b2191528
22 PKG_MAINTAINER
:=Sebastian Kemper
<sebastian_ml@gmx.net
>
23 PKG_LICENSE
:=GPL-2.0 LGPL-2.1
24 PKG_LICENSE_FILES
:=COPYING THIRDPARTY libmariadb
/COPYING.LIB
26 PKG_CPE_ID
:=cpe
:/a
:mariadb
:mariadb
28 HOST_BUILD_PARALLEL
:=1
32 HOST_BUILD_DEPENDS
:=libxml2
/host
33 # Without libevent2 tests/async_queries sporadically fails on the bots
34 PKG_BUILD_DEPENDS
:=libevent2 mariadb
/host
39 PLUGIN_DIR
:=/usr
/lib
/mariadb
/plugin
40 SHARE_DIR
:=/usr
/share
/mariadb
42 MARIADB_DISABLE_ENGINES
:= \
51 MARIADB_DISABLE_PLUGINS
:= \
55 cracklib_password_check \
57 debug_key_management \
58 example_key_management \
61 MARIADB_LIB_PLUGINS
:= \
64 MARIADB_SERVER_PLUGINS
:= \
86 simple_password_check \
90 PKG_CONFIG_DEPENDS
:= \
91 $(patsubst %,CONFIG_PACKAGE_lib
$(PKG_NAME
)-plugin-
%,$(subst _
,-,$(MARIADB_LIB_PLUGINS
))) \
92 $(patsubst %,CONFIG_PACKAGE_
$(PKG_NAME
)-server-plugin-
%,$(subst _
,-,$(MARIADB_SERVER_PLUGINS
))) \
93 CONFIG_PACKAGE_mariadb-server
95 plugin-auth_gssapi_client
:= PLUGIN_AUTH_GSSAPI_CLIENT
97 plugin-auth_ed25519
:= PLUGIN_AUTH_ED25519
98 plugin-auth_gssapi
:= PLUGIN_AUTH_GSSAPI
99 plugin-auth_pam
:= PLUGIN_AUTH_PAM
100 plugin-disks
:= PLUGIN_DISKS
101 plugin-feedback
:= PLUGIN_FEEDBACK
102 plugin-file_key_management
:= PLUGIN_FILE_KEY_MANAGEMENT
103 plugin-ha_archive
:= PLUGIN_ARCHIVE
104 plugin-ha_blackhole
:= PLUGIN_BLACKHOLE
105 plugin-ha_connect
:= PLUGIN_CONNECT
106 plugin-ha_federated
:= PLUGIN_FEDERATED
107 plugin-ha_federatedx
:= PLUGIN_FEDERATEDX
108 plugin-ha_sphinx
:= PLUGIN_SPHINX
109 plugin-ha_spider
:= PLUGIN_SPIDER
110 plugin-handlersocket
:= PLUGIN_HANDLERSOCKET
111 plugin-locales
:= PLUGIN_LOCALES
112 plugin-metadata_lock_info
:= PLUGIN_METADATA_LOCK_INFO
113 plugin-query_cache_info
:= PLUGIN_QUERY_CACHE_INFO
114 plugin-query_response_time
:= PLUGIN_QUERY_RESPONSE_TIME
115 plugin-semisync_master
:= PLUGIN_SEMISYNC_MASTER
116 plugin-semisync_slave
:= PLUGIN_SEMISYNC_SLAVE
117 plugin-server_audit
:= PLUGIN_SERVER_AUDIT
118 plugin-simple_password_check
:= PLUGIN_SIMPLE_PASSWORD_CHECK
119 plugin-sql_errlog
:= PLUGIN_SQL_ERRLOG
120 plugin-wsrep_info
:= PLUGIN_WSREP_INFO
126 MARIADB_CLIENT_EXTRA
:= \
144 MARIADB_SERVER_EXTRA
:= \
152 mysql_convert_table_format \
153 mysql_fix_extensions \
155 mysql_secure_installation \
156 mysql_setpermission \
157 mysql_tzinfo_to_sql \
167 include $(INCLUDE_DIR
)/package.mk
168 include $(INCLUDE_DIR
)/host-build.mk
169 include $(INCLUDE_DIR
)/cmake.mk
170 include $(INCLUDE_DIR
)/nls.mk
172 MARIADB_COMMON_DEPENDS
:= \
177 MARIADB_COMMON_DEPENDS_EXE
:= \
178 $(MARIADB_COMMON_DEPENDS
) \
182 # Pass CPPFLAGS in the CFLAGS as otherwise the build system will
184 TARGET_CFLAGS
+=$(TARGET_CPPFLAGS
)
186 define Package
/mariadb
/disable
/engine
187 echo
> $(1)/storage
/$(2)/CMakeLists.txt
190 define Package
/mariadb
/disable
/plugin
191 echo
> $(1)/plugin
/$(2)/CMakeLists.txt
194 define Package
/mariadb
/install/bin
195 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(2) $(1)/usr
/bin
198 define Package
/mariadb
/install/plugin
199 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)$(PLUGIN_DIR
)/$(2).so
$(1)$(PLUGIN_DIR
)
202 define Package
/mariadb
/description
/Default
203 MariaDB is a very fast and robust SQL database server.
206 define Package
/libmariadb
/Default
209 URL
:=https
://mariadb.org
/
212 define Package
/libmariadb
213 $(call Package
/libmariadb
/Default
)
214 DEPENDS
:=+mariadb-common \
215 $(MARIADB_COMMON_DEPENDS
)
216 TITLE
:=MariaDB database client library
218 PROVIDES
:=libmariadbclient libmysqlclient libmysqlclient-r
221 define Package
/libmariadb
/conffiles
222 $(CONF_DIR
)/conf.d
/50-client.cnf
225 define Package
/libmariadb
/description
226 $(call Package
/mariadb
/description
/Default
)
228 This package includes the client library.
232 define Package
/mariadb
/Default
235 URL
:=https
://mariadb.org
/
239 define Package
/mariadb-client
240 $(call Package
/mariadb
/Default
)
241 TITLE
:=MariaDB database client
243 DEPENDS
:=mariadb-client-base
246 define Package
/mariadb-client
/description
247 $(call Package
/mariadb
/description
/Default
)
249 This package includes the following core client binaries
:
251 $(subst $(space
),$(newline
),$(MARIADB_CLIENT
))
255 define Package
/mariadb-client-base
256 $(call Package
/mariadb
/Default
)
257 TITLE
:=MariaDB database client base
258 DEPENDS
:=mariadb-common \
259 $(MARIADB_COMMON_DEPENDS_EXE
) \
263 define Package
/mariadb-client-base
/conffiles
264 $(CONF_DIR
)/conf.d
/50-mysql-clients.cnf
267 define Package
/mariadb-client-base
/description
268 $(call Package
/mariadb
/description
/Default
)
270 This package provides the foundation for mariadb-client. It installs the
271 configuration and the dependencies.
275 define Package
/mariadb-client-extra
276 $(call Package
/mariadb
/Default
)
277 TITLE
:=MariaDB database client extra
278 DEPENDS
:=mariadb-client
281 define Package
/mariadb-client-extra
/description
282 $(call Package
/mariadb
/description
/Default
)
284 This package includes the following extra client binaries
:
286 $(subst $(space
),$(newline
),$(MARIADB_CLIENT_EXTRA
))
290 define Package
/mariadb-common
291 $(call Package
/mariadb
/Default
)
292 TITLE
:=MariaDB database common files
296 define Package
/mariadb-common
/conffiles
300 define Package
/mariadb-common
/description
301 $(call Package
/mariadb
/description
/Default
)
303 This package includes shared files
, for example
$(CONF_DIR
)/my.cnf.
307 define Package
/mariadb-server
308 $(call Package
/mariadb
/Default
)
309 DEPENDS
:=mariadb-server-base
310 TITLE
:=MariaDB database server
312 PROVIDES
:=mysql-server
315 define Package
/mariadb-server
/description
316 $(call Package
/mariadb
/description
/Default
)
318 This package includes the following core server binaries
:
320 $(subst $(space
),$(newline
),$(MARIADB_SERVER
))
324 define Package
/mariadb-server-base
325 $(call Package
/mariadb
/Default
)
326 DEPENDS
:=mariadb-common \
327 $(MARIADB_COMMON_DEPENDS_EXE
) \
332 TITLE
:=MariaDB database server base
333 USERID
:=mariadb
=376:mariadb
=376
336 define Package
/mariadb-server-base
/conffiles
337 $(CONF_DIR
)/conf.d
/50-server.cnf
338 $(CONF_DIR
)/conf.d
/60-galera.cnf
342 define Package
/mariadb-server-base
/description
343 $(call Package
/mariadb
/description
/Default
)
345 This package provides the foundation for mariadb-server. It installs the
346 init script
, support files
(configuration etc.
), the user
"mariadb" and
351 define Package
/mariadb-server-extra
352 $(call Package
/mariadb
/Default
)
353 TITLE
:=MariaDB database server extra
354 DEPENDS
:=mariadb-server
357 define Package
/mariadb-server-extra
/description
358 $(call Package
/mariadb
/description
/Default
)
360 This package includes the following extra server binaries
:
362 $(subst $(space
),$(newline
),$(MARIADB_SERVER_EXTRA
))
366 # We won't need unit tests
367 CMAKE_OPTIONS
+= -DWITH_UNIT_TESTS
=0
369 # This value is determined automatically during straight compile by compiling
370 # and running a test code. You cannot do that during cross-compile. However the
371 # stack grows downward in most if not all modern systems. The only exception
372 # according to buildroot is PA-RISC which is not supported by OpenWrt as far as
373 # I know. Therefore it makes sense to hardcode the value. If an arch is added
374 # the stack of which grows up one should expect unpredictable behavior at run
376 CMAKE_OPTIONS
+= -DSTACK_DIRECTION
=-1
378 # Make it explicit that we are cross-compiling
379 CMAKE_OPTIONS
+= -DCMAKE_CROSSCOMPILING
=1
381 # Explicitly disable dtrace to avoid detection of a host version
382 CMAKE_OPTIONS
+= -DENABLE_DTRACE
=0
384 # Prevent MariaDB from messing with OpenWrt's C(XX)FLAGS
385 CMAKE_OPTIONS
+= -DSECURITY_HARDENED
=OFF
387 ifeq ($(CONFIG_PACKAGE_mariadb-server
),)
388 CMAKE_OPTIONS
+= -DWITHOUT_SERVER
=ON
390 # Enable the auth_socket plugin and let unix user root access MariaDB without a
392 CMAKE_OPTIONS
+= -DWITHOUT_SERVER
=OFF
-DPLUGIN_AUTH_SOCKET
=STATIC
396 -DCONNECT_WITH_JDBC
=NO \
397 -DCONNECT_WITH_LIBXML2
=system \
398 -DCONNECT_WITH_MONGO
=NO \
399 -DCONNECT_WITH_ODBC
=NO \
400 -DDISABLE_SHARED
=NO \
401 -DENABLED_PROFILING
=OFF \
402 -DENABLE_STATIC_LIBS
=OFF \
403 -DINSTALL_DOCDIR
=share
/doc
/mariadb \
404 -DINSTALL_DOCREADMEDIR
=share
/doc
/mariadb \
405 -DINSTALL_INFODIR
=share
/info \
406 -DINSTALL_MANDIR
=share
/man \
407 -DINSTALL_MYSQLSHAREDIR
=share
/mariadb \
408 -DINSTALL_MYSQLTESTDIR
="" \
409 -DINSTALL_PLUGINDIR
=lib
/mariadb
/plugin \
410 -DINSTALL_SBINDIR
=bin \
411 -DINSTALL_SCRIPTDIR
=bin \
412 -DINSTALL_SQLBENCHDIR
="" \
413 -DINSTALL_SUPPORTFILESDIR
=share
/mariadb \
414 -DINSTALL_UNIX_ADDRDIR
=/var
/run
/mysqld
/mysqld.sock \
415 -DMYSQL_DATADIR
=/var
/lib
/mysql \
416 -DMYSQL_UNIX_ADDR
=/var
/run
/mysqld
/mysqld.sock \
419 -DWITH_EMBEDDED_SERVER
=OFF \
420 -DWITH_INNODB_BZIP2
=OFF \
421 -DWITH_INNODB_LZ4
=OFF \
422 -DWITH_INNODB_LZMA
=ON \
423 -DWITH_INNODB_LZO
=OFF \
424 -DWITH_INNODB_SNAPPY
=OFF \
425 -DWITH_JEMALLOC
=OFF \
426 -DWITH_LIBARCHIVE
=OFF \
428 -DWITH_MARIABACKUP
=ON \
430 -DWITH_SAFEMALLOC
=OFF \
433 -DWITH_VALGRIND
=OFF \
436 # Help MariaDB find the correct libiconv.
437 # nls.mk sets it up so that with CONFIG_BUILD_NLS libiconv-full would be used,
438 # otherwise libiconv-stub (independent of the selected libc). MariaDB needs a
439 # leg up to find/pick the right lib.
441 -DICONV_INCLUDE_DIR
=$(ICONV_PREFIX
)/include \
442 -DICONV_LIBRARIES
=$(ICONV_PREFIX
)/lib
/libiconv.
$(if
$(CONFIG_BUILD_NLS
),so
,a
)
445 $(foreach p
,$(MARIADB_LIB_PLUGINS
),-D
$(plugin-
$(p
))=$(if
$(CONFIG_PACKAGE_lib
$(PKG_NAME
)-plugin-
$(subst _
,-,$(p
))),DYNAMIC
,OFF
)) \
446 $(foreach p
,$(MARIADB_SERVER_PLUGINS
),-D
$(plugin-
$(p
))=$(if
$(CONFIG_PACKAGE_
$(PKG_NAME
)-server-plugin-
$(subst _
,-,$(p
))),DYNAMIC
,NO
))
448 # Set CMAKE_FIND_ROOT_PATH_MODE_INCLUDE and CMAKE_FIND_ROOT_PATH_MODE_LIBRARY
449 # to BOTH as otherwise the host build will not find some required dependencies
450 # installed on the host machine, like ncurses.
452 # Add "$(STAGING_DIR_HOSTPKG)/lib" to the RPATH of the host helpers,
453 # otherwise they might not find the location of a library at run time.
454 CMAKE_HOST_OPTIONS
+= \
455 -DCMAKE_BUILD_WITH_INSTALL_RPATH
=TRUE \
456 -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE
=BOTH \
457 -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY
=BOTH \
458 -DCMAKE_INSTALL_RPATH
="$(STAGING_DIR_HOSTPKG)/lib" \
459 -DCMAKE_SKIP_RPATH
=FALSE \
462 # Some helpers must be compiled for host in order to crosscompile MariaDB for
463 # the target. They are then included by import_executables.cmake which is
464 # generated during the build of the host helpers. It is not necessary to build
465 # the whole host package, only the "import_executables" target.
466 # -DIMPORT_EXECUTABLES=$(HOST_BUILD_DIR)/import_executables.cmake
467 # must then be passed to cmake during target build.
468 # See also https://mariadb.com/kb/en/mariadb/cross-compiling-mariadb/
470 CMAKE_OPTIONS
+= -DIMPORT_EXECUTABLES
=$(STAGING_DIR_HOSTPKG
)/share
/mariadb
/import_executables.cmake
472 # Disable some engines/plugins here as well - decreases the number of cmake checks.
474 $(call Host
/Prepare
/Default
)
475 $(foreach e
,$(MARIADB_DISABLE_ENGINES
),$(call Package
/mariadb
/disable
/engine
,$(HOST_BUILD_DIR
),$(e
));)
476 $(foreach p
,$(MARIADB_DISABLE_PLUGINS
),$(call Package
/mariadb
/disable
/plugin
,$(HOST_BUILD_DIR
),$(p
));)
480 $(call Host
/Compile
/Default
,import_executables
)
484 $(SED
) 's|$(HOST_BUILD_DIR)|$(STAGING_DIR_HOSTPKG)/share/mariadb|' $(HOST_BUILD_DIR
)/import_executables.cmake
485 $(INSTALL_DIR
) $(1)/share
/mariadb
/{dbug
,extra
,scripts
,sql
}
486 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/dbug
/factorial
$(1)/share
/mariadb
/dbug
487 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/extra
/comp_err
$(1)/share
/mariadb
/extra
488 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/scripts
/comp_sql
$(1)/share
/mariadb
/scripts
489 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/sql
/{gen_lex_hash
,gen_lex_token
} $(1)/share
/mariadb
/sql
490 $(INSTALL_DATA
) $(HOST_BUILD_DIR
)/import_executables.cmake
$(1)/share
/mariadb
493 # LIBICONV_PLUG is used in GNU's libiconv for redefinition of exports [e.g.
494 # from libiconv_open() to iconv_open()]. But in OpenWrt this variable is not set
495 # when building libiconv-full. So when MariaDB sets LIBICONV_PLUG it expects
496 # iconv_open() to be available for example, which is not the case - only
497 # libiconv_open() is. To address this prevent the variable from being set.
498 # libiconv-stub does not use this variable, so there is no harm in always doing
502 $(call Build
/Prepare
/Default
)
503 $(SED
) '/ADD_DEFINITIONS(-DLIBICONV_PLUG)/d' $(PKG_BUILD_DIR
)/libmariadb
/libmariadb
/CMakeLists.txt
504 $(foreach e
,$(MARIADB_DISABLE_ENGINES
),$(call Package
/mariadb
/disable
/engine
,$(PKG_BUILD_DIR
),$(e
));)
505 $(foreach p
,$(MARIADB_DISABLE_PLUGINS
),$(call Package
/mariadb
/disable
/plugin
,$(PKG_BUILD_DIR
),$(p
));)
508 define Build
/InstallDev
509 $(INSTALL_DIR
) $(2)/bin
$(1)/usr
/bin
$(1)/usr
/include $(1)/usr
/lib
/mysql
$(1)/usr
/lib
/pkgconfig
$(1)/usr
/share
/aclocal
510 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mysql_config
$(1)/usr
/bin
511 $(LN
) $(STAGING_DIR
)/usr
/bin
/mysql_config
$(2)/bin
512 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/mysql
$(1)/usr
/include
513 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{mariadb
,mysqlclient
}*.so
* $(1)/usr
/lib
514 cd
$(1)/usr
/lib
/mysql
; $(LN
) ..
/lib
{mariadb
,mysqlclient
}*.so
* .
515 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libmariadb.
pc $(1)/usr
/lib
/pkgconfig
516 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/mysql.m4
$(1)/usr
/share
/aclocal
519 define Package
/libmariadb
/install
520 $(INSTALL_DIR
) $(1)$(CONF_DIR
)/conf.d
521 $(INSTALL_DIR
) $(1)$(PLUGIN_DIR
)
522 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{mariadb
,mysqlclient
}*.so
* $(1)/usr
/lib
523 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)$(PLUGIN_DIR
)/caching_sha2_password.so
$(1)$(PLUGIN_DIR
)
524 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)$(PLUGIN_DIR
)/client_ed25519.so
$(1)$(PLUGIN_DIR
)
525 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)$(PLUGIN_DIR
)/dialog.so
$(1)$(PLUGIN_DIR
)
526 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)$(PLUGIN_DIR
)/mysql_clear_password.so
$(1)$(PLUGIN_DIR
)
527 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)$(PLUGIN_DIR
)/sha256_password.so
$(1)$(PLUGIN_DIR
)
528 $(INSTALL_CONF
) conf
/50-client.cnf
$(1)$(CONF_DIR
)/conf.d
531 define Package
/mariadb-client
/install
532 $(INSTALL_DIR
) $(1)/usr
/bin
533 $(foreach b
,$(MARIADB_CLIENT
),$(call Package
/mariadb
/install/bin
,$(1),$(b
));)
534 # Install convenience links for mysqlcheck multi-call binary
535 cd
$(1)/usr
/bin
; $(LN
) mysqlcheck mysqlanalyze
536 cd
$(1)/usr
/bin
; $(LN
) mysqlcheck mysqlrepair
537 cd
$(1)/usr
/bin
; $(LN
) mysqlcheck mysqloptimize
540 define Package
/mariadb-client-base
/install
541 $(INSTALL_DIR
) $(1)$(CONF_DIR
)/conf.d
542 $(INSTALL_CONF
) conf
/50-mysql-clients.cnf
$(1)$(CONF_DIR
)/conf.d
545 define Package
/mariadb-client-extra
/install
546 $(INSTALL_DIR
) $(1)/usr
/bin
547 $(foreach b
,$(MARIADB_CLIENT_EXTRA
),$(call Package
/mariadb
/install/bin
,$(1),$(b
));)
550 define Package
/mariadb-common
/install
551 $(INSTALL_DIR
) $(1)$(CONF_DIR
)
552 $(INSTALL_CONF
) conf
/my.cnf
$(1)$(CONF_DIR
)
555 define Package
/mariadb-server
/install
556 $(INSTALL_DIR
) $(1)/usr
/bin
557 $(foreach b
,$(MARIADB_SERVER
),$(call Package
/mariadb
/install/bin
,$(1),$(b
));)
560 define Package
/mariadb-server-base
/install
561 $(INSTALL_DIR
) $(1)$(CONF_DIR
)/conf.d
562 $(INSTALL_DIR
) $(1)$(SHARE_DIR
)/charsets
563 $(INSTALL_DIR
) $(1)$(SHARE_DIR
)/english
564 $(INSTALL_DIR
) $(1)/etc
/config
565 $(INSTALL_DIR
) $(1)/etc
/init.d
566 $(INSTALL_BIN
) files
/mysqld.init
$(1)/etc
/init.d
/mysqld
567 $(SED
) '/^[a-z]/s/^/#/' $(PKG_INSTALL_DIR
)$(SHARE_DIR
)/wsrep.cnf
568 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)$(SHARE_DIR
)/wsrep.cnf
$(1)$(CONF_DIR
)/conf.d
/60-galera.cnf
569 $(INSTALL_CONF
) conf
/50-server.cnf
$(1)$(CONF_DIR
)/conf.d
570 $(INSTALL_CONF
) files
/mysqld.config
$(1)/etc
/config
/mysqld
571 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)$(SHARE_DIR
)/charsets
/* $(1)$(SHARE_DIR
)/charsets
572 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)$(SHARE_DIR
)/english
/errmsg.sys
$(1)$(SHARE_DIR
)/english
573 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)$(SHARE_DIR
)/fill_help_tables.sql
$(1)$(SHARE_DIR
)
574 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)$(SHARE_DIR
)/maria_add_gis_sp_bootstrap.sql
$(1)$(SHARE_DIR
)
575 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)$(SHARE_DIR
)/mysql_performance_tables.sql
$(1)$(SHARE_DIR
)
576 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)$(SHARE_DIR
)/mysql_system_tables.sql
$(1)$(SHARE_DIR
)
577 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)$(SHARE_DIR
)/mysql_system_tables_data.sql
$(1)$(SHARE_DIR
)
580 define Package
/mariadb-server-extra
/install
581 $(INSTALL_DIR
) $(1)/usr
/bin
582 $(SED
) 's,/bin/bash,/bin/sh,g' $(PKG_INSTALL_DIR
)/usr
/bin
/wsrep_sst_
*
583 $(foreach b
,$(MARIADB_SERVER_EXTRA
),$(call Package
/mariadb
/install/bin
,$(1),$(b
));)
587 define Package
/$(1)-plugin-
$(subst _
,-,$(2))
588 $(call Package
/$(subst mariadb-server
,mariadb
,$(1))/Default
)
590 DEPENDS
:=$(1) $(patsubst +%,+PACKAGE_
$(1)-plugin-
$(subst _
,-,$(2)):%,$(3))
592 define Package
/$(1)-plugin-
$(subst _
,-,$(2))/description
593 $(call Package
/mariadb
/description
/Default
)
595 This package provides the
$(2) plugin.
598 define Package
/$(1)-plugin-
$(subst _
,-,$(2))/install
599 $(INSTALL_DIR
) $$(1)$(PLUGIN_DIR
)
600 $(call Package
/mariadb
/install/plugin
,$$(1),$(2))
602 $$(eval
$$(call BuildPackage
,$(1)-plugin-
$(subst _
,-,$(2))))
605 $(eval
$(call HostBuild
))
606 $(eval
$(call BuildPackage
,libmariadb
))
607 $(eval
$(call BuildPackage
,mariadb-client
))
608 $(eval
$(call BuildPackage
,mariadb-client-base
))
609 $(eval
$(call BuildPackage
,mariadb-client-extra
))
610 $(eval
$(call BuildPackage
,mariadb-common
))
611 $(eval
$(call BuildPackage
,mariadb-server
))
612 $(eval
$(call BuildPackage
,mariadb-server-base
))
613 $(eval
$(call BuildPackage
,mariadb-server-extra
))
615 $(eval
$(call BuildPlugin
,libmariadb
,auth_gssapi_client
,+krb5-libs
))
616 $(eval
$(call BuildPlugin
,mariadb-server
,auth_ed25519
,))
617 $(eval
$(call BuildPlugin
,mariadb-server
,auth_gssapi
,+krb5-libs
))
618 $(eval
$(call BuildPlugin
,mariadb-server
,auth_pam
,+libpam
))
619 $(eval
$(call BuildPlugin
,mariadb-server
,disks
,))
620 $(eval
$(call BuildPlugin
,mariadb-server
,feedback
,))
621 $(eval
$(call BuildPlugin
,mariadb-server
,file_key_management
,))
622 $(eval
$(call BuildPlugin
,mariadb-server
,ha_archive
,))
623 $(eval
$(call BuildPlugin
,mariadb-server
,ha_blackhole
,))
624 $(eval
$(call BuildPlugin
,mariadb-server
,ha_connect
,+libxml2
))
625 $(eval
$(call BuildPlugin
,mariadb-server
,ha_federated
,))
626 $(eval
$(call BuildPlugin
,mariadb-server
,ha_federatedx
,))
627 $(eval
$(call BuildPlugin
,mariadb-server
,ha_sphinx
,))
628 $(eval
$(call BuildPlugin
,mariadb-server
,ha_spider
,))
629 $(eval
$(call BuildPlugin
,mariadb-server
,handlersocket
,))
630 $(eval
$(call BuildPlugin
,mariadb-server
,locales
,))
631 $(eval
$(call BuildPlugin
,mariadb-server
,metadata_lock_info
,))
632 $(eval
$(call BuildPlugin
,mariadb-server
,query_cache_info
,))
633 $(eval
$(call BuildPlugin
,mariadb-server
,query_response_time
,))
634 $(eval
$(call BuildPlugin
,mariadb-server
,semisync_master
,))
635 $(eval
$(call BuildPlugin
,mariadb-server
,semisync_slave
,))
636 $(eval
$(call BuildPlugin
,mariadb-server
,server_audit
,))
637 $(eval
$(call BuildPlugin
,mariadb-server
,simple_password_check
,))
638 $(eval
$(call BuildPlugin
,mariadb-server
,sql_errlog
,))
639 $(eval
$(call BuildPlugin
,mariadb-server
,wsrep_info
,))