Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/mysql.mk
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
# MySQL client version currently supported. | # MySQL client version currently supported. | ||||
# When adding a version, please keep the comment in | # When adding a version, please keep the comment in | ||||
# Mk/bsd.default-versions.mk in sync. | # Mk/bsd.default-versions.mk in sync. | ||||
MYSQL55_LIBVER= 18 | MYSQL55_LIBVER= 18 | ||||
MYSQL55m_LIBVER= 18 | MYSQL55m_LIBVER= 18 | ||||
MYSQL55p_LIBVER= 18 | MYSQL55p_LIBVER= 18 | ||||
MYSQL56_LIBVER= 18 | MYSQL56_LIBVER= 18 | ||||
MYSQL56p_LIBVER= 18 | MYSQL56p_LIBVER= 18 | ||||
MYSQL56w_LIBVER= 18 | |||||
MYSQL57_LIBVER= 20 | MYSQL57_LIBVER= 20 | ||||
MYSQL57p_LIBVER= 20 | MYSQL57p_LIBVER= 20 | ||||
MYSQL80_LIBVER= 21 | MYSQL80_LIBVER= 21 | ||||
MYSQL100m_LIBVER= 18 | MYSQL100m_LIBVER= 18 | ||||
MYSQL101m_LIBVER= 18 | MYSQL101m_LIBVER= 18 | ||||
# Setting/finding MySQL version we want. | # Setting/finding MySQL version we want. | ||||
.if exists(${LOCALBASE}/bin/mysql) | .if exists(${LOCALBASE}/bin/mysql) | ||||
Show All 27 Lines | |||||
.if defined(_MYSQL_VER) | .if defined(_MYSQL_VER) | ||||
.if ${_MYSQL_VER} != ${MYSQL_VER} | .if ${_MYSQL_VER} != ${MYSQL_VER} | ||||
IGNORE= cannot install: MySQL versions mismatch: mysql${_MYSQL_VER}-client is installed and wanted version is mysql${MYSQL_VER}-client | IGNORE= cannot install: MySQL versions mismatch: mysql${_MYSQL_VER}-client is installed and wanted version is mysql${MYSQL_VER}-client | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if (${MYSQL_VER:C/[0-9]*//} == "m") | .if (${MYSQL_VER:C/[0-9]*//} == "m") | ||||
_MYSQL_FLAVOUR= mariadb | _MYSQL_SERVER_FLAVOUR= mariadb | ||||
_MYSQL_CLIENT_FLAVOUR= mariadb | |||||
.elif (${MYSQL_VER:C/[0-9]*//} == "p") | .elif (${MYSQL_VER:C/[0-9]*//} == "p") | ||||
_MYSQL_FLAVOUR= percona | _MYSQL_SERVER_FLAVOUR= percona | ||||
_MYSQL_CLIENT_FLAVOUR= percona | |||||
.elif (${MYSQL_VER:C/[0-9]*//} == "w") | |||||
_MYSQL_SERVER_FLAVOUR= mysqlwsrep | |||||
_MYSQL_CLIENT_FLAVOUR= mysql | |||||
.else | .else | ||||
_MYSQL_FLAVOUR= mysql | _MYSQL_SERVER_FLAVOUR= mysql | ||||
_MYSQL_CLIENT_FLAVOUR= mysql | |||||
.endif | .endif | ||||
_MYSQL_CLIENT= databases/${_MYSQL_FLAVOUR}${MYSQL_VER:C/[mp]//}-client | _MYSQL_CLIENT= databases/${_MYSQL_CLIENT_FLAVOUR}${MYSQL_VER:C/[mp]//}-client | ||||
_MYSQL_SERVER= databases/${_MYSQL_FLAVOUR}${MYSQL_VER:C/[mp]//}-server | _MYSQL_SERVER= databases/${_MYSQL_SERVER_FLAVOUR}${MYSQL_VER:C/[mp]//}-server | ||||
# And now we are checking if we can use it | # And now we are checking if we can use it | ||||
.if defined(MYSQL${MYSQL_VER}_LIBVER) | .if defined(MYSQL${MYSQL_VER}_LIBVER) | ||||
.if defined(IGNORE_WITH_MYSQL) | .if defined(IGNORE_WITH_MYSQL) | ||||
. for VER in ${IGNORE_WITH_MYSQL} | . for VER in ${IGNORE_WITH_MYSQL} | ||||
. if (${MYSQL_VER} == "${VER}") | . if (${MYSQL_VER} == "${VER}") | ||||
IGNORE= cannot install: does not work with MySQL version ${MYSQL_VER} (MySQL ${IGNORE_WITH_MYSQL} not supported) | IGNORE= cannot install: does not work with MySQL version ${MYSQL_VER} (MySQL ${IGNORE_WITH_MYSQL} not supported) | ||||
. endif | . endif | ||||
Show All 17 Lines |