aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql41-server
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-01-18 08:59:41 +0800
committerale <ale@FreeBSD.org>2004-01-18 08:59:41 +0800
commitff5cc7d1f4d9c3e483ce0597f43e26fd1b024d34 (patch)
treeac485b03ead97a1e8a5d26a28a14b48f8716ea2d /databases/mysql41-server
parentc155d41477a6c65b0c7a903ad9a5246c8e6654e0 (diff)
downloadfreebsd-ports-gnome-ff5cc7d1f4d9c3e483ce0597f43e26fd1b024d34.tar.gz
freebsd-ports-gnome-ff5cc7d1f4d9c3e483ce0597f43e26fd1b024d34.tar.zst
freebsd-ports-gnome-ff5cc7d1f4d9c3e483ce0597f43e26fd1b024d34.zip
Sync with recent mysql323 changes:
- Correctly support PTHREAD_LIBS/CFLAGS - Use USE_GNOME=lthack - Propagate DB_DIR in packages - Use my @FreeBSD.org email address Approved by: nork (mentor/implicitly)
Diffstat (limited to 'databases/mysql41-server')
-rw-r--r--databases/mysql41-server/Makefile15
-rw-r--r--databases/mysql41-server/files/patch-configure8
-rw-r--r--databases/mysql41-server/pkg-descr2
-rw-r--r--databases/mysql41-server/pkg-install4
-rw-r--r--databases/mysql41-server/pkg-plist2
5 files changed, 14 insertions, 17 deletions
diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile
index e3d84c83d494..75853126b0b1 100644
--- a/databases/mysql41-server/Makefile
+++ b/databases/mysql41-server/Makefile
@@ -23,15 +23,16 @@ MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-4.1/ \
PKGNAMESUFFIX?= -server
DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha
-MAINTAINER= sysadmin@alexdupre.com
+MAINTAINER= ale@FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
SLAVEDIRS= databases/mysql41-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
@@ -105,6 +109,8 @@ RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mys
CONFLICTS= mysql-server-3.* mysql-server-4.[02-9].* mysql-server-5.*
+PLIST_SUB= DB_DIR=${DB_DIR}
+
ONLY_FOR_ARCHS= i386 alpha sparc64
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:
@@ -184,7 +192,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/mysql41-server/files/patch-configure b/databases/mysql41-server/files/patch-configure
index 6c102a1762a6..c7b052905fa8 100644
--- a/databases/mysql41-server/files/patch-configure
+++ b/databases/mysql41-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'
@@ -9069,7 +9070,7 @@
;;
esac
diff --git a/databases/mysql41-server/pkg-descr b/databases/mysql41-server/pkg-descr
index cd19c135f9cc..4ddefbb70546 100644
--- a/databases/mysql41-server/pkg-descr
+++ b/databases/mysql41-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/mysql41-server/pkg-install b/databases/mysql41-server/pkg-install
index 27732bf35c89..88a0b1c66915 100644
--- a/databases/mysql41-server/pkg-install
+++ b/databases/mysql41-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/mysql41-server/pkg-plist b/databases/mysql41-server/pkg-plist
index c3761b75637f..aa0a0f84b32d 100644
--- a/databases/mysql41-server/pkg-plist
+++ b/databases/mysql41-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