Lines 2-48
Link Here
|
2 |
# $FreeBSD: head/databases/mysql57-server/Makefile 412695 2016-04-07 22:23:19Z dim $ |
2 |
# $FreeBSD: head/databases/mysql57-server/Makefile 412695 2016-04-07 22:23:19Z dim $ |
3 |
|
3 |
|
4 |
PORTNAME= mysql |
4 |
PORTNAME= mysql |
5 |
PORTVERSION= 5.7.10 |
5 |
PORTVERSION= 5.7.12 |
6 |
PORTREVISION?= 4 |
|
|
7 |
CATEGORIES= databases ipv6 |
6 |
CATEGORIES= databases ipv6 |
8 |
MASTER_SITES= MYSQL/MySQL-5.7:MySQL SF/boost/boost/1.59.0:boost |
7 |
MASTER_SITES= MYSQL/MySQL-5.7 |
9 |
PKGNAMESUFFIX?= 57-server |
8 |
PKGNAMESUFFIX?= 57-server |
10 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:MySQL boost_1_59_0.tar.gz:boost |
9 |
DISTNAME= ${PORTNAME}-boost-${PORTVERSION} |
11 |
|
10 |
|
12 |
MAINTAINER= mokhi64@gmail.com |
11 |
MAINTAINER= mokhi64@gmail.com |
13 |
COMMENT= Multithreaded SQL database (server) |
12 |
COMMENT= Multithreaded SQL database (server) |
14 |
|
13 |
|
15 |
LICENSE= GPLv2 |
14 |
LICENSE= GPLv2 |
16 |
|
15 |
|
|
|
16 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
17 |
|
17 |
SLAVEDIRS= databases/mysql57-client |
18 |
SLAVEDIRS= databases/mysql57-client |
18 |
USES= cmake:outsource shebangfix |
19 |
USES= bison:build cmake:outsource compiler:c11 compiler:c++11-lib cpe libedit localbase perl5 shebangfix |
|
|
20 |
|
21 |
USE_OPENSSL= yes |
22 |
USE_PERL5= run |
23 |
|
24 |
WITH_OPENSSL_PORT= yes |
19 |
|
25 |
|
20 |
OPTIONS_RADIO= SSL |
26 |
MY_DBDIR= /var/db/mysql |
21 |
OPTIONS_RADIO_SSL= BUNDLED_SSL OPENSSL WITHOUT_SSL |
27 |
MY_SECDIR= /var/db/mysql_secure |
22 |
OPTIONS_DEFAULT+= OPENSSL |
28 |
MY_TMPDIR= /var/db/mysql_tmpdir |
23 |
NO_OPTIONS_SORT= yes |
|
|
24 |
|
29 |
|
25 |
BUNDLED_SSL_DESC= SSL/TLS support via (bundled) CyaSSL |
30 |
LIB_DEPENDS+= libevent.so:devel/libevent2 \ |
26 |
WITHOUT_SSL_DESC= No SSL/TLS support |
31 |
liblz4.so:archivers/liblz4 |
27 |
|
32 |
|
28 |
CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc/mysql" \ |
33 |
CMAKE_BUILD_TYPE= Release |
|
|
34 |
|
35 |
CMAKE_ARGS+= -DINSTALL_LAYOUT=FREEBSD \ |
36 |
-DINSTALL_LDCONFIGDIR="${LOCALBASE}/libdata/ldconfig" \ |
37 |
-DINSTALL_PKGCONFIGDIR="${LOCALBASE}/libdata/pkgconfig" \ |
38 |
-DINSTALL_DOCDIR="share/doc/mysql" \ |
29 |
-DINSTALL_DOCREADMEDIR="share/doc/mysql" \ |
39 |
-DINSTALL_DOCREADMEDIR="share/doc/mysql" \ |
30 |
-DINSTALL_INCLUDEDIR="include/mysql" \ |
40 |
-DINSTALL_INCLUDEDIR="include/mysql" \ |
31 |
-DINSTALL_INFODIR="info" \ |
41 |
-DINSTALL_INFODIR="info" \ |
32 |
-DINSTALL_LIBDIR="lib/mysql" \ |
42 |
-DINSTALL_LIBDIR="lib/mysql" \ |
33 |
-DINSTALL_PKGCONFIGDIR=${PREFIX}/libdata/pkgconfig \ |
|
|
34 |
-DINSTALL_MANDIR="man" \ |
43 |
-DINSTALL_MANDIR="man" \ |
35 |
-DINSTALL_MYSQLDATADIR="/var/db/mysql" \ |
44 |
-DINSTALL_MYSQLDATADIR="${MY_DBDIR}" \ |
|
|
45 |
-DINSTALL_MYSQLKEYRINGDIR="etc/mysql/keyring" \ |
36 |
-DINSTALL_MYSQLSHAREDIR="share/mysql" \ |
46 |
-DINSTALL_MYSQLSHAREDIR="share/mysql" \ |
37 |
-DINSTALL_MYSQLTESTDIR="share/mysql/tests" \ |
47 |
-DINSTALL_MYSQLTESTDIR="share/mysql/tests" \ |
38 |
-DINSTALL_PLUGINDIR="lib/mysql/plugin" \ |
48 |
-DINSTALL_PLUGINDIR="lib/mysql/plugin" \ |
39 |
-DINSTALL_SBINDIR="libexec" \ |
49 |
-DINSTALL_SBINDIR="libexec" \ |
40 |
-DINSTALL_SCRIPTDIR="bin" \ |
50 |
-DINSTALL_SCRIPTDIR="bin" \ |
|
|
51 |
-DINSTALL_SECURE_FILE_PRIVDIR="${MY_SECDIR}" \ |
41 |
-DINSTALL_SHAREDIR="share" \ |
52 |
-DINSTALL_SHAREDIR="share" \ |
42 |
-DINSTALL_SUPPORTFILESDIR="share/mysql" \ |
53 |
-DINSTALL_SUPPORTFILESDIR="share/mysql" \ |
43 |
-DLOCAL_BOOST_DIR=${WRKDIR}/boost_1_59_0 \ |
54 |
-DMYSQL_KEYRINGDIR="${ETCDIR}/keyring" \ |
44 |
-DBOOST_INCLUDE_DIR=${WRKDIR}/boost_1_59_0 \ |
55 |
-DSYSCONFDIR="${ETCDIR}" \ |
45 |
-DWITH_INNODB_EXTRA_DEBUG=0 |
56 |
-DWITH_BOOST="${WRKSRC}/boost" \ |
|
|
57 |
-DWITH_EDITLINE=system \ |
58 |
-DWITH_LIBEVENT=system \ |
59 |
-DWITH_LZ4=system \ |
60 |
-DWITH_ZLIB=system \ |
61 |
-DWITH_SSL=${OPENSSLBASE} \ |
62 |
-DWITH_PIC=1 |
46 |
|
63 |
|
47 |
SHEBANG_FILES= scripts/*.pl* scripts/*.sh |
64 |
SHEBANG_FILES= scripts/*.pl* scripts/*.sh |
48 |
|
65 |
|
Lines 50-73
Link Here
|
50 |
.error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again. |
67 |
.error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again. |
51 |
.endif |
68 |
.endif |
52 |
|
69 |
|
53 |
BUNDLED_SSL_CMAKE_ON= -DWITH_SSL=bundled |
70 |
SUB_LIST= MY_DBDIR=${MY_DBDIR} \ |
54 |
OPENSSL_USE= OPENSSL=yes |
71 |
MY_SECDIR=${MY_SECDIR} \ |
55 |
WITHOUT_SSL_CMAKE_ON= -DWITH_SSL=no |
72 |
MY_TMPDIR=${MY_TMPDIR} |
|
|
73 |
|
74 |
PLIST_SUB= MY_DBDIR=${MY_DBDIR} \ |
75 |
MY_SECDIR=${MY_SECDIR} \ |
76 |
MY_TMPDIR=${MY_TMPDIR} |
56 |
|
77 |
|
57 |
# MySQL-Server part |
78 |
# MySQL-Server part |
58 |
.if !defined(CLIENT_ONLY) |
79 |
.if !defined(CLIENT_ONLY) |
59 |
USE_MYSQL= yes |
80 |
USE_MYSQL= yes |
60 |
WANT_MYSQL_VER= 57 |
81 |
WANT_MYSQL_VER= 57 |
61 |
|
82 |
|
62 |
USES+= bison:build cpe perl5 |
83 |
CONFLICTS_INSTALL= mysql5[0-68-9]-server-* \ |
63 |
USE_PERL5= run |
84 |
mysql[0-46-9][0-9]-server-* \ |
64 |
|
85 |
mariadb[0-9][0-9]-server-* \ |
65 |
CONFLICTS_INSTALL= mariadb[0-9]*-server-* \ |
86 |
percona[0-9][0-9]-server-* |
66 |
mysql[0-46-9][0-689]-server-* \ |
|
|
67 |
percona[0-9]*-server-* |
68 |
|
87 |
|
69 |
USE_RC_SUBR= mysql-server |
88 |
USE_RC_SUBR= mysql-server |
70 |
|
89 |
|
|
|
90 |
SUB_FILES= my.cnf.sample |
91 |
|
71 |
USERS= mysql |
92 |
USERS= mysql |
72 |
GROUPS= mysql |
93 |
GROUPS= mysql |
73 |
|
94 |
|
Lines 110-129
Link Here
|
110 |
|
131 |
|
111 |
PERFSCHM_SUB_LIST+= PERFSCHEMRC="" |
132 |
PERFSCHM_SUB_LIST+= PERFSCHEMRC="" |
112 |
PERFSCHM_SUB_LIST_OFF+= PERFSCHEMRC="--skip-performance-schema" |
133 |
PERFSCHM_SUB_LIST_OFF+= PERFSCHEMRC="--skip-performance-schema" |
113 |
|
|
|
114 |
.else |
115 |
USES+= readline |
116 |
.endif |
134 |
.endif |
117 |
|
135 |
|
118 |
.include <bsd.port.pre.mk> |
136 |
.include <bsd.port.pre.mk> |
119 |
|
137 |
|
|
|
138 |
### Just for the sake of FreeBSD 9.X ### |
120 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 |
139 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 |
121 |
CC= clang |
140 |
.if !defined(CLIENT_ONLY) |
122 |
CXX= clang++ |
141 |
EXTRA_PATCHES+= ${PATCHDIR}/rapid_plugin-patch-_x_mysqlxtest__src_mysqlxtest.cc |
123 |
CPP= clang-cpp |
142 |
.endif |
124 |
OPENSSL_CMAKE_ON= -DWITH_SSL=system |
|
|
125 |
.elif ${OSVERSION} >= 1000000 |
126 |
OPENSSL_CMAKE_ON= -DWITH_SSL=yes |
127 |
.endif |
143 |
.endif |
128 |
|
144 |
|
129 |
post-extract: |
145 |
post-extract: |
Lines 132-135
Link Here
|
132 |
post-patch: |
148 |
post-patch: |
133 |
@${REINPLACE_CMD} 's/*.1/${MMAN1}/' ${WRKSRC}/man/CMakeLists.txt |
149 |
@${REINPLACE_CMD} 's/*.1/${MMAN1}/' ${WRKSRC}/man/CMakeLists.txt |
134 |
|
150 |
|
|
|
151 |
.if !defined(CLIENT_ONLY) |
152 |
post-install: |
153 |
${MKDIR} ${STAGEDIR}${ETCDIR} |
154 |
${INSTALL_DATA} ${WRKDIR}/my.cnf.sample ${STAGEDIR}${ETCDIR}/my.cnf.sample |
155 |
|
156 |
post-stage: |
157 |
${MKDIR} ${STAGEDIR}${ETCDIR}/keyring |
158 |
${MKDIR} ${STAGEDIR}${MY_SECDIR} |
159 |
${MKDIR} ${STAGEDIR}${MY_TMPDIR} |
160 |
.endif |
161 |
|
135 |
.include <bsd.port.post.mk> |
162 |
.include <bsd.port.post.mk> |