Update mysql5-client pacakge to 5.0.67.
For complete changes, please refer
http://dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-67.html.
Here is a part of it.
Functionality added or changed:
Security Enhancement:
To enable stricter control over the location from which user-defined
functions can be loaded, the plugin_dir system variable has been
backported from MySQL 5.1. If the value is non-empty, user-defined
function object files can be loaded only from the directory named by this
variable. If the value is empty, the behavior that is used before 5.0.67
applies: The UDF object files must be located in a directory that is
searched by your system's dynamic linker. (Bug#37428)
Important Change: Incompatible Change:
The FEDERATED storage engine is now disabled by default in the .cnf files
shipped with MySQL distributions (my-huge.cnf, my-medium.cnf, and so
forth). This affects server behavior only if you install one of these
files. (Bug#37069)
Cluster API: Important Change:
Because NDB_LE_MemoryUsage.page_size_kb shows memory page sizes in bytes
rather than kilobytes, it has been renamed to page_size_bytes. The name
page_size_kb is now deprecated and thus subject to removal in a future
release, although it currently remains supported for reasons of backward
compatibility. See The Ndb_logevent_type Type, for more information about
NDB_LE_MemoryUsage. (Bug#30271)
Important Change:
Some changes were made to CHECK TABLE ... FOR UPGRADE and REPAIR TABLE
with respect to detection and handling of tables with incompatible .frm
files (files created with a different version of the MySQL server). These
changes also affect mysqlcheck because that program uses CHECK TABLE and
REPAIR table, and thus also mysql_upgrade because that program invokes
mysqlcheck.
2008-09-18 13:50:44 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.33 2008/09/18 11:50:44 taca Exp $
|
|
|
|
#
|
|
|
|
# used by databases/mysql5-client/Makefile
|
|
|
|
# used by databases/mysql5-server/Makefile
|
|
|
|
#
|
2005-10-31 10:21:40 +01:00
|
|
|
|
Update mysql5-client pacakge to 5.0.67.
For complete changes, please refer
http://dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-67.html.
Here is a part of it.
Functionality added or changed:
Security Enhancement:
To enable stricter control over the location from which user-defined
functions can be loaded, the plugin_dir system variable has been
backported from MySQL 5.1. If the value is non-empty, user-defined
function object files can be loaded only from the directory named by this
variable. If the value is empty, the behavior that is used before 5.0.67
applies: The UDF object files must be located in a directory that is
searched by your system's dynamic linker. (Bug#37428)
Important Change: Incompatible Change:
The FEDERATED storage engine is now disabled by default in the .cnf files
shipped with MySQL distributions (my-huge.cnf, my-medium.cnf, and so
forth). This affects server behavior only if you install one of these
files. (Bug#37069)
Cluster API: Important Change:
Because NDB_LE_MemoryUsage.page_size_kb shows memory page sizes in bytes
rather than kilobytes, it has been renamed to page_size_bytes. The name
page_size_kb is now deprecated and thus subject to removal in a future
release, although it currently remains supported for reasons of backward
compatibility. See The Ndb_logevent_type Type, for more information about
NDB_LE_MemoryUsage. (Bug#30271)
Important Change:
Some changes were made to CHECK TABLE ... FOR UPGRADE and REPAIR TABLE
with respect to detection and handling of tables with incompatible .frm
files (files created with a different version of the MySQL server). These
changes also affect mysqlcheck because that program uses CHECK TABLE and
REPAIR table, and thus also mysql_upgrade because that program invokes
mysqlcheck.
2008-09-18 13:50:44 +02:00
|
|
|
DISTNAME= mysql-5.0.67
|
2005-10-31 10:21:40 +01:00
|
|
|
CATEGORIES= databases
|
2006-01-23 18:57:47 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MYSQL:=MySQL-5.0/}
|
2005-10-31 10:21:40 +01:00
|
|
|
|
2007-07-09 22:01:44 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-10-31 10:21:40 +01:00
|
|
|
HOMEPAGE= http://www.mysql.com/
|
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2007-07-10 00:27:35 +02:00
|
|
|
.include "options.mk"
|
2005-10-31 10:21:40 +01:00
|
|
|
|
2008-05-25 23:42:20 +02:00
|
|
|
EXTRACT_USING= bsdtar
|
2005-10-31 10:21:40 +01:00
|
|
|
|
|
|
|
# MYSQL_USER username of the database administrator
|
|
|
|
# MYSQL_GROUP group of the database administrator
|
|
|
|
# MYSQL_DATADIR home directory of the database administrator and
|
|
|
|
# location of the databases
|
|
|
|
MYSQL_USER?= mysql
|
|
|
|
MYSQL_GROUP?= mysql
|
|
|
|
MYSQL_DATADIR?= ${VARBASE}/mysql
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_USERS_VARS+= MYSQL_USER
|
|
|
|
PKG_GROUPS_VARS+= MYSQL_GROUP
|
|
|
|
|
2005-10-31 10:21:40 +01:00
|
|
|
# MYSQL_CHARSET default character set
|
|
|
|
# MYSQL_EXTRA_CHARSET additional character set to be compiled in.
|
|
|
|
#
|
|
|
|
MYSQL_CHARSET?= latin1
|
|
|
|
MYSQL_EXTRA_CHARSET?= all
|
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${MYSQL_DATADIR:Q}
|
2005-10-31 10:21:40 +01:00
|
|
|
CONFIGURE_ARGS+= --with-named-z-libs=z
|
|
|
|
CONFIGURE_ARGS+= --without-libwrap
|
|
|
|
|
2007-10-17 01:48:58 +02:00
|
|
|
.if ${OPSYS} == "IRIX"
|
2005-10-31 10:21:40 +01:00
|
|
|
CFLAGS+= -DIRIX5 -DNEEDS_BSTRING_H
|
|
|
|
# libgen is incorrectly detected
|
|
|
|
CONFIGURE_ENV+= ac_cv_lib_gen_p2open="no"
|
|
|
|
.endif
|
|
|
|
|
Update mysql5-client pacakge to 5.0.67.
For complete changes, please refer
http://dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-67.html.
Here is a part of it.
Functionality added or changed:
Security Enhancement:
To enable stricter control over the location from which user-defined
functions can be loaded, the plugin_dir system variable has been
backported from MySQL 5.1. If the value is non-empty, user-defined
function object files can be loaded only from the directory named by this
variable. If the value is empty, the behavior that is used before 5.0.67
applies: The UDF object files must be located in a directory that is
searched by your system's dynamic linker. (Bug#37428)
Important Change: Incompatible Change:
The FEDERATED storage engine is now disabled by default in the .cnf files
shipped with MySQL distributions (my-huge.cnf, my-medium.cnf, and so
forth). This affects server behavior only if you install one of these
files. (Bug#37069)
Cluster API: Important Change:
Because NDB_LE_MemoryUsage.page_size_kb shows memory page sizes in bytes
rather than kilobytes, it has been renamed to page_size_bytes. The name
page_size_kb is now deprecated and thus subject to removal in a future
release, although it currently remains supported for reasons of backward
compatibility. See The Ndb_logevent_type Type, for more information about
NDB_LE_MemoryUsage. (Bug#30271)
Important Change:
Some changes were made to CHECK TABLE ... FOR UPGRADE and REPAIR TABLE
with respect to detection and handling of tables with incompatible .frm
files (files created with a different version of the MySQL server). These
changes also affect mysqlcheck because that program uses CHECK TABLE and
REPAIR table, and thus also mysql_upgrade because that program invokes
mysqlcheck.
2008-09-18 13:50:44 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
2008-03-06 17:50:38 +01:00
|
|
|
# We always use our own readline. Note that these --without-* settings
|
|
|
|
# are confusing, but they just mean "don't use the included readline
|
|
|
|
# or libedit".
|
|
|
|
#
|
2005-10-31 10:21:40 +01:00
|
|
|
CONFIGURE_ARGS+= --without-readline
|
|
|
|
CONFIGURE_ARGS+= --without-libedit
|
|
|
|
|
|
|
|
# Speed up production one-time builds; see "./configure --help" for
|
|
|
|
# more information on using or disabling this option.
|
|
|
|
CONFIGURE_ARGS+= --disable-dependency-tracking
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --without-debug
|
|
|
|
CONFIGURE_ARGS+= --without-bench
|
|
|
|
CONFIGURE_ARGS+= --with-low-memory
|
2006-01-09 17:25:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-zlib-dir=${BUILDLINK_PREFIX.zlib:Q}
|
2005-10-31 10:21:40 +01:00
|
|
|
CONFIGURE_ARGS+= --with-vio
|
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-charset=${MYSQL_CHARSET:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-extra-charsets=${MYSQL_EXTRA_CHARSET:Q}
|
2005-10-31 10:21:40 +01:00
|
|
|
|
2006-03-03 05:00:09 +01:00
|
|
|
.if !empty(MACHINE_ARCH:Mi386) && ${OPSYS} != "Interix" && \
|
2006-06-06 23:18:55 +02:00
|
|
|
${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
|
2005-10-31 10:21:40 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-assembler
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Avoid an ICE in gcc2 on sparc64
|
2005-12-02 09:13:26 +01:00
|
|
|
CONFIGURE_ENV+= F77=${FALSE:Q}
|
2006-01-09 17:25:01 +01:00
|
|
|
CONFIGURE_ENV+= mysql_cv_compress="yes"
|
2005-10-31 10:21:40 +01:00
|
|
|
|
|
|
|
CPPFLAGS+= -Dunix
|
|
|
|
CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat
|
|
|
|
|
|
|
|
# force HAVE_CURSES_H on Solaris since the configure script is broken
|
|
|
|
# and does not properly detect this, breaking the build later on.
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
CFLAGS+= -DHAVE_CURSES_H
|
|
|
|
CXXFLAGS+= -DHAVE_CURSES_H
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
|
2007-05-21 06:39:59 +02:00
|
|
|
CFLAGS+= -DSIGNALS_DONT_BREAK_READ
|
|
|
|
CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ
|
|
|
|
CONFIGURE_ENV+= ac_cv_func_pthread_setschedparam=no
|
|
|
|
CONFIGURE_ENV+= ac_cv_func_pthread_attr_setschedparam=no
|
2005-10-31 10:21:40 +01:00
|
|
|
.endif
|
|
|
|
|
2007-02-22 20:30:02 +01:00
|
|
|
USE_LANGUAGES= c c++
|
2008-01-22 01:41:59 +01:00
|
|
|
USE_TOOLS+= autoconf autoheader gmake perl:run
|
2005-10-31 10:21:40 +01:00
|
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
|
|
|
|
|
2007-05-21 06:39:59 +02:00
|
|
|
SUBST_CLASSES= mk
|
2005-10-31 10:21:40 +01:00
|
|
|
SUBST_STAGE.mk= post-patch
|
2005-12-02 09:13:26 +01:00
|
|
|
SUBST_FILES.mk= dbug/Makefile.in heap/Makefile.in \
|
|
|
|
mysys/Makefile.in strings/Makefile.in
|
2005-10-31 10:21:40 +01:00
|
|
|
SUBST_SED.mk= -e "/^install-exec:/s/install-pkglibLIBRARIES//"
|
2006-04-12 13:00:24 +02:00
|
|
|
SUBST_MESSAGE.mk= Fixing Makefiles.
|
2007-05-21 06:39:59 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= scr
|
|
|
|
SUBST_STAGE.scr= post-patch
|
|
|
|
SUBST_FILES.scr= scripts/mysql_install_db.sh scripts/mysqld_safe.sh \
|
2005-10-31 10:21:40 +01:00
|
|
|
scripts/mysql_secure_installation.sh \
|
|
|
|
support-files/mysql.server.sh
|
2007-05-21 06:39:59 +02:00
|
|
|
SUBST_SED.scr= -e "s,chown,${CHOWN},g"
|
|
|
|
SUBST_SED.scr+= -e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g"
|
|
|
|
SUBST_MESSAGE.scr= Fixing scripts.
|
2005-10-31 10:21:40 +01:00
|
|
|
|
2006-05-20 01:01:02 +02:00
|
|
|
# Fix broken shared library detection under Mac OS X
|
2008-03-06 17:50:38 +01:00
|
|
|
.if ${OPSYS} == "Darwin"
|
2006-05-20 01:01:02 +02:00
|
|
|
SUBST_CLASSES+= dylib
|
|
|
|
SUBST_STAGE.dylib= post-patch
|
|
|
|
SUBST_FILES.dylib= configure
|
|
|
|
SUBST_SED.dylib= -e "s|\\\$$shrext_cmds|\\.dylib|g"
|
|
|
|
.endif
|
|
|
|
|
2006-10-14 20:41:34 +02:00
|
|
|
pre-configure:
|
2008-01-22 01:41:59 +01:00
|
|
|
cd ${WRKSRC} && autoconf && autoheader
|
2006-10-14 20:41:34 +02:00
|
|
|
|
2005-10-31 10:21:40 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|