Changes 5.5.49:
Security Notes
--------------
MySQL client programs now support an --ssl-mode option that enables you to specify the security state of the connection to the server. The default value is DISABLED (establish an unencrypted connection). --ssl-mode=REQUIRED) can be specified to require a secure connection, or fail if a secure connection cannot be obtained.
These clients support --ssl-mode: mysql, mysqladmin, mysqlcheck, mysqldump, mysqlimport, mysqlshow, mysqlpump, mysqlslap, mysqltest, mysql_upgrade.
For more information, see Command Options for Secure Connections.
Bugs Fixed
2016-04-18 12:01:15 +02:00
|
|
|
# $NetBSD: Makefile,v 1.31 2016/04/18 10:01:16 adam Exp $
|
2011-04-25 23:12:13 +02:00
|
|
|
|
|
|
|
PKGNAME= ${DISTNAME:S/-/-server-/}
|
|
|
|
COMMENT= MySQL 5, a free SQL database (server)
|
|
|
|
|
2013-12-05 15:20:02 +01:00
|
|
|
CONFLICTS= mysql3-server-[0-9]*
|
2011-04-25 23:12:13 +02:00
|
|
|
|
|
|
|
.include "../../databases/mysql55-client/Makefile.common"
|
|
|
|
|
|
|
|
CMAKE_ARGS+= -DWITH_LIBWRAP=ON
|
2013-04-01 03:18:00 +02:00
|
|
|
CMAKE_ARGS+= -DINSTALL_INFODIR=${PKGINFODIR}
|
2011-04-25 23:12:13 +02:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Membedded-server)
|
|
|
|
CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER=ON
|
|
|
|
PLIST.embedded= yes
|
2011-09-17 14:56:17 +02:00
|
|
|
.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
|
2011-04-25 23:12:13 +02:00
|
|
|
.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
|
|
|
|
|
2011-05-06 18:21:16 +02:00
|
|
|
PLIST_VARS+= embedded ndb auth_socket
|
|
|
|
|
|
|
|
.if ${OPSYS} == "Linux"
|
2011-07-08 11:32:07 +02:00
|
|
|
PLIST.auth_socket= yes
|
2011-05-06 18:21:16 +02:00
|
|
|
.endif
|
2011-04-25 23:12:13 +02:00
|
|
|
|
|
|
|
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
|
2014-03-11 15:34:36 +01:00
|
|
|
SMF_NAME= mysql
|
|
|
|
SMF_METHODS= ${RCD_SCRIPTS}
|
2011-04-25 23:12:13 +02:00
|
|
|
|
|
|
|
FILES_SUBST+= HOSTNAME_CMD=${HOSTNAME_CMD:Q}
|
|
|
|
FILES_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR}
|
|
|
|
FILES_SUBST+= MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
|
2014-04-14 02:02:49 +02:00
|
|
|
FILES_SUBST+= MYSQL_PIDFILE=${MYSQL_PIDFILE}
|
2011-04-25 23:12:13 +02:00
|
|
|
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
|
2013-06-04 15:31:21 +02:00
|
|
|
REPLACE_PERL+= mysql-test/std_data/checkDBI_DBD-mysql.pl
|
2011-04-25 23:12:13 +02:00
|
|
|
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
|
2013-06-04 15:31:21 +02:00
|
|
|
REPLACE_PERL+= sql-bench/*.sh
|
2011-04-25 23:12:13 +02:00
|
|
|
|
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
|
|
|
|
|
2014-06-14 12:14:43 +02:00
|
|
|
INSTALLATION_DIRS+= bin
|
2011-04-25 23:12:13 +02:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
2013-05-20 21:33:54 +02:00
|
|
|
BUILDLINK_AUTO_DIRS.mysql-client= no
|
2013-05-20 16:59:59 +02:00
|
|
|
.include "../../databases/mysql55-client/buildlink3.mk"
|
2011-04-25 23:12:13 +02:00
|
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|