aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrnrd <brnrd@FreeBSD.org>2019-05-09 04:04:25 +0800
committerbrnrd <brnrd@FreeBSD.org>2019-05-09 04:04:25 +0800
commit558e397e3e28932cd90aa5385932261c79fea4f4 (patch)
tree97a8412dc0021c584fefecb03e65b0af1812bb15
parentb691bddf6a65158d426984e434a70aae760b138f (diff)
downloadfreebsd-ports-gnome-558e397e3e28932cd90aa5385932261c79fea4f4.tar.gz
freebsd-ports-gnome-558e397e3e28932cd90aa5385932261c79fea4f4.tar.zst
freebsd-ports-gnome-558e397e3e28932cd90aa5385932261c79fea4f4.zip
databases/mariadb101-server: Update to 10.1.40
- Clean up Makefiles - Reduce -client to bare minimum
-rw-r--r--databases/mariadb101-client/Makefile27
-rw-r--r--databases/mariadb101-server/Makefile94
-rw-r--r--databases/mariadb101-server/distinfo6
3 files changed, 53 insertions, 74 deletions
diff --git a/databases/mariadb101-client/Makefile b/databases/mariadb101-client/Makefile
index a1a6ef323851..365cdeaee564 100644
--- a/databases/mariadb101-client/Makefile
+++ b/databases/mariadb101-client/Makefile
@@ -11,31 +11,4 @@ FILESDIR= ${.CURDIR}/files
PATCHDIR= ${.CURDIR}/files
PLIST= ${.CURDIR}/pkg-plist
-CMAKE_ARGS+= -DWITHOUT_SERVER=1
-INSTALL_TARGET= install
-
-USE_LDCONFIG= ${PREFIX}/lib/mysql
-
-CLIENT_ONLY= yes
-
-post-install:
- ${RM} ${STAGEDIR}${PREFIX}/bin/wsrep*
- ${RM} ${STAGEDIR}${PREFIX}/bin/mysqld_safe_helper
- ${RM} ${STAGEDIR}${PREFIX}/share/aclocal/mysql.m4
- ${RM} -r ${STAGEDIR}${PREFIX}/share/pkgconfig
- ${RM} -r ${STAGEDIR}${PREFIX}/include/mysql/private
-. for b in mysql mysqladmin mysqlbinlog mysqlcheck mysqldump \
- mysqlimport mysqlshow mysqlslap
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${b}
-. endfor
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/libmysqlclient.so.18
-. for b in dialog.so mysql_clear_password.so client_ed25519.so
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/plugin/${b}
-. endfor
- # Fix https://mariadb.atlassian.net/browse/MDEV-9388
- @${REINPLACE_CMD} 's/-l-pthread/-lpthread/' ${STAGEDIR}${PREFIX}/bin/mysql_config
-
-post-install-GSSAPI_NONE:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/plugin/auth_gssapi_client.so
-
.include "${MASTERDIR}/Makefile"
diff --git a/databases/mariadb101-server/Makefile b/databases/mariadb101-server/Makefile
index 64a9cf03effb..62c2b8a69502 100644
--- a/databases/mariadb101-server/Makefile
+++ b/databases/mariadb101-server/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME?= mariadb
-PORTVERSION= 10.1.39
+PORTVERSION= 10.1.40
PORTREVISION= 0
CATEGORIES= databases ipv6
MASTER_SITES= http://ftp.osuosl.org/pub/${SITESDIR}/ \
@@ -39,7 +39,7 @@ OPTIONS_DEFAULT= GSSAPI_BASE
FASTMTX_DESC= Replace mutexes with spinlocks
-.if !defined(CLIENT_ONLY)
+.if ${PKGNAMESUFFIX:M*-server}
# MySQL-Server options
OPTIONS_DEFINE+= CONNECT_EXTRA MAXKEY DOCS
OPTIONS_DEFAULT+= MAXKEY SPHINX SPIDER
@@ -64,10 +64,6 @@ TOKUDB_DESC= Fractal tree index tree data structure engine
ZMQ_DESC= ZeroMQ support
.endif
-GSSAPI_BASE_USES= gssapi
-GSSAPI_HEIMDAL_USES= gssapi:heimdal
-GSSAPI_MIT_USES= gssapi:mit
-
CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc/mysql" \
-DINSTALL_DOCREADMEDIR="share/doc/mysql" \
-DINSTALL_INCLUDEDIR="include/mysql" \
@@ -83,11 +79,11 @@ CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc/mysql" \
-DINSTALL_SHAREDIR="share" \
-DINSTALL_SQLBENCHDIR= \
-DINSTALL_SUPPORTFILESDIR="share/mysql" \
- -DWITH_UNIT_TESTS=0 \
- -DWITH_LIBWRAP=1 \
-DWITH_SSL=${OPENSSLBASE} \
-DKRB5_CONFIG=${KRB5CONFIG} \
-DCOMPILATION_COMMENT="FreeBSD Ports"
+CMAKE_ON+= WITH_LIBWRAP
+CMAKE_OFF+= WITH_UNIT_TESTS
DATADIR= ${PREFIX}/share/mysql
@@ -101,27 +97,29 @@ CONFLICTS_INSTALL= mariadb5*-${PKGNAMESUFFIX:C/^[0-9]*-//}-* \
mysqlwsrep* \
percona[0-9]*-${PKGNAMESUFFIX:C/^[0-9]*-//}-*
-FASTMTX_CMAKE_ON= -DWITH_FAST_MUTEXES=1
+FASTMTX_CMAKE_BOOL= WITH_FAST_MUTEXES
+GSSAPI_BASE_USES= gssapi
+GSSAPI_HEIMDAL_USES= gssapi:heimdal
+GSSAPI_MIT_USES= gssapi:mit
OPTIONS_SUB= yes
-.if defined(CLIENT_ONLY)
+.if ${PKGNAMESUFFIX:M*-client}
# MySQL-Client part
USES+= readline
+USE_LDCONFIG= ${PREFIX}/lib/mysql
+CMAKE_ON+= WITHOUT_SERVER
GSSAPI_NONE_CMAKE_ON= -DPLUGIN_AUTH_GSSAPI_CLIENT=NO
.else
# MySQL-Server part
BROKEN_powerpc64= Does not build: fatal error: sys/platform/ppc.h: No such file or directory
-#LIB_DEPENDS= libevent.so:devel/libevent
USES+= mysql:101m
USE_GNOME= libxml2
USE_LDCONFIG+= ${PREFIX}/lib/mysql/plugin
USE_RC_SUBR= mysql-server
USERS= mysql
GROUPS= mysql
-CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER="ON" \
- -DPLUGIN_AUTH_GSSAPI_CLIENT=NO \
- -DCMAKE_SKIP_BUILD_RPATH:BOOL=YES \
- -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
+CMAKE_ARGS+= -DPLUGIN_AUTH_GSSAPI_CLIENT=NO
+CMAKE_ON+= WITH_EMBEDDED_SERVER CMAKE_SKIP_BUILD_RPATH WITHOUT_EXAMPLE_STORAGE_ENGINE
.for ENGINE in ${OPTIONS_GROUP_ENGINES}
${ENGINE}_CMAKE_OFF= -DPLUGIN_${ENGINE}=NO
@@ -129,13 +127,12 @@ ${ENGINE}_CMAKE_ON= -DPLUGIN_${ENGINE}=DYNAMIC
.endfor
CONNECT_EXTRA_LIB_DEPENDS= libodbc.so:databases/unixODBC
+CONNECT_EXTRA_USES= gnome
CONNECT_EXTRA_USE= gnome=libxml2
GSSAPI_NONE_CMAKE_ON= -DPLUGIN_AUTH_GSSAPI=NO
-LZ4_CMAKE_OFF= -DGRN_WITH_LZ4=OFF -DWITH_INNODB_LZ4=OFF
-LZ4_CMAKE_ON= -DGRN_WITH_LZ4=${LOCALBASE}/lib -DWITH_INNODB_LZ4=${LOCALBASE}/lib
+LZ4_CMAKE_BOOL= GRN_WITH_LZ4 WITH_INNODB_LZ4
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
-LZO_CMAKE_OFF= -DWITH_INNODB_LZO=OFF
-LZO_CMAKE_ON= -DWITH_INNODB_LZO=${LOCALBASE}/lib
+LZO_CMAKE_BOOL= WITH_INNODB_LZO
LZO_LIB_DEPENDS= liblzo2.so:archivers/lzo2
MAXKEY_EXTRA_PATCHES+= ${FILESDIR}/extra-patch-include_my__compare.h
MROONGA_LIB_DEPENDS= liblz4.so:archivers/liblz4
@@ -143,36 +140,13 @@ MROONGA_VARS= LICENSE+=LGPL20 LICENSE_COMB=multi
MSGPACK_LIB_DEPENDS= libmsgpackc.so:devel/msgpack
OQGRAPH_LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libJudy.so:devel/judy
-SNAPPY_CMAKE_OFF= -DWITH_INNODB_SNAPPY=OFF
-SNAPPY_CMAKE_ON= -DWITH_INNODB_SNAPPY=${LOCALBASE}/lib
+SNAPPY_CMAKE_BOOL= WITH_INNODB_SNAPPY
SNAPPY_LIB_DEPENDS= libsnappy.so:archivers/snappy
TOKUDB_IMPLIES= SNAPPY
TOKUDB_PORTDOCS= README.md
TOKUDB_VARS= LICENSE+=PerconaFT LICENSE_COMB=multi
ZMQ_LIB_DEPENDS= libzmq.so:net/libzmq4
-
-post-install:
-# Remove programs to avoid conflict with mariadb101-client
-# These are "client" components, so there should be a switch that
-# prevents them from being installed but it's unknown right now
- ${RM} ${STAGEDIR}${PREFIX}/bin/msql2mysql \
- ${STAGEDIR}${PREFIX}/bin/mysql_config \
- ${STAGEDIR}${PREFIX}/bin/mysql_find_rows \
- ${STAGEDIR}${PREFIX}/bin/mysqlaccess \
- ${STAGEDIR}${PREFIX}/lib/mysql/plugin/client_ed25519.so \
- ${STAGEDIR}${PREFIX}/share/groonga-normalizer-mysql/lgpl-2.0.txt \
- ${STAGEDIR}${PREFIX}/share/groonga/COPYING \
- ${STAGEDIR}${DATADIR}/mroonga/COPYING
- ${RM} -r ${STAGEDIR}${PREFIX}/share/mysql/policy \
- ${STAGEDIR}${PREFIX}/share/pkgconfig \
- ${STAGEDIR}${PREFIX}/mysql/mysql-test \
- ${STAGEDIR}${PREFIX}/mysql/sql-bench
-
-post-install-MROONGA-on:
- ${MV} ${STAGEDIR}${PREFIX}/share/groonga-normalizer-mysql \
- ${STAGEDIR}${PREFIX}/share/groonga \
- ${STAGEDIR}${PREFIX}/share/mysql
-.endif # defined(CLIENT_ONLY)
+.endif # ${PKGNAMESUFFIX:M*-client}
.include <bsd.port.options.mk>
@@ -201,4 +175,36 @@ post-patch:
${WRKSRC}/cmake/os/DragonFly.cmake
.endif
+
+.if ${PKGNAMESUFFIX:M*-client}
+post-install:
+ ${RM} ${STAGEDIR}${PREFIX}/bin/wsrep*
+ ${RM} ${STAGEDIR}${PREFIX}/bin/mysqld_safe_helper
+ ${RM} ${STAGEDIR}${PREFIX}/share/aclocal/mysql.m4
+ ${RM} -r ${STAGEDIR}${PREFIX}/share/pkgconfig
+ ${RM} -r ${STAGEDIR}${PREFIX}/include/mysql/private
+.else
+post-install:
+# Remove programs to avoid conflict with mariadb101-client
+# These are "client" components, so there should be a switch that
+# prevents them from being installed but it's unknown right now
+ ${RM} ${STAGEDIR}${PREFIX}/bin/msql2mysql \
+ ${STAGEDIR}${PREFIX}/bin/mysql_config \
+ ${STAGEDIR}${PREFIX}/bin/mysql_find_rows \
+ ${STAGEDIR}${PREFIX}/bin/mysqlaccess \
+ ${STAGEDIR}${PREFIX}/lib/mysql/plugin/client_ed25519.so \
+ ${STAGEDIR}${PREFIX}/share/groonga-normalizer-mysql/lgpl-2.0.txt \
+ ${STAGEDIR}${PREFIX}/share/groonga/COPYING \
+ ${STAGEDIR}${DATADIR}/mroonga/COPYING
+ ${RM} -r ${STAGEDIR}${PREFIX}/share/mysql/policy \
+ ${STAGEDIR}${PREFIX}/share/pkgconfig \
+ ${STAGEDIR}${PREFIX}/mysql/mysql-test \
+ ${STAGEDIR}${PREFIX}/mysql/sql-bench
+
+post-install-MROONGA-on:
+ ${MV} ${STAGEDIR}${PREFIX}/share/groonga-normalizer-mysql \
+ ${STAGEDIR}${PREFIX}/share/groonga \
+ ${STAGEDIR}${PREFIX}/share/mysql
+.endif # ${PKGNAMESUFFIX:M*-client}
+
.include <bsd.port.post.mk>
diff --git a/databases/mariadb101-server/distinfo b/databases/mariadb101-server/distinfo
index 9e6f8ef96cc3..5e767f268283 100644
--- a/databases/mariadb101-server/distinfo
+++ b/databases/mariadb101-server/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1556892764
-SHA256 (mariadb-10.1.39.tar.gz) = 6ebaa9424707b8f45ad45eaad37df0d39e77fc965309786d298d6baf3bd93a7e
-SIZE (mariadb-10.1.39.tar.gz) = 63577702
+TIMESTAMP = 1557341221
+SHA256 (mariadb-10.1.40.tar.gz) = 91757a7e52b88b8ddbf150ac55746e9dd1978b06c03303f114e57980ed2a67a4
+SIZE (mariadb-10.1.40.tar.gz) = 63573615