1 ################################################################################
5 ################################################################################
7 ORACLE_MYSQL_VERSION_MAJOR
= 5.1
8 ORACLE_MYSQL_VERSION
= $(ORACLE_MYSQL_VERSION_MAJOR
).73
9 ORACLE_MYSQL_SOURCE
= mysql-
$(ORACLE_MYSQL_VERSION
).
tar.gz
10 ORACLE_MYSQL_SITE
= http
://dev.mysql.com
/get/Downloads
/MySQL-
$(ORACLE_MYSQL_VERSION_MAJOR
)
11 ORACLE_MYSQL_INSTALL_STAGING
= YES
12 ORACLE_MYSQL_DEPENDENCIES
= readline ncurses
13 ORACLE_MYSQL_AUTORECONF
= YES
14 ORACLE_MYSQL_LICENSE
= GPLv2
15 ORACLE_MYSQL_LICENSE_FILES
= README COPYING
16 ORACLE_MYSQL_PROVIDES
= mysql
18 # Unix socket. This variable can also be consulted by other buildroot packages
19 MYSQL_SOCKET
= /run
/mysql
/mysql.sock
21 ORACLE_MYSQL_CONF_ENV
= \
22 ac_cv_sys_restartable_syscalls
=yes \
23 ac_cv_path_PS
=/bin
/ps \
24 ac_cv_FIND_PROC
="/bin/ps p \$\$PID | grep -v grep | grep mysqld > /dev/null" \
25 ac_cv_have_decl_HAVE_IB_ATOMIC_PTHREAD_T_GCC
=yes \
26 ac_cv_have_decl_HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS
=no \
27 ac_cv_have_decl_HAVE_IB_GCC_ATOMIC_BUILTINS
=yes \
28 mysql_cv_new_rl_interface
=yes
30 ORACLE_MYSQL_CONF_OPTS
= \
31 --without-ndb-binlog \
37 --enable-thread-safe-client \
38 --with-unix-socket-path
=$(MYSQL_SOCKET
) \
39 --disable-mysql-maintainer-mode
41 # host-oracle-mysql only installs what is needed to build mysql, i.e. the
42 # gen_lex_hash tool, and it only builds the parts that are needed to
44 HOST_ORACLE_MYSQL_DEPENDENCIES
= host-zlib host-ncurses
46 HOST_ORACLE_MYSQL_CONF_OPTS
= \
47 --with-embedded-server \
48 --disable-mysql-maintainer-mode
50 define HOST_ORACLE_MYSQL_BUILD_CMDS
51 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
)/include my_config.h
52 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
)/mysys libmysys.a
53 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
)/strings libmystrings.a
54 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
)/vio libvio.a
55 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
)/dbug libdbug.a
56 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
)/regex libregex.a
57 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
)/sql gen_lex_hash
60 define HOST_ORACLE_MYSQL_INSTALL_CMDS
61 $(INSTALL
) -m
0755 $(@D
)/sql
/gen_lex_hash
$(HOST_DIR
)/usr
/bin
/
64 ifeq ($(BR2_PACKAGE_OPENSSL
),y
)
65 ORACLE_MYSQL_DEPENDENCIES
+= openssl
68 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
69 ORACLE_MYSQL_DEPENDENCIES
+= zlib
72 ifeq ($(BR2_PACKAGE_ORACLE_MYSQL_SERVER
),y
)
73 ORACLE_MYSQL_DEPENDENCIES
+= host-oracle-mysql host-bison
75 ORACLE_MYSQL_CONF_OPTS
+= \
76 --localstatedir
=/var
/mysql \
77 --with-atomic-ops
=up \
78 --with-embedded-server \
79 --without-query-cache \
80 --without-plugin-partition \
81 --without-plugin-daemon_example \
82 --without-plugin-ftexample \
83 --without-plugin-archive \
84 --without-plugin-blackhole \
85 --without-plugin-example \
86 --without-plugin-federated \
87 --without-plugin-ibmdb2i \
88 --without-plugin-innobase \
89 --without-plugin-innodb_plugin \
90 --without-plugin-ndbcluster
92 # Debugging is only available for the server, so no need for
93 # this if-block outside of the server if-block
94 ifeq ($(BR2_ENABLE_DEBUG
),y
)
95 ORACLE_MYSQL_CONF_OPTS
+= --with-debug
=full
97 ORACLE_MYSQL_CONF_OPTS
+= --without-debug
100 define ORACLE_MYSQL_USERS
101 mysql
-1 nogroup
-1 * /var
/mysql
- - MySQL daemon
104 define ORACLE_MYSQL_ADD_FOLDER
105 $(INSTALL
) -d
$(TARGET_DIR
)/var
/mysql
108 ORACLE_MYSQL_POST_INSTALL_TARGET_HOOKS
+= ORACLE_MYSQL_ADD_FOLDER
110 define ORACLE_MYSQL_INSTALL_INIT_SYSV
111 $(INSTALL
) -D
-m
0755 package
/oracle-mysql
/S97mysqld \
112 $(TARGET_DIR
)/etc
/init.d
/S97mysqld
115 define ORACLE_MYSQL_INSTALL_INIT_SYSTEMD
116 $(INSTALL
) -D
-m
644 package
/mysql
/mysqld.service \
117 $(TARGET_DIR
)/usr
/lib
/systemd
/system
/mysqld.service
118 mkdir
-p
$(TARGET_DIR
)/etc
/systemd
/system
/multi-user.target.wants
119 ln
-sf ..
/..
/..
/..
/usr
/lib
/systemd
/system
/mysqld.service \
120 $(TARGET_DIR
)/etc
/systemd
/system
/multi-user.target.wants
/mysqld.service
124 ORACLE_MYSQL_CONF_OPTS
+= \
129 define ORACLE_MYSQL_REMOVE_TEST_PROGS
130 rm -rf
$(TARGET_DIR
)/usr
/mysql-test
$(TARGET_DIR
)/usr
/sql-bench
133 ORACLE_MYSQL_POST_INSTALL_TARGET_HOOKS
+= ORACLE_MYSQL_REMOVE_TEST_PROGS
135 $(eval
$(autotools-package
))
136 $(eval
$(host-autotools-package
))