pkgsrc/databases/mariadb55-client/Makefile.common
fhajny ca3632ed90 Update databases/mariadb55* to 5.5.57.
MariaDB 5.5.57
- Bugfixes and updates, including from MySQL 5.5.57.
- Fixes for the following security vulnerabilities:
  - CVE-2017-3636
  - CVE-2017-3641
  - CVE-2017-3653

MariaDB 5.5.56
- Bugfixes and updates, including from MySQL 5.5.56.

MariaDB 5.5.55
- Bugfixes and updates, including from MySQL 5.5.55.
- MDEV-11027: better InnoDB crash recovery progress reporting
- MDEV-11520: improvements to how InnoDB data files are extended
- MDEV-6143: the various MariaDB Linux binary tarballs will now untar
  to directories that match their filename
- Fixes for the following security vulnerabilities:
  - CVE-2017-3302
  - CVE-2017-3313
  - CVE-2017-3308
  - CVE-2017-3309
  - CVE-2017-3453
  - CVE-2017-3456
  - CVE-2017-3464

MariaDB 5.5.54
- Bugfixes and updates, including from MySQL 5.5.54.
- HeidiSQL updated to 9.4
- Fixes for the following security vulnerabilities:
  - CVE-2016-6664
  - CVE-2017-3238
  - CVE-2017-3243
  - CVE-2017-3244
  - CVE-2017-3258
  - CVE-2017-3265
  - CVE-2017-3291
  - CVE-2017-3312
  - CVE-2017-3317
  - CVE-2017-3318

MariaDB 5.5.53
- Bugfixes and updates, including from MySQL 5.5.53.
- XtraDB updated to 5.5.52-38.3
- Fixes for the following security vulnerabilities:
  - CVE-2016-7440
  - CVE-2016-5584
  - CVE-2016-5483 (re-issued later as CVE-2017-3600)
  - CVE-2017-3651
2017-08-08 11:23:38 +00:00

127 lines
3.9 KiB
Makefile

# $NetBSD: Makefile.common,v 1.6 2017/08/08 11:23:38 fhajny Exp $
#
# used by databases/mariadb55-client/Makefile
# used by databases/mariadb55-server/Makefile
DISTNAME= mariadb-5.5.57
CATEGORIES= databases
MASTER_SITES= https://downloads.mariadb.org/f/${DISTNAME}/source/
MAINTAINER?= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mariadb.org/
LICENSE= gnu-gpl-v2
DISTINFO_FILE?= ${.CURDIR}/../../databases/mariadb55-client/distinfo
PATCHDIR?= ${.CURDIR}/../../databases/mariadb55-client/patches
USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= bash gmake perl:run
CXXFLAGS+= -fpermissive
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
# MYSQL_USER username of the database administrator
# MYSQL_GROUP group of the database administrator
# MYSQL_DATADIR home directory (location of the databases)
# MYSQL_PIDFILE process ID file
# MYSQL_CHARSET default character set
# MYSQL_EXTRA_CHARSET additional character set to be compiled in
MYSQL_USER?= mariadb
MYSQL_GROUP?= mariadb
MYSQL_DATADIR?= ${VARBASE}/mariadb
MYSQL_PIDFILE?= ${MYSQL_DATADIR}/${HOST}.pid
MYSQL_CHARSET?= latin1
MYSQL_COLLATION?= latin1_swedish_ci
MYSQL_EXTRA_CHARSET?= all
PKG_USERS_VARS+= MYSQL_USER
PKG_GROUPS_VARS+= MYSQL_GROUP
CONFIG_SHELL= ${TOOLS_PATH.bash}
CFLAGS.IRIX+= -DIRIX5 -DNEEDS_BSTRING_H
BUILD_DEFS+= VARBASE
# paths
CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc/mariadb"
CMAKE_ARGS+= -DINSTALL_DOCREADMEDIR="share/doc/mariadb"
CMAKE_ARGS+= -DINSTALL_INCLUDEDIR="include/mysql"
CMAKE_ARGS+= -DINSTALL_INFODIR="info"
CMAKE_ARGS+= -DINSTALL_MANDIR="${PKGMANDIR}"
CMAKE_ARGS+= -DINSTALL_MYSQLSHAREDIR="share/mariadb"
CMAKE_ARGS+= -DINSTALL_MYSQLTESTDIR="share/mariadb/test"
CMAKE_ARGS+= -DINSTALL_PLUGINDIR="lib/mysql/plugin"
CMAKE_ARGS+= -DINSTALL_SBINDIR="sbin"
CMAKE_ARGS+= -DINSTALL_SCRIPTDIR="bin"
CMAKE_ARGS+= -DINSTALL_SQLBENCHDIR="share/mariadb/sql-bench"
CMAKE_ARGS+= -DINSTALL_SUPPORTFILESDIR="share/mariadb"
CMAKE_ARGS+= -DMYSQL_DATADIR=${MYSQL_DATADIR}
# always use our own readline, not MySQL bundled one
CMAKE_ARGS+= -DWITH_READLINE=OFF
CMAKE_ARGS+= -DDEFAULT_CHARSET=${MYSQL_CHARSET:Q}
CMAKE_ARGS+= -DDEFAULT_COLLATION=${MYSQL_COLLATION:Q}
CMAKE_ARGS+= -DWITH_EXTRA_CHARSETS=${MYSQL_EXTRA_CHARSET:Q}
BROKEN_READLINE_DETECTION= yes # At least on RHEL 5.6
# MySQL 5 depends on builtin functions enabled with i486 and later with GCC.
.if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:Mi386)
GNU_ARCH.i386= i486
CFLAGS+= -march=i486
.endif
# Ensure the correct DTrace ABI is used.
.if !empty(ABI)
CMAKE_ARGS+= -DDTRACE_FLAGS="-${ABI}"
.endif
CPPFLAGS+= -Dunix
CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat
.if ${OPSYS} != "Interix"
CFLAGS+= -fPIC -DPIC
CXXFLAGS+= -fPIC -DPIC
.endif
# force HAVE_CURSES_H on Solaris since the configure script is broken
# and does not properly detect this, breaking the build later on.
CFLAGS.SunOS+= -DHAVE_CURSES_H
CXXFLAGS.SunOS+= -DHAVE_CURSES_H
# SCO OpenServer 5.0.7/3.2's readdir_r has 2 arguments and return struct dirent.
.if ${OS_VARIANT} == "SCOOSR5"
CMAKE_ARGS+= -DHAVE_READDIR_R=OFF
.endif
.include "../../mk/pthread.buildlink3.mk"
.if (defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")) || \
${OS_VARIANT} == "SCOOSR5"
CFLAGS+= -DSIGNALS_DONT_BREAK_READ
CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ
.endif
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mariadb
SUBST_CLASSES+= scr
SUBST_STAGE.scr= pre-configure
SUBST_FILES.scr= scripts/mariadb_install_db.sh scripts/mariadb_safe.sh \
scripts/mariadb_secure_installation.sh \
support-files/mariadb.server.sh
SUBST_SED.scr= -e "s,chown,${CHOWN},g"
SUBST_SED.scr+= -e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g"
SUBST_MESSAGE.scr= Fixing scripts.
.include "../../mk/readline.buildlink3.mk"
.if !empty(READLINE_TYPE:Mreadline)
CMAKE_ARGS+= -DREADLINE_INCLUDE_DIR=${BUILDLINK_PREFIX.editlinereadline}/include/readline
.else
CMAKE_ARGS+= -DLIBEDIT_INCLUDE_DIR=${BUILDLINK_PREFIX.editlinereadline}/include/readline
.endif
.include "../../devel/zlib/buildlink3.mk"