--- mysql57-client/files/patch-include_CMakeLists.txt (.../ports-dev/databases) (working +++ mysql57-client/files/patch-include_CMakeLists.txt (.../ports-dev-copy/databases) @@ -8,11 +8,4 @@ my_dbug.h m_string.h my_sys.h -@@ -68,7 +69,6 @@ SET(HEADERS - ${HEADERS_GEN_CONFIGURE} - ) - --INSTALL(FILES ../libbinlogevents/export/binary_log_types.h DESTINATION ${INSTALL_INCLUDEDIR}) - INSTALL(FILES ${HEADERS} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development) - INSTALL(DIRECTORY mysql/ DESTINATION ${INSTALL_INCLUDEDIR}/mysql COMPONENT Development - PATTERN "*.h" + --- mysql57-client/pkg-plist (.../ports-dev/databases) (working +++ mysql57-client/pkg-plist (.../ports-dev-copy/databases) @@ -10,6 +10,7 @@ bin/mysqlpump bin/mysqlshow bin/mysqlslap +include/mysql/binary_log_types.h include/mysql/big_endian.h include/mysql/byte_order_generic.h include/mysql/byte_order_generic_x86.h --- mysql57-server/Makefile (.../ports-dev/databases) (working +++ mysql57-server/Makefile (.../ports-dev-copy/databases) @@ -3,7 +3,7 @@ PORTNAME= mysql PORTVERSION= 5.7.10 -PORTREVISION= 1 +PORTREVISION?= 3 CATEGORIES= databases ipv6 MASTER_SITES= MYSQL/MySQL-5.7:MySQL SF/boost/boost/1.59.0:boost PKGNAMESUFFIX?= 57-server @@ -84,6 +84,7 @@ OPTIONS_GROUP= STORAGE OPTIONS_GROUP_STORAGE= ARCHIVE BLACKHOLE EXAMPLE FEDERATED INNOBASE PARTITION PERFSCHEMA +OPTIONS_SUB= YES STORAGE_DESC= Permissible "Storage Engines" (to compile statically into the server) ARCHIVE_DESC= Compile "Archive Storage" statically in server BLACKHOLE_DESC= Compile "Blackhole Storage" statically in server @@ -117,7 +118,7 @@ .endif post-extract: - ${RM} -rvf ${WRKSRC}/sql/sql_hints.yy.cc ${WRKSRC}/sql/sql_hints.yy.h + @${RM} -rvf ${WRKSRC}/sql/sql_hints.yy.cc ${WRKSRC}/sql/sql_hints.yy.h post-patch: @${REINPLACE_CMD} 's/*.1/${MMAN1}/' ${WRKSRC}/man/CMakeLists.txt --- mysql57-server/files/mysql-server.in (.../ports-dev/databases) (working +++ mysql57-server/files/mysql-server.in (.../ports-dev-copy/databases) @@ -41,7 +41,7 @@ : ${hostname:=`/bin/hostname`} pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"} command="/usr/sbin/daemon" -command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}" +command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} --skip-performance-schema" procname="%%PREFIX%%/libexec/mysqld" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" --- mysql57-server/files/patch-include_CMakeLists.txt (.../ports-dev/databases) (working +++ mysql57-server/files/patch-include_CMakeLists.txt (.../ports-dev-copy/databases) @@ -2,9 +2,9 @@ +++ include/CMakeLists.txt @@ -69,10 +69,12 @@ SET(HEADERS ) - + ++IF(FALSE) INSTALL(FILES ../libbinlogevents/export/binary_log_types.h DESTINATION ${INSTALL_INCLUDEDIR}) -+IF(FALSE) INSTALL(FILES ${HEADERS} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development) INSTALL(DIRECTORY mysql/ DESTINATION ${INSTALL_INCLUDEDIR}/mysql COMPONENT Development PATTERN "*.h" --- mysql57-server/pkg-message (.../ports-dev/databases) (working +++ mysql57-server/pkg-message (.../ports-dev-copy/databases) @@ -1,6 +1,13 @@ -************************************************************************ +***************************************************************************** Remember to run mysql_upgrade the first time you start the MySQL server after an upgrade from an earlier version. -************************************************************************ +Init. password for first time use of MySQL is saved in $HOME/.mysql_secret +ie. when you want to use "mysql -u root -p" first you should see password +in /root/.mysql_secret + +performance_schema feature is set off by default, because of using high RAM. +if you need it enable it yourself :) + +***************************************************************************** --- mysql57-server/pkg-plist (.../ports-dev/databases) (working +++ mysql57-server/pkg-plist (.../ports-dev-copy/databases) @@ -19,13 +19,12 @@ bin/resolve_stack_dump bin/resolveip bin/zlib_decompress -include/mysql/binary_log_types.h lib/mysql/libmysqld.a lib/mysql/plugin/adt_null.so lib/mysql/plugin/auth.so lib/mysql/plugin/auth_test_plugin.so lib/mysql/plugin/daemon_example.ini -lib/mysql/plugin/ha_example.so +%%NO_EXAMPLE%%lib/mysql/plugin/ha_example.so lib/mysql/plugin/libdaemon_example.so lib/mysql/plugin/libtest_framework.so lib/mysql/plugin/libtest_services.so