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