From fdb7a1c90341e5aa579095ab23149dd8d9e019d4 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Sun, 28 Sep 2003 21:47:53 +0000 Subject: [PATCH] take care about DB_DIR when the initial database get installed PR: ports/54628 Submitted By: Max Okumoto Approved By: maintainer --- databases/mysql41-server/Makefile | 4 ++-- databases/mysql50-server/Makefile | 4 ++-- databases/mysql51-server/Makefile | 4 ++-- databases/mysql54-server/Makefile | 4 ++-- databases/mysql55-server/Makefile | 4 ++-- databases/mysql60-server/Makefile | 4 ++-- databases/percona55-server/Makefile | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile index 13383997dd60..9654fa2795fe 100644 --- a/databases/mysql41-server/Makefile +++ b/databases/mysql41-server/Makefile @@ -142,9 +142,9 @@ post-install: .endif .if !exists(${DB_DIR}) || defined(OVERWRITE_DB) .if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force + ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} .else - ${PREFIX}/bin/mysql_install_db + ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif .endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile index 13383997dd60..9654fa2795fe 100644 --- a/databases/mysql50-server/Makefile +++ b/databases/mysql50-server/Makefile @@ -142,9 +142,9 @@ post-install: .endif .if !exists(${DB_DIR}) || defined(OVERWRITE_DB) .if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force + ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} .else - ${PREFIX}/bin/mysql_install_db + ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif .endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile index 13383997dd60..9654fa2795fe 100644 --- a/databases/mysql51-server/Makefile +++ b/databases/mysql51-server/Makefile @@ -142,9 +142,9 @@ post-install: .endif .if !exists(${DB_DIR}) || defined(OVERWRITE_DB) .if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force + ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} .else - ${PREFIX}/bin/mysql_install_db + ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif .endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile index 13383997dd60..9654fa2795fe 100644 --- a/databases/mysql54-server/Makefile +++ b/databases/mysql54-server/Makefile @@ -142,9 +142,9 @@ post-install: .endif .if !exists(${DB_DIR}) || defined(OVERWRITE_DB) .if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force + ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} .else - ${PREFIX}/bin/mysql_install_db + ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif .endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile index 13383997dd60..9654fa2795fe 100644 --- a/databases/mysql55-server/Makefile +++ b/databases/mysql55-server/Makefile @@ -142,9 +142,9 @@ post-install: .endif .if !exists(${DB_DIR}) || defined(OVERWRITE_DB) .if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force + ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} .else - ${PREFIX}/bin/mysql_install_db + ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif .endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL diff --git a/databases/mysql60-server/Makefile b/databases/mysql60-server/Makefile index 13383997dd60..9654fa2795fe 100644 --- a/databases/mysql60-server/Makefile +++ b/databases/mysql60-server/Makefile @@ -142,9 +142,9 @@ post-install: .endif .if !exists(${DB_DIR}) || defined(OVERWRITE_DB) .if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force + ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} .else - ${PREFIX}/bin/mysql_install_db + ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif .endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile index 13383997dd60..9654fa2795fe 100644 --- a/databases/percona55-server/Makefile +++ b/databases/percona55-server/Makefile @@ -142,9 +142,9 @@ post-install: .endif .if !exists(${DB_DIR}) || defined(OVERWRITE_DB) .if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force + ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} .else - ${PREFIX}/bin/mysql_install_db + ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif .endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL