summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-02-04 15:56:17 +0000
committerale <ale@FreeBSD.org>2004-02-04 15:56:17 +0000
commit57d924e3527c6248b4f134bd31715ada0f94b9e7 (patch)
tree15c98f949fe5e06803bd0c2f260643207d2bc5bd
parent81cc08ef45a6c20bdf55a09779b72a59c3ffb71a (diff)
downloadFreeBSD-ports-57d924e3527c6248b4f134bd31715ada0f94b9e7.zip
FreeBSD-ports-57d924e3527c6248b4f134bd31715ada0f94b9e7.tar.gz
Finally MySQL 5.0 appears in the ports tree!
PR: ports/60559 Submitted by: me Approved by: nork (mentor/implicitly)
-rw-r--r--databases/mysql50-client/Makefile2
-rw-r--r--databases/mysql50-server/Makefile51
-rw-r--r--databases/mysql50-server/distinfo3
-rw-r--r--databases/mysql50-server/files/patch-configure14
-rw-r--r--databases/mysql50-server/pkg-descr2
-rw-r--r--databases/mysql50-server/pkg-install4
-rw-r--r--databases/mysql50-server/pkg-plist2
-rw-r--r--databases/mysql51-client/Makefile2
-rw-r--r--databases/mysql51-server/Makefile51
-rw-r--r--databases/mysql51-server/distinfo3
-rw-r--r--databases/mysql51-server/files/patch-configure14
-rw-r--r--databases/mysql51-server/pkg-descr2
-rw-r--r--databases/mysql51-server/pkg-install4
-rw-r--r--databases/mysql51-server/pkg-plist2
-rw-r--r--databases/mysql54-client/Makefile2
-rw-r--r--databases/mysql54-server/Makefile51
-rw-r--r--databases/mysql54-server/distinfo3
-rw-r--r--databases/mysql54-server/files/patch-configure14
-rw-r--r--databases/mysql54-server/pkg-descr2
-rw-r--r--databases/mysql54-server/pkg-install4
-rw-r--r--databases/mysql54-server/pkg-plist2
-rw-r--r--databases/mysql55-client/Makefile2
-rw-r--r--databases/mysql55-server/Makefile51
-rw-r--r--databases/mysql55-server/distinfo3
-rw-r--r--databases/mysql55-server/files/patch-configure14
-rw-r--r--databases/mysql55-server/pkg-descr2
-rw-r--r--databases/mysql55-server/pkg-install4
-rw-r--r--databases/mysql55-server/pkg-plist2
-rw-r--r--databases/mysql60-client/Makefile2
-rw-r--r--databases/mysql60-server/Makefile51
-rw-r--r--databases/mysql60-server/distinfo3
-rw-r--r--databases/mysql60-server/files/patch-configure14
-rw-r--r--databases/mysql60-server/pkg-descr2
-rw-r--r--databases/mysql60-server/pkg-install4
-rw-r--r--databases/mysql60-server/pkg-plist2
-rw-r--r--databases/percona55-client/Makefile2
-rw-r--r--databases/percona55-server/Makefile51
-rw-r--r--databases/percona55-server/distinfo3
-rw-r--r--databases/percona55-server/files/patch-configure14
-rw-r--r--databases/percona55-server/pkg-descr2
-rw-r--r--databases/percona55-server/pkg-install4
-rw-r--r--databases/percona55-server/pkg-plist2
42 files changed, 234 insertions, 234 deletions
diff --git a/databases/mysql50-client/Makefile b/databases/mysql50-client/Makefile
index c7f06b1..7fc18c8 100644
--- a/databases/mysql50-client/Makefile
+++ b/databases/mysql50-client/Makefile
@@ -11,7 +11,7 @@ PKGNAMESUFFIX= -client
COMMENT= Multithreaded SQL database (client)
-MASTERDIR= ${.CURDIR}/../mysql41-server
+MASTERDIR= ${.CURDIR}/../mysql50-server
PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/pkg-plist.client
diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile
index e3d84c8..d53652c 100644
--- a/databases/mysql50-server/Makefile
+++ b/databases/mysql50-server/Makefile
@@ -6,32 +6,33 @@
#
PORTNAME?= mysql
-PORTVERSION= 4.1.1
+PORTVERSION= 5.0.0
PORTREVISION?= 0
CATEGORIES= databases
-MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.softagency.co.jp/MySQL/Downloads/MySQL-4.1/ \
- ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-4.1/ \
- http://mysql.mediatraffic.fi/Downloads/MySQL-4.1/ \
- ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-4.1/ \
- http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-4.1/ \
- ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.mysql.cz/Downloads/MySQL-4.1/ \
- ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-4.1/ \
- http://mysql.oms-net.nl/Downloads/MySQL-4.1/ \
- ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-4.1/
+MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.softagency.co.jp/MySQL/Downloads/MySQL-5.0/ \
+ ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-5.0/ \
+ http://mysql.mediatraffic.fi/Downloads/MySQL-5.0/ \
+ ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-5.0/ \
+ http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-5.0/ \
+ ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.mysql.cz/Downloads/MySQL-5.0/ \
+ ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-5.0/ \
+ http://mysql.oms-net.nl/Downloads/MySQL-5.0/ \
+ ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-5.0/
PKGNAMESUFFIX?= -server
DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha
-MAINTAINER= sysadmin@alexdupre.com
+MAINTAINER= ale@FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
-SLAVEDIRS= databases/mysql41-client
+SLAVEDIRS= databases/mysql50-client
+PKGINSTALL?= ${WRKDIR}/pkg-install
DB_DIR?= /var/db/mysql
+USE_GNOME= lthack
USE_LIBTOOL= yes
USE_REINPLACE= yes
-GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=${DB_DIR} \
--without-debug \
@@ -81,6 +82,9 @@ CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++'
LIB_DEPENDS+= lthread.2:${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
@@ -101,11 +105,13 @@ CXXFLAGS+= -fno-exceptions
.if !defined(CLIENT_ONLY)
USE_PERL5_RUN= yes
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql41
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
+
+LATEST_LINK= mysql50-server
-CONFLICTS= mysql-server-3.* mysql-server-4.[02-9].* mysql-server-5.*
+CONFLICTS= mysql-server-3.* mysql-server-4.*
-ONLY_FOR_ARCHS= i386 alpha sparc64
+PLIST_SUB= DB_DIR=${DB_DIR}
DOCS= manual.html manual.txt manual_toc.html
@@ -135,7 +141,9 @@ pre-fetch:
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_server_dirs@ scripts support-files|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|install: install-am|install:|g" ${WRKSRC}/include/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
+
+post-build:
+ @${SED} "s|%%DB_DIR%%|${DB_DIR}|g" ${PKGDIR}/pkg-install > ${WRKDIR}/pkg-install
.if defined(WITH_OPENSSL) && defined(BUILD_STATIC)
pre-configure:
@@ -171,7 +179,9 @@ post-install:
# MySQL-Client part
.else
-CONFLICTS= mysql-client-3.* mysql-client-4.[02-9].* mysql-client-5.*
+LATEST_LINK= mysql50-client
+
+CONFLICTS= mysql-client-3.* mysql-client-4.*
MAN1= isamchk.1 isamlog.1 mysql.1 mysql_zap.1 mysqlaccess.1 \
mysqladmin.1 mysqld.1 mysqld_multi.1 mysqld_safe.1 mysqldump.1 \
@@ -184,7 +194,6 @@ CONFIGURE_ARGS+=--without-server
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests man|g" ${WRKSRC}/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
post-install:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
diff --git a/databases/mysql50-server/distinfo b/databases/mysql50-server/distinfo
index 4486f14..43b1f7d 100644
--- a/databases/mysql50-server/distinfo
+++ b/databases/mysql50-server/distinfo
@@ -1 +1,2 @@
-MD5 (mysql-4.1.1-alpha.tar.gz) = dc337413c0a9ce4d5dcb91b02383371b
+MD5 (mysql-5.0.0-alpha.tar.gz) = e31664d1172b5823fb8be83051910ee2
+SIZE (mysql-5.0.0-alpha.tar.gz) = 16311204
diff --git a/databases/mysql50-server/files/patch-configure b/databases/mysql50-server/files/patch-configure
index 6c102a1..ec52ce4 100644
--- a/databases/mysql50-server/files/patch-configure
+++ b/databases/mysql50-server/files/patch-configure
@@ -1,13 +1,5 @@
---- configure.orig Mon Dec 1 13:55:34 2003
-+++ configure Wed Dec 10 00:22:08 2003
-@@ -8127,6 +8127,7 @@
-
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+--- configure.orig Sun Dec 21 19:03:09 2003
++++ configure Wed Dec 24 10:40:53 2003
@@ -9069,7 +9070,7 @@
;;
esac
@@ -49,7 +41,7 @@
- *cygwin*)
- FIND_PROC="$PS -e | grep mysqld | grep \" \$\$PID \" > /dev/null"
- ;;
-- *netware* | *modesto*)
+- *netware*)
- FIND_PROC=
- ;;
- *)
diff --git a/databases/mysql50-server/pkg-descr b/databases/mysql50-server/pkg-descr
index cd19c13..4ddefbb 100644
--- a/databases/mysql50-server/pkg-descr
+++ b/databases/mysql50-server/pkg-descr
@@ -4,4 +4,4 @@ MySQL is a very fast, multi-threaded, multi-user and robust SQL
WWW: http://www.mysql.com/
- Alex Dupre
-sysadmin@alexdupre.com
+ale@FreeBSD.org
diff --git a/databases/mysql50-server/pkg-install b/databases/mysql50-server/pkg-install
index 27732bf..88a0b1c 100644
--- a/databases/mysql50-server/pkg-install
+++ b/databases/mysql50-server/pkg-install
@@ -1,9 +1,6 @@
#!/bin/sh
PATH=/bin:/usr/sbin
-if [ -z "${DB_DIR}" ]; then
- DB_DIR=/var/db/mysql
-fi
case $2 in
POST-INSTALL)
@@ -11,6 +8,7 @@ POST-INSTALL)
GROUP=${USER}
UID=88
GID=${UID}
+ DB_DIR=%%DB_DIR%%
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
diff --git a/databases/mysql50-server/pkg-plist b/databases/mysql50-server/pkg-plist
index c3761b7..aa0a0f8 100644
--- a/databases/mysql50-server/pkg-plist
+++ b/databases/mysql50-server/pkg-plist
@@ -206,5 +206,5 @@ share/mysql/ukrainian/errmsg.txt
@dirrm share/mysql/swedish
@dirrm share/mysql/ukrainian
@dirrm share/mysql
-@exec %D/bin/mysql_install_db
+@exec [ -d %%DB_DIR%% ] || %D/bin/mysql_install_db --ldata=%%DB_DIR%%
@unexec /usr/bin/killall mysqld > /dev/null 2>&1 || true
diff --git a/databases/mysql51-client/Makefile b/databases/mysql51-client/Makefile
index c7f06b1..7fc18c8 100644
--- a/databases/mysql51-client/Makefile
+++ b/databases/mysql51-client/Makefile
@@ -11,7 +11,7 @@ PKGNAMESUFFIX= -client
COMMENT= Multithreaded SQL database (client)
-MASTERDIR= ${.CURDIR}/../mysql41-server
+MASTERDIR= ${.CURDIR}/../mysql50-server
PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/pkg-plist.client
diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile
index e3d84c8..d53652c 100644
--- a/databases/mysql51-server/Makefile
+++ b/databases/mysql51-server/Makefile
@@ -6,32 +6,33 @@
#
PORTNAME?= mysql
-PORTVERSION= 4.1.1
+PORTVERSION= 5.0.0
PORTREVISION?= 0
CATEGORIES= databases
-MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.softagency.co.jp/MySQL/Downloads/MySQL-4.1/ \
- ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-4.1/ \
- http://mysql.mediatraffic.fi/Downloads/MySQL-4.1/ \
- ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-4.1/ \
- http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-4.1/ \
- ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.mysql.cz/Downloads/MySQL-4.1/ \
- ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-4.1/ \
- http://mysql.oms-net.nl/Downloads/MySQL-4.1/ \
- ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-4.1/
+MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.softagency.co.jp/MySQL/Downloads/MySQL-5.0/ \
+ ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-5.0/ \
+ http://mysql.mediatraffic.fi/Downloads/MySQL-5.0/ \
+ ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-5.0/ \
+ http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-5.0/ \
+ ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.mysql.cz/Downloads/MySQL-5.0/ \
+ ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-5.0/ \
+ http://mysql.oms-net.nl/Downloads/MySQL-5.0/ \
+ ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-5.0/
PKGNAMESUFFIX?= -server
DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha
-MAINTAINER= sysadmin@alexdupre.com
+MAINTAINER= ale@FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
-SLAVEDIRS= databases/mysql41-client
+SLAVEDIRS= databases/mysql50-client
+PKGINSTALL?= ${WRKDIR}/pkg-install
DB_DIR?= /var/db/mysql
+USE_GNOME= lthack
USE_LIBTOOL= yes
USE_REINPLACE= yes
-GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=${DB_DIR} \
--without-debug \
@@ -81,6 +82,9 @@ CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++'
LIB_DEPENDS+= lthread.2:${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
@@ -101,11 +105,13 @@ CXXFLAGS+= -fno-exceptions
.if !defined(CLIENT_ONLY)
USE_PERL5_RUN= yes
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql41
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
+
+LATEST_LINK= mysql50-server
-CONFLICTS= mysql-server-3.* mysql-server-4.[02-9].* mysql-server-5.*
+CONFLICTS= mysql-server-3.* mysql-server-4.*
-ONLY_FOR_ARCHS= i386 alpha sparc64
+PLIST_SUB= DB_DIR=${DB_DIR}
DOCS= manual.html manual.txt manual_toc.html
@@ -135,7 +141,9 @@ pre-fetch:
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_server_dirs@ scripts support-files|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|install: install-am|install:|g" ${WRKSRC}/include/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
+
+post-build:
+ @${SED} "s|%%DB_DIR%%|${DB_DIR}|g" ${PKGDIR}/pkg-install > ${WRKDIR}/pkg-install
.if defined(WITH_OPENSSL) && defined(BUILD_STATIC)
pre-configure:
@@ -171,7 +179,9 @@ post-install:
# MySQL-Client part
.else
-CONFLICTS= mysql-client-3.* mysql-client-4.[02-9].* mysql-client-5.*
+LATEST_LINK= mysql50-client
+
+CONFLICTS= mysql-client-3.* mysql-client-4.*
MAN1= isamchk.1 isamlog.1 mysql.1 mysql_zap.1 mysqlaccess.1 \
mysqladmin.1 mysqld.1 mysqld_multi.1 mysqld_safe.1 mysqldump.1 \
@@ -184,7 +194,6 @@ CONFIGURE_ARGS+=--without-server
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests man|g" ${WRKSRC}/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
post-install:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
diff --git a/databases/mysql51-server/distinfo b/databases/mysql51-server/distinfo
index 4486f14..43b1f7d 100644
--- a/databases/mysql51-server/distinfo
+++ b/databases/mysql51-server/distinfo
@@ -1 +1,2 @@
-MD5 (mysql-4.1.1-alpha.tar.gz) = dc337413c0a9ce4d5dcb91b02383371b
+MD5 (mysql-5.0.0-alpha.tar.gz) = e31664d1172b5823fb8be83051910ee2
+SIZE (mysql-5.0.0-alpha.tar.gz) = 16311204
diff --git a/databases/mysql51-server/files/patch-configure b/databases/mysql51-server/files/patch-configure
index 6c102a1..ec52ce4 100644
--- a/databases/mysql51-server/files/patch-configure
+++ b/databases/mysql51-server/files/patch-configure
@@ -1,13 +1,5 @@
---- configure.orig Mon Dec 1 13:55:34 2003
-+++ configure Wed Dec 10 00:22:08 2003
-@@ -8127,6 +8127,7 @@
-
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+--- configure.orig Sun Dec 21 19:03:09 2003
++++ configure Wed Dec 24 10:40:53 2003
@@ -9069,7 +9070,7 @@
;;
esac
@@ -49,7 +41,7 @@
- *cygwin*)
- FIND_PROC="$PS -e | grep mysqld | grep \" \$\$PID \" > /dev/null"
- ;;
-- *netware* | *modesto*)
+- *netware*)
- FIND_PROC=
- ;;
- *)
diff --git a/databases/mysql51-server/pkg-descr b/databases/mysql51-server/pkg-descr
index cd19c13..4ddefbb 100644
--- a/databases/mysql51-server/pkg-descr
+++ b/databases/mysql51-server/pkg-descr
@@ -4,4 +4,4 @@ MySQL is a very fast, multi-threaded, multi-user and robust SQL
WWW: http://www.mysql.com/
- Alex Dupre
-sysadmin@alexdupre.com
+ale@FreeBSD.org
diff --git a/databases/mysql51-server/pkg-install b/databases/mysql51-server/pkg-install
index 27732bf..88a0b1c 100644
--- a/databases/mysql51-server/pkg-install
+++ b/databases/mysql51-server/pkg-install
@@ -1,9 +1,6 @@
#!/bin/sh
PATH=/bin:/usr/sbin
-if [ -z "${DB_DIR}" ]; then
- DB_DIR=/var/db/mysql
-fi
case $2 in
POST-INSTALL)
@@ -11,6 +8,7 @@ POST-INSTALL)
GROUP=${USER}
UID=88
GID=${UID}
+ DB_DIR=%%DB_DIR%%
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
diff --git a/databases/mysql51-server/pkg-plist b/databases/mysql51-server/pkg-plist
index c3761b7..aa0a0f8 100644
--- a/databases/mysql51-server/pkg-plist
+++ b/databases/mysql51-server/pkg-plist
@@ -206,5 +206,5 @@ share/mysql/ukrainian/errmsg.txt
@dirrm share/mysql/swedish
@dirrm share/mysql/ukrainian
@dirrm share/mysql
-@exec %D/bin/mysql_install_db
+@exec [ -d %%DB_DIR%% ] || %D/bin/mysql_install_db --ldata=%%DB_DIR%%
@unexec /usr/bin/killall mysqld > /dev/null 2>&1 || true
diff --git a/databases/mysql54-client/Makefile b/databases/mysql54-client/Makefile
index c7f06b1..7fc18c8 100644
--- a/databases/mysql54-client/Makefile
+++ b/databases/mysql54-client/Makefile
@@ -11,7 +11,7 @@ PKGNAMESUFFIX= -client
COMMENT= Multithreaded SQL database (client)
-MASTERDIR= ${.CURDIR}/../mysql41-server
+MASTERDIR= ${.CURDIR}/../mysql50-server
PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/pkg-plist.client
diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile
index e3d84c8..d53652c 100644
--- a/databases/mysql54-server/Makefile
+++ b/databases/mysql54-server/Makefile
@@ -6,32 +6,33 @@
#
PORTNAME?= mysql
-PORTVERSION= 4.1.1
+PORTVERSION= 5.0.0
PORTREVISION?= 0
CATEGORIES= databases
-MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.softagency.co.jp/MySQL/Downloads/MySQL-4.1/ \
- ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-4.1/ \
- http://mysql.mediatraffic.fi/Downloads/MySQL-4.1/ \
- ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-4.1/ \
- http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-4.1/ \
- ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.mysql.cz/Downloads/MySQL-4.1/ \
- ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-4.1/ \
- http://mysql.oms-net.nl/Downloads/MySQL-4.1/ \
- ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-4.1/
+MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.softagency.co.jp/MySQL/Downloads/MySQL-5.0/ \
+ ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-5.0/ \
+ http://mysql.mediatraffic.fi/Downloads/MySQL-5.0/ \
+ ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-5.0/ \
+ http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-5.0/ \
+ ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.mysql.cz/Downloads/MySQL-5.0/ \
+ ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-5.0/ \
+ http://mysql.oms-net.nl/Downloads/MySQL-5.0/ \
+ ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-5.0/
PKGNAMESUFFIX?= -server
DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha
-MAINTAINER= sysadmin@alexdupre.com
+MAINTAINER= ale@FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
-SLAVEDIRS= databases/mysql41-client
+SLAVEDIRS= databases/mysql50-client
+PKGINSTALL?= ${WRKDIR}/pkg-install
DB_DIR?= /var/db/mysql
+USE_GNOME= lthack
USE_LIBTOOL= yes
USE_REINPLACE= yes
-GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=${DB_DIR} \
--without-debug \
@@ -81,6 +82,9 @@ CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++'
LIB_DEPENDS+= lthread.2:${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
@@ -101,11 +105,13 @@ CXXFLAGS+= -fno-exceptions
.if !defined(CLIENT_ONLY)
USE_PERL5_RUN= yes
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql41
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
+
+LATEST_LINK= mysql50-server
-CONFLICTS= mysql-server-3.* mysql-server-4.[02-9].* mysql-server-5.*
+CONFLICTS= mysql-server-3.* mysql-server-4.*
-ONLY_FOR_ARCHS= i386 alpha sparc64
+PLIST_SUB= DB_DIR=${DB_DIR}
DOCS= manual.html manual.txt manual_toc.html
@@ -135,7 +141,9 @@ pre-fetch:
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_server_dirs@ scripts support-files|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|install: install-am|install:|g" ${WRKSRC}/include/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
+
+post-build:
+ @${SED} "s|%%DB_DIR%%|${DB_DIR}|g" ${PKGDIR}/pkg-install > ${WRKDIR}/pkg-install
.if defined(WITH_OPENSSL) && defined(BUILD_STATIC)
pre-configure:
@@ -171,7 +179,9 @@ post-install:
# MySQL-Client part
.else
-CONFLICTS= mysql-client-3.* mysql-client-4.[02-9].* mysql-client-5.*
+LATEST_LINK= mysql50-client
+
+CONFLICTS= mysql-client-3.* mysql-client-4.*
MAN1= isamchk.1 isamlog.1 mysql.1 mysql_zap.1 mysqlaccess.1 \
mysqladmin.1 mysqld.1 mysqld_multi.1 mysqld_safe.1 mysqldump.1 \
@@ -184,7 +194,6 @@ CONFIGURE_ARGS+=--without-server
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests man|g" ${WRKSRC}/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
post-install:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
diff --git a/databases/mysql54-server/distinfo b/databases/mysql54-server/distinfo
index 4486f14..43b1f7d 100644
--- a/databases/mysql54-server/distinfo
+++ b/databases/mysql54-server/distinfo
@@ -1 +1,2 @@
-MD5 (mysql-4.1.1-alpha.tar.gz) = dc337413c0a9ce4d5dcb91b02383371b
+MD5 (mysql-5.0.0-alpha.tar.gz) = e31664d1172b5823fb8be83051910ee2
+SIZE (mysql-5.0.0-alpha.tar.gz) = 16311204
diff --git a/databases/mysql54-server/files/patch-configure b/databases/mysql54-server/files/patch-configure
index 6c102a1..ec52ce4 100644
--- a/databases/mysql54-server/files/patch-configure
+++ b/databases/mysql54-server/files/patch-configure
@@ -1,13 +1,5 @@
---- configure.orig Mon Dec 1 13:55:34 2003
-+++ configure Wed Dec 10 00:22:08 2003
-@@ -8127,6 +8127,7 @@
-
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+--- configure.orig Sun Dec 21 19:03:09 2003
++++ configure Wed Dec 24 10:40:53 2003
@@ -9069,7 +9070,7 @@
;;
esac
@@ -49,7 +41,7 @@
- *cygwin*)
- FIND_PROC="$PS -e | grep mysqld | grep \" \$\$PID \" > /dev/null"
- ;;
-- *netware* | *modesto*)
+- *netware*)
- FIND_PROC=
- ;;
- *)
diff --git a/databases/mysql54-server/pkg-descr b/databases/mysql54-server/pkg-descr
index cd19c13..4ddefbb 100644
--- a/databases/mysql54-server/pkg-descr
+++ b/databases/mysql54-server/pkg-descr
@@ -4,4 +4,4 @@ MySQL is a very fast, multi-threaded, multi-user and robust SQL
WWW: http://www.mysql.com/
- Alex Dupre
-sysadmin@alexdupre.com
+ale@FreeBSD.org
diff --git a/databases/mysql54-server/pkg-install b/databases/mysql54-server/pkg-install
index 27732bf..88a0b1c 100644
--- a/databases/mysql54-server/pkg-install
+++ b/databases/mysql54-server/pkg-install
@@ -1,9 +1,6 @@
#!/bin/sh
PATH=/bin:/usr/sbin
-if [ -z "${DB_DIR}" ]; then
- DB_DIR=/var/db/mysql
-fi
case $2 in
POST-INSTALL)
@@ -11,6 +8,7 @@ POST-INSTALL)
GROUP=${USER}
UID=88
GID=${UID}
+ DB_DIR=%%DB_DIR%%
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
diff --git a/databases/mysql54-server/pkg-plist b/databases/mysql54-server/pkg-plist
index c3761b7..aa0a0f8 100644
--- a/databases/mysql54-server/pkg-plist
+++ b/databases/mysql54-server/pkg-plist
@@ -206,5 +206,5 @@ share/mysql/ukrainian/errmsg.txt
@dirrm share/mysql/swedish
@dirrm share/mysql/ukrainian
@dirrm share/mysql
-@exec %D/bin/mysql_install_db
+@exec [ -d %%DB_DIR%% ] || %D/bin/mysql_install_db --ldata=%%DB_DIR%%
@unexec /usr/bin/killall mysqld > /dev/null 2>&1 || true
diff --git a/databases/mysql55-client/Makefile b/databases/mysql55-client/Makefile
index c7f06b1..7fc18c8 100644
--- a/databases/mysql55-client/Makefile
+++ b/databases/mysql55-client/Makefile
@@ -11,7 +11,7 @@ PKGNAMESUFFIX= -client
COMMENT= Multithreaded SQL database (client)
-MASTERDIR= ${.CURDIR}/../mysql41-server
+MASTERDIR= ${.CURDIR}/../mysql50-server
PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/pkg-plist.client
diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile
index e3d84c8..d53652c 100644
--- a/databases/mysql55-server/Makefile
+++ b/databases/mysql55-server/Makefile
@@ -6,32 +6,33 @@
#
PORTNAME?= mysql
-PORTVERSION= 4.1.1
+PORTVERSION= 5.0.0
PORTREVISION?= 0
CATEGORIES= databases
-MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.softagency.co.jp/MySQL/Downloads/MySQL-4.1/ \
- ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-4.1/ \
- http://mysql.mediatraffic.fi/Downloads/MySQL-4.1/ \
- ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-4.1/ \
- http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-4.1/ \
- ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.mysql.cz/Downloads/MySQL-4.1/ \
- ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-4.1/ \
- http://mysql.oms-net.nl/Downloads/MySQL-4.1/ \
- ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-4.1/
+MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.softagency.co.jp/MySQL/Downloads/MySQL-5.0/ \
+ ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-5.0/ \
+ http://mysql.mediatraffic.fi/Downloads/MySQL-5.0/ \
+ ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-5.0/ \
+ http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-5.0/ \
+ ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.mysql.cz/Downloads/MySQL-5.0/ \
+ ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-5.0/ \
+ http://mysql.oms-net.nl/Downloads/MySQL-5.0/ \
+ ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-5.0/
PKGNAMESUFFIX?= -server
DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha
-MAINTAINER= sysadmin@alexdupre.com
+MAINTAINER= ale@FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
-SLAVEDIRS= databases/mysql41-client
+SLAVEDIRS= databases/mysql50-client
+PKGINSTALL?= ${WRKDIR}/pkg-install
DB_DIR?= /var/db/mysql
+USE_GNOME= lthack
USE_LIBTOOL= yes
USE_REINPLACE= yes
-GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=${DB_DIR} \
--without-debug \
@@ -81,6 +82,9 @@ CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++'
LIB_DEPENDS+= lthread.2:${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
@@ -101,11 +105,13 @@ CXXFLAGS+= -fno-exceptions
.if !defined(CLIENT_ONLY)
USE_PERL5_RUN= yes
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql41
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
+
+LATEST_LINK= mysql50-server
-CONFLICTS= mysql-server-3.* mysql-server-4.[02-9].* mysql-server-5.*
+CONFLICTS= mysql-server-3.* mysql-server-4.*
-ONLY_FOR_ARCHS= i386 alpha sparc64
+PLIST_SUB= DB_DIR=${DB_DIR}
DOCS= manual.html manual.txt manual_toc.html
@@ -135,7 +141,9 @@ pre-fetch:
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_server_dirs@ scripts support-files|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|install: install-am|install:|g" ${WRKSRC}/include/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
+
+post-build:
+ @${SED} "s|%%DB_DIR%%|${DB_DIR}|g" ${PKGDIR}/pkg-install > ${WRKDIR}/pkg-install
.if defined(WITH_OPENSSL) && defined(BUILD_STATIC)
pre-configure:
@@ -171,7 +179,9 @@ post-install:
# MySQL-Client part
.else
-CONFLICTS= mysql-client-3.* mysql-client-4.[02-9].* mysql-client-5.*
+LATEST_LINK= mysql50-client
+
+CONFLICTS= mysql-client-3.* mysql-client-4.*
MAN1= isamchk.1 isamlog.1 mysql.1 mysql_zap.1 mysqlaccess.1 \
mysqladmin.1 mysqld.1 mysqld_multi.1 mysqld_safe.1 mysqldump.1 \
@@ -184,7 +194,6 @@ CONFIGURE_ARGS+=--without-server
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests man|g" ${WRKSRC}/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
post-install:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
diff --git a/databases/mysql55-server/distinfo b/databases/mysql55-server/distinfo
index 4486f14..43b1f7d 100644
--- a/databases/mysql55-server/distinfo
+++ b/databases/mysql55-server/distinfo
@@ -1 +1,2 @@
-MD5 (mysql-4.1.1-alpha.tar.gz) = dc337413c0a9ce4d5dcb91b02383371b
+MD5 (mysql-5.0.0-alpha.tar.gz) = e31664d1172b5823fb8be83051910ee2
+SIZE (mysql-5.0.0-alpha.tar.gz) = 16311204
diff --git a/databases/mysql55-server/files/patch-configure b/databases/mysql55-server/files/patch-configure
index 6c102a1..ec52ce4 100644
--- a/databases/mysql55-server/files/patch-configure
+++ b/databases/mysql55-server/files/patch-configure
@@ -1,13 +1,5 @@
---- configure.orig Mon Dec 1 13:55:34 2003
-+++ configure Wed Dec 10 00:22:08 2003
-@@ -8127,6 +8127,7 @@
-
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+--- configure.orig Sun Dec 21 19:03:09 2003
++++ configure Wed Dec 24 10:40:53 2003
@@ -9069,7 +9070,7 @@
;;
esac
@@ -49,7 +41,7 @@
- *cygwin*)
- FIND_PROC="$PS -e | grep mysqld | grep \" \$\$PID \" > /dev/null"
- ;;
-- *netware* | *modesto*)
+- *netware*)
- FIND_PROC=
- ;;
- *)
diff --git a/databases/mysql55-server/pkg-descr b/databases/mysql55-server/pkg-descr
index cd19c13..4ddefbb 100644
--- a/databases/mysql55-server/pkg-descr
+++ b/databases/mysql55-server/pkg-descr
@@ -4,4 +4,4 @@ MySQL is a very fast, multi-threaded, multi-user and robust SQL
WWW: http://www.mysql.com/
- Alex Dupre
-sysadmin@alexdupre.com
+ale@FreeBSD.org
diff --git a/databases/mysql55-server/pkg-install b/databases/mysql55-server/pkg-install
index 27732bf..88a0b1c 100644
--- a/databases/mysql55-server/pkg-install
+++ b/databases/mysql55-server/pkg-install
@@ -1,9 +1,6 @@
#!/bin/sh
PATH=/bin:/usr/sbin
-if [ -z "${DB_DIR}" ]; then
- DB_DIR=/var/db/mysql
-fi
case $2 in
POST-INSTALL)
@@ -11,6 +8,7 @@ POST-INSTALL)
GROUP=${USER}
UID=88
GID=${UID}
+ DB_DIR=%%DB_DIR%%
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
diff --git a/databases/mysql55-server/pkg-plist b/databases/mysql55-server/pkg-plist
index c3761b7..aa0a0f8 100644
--- a/databases/mysql55-server/pkg-plist
+++ b/databases/mysql55-server/pkg-plist
@@ -206,5 +206,5 @@ share/mysql/ukrainian/errmsg.txt
@dirrm share/mysql/swedish
@dirrm share/mysql/ukrainian
@dirrm share/mysql
-@exec %D/bin/mysql_install_db
+@exec [ -d %%DB_DIR%% ] || %D/bin/mysql_install_db --ldata=%%DB_DIR%%
@unexec /usr/bin/killall mysqld > /dev/null 2>&1 || true
diff --git a/databases/mysql60-client/Makefile b/databases/mysql60-client/Makefile
index c7f06b1..7fc18c8 100644
--- a/databases/mysql60-client/Makefile
+++ b/databases/mysql60-client/Makefile
@@ -11,7 +11,7 @@ PKGNAMESUFFIX= -client
COMMENT= Multithreaded SQL database (client)
-MASTERDIR= ${.CURDIR}/../mysql41-server
+MASTERDIR= ${.CURDIR}/../mysql50-server
PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/pkg-plist.client
diff --git a/databases/mysql60-server/Makefile b/databases/mysql60-server/Makefile
index e3d84c8..d53652c 100644
--- a/databases/mysql60-server/Makefile
+++ b/databases/mysql60-server/Makefile
@@ -6,32 +6,33 @@
#
PORTNAME?= mysql
-PORTVERSION= 4.1.1
+PORTVERSION= 5.0.0
PORTREVISION?= 0
CATEGORIES= databases
-MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.softagency.co.jp/MySQL/Downloads/MySQL-4.1/ \
- ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-4.1/ \
- http://mysql.mediatraffic.fi/Downloads/MySQL-4.1/ \
- ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-4.1/ \
- http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-4.1/ \
- ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.mysql.cz/Downloads/MySQL-4.1/ \
- ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-4.1/ \
- http://mysql.oms-net.nl/Downloads/MySQL-4.1/ \
- ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-4.1/
+MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.softagency.co.jp/MySQL/Downloads/MySQL-5.0/ \
+ ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-5.0/ \
+ http://mysql.mediatraffic.fi/Downloads/MySQL-5.0/ \
+ ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-5.0/ \
+ http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-5.0/ \
+ ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.mysql.cz/Downloads/MySQL-5.0/ \
+ ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-5.0/ \
+ http://mysql.oms-net.nl/Downloads/MySQL-5.0/ \
+ ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-5.0/
PKGNAMESUFFIX?= -server
DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha
-MAINTAINER= sysadmin@alexdupre.com
+MAINTAINER= ale@FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
-SLAVEDIRS= databases/mysql41-client
+SLAVEDIRS= databases/mysql50-client
+PKGINSTALL?= ${WRKDIR}/pkg-install
DB_DIR?= /var/db/mysql
+USE_GNOME= lthack
USE_LIBTOOL= yes
USE_REINPLACE= yes
-GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=${DB_DIR} \
--without-debug \
@@ -81,6 +82,9 @@ CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++'
LIB_DEPENDS+= lthread.2:${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
@@ -101,11 +105,13 @@ CXXFLAGS+= -fno-exceptions
.if !defined(CLIENT_ONLY)
USE_PERL5_RUN= yes
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql41
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
+
+LATEST_LINK= mysql50-server
-CONFLICTS= mysql-server-3.* mysql-server-4.[02-9].* mysql-server-5.*
+CONFLICTS= mysql-server-3.* mysql-server-4.*
-ONLY_FOR_ARCHS= i386 alpha sparc64
+PLIST_SUB= DB_DIR=${DB_DIR}
DOCS= manual.html manual.txt manual_toc.html
@@ -135,7 +141,9 @@ pre-fetch:
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_server_dirs@ scripts support-files|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|install: install-am|install:|g" ${WRKSRC}/include/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
+
+post-build:
+ @${SED} "s|%%DB_DIR%%|${DB_DIR}|g" ${PKGDIR}/pkg-install > ${WRKDIR}/pkg-install
.if defined(WITH_OPENSSL) && defined(BUILD_STATIC)
pre-configure:
@@ -171,7 +179,9 @@ post-install:
# MySQL-Client part
.else
-CONFLICTS= mysql-client-3.* mysql-client-4.[02-9].* mysql-client-5.*
+LATEST_LINK= mysql50-client
+
+CONFLICTS= mysql-client-3.* mysql-client-4.*
MAN1= isamchk.1 isamlog.1 mysql.1 mysql_zap.1 mysqlaccess.1 \
mysqladmin.1 mysqld.1 mysqld_multi.1 mysqld_safe.1 mysqldump.1 \
@@ -184,7 +194,6 @@ CONFIGURE_ARGS+=--without-server
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests man|g" ${WRKSRC}/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
post-install:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
diff --git a/databases/mysql60-server/distinfo b/databases/mysql60-server/distinfo
index 4486f14..43b1f7d 100644
--- a/databases/mysql60-server/distinfo
+++ b/databases/mysql60-server/distinfo
@@ -1 +1,2 @@
-MD5 (mysql-4.1.1-alpha.tar.gz) = dc337413c0a9ce4d5dcb91b02383371b
+MD5 (mysql-5.0.0-alpha.tar.gz) = e31664d1172b5823fb8be83051910ee2
+SIZE (mysql-5.0.0-alpha.tar.gz) = 16311204
diff --git a/databases/mysql60-server/files/patch-configure b/databases/mysql60-server/files/patch-configure
index 6c102a1..ec52ce4 100644
--- a/databases/mysql60-server/files/patch-configure
+++ b/databases/mysql60-server/files/patch-configure
@@ -1,13 +1,5 @@
---- configure.orig Mon Dec 1 13:55:34 2003
-+++ configure Wed Dec 10 00:22:08 2003
-@@ -8127,6 +8127,7 @@
-
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+--- configure.orig Sun Dec 21 19:03:09 2003
++++ configure Wed Dec 24 10:40:53 2003
@@ -9069,7 +9070,7 @@
;;
esac
@@ -49,7 +41,7 @@
- *cygwin*)
- FIND_PROC="$PS -e | grep mysqld | grep \" \$\$PID \" > /dev/null"
- ;;
-- *netware* | *modesto*)
+- *netware*)
- FIND_PROC=
- ;;
- *)
diff --git a/databases/mysql60-server/pkg-descr b/databases/mysql60-server/pkg-descr
index cd19c13..4ddefbb 100644
--- a/databases/mysql60-server/pkg-descr
+++ b/databases/mysql60-server/pkg-descr
@@ -4,4 +4,4 @@ MySQL is a very fast, multi-threaded, multi-user and robust SQL
WWW: http://www.mysql.com/
- Alex Dupre
-sysadmin@alexdupre.com
+ale@FreeBSD.org
diff --git a/databases/mysql60-server/pkg-install b/databases/mysql60-server/pkg-install
index 27732bf..88a0b1c 100644
--- a/databases/mysql60-server/pkg-install
+++ b/databases/mysql60-server/pkg-install
@@ -1,9 +1,6 @@
#!/bin/sh
PATH=/bin:/usr/sbin
-if [ -z "${DB_DIR}" ]; then
- DB_DIR=/var/db/mysql
-fi
case $2 in
POST-INSTALL)
@@ -11,6 +8,7 @@ POST-INSTALL)
GROUP=${USER}
UID=88
GID=${UID}
+ DB_DIR=%%DB_DIR%%
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
diff --git a/databases/mysql60-server/pkg-plist b/databases/mysql60-server/pkg-plist
index c3761b7..aa0a0f8 100644
--- a/databases/mysql60-server/pkg-plist
+++ b/databases/mysql60-server/pkg-plist
@@ -206,5 +206,5 @@ share/mysql/ukrainian/errmsg.txt
@dirrm share/mysql/swedish
@dirrm share/mysql/ukrainian
@dirrm share/mysql
-@exec %D/bin/mysql_install_db
+@exec [ -d %%DB_DIR%% ] || %D/bin/mysql_install_db --ldata=%%DB_DIR%%
@unexec /usr/bin/killall mysqld > /dev/null 2>&1 || true
diff --git a/databases/percona55-client/Makefile b/databases/percona55-client/Makefile
index c7f06b1..7fc18c8 100644
--- a/databases/percona55-client/Makefile
+++ b/databases/percona55-client/Makefile
@@ -11,7 +11,7 @@ PKGNAMESUFFIX= -client
COMMENT= Multithreaded SQL database (client)
-MASTERDIR= ${.CURDIR}/../mysql41-server
+MASTERDIR= ${.CURDIR}/../mysql50-server
PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/pkg-plist.client
diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile
index e3d84c8..d53652c 100644
--- a/databases/percona55-server/Makefile
+++ b/databases/percona55-server/Makefile
@@ -6,32 +6,33 @@
#
PORTNAME?= mysql
-PORTVERSION= 4.1.1
+PORTVERSION= 5.0.0
PORTREVISION?= 0
CATEGORIES= databases
-MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.softagency.co.jp/MySQL/Downloads/MySQL-4.1/ \
- ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-4.1/ \
- http://mysql.mediatraffic.fi/Downloads/MySQL-4.1/ \
- ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-4.1/ \
- http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-4.1/ \
- ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-4.1/ \
- http://www.mysql.cz/Downloads/MySQL-4.1/ \
- ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-4.1/ \
- http://mysql.oms-net.nl/Downloads/MySQL-4.1/ \
- ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-4.1/
+MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.softagency.co.jp/MySQL/Downloads/MySQL-5.0/ \
+ ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-5.0/ \
+ http://mysql.mediatraffic.fi/Downloads/MySQL-5.0/ \
+ ftp://filepile.tiscali.de/mirror/mysql/Downloads/MySQL-5.0/ \
+ http://mirrors.tilian.co.uk/mysql.com/Downloads/MySQL-5.0/ \
+ ftp://ftp.rtfm.no/pub/mysql/Downloads/MySQL-5.0/ \
+ http://www.mysql.cz/Downloads/MySQL-5.0/ \
+ ftp://ftp.u-paris10.fr/mysql.com/Downloads/MySQL-5.0/ \
+ http://mysql.oms-net.nl/Downloads/MySQL-5.0/ \
+ ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-5.0/
PKGNAMESUFFIX?= -server
DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha
-MAINTAINER= sysadmin@alexdupre.com
+MAINTAINER= ale@FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
-SLAVEDIRS= databases/mysql41-client
+SLAVEDIRS= databases/mysql50-client
+PKGINSTALL?= ${WRKDIR}/pkg-install
DB_DIR?= /var/db/mysql
+USE_GNOME= lthack
USE_LIBTOOL= yes
USE_REINPLACE= yes
-GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --localstatedir=${DB_DIR} \
--without-debug \
@@ -81,6 +82,9 @@ CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++'
LIB_DEPENDS+= lthread.2:${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
@@ -101,11 +105,13 @@ CXXFLAGS+= -fno-exceptions
.if !defined(CLIENT_ONLY)
USE_PERL5_RUN= yes
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql41
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50
+
+LATEST_LINK= mysql50-server
-CONFLICTS= mysql-server-3.* mysql-server-4.[02-9].* mysql-server-5.*
+CONFLICTS= mysql-server-3.* mysql-server-4.*
-ONLY_FOR_ARCHS= i386 alpha sparc64
+PLIST_SUB= DB_DIR=${DB_DIR}
DOCS= manual.html manual.txt manual_toc.html
@@ -135,7 +141,9 @@ pre-fetch:
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_server_dirs@ scripts support-files|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|install: install-am|install:|g" ${WRKSRC}/include/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
+
+post-build:
+ @${SED} "s|%%DB_DIR%%|${DB_DIR}|g" ${PKGDIR}/pkg-install > ${WRKDIR}/pkg-install
.if defined(WITH_OPENSSL) && defined(BUILD_STATIC)
pre-configure:
@@ -171,7 +179,9 @@ post-install:
# MySQL-Client part
.else
-CONFLICTS= mysql-client-3.* mysql-client-4.[02-9].* mysql-client-5.*
+LATEST_LINK= mysql50-client
+
+CONFLICTS= mysql-client-3.* mysql-client-4.*
MAN1= isamchk.1 isamlog.1 mysql.1 mysql_zap.1 mysqlaccess.1 \
mysqladmin.1 mysqld.1 mysqld_multi.1 mysqld_safe.1 mysqldump.1 \
@@ -184,7 +194,6 @@ CONFIGURE_ARGS+=--without-server
post-patch:
@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests man|g" ${WRKSRC}/Makefile.in
- @${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} "s|-pthread|${PTHREAD_LIBS}|g"
post-install:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
diff --git a/databases/percona55-server/distinfo b/databases/percona55-server/distinfo
index 4486f14..43b1f7d 100644
--- a/databases/percona55-server/distinfo
+++ b/databases/percona55-server/distinfo
@@ -1 +1,2 @@
-MD5 (mysql-4.1.1-alpha.tar.gz) = dc337413c0a9ce4d5dcb91b02383371b
+MD5 (mysql-5.0.0-alpha.tar.gz) = e31664d1172b5823fb8be83051910ee2
+SIZE (mysql-5.0.0-alpha.tar.gz) = 16311204
diff --git a/databases/percona55-server/files/patch-configure b/databases/percona55-server/files/patch-configure
index 6c102a1..ec52ce4 100644
--- a/databases/percona55-server/files/patch-configure
+++ b/databases/percona55-server/files/patch-configure
@@ -1,13 +1,5 @@
---- configure.orig Mon Dec 1 13:55:34 2003
-+++ configure Wed Dec 10 00:22:08 2003
-@@ -8127,6 +8127,7 @@
-
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+--- configure.orig Sun Dec 21 19:03:09 2003
++++ configure Wed Dec 24 10:40:53 2003
@@ -9069,7 +9070,7 @@
;;
esac
@@ -49,7 +41,7 @@
- *cygwin*)
- FIND_PROC="$PS -e | grep mysqld | grep \" \$\$PID \" > /dev/null"
- ;;
-- *netware* | *modesto*)
+- *netware*)
- FIND_PROC=
- ;;
- *)
diff --git a/databases/percona55-server/pkg-descr b/databases/percona55-server/pkg-descr
index cd19c13..4ddefbb 100644
--- a/databases/percona55-server/pkg-descr
+++ b/databases/percona55-server/pkg-descr
@@ -4,4 +4,4 @@ MySQL is a very fast, multi-threaded, multi-user and robust SQL
WWW: http://www.mysql.com/
- Alex Dupre
-sysadmin@alexdupre.com
+ale@FreeBSD.org
diff --git a/databases/percona55-server/pkg-install b/databases/percona55-server/pkg-install
index 27732bf..88a0b1c 100644
--- a/databases/percona55-server/pkg-install
+++ b/databases/percona55-server/pkg-install
@@ -1,9 +1,6 @@
#!/bin/sh
PATH=/bin:/usr/sbin
-if [ -z "${DB_DIR}" ]; then
- DB_DIR=/var/db/mysql
-fi
case $2 in
POST-INSTALL)
@@ -11,6 +8,7 @@ POST-INSTALL)
GROUP=${USER}
UID=88
GID=${UID}
+ DB_DIR=%%DB_DIR%%
if pw group show "${GROUP}" 2>/dev/null; then
echo "You already have a group \"${GROUP}\", so I will use it."
diff --git a/databases/percona55-server/pkg-plist b/databases/percona55-server/pkg-plist
index c3761b7..aa0a0f8 100644
--- a/databases/percona55-server/pkg-plist
+++ b/databases/percona55-server/pkg-plist
@@ -206,5 +206,5 @@ share/mysql/ukrainian/errmsg.txt
@dirrm share/mysql/swedish
@dirrm share/mysql/ukrainian
@dirrm share/mysql
-@exec %D/bin/mysql_install_db
+@exec [ -d %%DB_DIR%% ] || %D/bin/mysql_install_db --ldata=%%DB_DIR%%
@unexec /usr/bin/killall mysqld > /dev/null 2>&1 || true
OpenPOWER on IntegriCloud