aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2007-05-20 16:30:26 +0800
committerale <ale@FreeBSD.org>2007-05-20 16:30:26 +0800
commit44eba6c1bfb0c893d0ebfd0f319709b8428d9cab (patch)
treed7e6c74580a42463794424cb8b335cbe23a42f17 /databases
parent864d300b6fda6c2af2d72f5b6d7e65e30822f513 (diff)
downloadfreebsd-ports-gnome-44eba6c1bfb0c893d0ebfd0f319709b8428d9cab.tar.gz
freebsd-ports-gnome-44eba6c1bfb0c893d0ebfd0f319709b8428d9cab.tar.zst
freebsd-ports-gnome-44eba6c1bfb0c893d0ebfd0f319709b8428d9cab.zip
Update to 5.0.41 release and drop support for FreeBSD < 5.
Approved by: portmgr (linimon)
Diffstat (limited to 'databases')
-rw-r--r--databases/mysql50-server/Makefile32
-rw-r--r--databases/mysql50-server/distinfo6
-rw-r--r--databases/mysql50-server/files/patch-scripts::Makefile.in25
-rw-r--r--databases/mysql50-server/pkg-plist3
-rw-r--r--databases/mysql50-server/pkg-plist.client6
5 files changed, 25 insertions, 47 deletions
diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile
index 90152ca0429f..b94887871310 100644
--- a/databases/mysql50-server/Makefile
+++ b/databases/mysql50-server/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME?= mysql
-PORTVERSION= 5.0.37
+PORTVERSION= 5.0.41
PORTREVISION?= 0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL}
@@ -78,35 +78,19 @@ CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R
CONFIGURE_ARGS+=-D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE
CFLAGS+= -I${LOCALBASE}/include/pthread/linuxthreads
-.if ${OSVERSION} > 500000
LIB_DEPENDS+= lthread.[35]:${PORTSDIR}/devel/linuxthreads
CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++'
.else
-LIB_DEPENDS+= lthread.[24]:${PORTSDIR}/devel/linuxthreads
-CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r'
-.endif
-.else
CONFIGURE_ARGS+=--with-named-thread-libs=${PTHREAD_LIBS}
CFLAGS+= ${PTHREAD_CFLAGS}
.endif
-.if ${OSVERSION} < 500000
-LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CXX= ${CC}
-.endif
.if defined(BUILD_OPTIMIZED)
CFLAGS+= -O3 -fno-omit-frame-pointer
-.if ${OSVERSION} > 500000 || (defined(USE_GCC) && (${USE_GCC} == 3.0 || ${USE_GCC} == 3.1 || ${USE_GCC} == 3.2 || ${USE_GCC} == 3.3))
CFLAGS+= -fno-gcse
.endif
-.endif
CXXFLAGS+= ${CFLAGS} -felide-constructors -fno-rtti
-.if ${OSVERSION} >= 400002
CXXFLAGS+= -fno-exceptions
-.endif
# MySQL-Server part
.if !defined(CLIENT_ONLY) && !defined(SCRIPTS_ONLY)
@@ -154,10 +138,10 @@ pre-fetch:
@${ECHO} ""
post-patch:
- @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @docs_dirs@ @zlib_dir@ @sql_server_dirs@ scripts @man_dirs@ support-files|g" ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @docs_dirs@ @sql_server_dirs@ scripts @man_dirs@ support-files|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|all: config.h|all: config.h all-local|g" ${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} -e "s|bin_SCRIPTS =|bin_SCRIPTS = @server_scripts@ mysql_upgrade_shell mysql_create_system_tables|g" ${WRKSRC}/scripts/Makefile.in
- @${REINPLACE_CMD} -e "s|dist_pkgdata_DATA =|dist_pkgdata_DATA = fill_help_tables.sql|g" ${WRKSRC}/scripts/Makefile.in
+ @${REINPLACE_CMD} -e "s|bin_SCRIPTS =|bin_SCRIPTS = @server_scripts@ mysql_upgrade_shell|g" ${WRKSRC}/scripts/Makefile.in
+ @${REINPLACE_CMD} -e "s|dist_pkgdata_DATA =|dist_pkgdata_DATA = fill_help_tables.sql mysql_system_tables.sql mysql_system_tables_data.sql|g" ${WRKSRC}/scripts/Makefile.in
@${REINPLACE_CMD} -e "s|man1_MANS =|man1_MANS = ${MAN1}|g" ${WRKSRC}/man/Makefile.in
@${REINPLACE_CMD} -e "s|install-data-am: install-pkgincludeHEADERS|install-data-am:|g" ${WRKSRC}/extra/Makefile.in
@${REINPLACE_CMD} -e "s|install-data-am: install-pkgincludeHEADERS|install-data-am:|g" ${WRKSRC}/include/Makefile.in
@@ -188,14 +172,8 @@ USE_LDCONFIG= ${PREFIX}/lib/mysql
CONFIGURE_ARGS+=--without-server
-.if ${OSVERSION} < 500000
-PLIST_SUB+= ZLIB=""
-.else
-PLIST_SUB+= ZLIB="@comment "
-.endif
-
post-patch:
- @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @zlib_dir@ strings mysys dbug extra regex libmysql_r libmysql client scripts @man_dirs@|g" ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include strings mysys dbug extra regex libmysql_r libmysql client scripts @man_dirs@|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|install-exec-am: install-pkglibLIBRARIES|install-exec-am:|g" ${WRKSRC}/strings/Makefile.in ${WRKSRC}/mysys/Makefile.in ${WRKSRC}/dbug/Makefile.in
@${REINPLACE_CMD} -e "s|all: config.h|all: config.h all-local|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|bin_SCRIPTS =|bin_SCRIPTS = mysql_config mysql_fix_privilege_tables mysqlbug|g" ${WRKSRC}/scripts/Makefile.in
diff --git a/databases/mysql50-server/distinfo b/databases/mysql50-server/distinfo
index 176c28582b79..bfa515ec8469 100644
--- a/databases/mysql50-server/distinfo
+++ b/databases/mysql50-server/distinfo
@@ -1,3 +1,3 @@
-MD5 (mysql-5.0.37.tar.gz) = 26ed76facb58bdeae40c8310e337dde2
-SHA256 (mysql-5.0.37.tar.gz) = 99d405dd688f99b8379ec1373143ad259e77be14d22771f85b0058db503285c8
-SIZE (mysql-5.0.37.tar.gz) = 23239518
+MD5 (mysql-5.0.41.tar.gz) = b45cd6c89e35dfc1cdbe1a1f782aefbf
+SHA256 (mysql-5.0.41.tar.gz) = 08c27246ca9b9cf69567aea63b8fd7aef33769e369f9acf1636634097dc47775
+SIZE (mysql-5.0.41.tar.gz) = 24083795
diff --git a/databases/mysql50-server/files/patch-scripts::Makefile.in b/databases/mysql50-server/files/patch-scripts::Makefile.in
index 1a485aa32471..9b3e2df3d458 100644
--- a/databases/mysql50-server/files/patch-scripts::Makefile.in
+++ b/databases/mysql50-server/files/patch-scripts::Makefile.in
@@ -1,6 +1,6 @@
---- scripts/Makefile.in.orig Thu Jul 27 20:53:32 2006
-+++ scripts/Makefile.in Sun Aug 6 20:28:13 2006
-@@ -351,25 +351,7 @@
+--- scripts/Makefile.in.orig Wed May 2 16:43:17 2007
++++ scripts/Makefile.in Thu May 17 11:11:40 2007
+@@ -355,24 +355,7 @@
yassl_libs = @yassl_libs@
yassl_taocrypt_extra_cxxflags = @yassl_taocrypt_extra_cxxflags@
zlib_dir = @zlib_dir@
@@ -21,18 +21,21 @@
- mysql_explain_log \
- mysql_tableinfo \
- mysql_upgrade_shell \
-- mysqld_multi \
-- mysql_create_system_tables
+- mysqld_multi
+bin_SCRIPTS =
noinst_SCRIPTS = make_binary_distribution \
make_sharedlib_distribution \
-@@ -403,7 +385,7 @@
- mysqlaccess.conf \
- mysqlbug
+@@ -407,11 +390,7 @@
+ make_win_bin_dist \
+ mysql_system_tables_fix.sql
--dist_pkgdata_DATA = fill_help_tables.sql mysql_fix_privilege_tables.sql
+-dist_pkgdata_DATA = fill_help_tables.sql \
+- mysql_fix_privilege_tables.sql \
+- mysql_system_tables.sql \
+- mysql_system_tables_data.sql \
+- mysql_test_data_timezone.sql
+dist_pkgdata_DATA =
- # mysqlbug should be distributed built so that people can report build
- # failures with it.
+ CLEANFILES = @server_scripts@ \
+ make_binary_distribution \
diff --git a/databases/mysql50-server/pkg-plist b/databases/mysql50-server/pkg-plist
index ef289f399493..8a004b991a9b 100644
--- a/databases/mysql50-server/pkg-plist
+++ b/databases/mysql50-server/pkg-plist
@@ -6,7 +6,6 @@ bin/myisam_ftdump
bin/myisamchk
bin/myisamlog
bin/myisampack
-bin/mysql_create_system_tables
bin/mysql_install_db
bin/mysql_tzinfo_to_sql
bin/mysql_upgrade_shell
@@ -121,6 +120,8 @@ libexec/mysqld
%%DATADIR%%/my-large.cnf
%%DATADIR%%/my-medium.cnf
%%DATADIR%%/my-small.cnf
+%%DATADIR%%/mysql_system_tables.sql
+%%DATADIR%%/mysql_system_tables_data.sql
%%DATADIR%%/mysql-log-rotate
%%DATADIR%%/mysql.server
%%DATADIR%%/ndb-config-2-node.ini
diff --git a/databases/mysql50-server/pkg-plist.client b/databases/mysql50-server/pkg-plist.client
index 006ef6a35bd3..d884a19c94ab 100644
--- a/databases/mysql50-server/pkg-plist.client
+++ b/databases/mysql50-server/pkg-plist.client
@@ -12,6 +12,7 @@ bin/mysqlshow
bin/mysqltest
bin/mysqltestmanager-pwgen
bin/mysqltestmanagerc
+include/mysql/decimal.h
include/mysql/errmsg.h
include/mysql/keycache.h
include/mysql/m_ctype.h
@@ -26,7 +27,6 @@ include/mysql/my_list.h
include/mysql/my_net.h
include/mysql/my_no_pthread.h
include/mysql/my_pthread.h
-include/mysql/my_semaphore.h
include/mysql/my_sys.h
include/mysql/my_xml.h
include/mysql/mysql.h
@@ -51,10 +51,6 @@ lib/mysql/libmysqlclient_r.a
lib/mysql/libmysqlclient_r.la
lib/mysql/libmysqlclient_r.so
lib/mysql/libmysqlclient_r.so.15
-%%ZLIB%%lib/mysql/libz.a
-%%ZLIB%%lib/mysql/libz.la
-%%ZLIB%%lib/mysql/libz.so
-%%ZLIB%%lib/mysql/libz.so.3
%%DATADIR%%/mysql_fix_privilege_tables.sql
@dirrm include/mysql
@dirrm lib/mysql