1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# $NetBSD: Makefile,v 1.3 2022/06/30 11:18:09 nia Exp $
PKGNAME= ${DISTNAME:S/-gpl//}
PKGREVISION= 2
#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"
|