pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/mysql75-cluster databases/mysql75-cluster: i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/149e770b4820
branches: trunk
changeset: 377127:149e770b4820
user: jnemeth <jnemeth%pkgsrc.org@localhost>
date: Sun Apr 17 04:07:13 2022 +0000
description:
databases/mysql75-cluster: import mysql-cluster-7.5.25
MySQL Cluster is a highly scalable, real-time, ACID-compliant
transactional database, combining 99.999% availability with the
low TCO of open source.
Designed around a distributed, multi-master architecture with no
single point of failure, MySQL Cluster scales horizontally on
commodity hardware to serve read and write intensive workloads,
accessed via SQL and NoSQL interfaces.
This package contains MySQL server version 5.7.
diffstat:
databases/mysql75-cluster/DEINSTALL | 16 +
databases/mysql75-cluster/DESCR | 10 +
databases/mysql75-cluster/MESSAGE | 21 +
databases/mysql75-cluster/Makefile | 103 +
databases/mysql75-cluster/Makefile.common | 137 +
databases/mysql75-cluster/PLIST | 15224 ++++++++++
databases/mysql75-cluster/PLIST.SunOS | 2 +
databases/mysql75-cluster/buildlink3.mk | 18 +
databases/mysql75-cluster/distinfo | 57 +
databases/mysql75-cluster/files/my-cluster.cnf | 15 +
databases/mysql75-cluster/files/mysql-cluster.ini | 31 +
databases/mysql75-cluster/files/mysqld.sh | 105 +
databases/mysql75-cluster/files/ndb_mgmd.sh | 49 +
databases/mysql75-cluster/files/ndbd.sh | 49 +
databases/mysql75-cluster/files/ndbmtd.sh | 49 +
databases/mysql75-cluster/files/smf/manifest.xml | 50 +
databases/mysql75-cluster/files/smf/mysqld.sh | 64 +
databases/mysql75-cluster/files/smf/ndbd.sh | 20 +
databases/mysql75-cluster/options.mk | 14 +
databases/mysql75-cluster/patches/patch-CMakeLists.txt | 97 +
databases/mysql75-cluster/patches/patch-client_completion_hash.cc | 17 +
databases/mysql75-cluster/patches/patch-client_mysqladmin.cc | 23 +
databases/mysql75-cluster/patches/patch-cmake_boost.cmake | 18 +
databases/mysql75-cluster/patches/patch-cmake_build__configurations_compiler__options.cmake | 22 +
databases/mysql75-cluster/patches/patch-cmake_build__configurations_mysql__release.cmake | 13 +
databases/mysql75-cluster/patches/patch-cmake_curl.cmake | 20 +
databases/mysql75-cluster/patches/patch-cmake_ldap.cmake | 22 +
databases/mysql75-cluster/patches/patch-cmake_os_SunOS.cmake | 29 +
databases/mysql75-cluster/patches/patch-cmake_plugin.cmake | 56 +
databases/mysql75-cluster/patches/patch-cmake_readline.cmake | 21 +
databases/mysql75-cluster/patches/patch-cmake_ssl.cmake | 73 +
databases/mysql75-cluster/patches/patch-include_m__string.h | 18 +
databases/mysql75-cluster/patches/patch-include_my__compare.h | 15 +
databases/mysql75-cluster/patches/patch-include_my__thread.h | 18 +
databases/mysql75-cluster/patches/patch-include_my__thread__os__id.h | 33 +
databases/mysql75-cluster/patches/patch-libmysql_CMakeLists.txt | 61 +
databases/mysql75-cluster/patches/patch-mysql-test_CMakeLists.txt | 18 +
databases/mysql75-cluster/patches/patch-mysys_kqueue__timers.c | 35 +
databases/mysql75-cluster/patches/patch-mysys_mf__iocache2.c | 12 +
databases/mysql75-cluster/patches/patch-mysys_my__symlink.c | 12 +
databases/mysql75-cluster/patches/patch-mysys_stacktrace.c | 13 +
databases/mysql75-cluster/patches/patch-rapid_plugin_group__replication_libmysqlgcs_src_bindings_xcom_xcom_sock__probe__ix.c | 13 +
databases/mysql75-cluster/patches/patch-rapid_plugin_group__replication_libmysqlgcs_src_bindings_xcom_xcom_xcom__memory.c | 19 +
databases/mysql75-cluster/patches/patch-rapid_plugin_group__replication_libmysqlgcs_src_bindings_xcom_xcom_xcom__transport.c | 28 +
databases/mysql75-cluster/patches/patch-rapid_plugin_group__replication_rpcgen.cmake | 18 +
databases/mysql75-cluster/patches/patch-rapid_plugin_x_CMakeLists.txt | 31 +
databases/mysql75-cluster/patches/patch-regex_CMakeLists.txt | 25 +
databases/mysql75-cluster/patches/patch-scripts_CMakeLists.txt | 19 +
databases/mysql75-cluster/patches/patch-scripts_mysqld__safe.sh | 13 +
databases/mysql75-cluster/patches/patch-sql_CMakeLists.txt | 13 +
databases/mysql75-cluster/patches/patch-sql_conn__handler_socket__connection.cc | 28 +
databases/mysql75-cluster/patches/patch-sql_item__geofunc__internal.cc | 16 +
databases/mysql75-cluster/patches/patch-sql_locks_shared__spin__lock.cc | 13 +
databases/mysql75-cluster/patches/patch-sql_log__event.h | 17 +
databases/mysql75-cluster/patches/patch-sql_sys__vars.cc | 13 +
databases/mysql75-cluster/patches/patch-storage_archive_CMakeLists.txt | 13 +
databases/mysql75-cluster/patches/patch-storage_blackhole_CMakeLists.txt | 12 +
databases/mysql75-cluster/patches/patch-storage_csv_CMakeLists.txt | 13 +
databases/mysql75-cluster/patches/patch-storage_example_CMakeLists.txt | 18 +
databases/mysql75-cluster/patches/patch-storage_federated_CMakeLists.txt | 12 +
databases/mysql75-cluster/patches/patch-storage_heap_CMakeLists.txt | 33 +
databases/mysql75-cluster/patches/patch-storage_myisam_CMakeLists.txt | 58 +
databases/mysql75-cluster/patches/patch-storage_myisammrg_CMakeLists.txt | 13 +
databases/mysql75-cluster/patches/patch-storage_ndb_CMakeLists.txt | 18 +
databases/mysql75-cluster/patches/patch-storage_ndb_cmake_ndb__add__test.cmake | 19 +
databases/mysql75-cluster/patches/patch-storage_ndb_src_common_util_CMakeLists.txt | 14 +
databases/mysql75-cluster/patches/patch-storage_ndb_src_common_util_NdbSqlUtil.cpp | 22 +
databases/mysql75-cluster/patches/patch-storage_ndb_src_mgmapi_ndb__logevent.cpp | 14 +
databases/mysql75-cluster/patches/patch-storage_perfschema_CMakeLists.txt | 20 +
databases/mysql75-cluster/patches/patch-storage_perfschema_unittest_CMakeLists.txt | 13 +
databases/mysql75-cluster/patches/patch-strings_decimal.c | 16 +
71 files changed, 17254 insertions(+), 0 deletions(-)
diffs (truncated from 17538 to 300 lines):
diff -r 24b657ac6eec -r 149e770b4820 databases/mysql75-cluster/DEINSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql75-cluster/DEINSTALL Sun Apr 17 04:07:13 2022 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: DEINSTALL,v 1.1 2022/04/17 04:07:13 jnemeth Exp $
+
+case ${STAGE} in
+POST-DEINSTALL)
+ if [ -d @MYSQL_DATADIR@ ]; then
+ ${CAT} << EOF
+===========================================================================
+If you won't be using ${PKGNAME} any longer, and you don't
+wish to preserve your existing databases, then you may remove the
+following directory:
+
+ @MYSQL_DATADIR@
+===========================================================================
+EOF
+ fi
+esac
diff -r 24b657ac6eec -r 149e770b4820 databases/mysql75-cluster/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql75-cluster/DESCR Sun Apr 17 04:07:13 2022 +0000
@@ -0,0 +1,10 @@
+MySQL Cluster is a highly scalable, real-time, ACID-compliant
+transactional database, combining 99.999% availability with the
+low TCO of open source.
+
+Designed around a distributed, multi-master architecture with no
+single point of failure, MySQL Cluster scales horizontally on
+commodity hardware to serve read and write intensive workloads,
+accessed via SQL and NoSQL interfaces.
+
+This package contains MySQL server version 5.7.
diff -r 24b657ac6eec -r 149e770b4820 databases/mysql75-cluster/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql75-cluster/MESSAGE Sun Apr 17 04:07:13 2022 +0000
@@ -0,0 +1,21 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2022/04/17 04:07:13 jnemeth Exp $
+
+After the tables are set up and the MySQL server is running,
+please remember to set a password for the MySQL root user!
+This is done by running both:
+
+ ${PREFIX}/bin/mysqladmin -u root -p password 'new-password'
+ ${PREFIX}/bin/mysqladmin -h `hostname` -u root -p password 'new-password'
+
+The "Enter password:" prompt is asking for the existing password.
+As there is no existing password, just press the Return key.
+
+There is a script distributed with MySQL that can help you lock down
+an installation. This script has been installed to
+
+ ${PREFIX}/bin/mysql_secure_installation.
+
+Please see the manual and the MySQL web site for more instructions.
+
+===========================================================================
diff -r 24b657ac6eec -r 149e770b4820 databases/mysql75-cluster/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql75-cluster/Makefile Sun Apr 17 04:07:13 2022 +0000
@@ -0,0 +1,103 @@
+# $NetBSD: Makefile,v 1.1 2022/04/17 04:07:13 jnemeth Exp $
+
+PKGNAME= ${DISTNAME:S/-gpl//}
+#PKGREVISION= 7
+COMMENT= MySQL Cluster 7.5, a free SQL clustered database
+
+CONFLICTS= mysql*-{client,server}-[0-9]*
+
+.include "Makefile.common"
+
+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}
+
+UNWRAP_FILES+= scripts/mysql_config
+INFO_FILES= yes
+
+RCD_SCRIPTS= mysqld ndbd ndbmtd ndb_mgmd
+SMF_NAME= mysql-cluster
+SMF_METHODS= mysqld ndbd
+SMF_INSTANCES= mysqld ndbd ndb_mgmd
+
+FILES_SUBST+= HOSTNAME_CMD=${HOSTNAME_CMD:Q}
+FILES_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR}
+FILES_SUBST+= MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
+MESSAGE_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR}
+MESSAGE_SUBST+= MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
+BUILD_DEFS+= MYSQL_DATADIR
+
+CNFSUBST= -e 's,@MYSQL_DATADIR@,${MYSQL_DATADIR},g'
+CNFSUBST+= -e 's,@PREFIX@,${PREFIX},g'
+CNFSUBST+= -e 's,@VARBASE@,${VARBASE},g'
+
+CONF_FILES+= share/mysql/my-cluster.cnf ${PKG_SYSCONFDIR}/my.cnf
+CONF_FILES+= share/mysql/mysql-cluster.ini
+CONF_FILES+= ${PKG_SYSCONFDIR}/mysql-cluster.ini
+
+SUBST_CLASSES+= perlpath
+SUBST_STAGE.perlpath= pre-configure
+SUBST_MESSAGE.perlpath= Fixing Perl paths.
+SUBST_FILES.perlpath+= scripts/mysqld_multi.sh
+SUBST_FILES.perlpath+= scripts/mysqldumpslow.sh
+SUBST_SED.perlpath= -e 's,@PERL_PATH@,${PERL5},g'
+
+REPLACE_PERL= mysql-test/lib/v1/mysql-test-run.pl
+REPLACE_PERL+= mysql-test/mtr.out-of-source
+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/suite/opt_trace/validate_json.pl
+REPLACE_PERL+= mysql-test/suite/rpl/extension/bhs.pl
+REPLACE_PERL+= mysql-test/suite/rpl/extension/checksum.pl
+REPLACE_PERL+= sql-bench/bench-count-distinct.sh
+REPLACE_PERL+= sql-bench/bench-init.pl.sh
+REPLACE_PERL+= sql-bench/compare-results.sh
+REPLACE_PERL+= sql-bench/copy-db.sh
+REPLACE_PERL+= sql-bench/crash-me.sh
+REPLACE_PERL+= sql-bench/graph-compare-results.sh
+REPLACE_PERL+= sql-bench/innotest1.sh
+REPLACE_PERL+= sql-bench/innotest1a.sh
+REPLACE_PERL+= sql-bench/innotest1b.sh
+REPLACE_PERL+= sql-bench/innotest2.sh
+REPLACE_PERL+= sql-bench/innotest2a.sh
+REPLACE_PERL+= sql-bench/innotest2b.sh
+REPLACE_PERL+= sql-bench/run-all-tests.sh
+REPLACE_PERL+= sql-bench/server-cfg.sh
+REPLACE_PERL+= sql-bench/test-ATIS.sh
+REPLACE_PERL+= sql-bench/test-alter-table.sh
+REPLACE_PERL+= sql-bench/test-big-tables.sh
+REPLACE_PERL+= sql-bench/test-connect.sh
+REPLACE_PERL+= sql-bench/test-create.sh
+REPLACE_PERL+= sql-bench/test-insert.sh
+REPLACE_PERL+= sql-bench/test-select.sh
+REPLACE_PERL+= sql-bench/test-transactions.sh
+REPLACE_PERL+= sql-bench/test-wisconsin.sh
+REPLACE_PERL+= storage/ndb/memcache/memclient.pl
+REPLACE_PERL+= storage/ndb/tools/ndb_error_reporter.pl
+REPLACE_PERL+= storage/ndb/tools/ndb_size.pl
+
+REPLACE_SH= mysql-test/suite/rpl/t/rpl_loaddata_symlink-master.sh
+REPLACE_SH+= mysql-test/suite/rpl/t/rpl_loaddata_symlink-slave.sh
+REPLACE_SH+= mysql-test/suite/rpl/t/rpl_misc_functions-slave.sh
+REPLACE_SH+= mysql-test/t/long_tmpdir-master.sh
+REPLACE_SH+= mysql-test/t/lowercase_mixed_tmpdir-master.sh
+REPLACE_SH+= mysql-test/t/lowercase_mixed_tmpdir_innodb-master.sh
+
+pre-build:
+ ${RM} -f ${WRKSRC}/storage/ndb/mcc/frontend/dojo/dojox/mobile/build/build.sh.orig
+
+post-install:
+ ${SED} ${CNFSUBST} ${FILESDIR}/my-cluster.cnf \
+ > ${DESTDIR}${PREFIX}/share/mysql/my-cluster.cnf
+ ${SED} ${CNFSUBST} ${FILESDIR}/mysql-cluster.ini \
+ > ${DESTDIR}${PREFIX}/share/mysql/mysql-cluster.ini
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 24b657ac6eec -r 149e770b4820 databases/mysql75-cluster/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mysql75-cluster/Makefile.common Sun Apr 17 04:07:13 2022 +0000
@@ -0,0 +1,137 @@
+# $NetBSD: Makefile.common,v 1.1 2022/04/17 04:07:13 jnemeth Exp $
+#
+# used by databases/mysql-cluster/Makefile
+
+DISTNAME= mysql-cluster-gpl-7.5.25
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_MYSQL:=MySQL-Cluster-7.5/}
+
+MAINTAINER?= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.mysql.com/products/cluster/
+LICENSE= gnu-gpl-v2
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++03
+USE_TOOLS+= bash gmake perl:run
+
+.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?= mysql
+MYSQL_GROUP?= mysql
+MYSQL_DATADIR?= ${VARBASE}/mysql
+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/mysql"
+CMAKE_ARGS+= -DINSTALL_DOCREADMEDIR="share/doc/mysql"
+CMAKE_ARGS+= -DINSTALL_INCLUDEDIR="include/mysql"
+CMAKE_ARGS+= -DINSTALL_INFODIR="info"
+CMAKE_ARGS+= -DINSTALL_MANDIR="${PKGMANDIR}"
+CMAKE_ARGS+= -DINSTALL_MYSQLSHAREDIR="share/mysql"
+CMAKE_ARGS+= -DINSTALL_MYSQLTESTDIR="share/mysql/test"
+CMAKE_ARGS+= -DINSTALL_PLUGINDIR="lib/mysql/plugin"
+CMAKE_ARGS+= -DINSTALL_SBINDIR="sbin"
+CMAKE_ARGS+= -DINSTALL_SCRIPTDIR="bin"
+CMAKE_ARGS+= -DINSTALL_SQLBENCHDIR="share/mysql/sql-bench"
+CMAKE_ARGS+= -DINSTALL_SUPPORTFILESDIR="share/mysql"
+CMAKE_ARGS+= -DMYSQL_DATADIR=${MYSQL_DATADIR}
+
+CMAKE_ARGS+= -DWITH_BOOST="system"
+CMAKE_ARGS+= -UWITH_LIBEVENT="system"
+CMAKE_ARGS+= -DWITH_BUNDLED_LIBEVENT=ON
+CMAKE_ARGS+= -DWITH_ZLIB="system"
+CMAKE_ARGS+= -DDEFAULT_CHARSET=${MYSQL_CHARSET}
+CMAKE_ARGS+= -DDEFAULT_COLLATION=${MYSQL_COLLATION:Q}
+CMAKE_ARGS+= -DWITH_EXTRA_CHARSETS=${MYSQL_EXTRA_CHARSET:Q}
+CMAKE_ARGS+= -DWITH_NDB_JAVA=OFF
+CMAKE_ARGS+= -UWITH_UNIT_TESTS
+CMAKE_ARGS+= -DWITH_SSL=system
+
+# 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+= -D__STDC_FORMAT_MACROS=1 # always defined too late
+
+.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. Also
+# explicitly disable epoll support as it is Linux-specific.
+CMAKE_ARGS.SunOS+= -DHAVE_SYS_EPOLL_H=NO -DHAVE_EPOLL_CREATE=NO
+CFLAGS.SunOS+= -DHAVE_CURSES_H
+CXXFLAGS.SunOS+= -DHAVE_CURSES_H
+
+.include "../../mk/pthread.buildlink3.mk"
+
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
+CFLAGS+= -DSIGNALS_DONT_BREAK_READ
+CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ
+.endif
+
+LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
+
+SUBST_CLASSES+= scr
+SUBST_STAGE.scr= pre-configure
+SUBST_FILES.scr= scripts/mysqld_safe.sh \
+ support-files/mysql.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.
+
+SUBST_CLASSES+= fixpaths
+SUBST_STAGE.fixpaths= post-install
+SUBST_FILES.fixpaths= ${DESTDIR}${PREFIX}/share/doc/mysql/INFO_BIN
+SUBST_SED.fixpaths= -e "s,${WRAPPER_BINDIR}/gcc,${CCPATH},g"
+SUBST_SED.fixpaths+= -e "s,${WRAPPER_BINDIR}/g++,${CXXPATH},g"
+
+.if ${SHLIB_TYPE} == "dylib"
+SOEXT= "dylib"
+.else
+SOEXT= "so"
+.endif
+
+CMAKE_ARGS+= -DWITH_EDITLINE=bundled
+
+# Remove internal boost. Even though external boost is detected, the build might fail.
+post-extract: remove-boost
+.PHONY: remove-boost
+remove-boost:
Home |
Main Index |
Thread Index |
Old Index