pkgsrc/databases/mysql55-server/Makefile

85 lines
2.6 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.31 2016/04/18 10:01:16 adam Exp $
PKGNAME= ${DISTNAME:S/-/-server-/}
COMMENT= MySQL 5, a free SQL database (server)
CONFLICTS= mysql3-server-[0-9]*
.include "../../databases/mysql55-client/Makefile.common"
CMAKE_ARGS+= -DWITH_LIBWRAP=ON
2013-04-01 03:18:00 +02:00
CMAKE_ARGS+= -DINSTALL_INFODIR=${PKGINFODIR}
.if !empty(PKG_OPTIONS:Membedded-server)
CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER=ON
PLIST.embedded= yes
.else
# We only need readline to placate the configure script if we don't build
# the embedded server as it is the only binary linked against "readline".
BUILDLINK_DEPMETHOD.readline= build
.endif
# ndb-cluster does not configure with cmake
#.if !empty(PKG_OPTIONS:Mndb-cluster)
#CMAKE_ARGS+= -DWITH_NDBCLUSTER_STORAGE_ENGINE=ON
#REPLACE_PERL+= storage/ndb/tools/ndb_error_reporter
#REPLACE_PERL+= storage/ndb/tools/ndb_size.pl
#PLIST.ndb= yes
#.endif
PLIST_VARS+= embedded ndb auth_socket
.if ${OPSYS} == "Linux"
PLIST.auth_socket= yes
.endif
PTHREAD_OPTS+= require
PKG_GROUPS= ${MYSQL_GROUP}
PKG_USERS= ${MYSQL_USER}:${MYSQL_GROUP}
PKG_GECOS.${MYSQL_USER}= MySQL database administrator
PKG_HOME.${MYSQL_USER}= ${MYSQL_DATADIR}
PKG_SHELL.${MYSQL_USER}= ${SH}
RCD_SCRIPTS= mysqld
SMF_NAME= mysql
SMF_METHODS= ${RCD_SCRIPTS}
FILES_SUBST+= HOSTNAME_CMD=${HOSTNAME_CMD:Q}
FILES_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR}
FILES_SUBST+= MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
FILES_SUBST+= MYSQL_PIDFILE=${MYSQL_PIDFILE}
MESSAGE_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR}
MESSAGE_SUBST+= MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
BUILD_DEFS+= MYSQL_DATADIR
REPLACE_PERL+= mysql-test/lib/My/SafeProcess/safe_process.pl
REPLACE_PERL+= mysql-test/lib/v1/mysql-test-run.pl
REPLACE_PERL+= mysql-test/mysql-stress-test.pl
REPLACE_PERL+= mysql-test/mysql-test-run.pl
REPLACE_PERL+= mysql-test/std_data/checkDBI_DBD-mysql.pl
REPLACE_PERL+= mysql-test/suite/engines/rr_trx/run_stress_tx_rr.pl
REPLACE_PERL+= mysql-test/suite/funcs_1/lib/DataGen_local.pl
REPLACE_PERL+= mysql-test/suite/funcs_1/lib/DataGen_modify.pl
REPLACE_PERL+= mysql-test/suite/funcs_2/lib/gen_charset_utf8.pl
REPLACE_PERL+= mysql-test/mtr
REPLACE_PERL+= sql-bench/*.sh
Changes 5.5.39: CMake support was updated to handle CMake version 3. The timed_mutexes system variable has no effect and is deprecated. Bugs Fixed InnoDB: Opening a parent table that has thousands of child tables could result in a long semaphore wait condition. Partitioning: Selecting from a table having multiple columns in its primary key and partitioned by LIST COLUMNS(R), where R was the last (rightmost) column listed in the primary key definition, returned an incorrect result. Replication: When using row-based replication, updating or deleting a row on the master that did not exist on the slave led to failure of the slave when it tried to process the change. This problem occurred with InnoDB tables lacking a primary key. Replication: Quotation marks were not always handled correctly by LOAD DATA INFILE when written into the binary log. Replication: A group of threads involved in acquiring locks could deadlock when the following events occurred: Dump thread reconnects from slave; on master, a new dump thread tries to kill zombie dump threads; having acquired the thread's LOCK_thd_data, it is about to acquire LOCK_log. Application thread executing show binary logs, having acquired LOCK_log and about to acquire LOCK_index. Application thread executing PURGE BINARY LOGS; having acquired LOCK_index, it is about to acquire LOCK_thread_count. Application thread executing SHOW PROCESSLIST (or SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST), having acquired LOCK_thread_count and about to acquire the zombie dump thread's LOCK_thd_data.
2014-08-10 16:27:40 +02:00
REPLACE_SH+= mysql-test/t/long_tmpdir-master.sh
REPLACE_SH+= mysql-test/t/lowercase_mixed_tmpdir-master.sh
INSTALLATION_DIRS+= bin
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Msunpro)
CFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
CXXFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
.endif
BUILDLINK_AUTO_DIRS.mysql-client= no
.include "../../databases/mysql55-client/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"