diff options
-rw-r--r-- | databases/mysql323-server/Makefile | 8 | ||||
-rw-r--r-- | databases/mysql323-server/files/patch-scripts::mysql_install_db.sh | 22 | ||||
-rw-r--r-- | databases/mysql41-server/Makefile | 8 | ||||
-rw-r--r-- | databases/mysql41-server/files/patch-scripts::mysql_install_db.sh | 22 | ||||
-rw-r--r-- | databases/mysql50-server/Makefile | 8 | ||||
-rw-r--r-- | databases/mysql50-server/files/patch-scripts::mysql_install_db.sh | 22 | ||||
-rw-r--r-- | databases/mysql51-server/Makefile | 8 | ||||
-rw-r--r-- | databases/mysql51-server/files/patch-scripts::mysql_install_db.sh | 22 | ||||
-rw-r--r-- | databases/mysql54-server/Makefile | 8 | ||||
-rw-r--r-- | databases/mysql54-server/files/patch-scripts::mysql_install_db.sh | 22 | ||||
-rw-r--r-- | databases/mysql55-server/Makefile | 8 | ||||
-rw-r--r-- | databases/mysql55-server/files/patch-scripts::mysql_install_db.sh | 22 | ||||
-rw-r--r-- | databases/mysql60-server/Makefile | 8 | ||||
-rw-r--r-- | databases/mysql60-server/files/patch-scripts::mysql_install_db.sh | 22 | ||||
-rw-r--r-- | databases/percona55-server/Makefile | 8 | ||||
-rw-r--r-- | databases/percona55-server/files/patch-scripts::mysql_install_db.sh | 22 |
16 files changed, 176 insertions, 64 deletions
diff --git a/databases/mysql323-server/Makefile b/databases/mysql323-server/Makefile index 7197b1bc0dc1..58be552c6f8e 100644 --- a/databases/mysql323-server/Makefile +++ b/databases/mysql323-server/Makefile @@ -123,10 +123,6 @@ pre-fetch: @${ECHO} " (default is /var/db/mysql)." @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library." @${ECHO} " OVERWRITE_DB=yes Re-initialize default databases." - @${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional DNS" - @${ECHO} " reverse lookup before inserting local" - @${ECHO} " hostname into mysql database" - @${ECHO} " (use it if your machine has no official DNS entry)." @${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations" @${ECHO} " (use it if you need speed)." @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld." @@ -148,12 +144,8 @@ post-install: @${RM} -r ${DB_DIR}/mysql ${DB_DIR}/test 2>/dev/null || true .endif .if !exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no") -.if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} -.else ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif -.endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif @${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh diff --git a/databases/mysql323-server/files/patch-scripts::mysql_install_db.sh b/databases/mysql323-server/files/patch-scripts::mysql_install_db.sh new file mode 100644 index 000000000000..12d394167e4b --- /dev/null +++ b/databases/mysql323-server/files/patch-scripts::mysql_install_db.sh @@ -0,0 +1,22 @@ +--- scripts/mysql_install_db.sh.orig Thu Sep 11 13:49:21 2003 ++++ scripts/mysql_install_db.sh Fri Mar 12 11:32:09 2004 +@@ -116,7 +116,7 @@ + if [ $? -ne 0 ] + then + resolved=`$bindir/resolveip localhost 2>&1` +- if [ $? -eq 0 ] ++ if [ $? -ne 0 ] + then + echo "Sorry, the host '$hostname' could not be looked up." + echo "Please configure the 'hostname' command to return a correct hostname." +@@ -125,8 +125,8 @@ + exit 1 + fi + echo "WARNING: The host '$hostname' could not be looked up with resolveip." +- echo "This probably means that your libc libraries are not 100 % compatible" +- echo "with this binary MySQL version. The MySQL deamon, mysqld, should work" ++ echo "This probably means that your host name is not listed in your" ++ echo "/etc/hosts file (as it should). The MySQL daemon, mysqld, should work" + echo "normally with the exception that host name resolving will not work." + echo "This means that you should use IP addresses instead of hostnames" + echo "when specifying MySQL privileges !" diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile index 127f7d5912d1..e7165012f270 100644 --- a/databases/mysql41-server/Makefile +++ b/databases/mysql41-server/Makefile @@ -130,10 +130,6 @@ pre-fetch: @${ECHO} " (default is /var/db/mysql)." @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library." @${ECHO} " OVERWRITE_DB=yes Re-initialize default databases." - @${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional DNS" - @${ECHO} " reverse lookup before inserting local" - @${ECHO} " hostname into mysql database" - @${ECHO} " (use it if your machine has no official DNS entry)." @${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations" @${ECHO} " (use it if you need speed)." @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld." @@ -162,12 +158,8 @@ post-install: @${RM} -r ${DB_DIR}/mysql ${DB_DIR}/test 2>/dev/null || true .endif .if !exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no") -.if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} -.else ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif -.endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif @${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh diff --git a/databases/mysql41-server/files/patch-scripts::mysql_install_db.sh b/databases/mysql41-server/files/patch-scripts::mysql_install_db.sh new file mode 100644 index 000000000000..1ccb78b2925a --- /dev/null +++ b/databases/mysql41-server/files/patch-scripts::mysql_install_db.sh @@ -0,0 +1,22 @@ +--- scripts/mysql_install_db.sh.orig Thu Mar 11 10:20:57 2004 ++++ scripts/mysql_install_db.sh Thu Mar 11 10:27:09 2004 +@@ -118,7 +118,7 @@ + if [ $? -ne 0 ] + then + resolved=`$bindir/resolveip localhost 2>&1` +- if [ $? -eq 0 ] ++ if [ $? -ne 0 ] + then + echo "Neither host '$hostname' and 'localhost' could not be looked up with" + echo "$bindir/resolveip" +@@ -128,8 +128,8 @@ + exit 1 + fi + echo "WARNING: The host '$hostname' could not be looked up with resolveip." +- echo "This probably means that your libc libraries are not 100 % compatible" +- echo "with this binary MySQL version. The MySQL daemon, mysqld, should work" ++ echo "This probably means that your host name is not listed in your" ++ echo "/etc/hosts file (as it should). The MySQL daemon, mysqld, should work" + echo "normally with the exception that host name resolving will not work." + echo "This means that you should use IP addresses instead of hostnames" + echo "when specifying MySQL privileges !" diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile index 9db3fbe2ce7f..366a0b771d3f 100644 --- a/databases/mysql50-server/Makefile +++ b/databases/mysql50-server/Makefile @@ -130,10 +130,6 @@ pre-fetch: @${ECHO} " (default is /var/db/mysql)." @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library." @${ECHO} " OVERWRITE_DB=yes Re-initialize default databases." - @${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional DNS" - @${ECHO} " reverse lookup before inserting local" - @${ECHO} " hostname into mysql database" - @${ECHO} " (use it if your machine has no official DNS entry)." @${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations" @${ECHO} " (use it if you need speed)." @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld." @@ -162,12 +158,8 @@ post-install: @${RM} -r ${DB_DIR}/mysql ${DB_DIR}/test 2>/dev/null || true .endif .if !exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no") -.if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} -.else ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif -.endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif @${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh diff --git a/databases/mysql50-server/files/patch-scripts::mysql_install_db.sh b/databases/mysql50-server/files/patch-scripts::mysql_install_db.sh new file mode 100644 index 000000000000..1ccb78b2925a --- /dev/null +++ b/databases/mysql50-server/files/patch-scripts::mysql_install_db.sh @@ -0,0 +1,22 @@ +--- scripts/mysql_install_db.sh.orig Thu Mar 11 10:20:57 2004 ++++ scripts/mysql_install_db.sh Thu Mar 11 10:27:09 2004 +@@ -118,7 +118,7 @@ + if [ $? -ne 0 ] + then + resolved=`$bindir/resolveip localhost 2>&1` +- if [ $? -eq 0 ] ++ if [ $? -ne 0 ] + then + echo "Neither host '$hostname' and 'localhost' could not be looked up with" + echo "$bindir/resolveip" +@@ -128,8 +128,8 @@ + exit 1 + fi + echo "WARNING: The host '$hostname' could not be looked up with resolveip." +- echo "This probably means that your libc libraries are not 100 % compatible" +- echo "with this binary MySQL version. The MySQL daemon, mysqld, should work" ++ echo "This probably means that your host name is not listed in your" ++ echo "/etc/hosts file (as it should). The MySQL daemon, mysqld, should work" + echo "normally with the exception that host name resolving will not work." + echo "This means that you should use IP addresses instead of hostnames" + echo "when specifying MySQL privileges !" diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile index 9db3fbe2ce7f..366a0b771d3f 100644 --- a/databases/mysql51-server/Makefile +++ b/databases/mysql51-server/Makefile @@ -130,10 +130,6 @@ pre-fetch: @${ECHO} " (default is /var/db/mysql)." @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library." @${ECHO} " OVERWRITE_DB=yes Re-initialize default databases." - @${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional DNS" - @${ECHO} " reverse lookup before inserting local" - @${ECHO} " hostname into mysql database" - @${ECHO} " (use it if your machine has no official DNS entry)." @${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations" @${ECHO} " (use it if you need speed)." @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld." @@ -162,12 +158,8 @@ post-install: @${RM} -r ${DB_DIR}/mysql ${DB_DIR}/test 2>/dev/null || true .endif .if !exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no") -.if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} -.else ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif -.endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif @${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh diff --git a/databases/mysql51-server/files/patch-scripts::mysql_install_db.sh b/databases/mysql51-server/files/patch-scripts::mysql_install_db.sh new file mode 100644 index 000000000000..1ccb78b2925a --- /dev/null +++ b/databases/mysql51-server/files/patch-scripts::mysql_install_db.sh @@ -0,0 +1,22 @@ +--- scripts/mysql_install_db.sh.orig Thu Mar 11 10:20:57 2004 ++++ scripts/mysql_install_db.sh Thu Mar 11 10:27:09 2004 +@@ -118,7 +118,7 @@ + if [ $? -ne 0 ] + then + resolved=`$bindir/resolveip localhost 2>&1` +- if [ $? -eq 0 ] ++ if [ $? -ne 0 ] + then + echo "Neither host '$hostname' and 'localhost' could not be looked up with" + echo "$bindir/resolveip" +@@ -128,8 +128,8 @@ + exit 1 + fi + echo "WARNING: The host '$hostname' could not be looked up with resolveip." +- echo "This probably means that your libc libraries are not 100 % compatible" +- echo "with this binary MySQL version. The MySQL daemon, mysqld, should work" ++ echo "This probably means that your host name is not listed in your" ++ echo "/etc/hosts file (as it should). The MySQL daemon, mysqld, should work" + echo "normally with the exception that host name resolving will not work." + echo "This means that you should use IP addresses instead of hostnames" + echo "when specifying MySQL privileges !" diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile index 9db3fbe2ce7f..366a0b771d3f 100644 --- a/databases/mysql54-server/Makefile +++ b/databases/mysql54-server/Makefile @@ -130,10 +130,6 @@ pre-fetch: @${ECHO} " (default is /var/db/mysql)." @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library." @${ECHO} " OVERWRITE_DB=yes Re-initialize default databases." - @${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional DNS" - @${ECHO} " reverse lookup before inserting local" - @${ECHO} " hostname into mysql database" - @${ECHO} " (use it if your machine has no official DNS entry)." @${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations" @${ECHO} " (use it if you need speed)." @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld." @@ -162,12 +158,8 @@ post-install: @${RM} -r ${DB_DIR}/mysql ${DB_DIR}/test 2>/dev/null || true .endif .if !exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no") -.if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} -.else ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif -.endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif @${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh diff --git a/databases/mysql54-server/files/patch-scripts::mysql_install_db.sh b/databases/mysql54-server/files/patch-scripts::mysql_install_db.sh new file mode 100644 index 000000000000..1ccb78b2925a --- /dev/null +++ b/databases/mysql54-server/files/patch-scripts::mysql_install_db.sh @@ -0,0 +1,22 @@ +--- scripts/mysql_install_db.sh.orig Thu Mar 11 10:20:57 2004 ++++ scripts/mysql_install_db.sh Thu Mar 11 10:27:09 2004 +@@ -118,7 +118,7 @@ + if [ $? -ne 0 ] + then + resolved=`$bindir/resolveip localhost 2>&1` +- if [ $? -eq 0 ] ++ if [ $? -ne 0 ] + then + echo "Neither host '$hostname' and 'localhost' could not be looked up with" + echo "$bindir/resolveip" +@@ -128,8 +128,8 @@ + exit 1 + fi + echo "WARNING: The host '$hostname' could not be looked up with resolveip." +- echo "This probably means that your libc libraries are not 100 % compatible" +- echo "with this binary MySQL version. The MySQL daemon, mysqld, should work" ++ echo "This probably means that your host name is not listed in your" ++ echo "/etc/hosts file (as it should). The MySQL daemon, mysqld, should work" + echo "normally with the exception that host name resolving will not work." + echo "This means that you should use IP addresses instead of hostnames" + echo "when specifying MySQL privileges !" diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile index 9db3fbe2ce7f..366a0b771d3f 100644 --- a/databases/mysql55-server/Makefile +++ b/databases/mysql55-server/Makefile @@ -130,10 +130,6 @@ pre-fetch: @${ECHO} " (default is /var/db/mysql)." @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library." @${ECHO} " OVERWRITE_DB=yes Re-initialize default databases." - @${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional DNS" - @${ECHO} " reverse lookup before inserting local" - @${ECHO} " hostname into mysql database" - @${ECHO} " (use it if your machine has no official DNS entry)." @${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations" @${ECHO} " (use it if you need speed)." @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld." @@ -162,12 +158,8 @@ post-install: @${RM} -r ${DB_DIR}/mysql ${DB_DIR}/test 2>/dev/null || true .endif .if !exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no") -.if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} -.else ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif -.endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif @${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh diff --git a/databases/mysql55-server/files/patch-scripts::mysql_install_db.sh b/databases/mysql55-server/files/patch-scripts::mysql_install_db.sh new file mode 100644 index 000000000000..1ccb78b2925a --- /dev/null +++ b/databases/mysql55-server/files/patch-scripts::mysql_install_db.sh @@ -0,0 +1,22 @@ +--- scripts/mysql_install_db.sh.orig Thu Mar 11 10:20:57 2004 ++++ scripts/mysql_install_db.sh Thu Mar 11 10:27:09 2004 +@@ -118,7 +118,7 @@ + if [ $? -ne 0 ] + then + resolved=`$bindir/resolveip localhost 2>&1` +- if [ $? -eq 0 ] ++ if [ $? -ne 0 ] + then + echo "Neither host '$hostname' and 'localhost' could not be looked up with" + echo "$bindir/resolveip" +@@ -128,8 +128,8 @@ + exit 1 + fi + echo "WARNING: The host '$hostname' could not be looked up with resolveip." +- echo "This probably means that your libc libraries are not 100 % compatible" +- echo "with this binary MySQL version. The MySQL daemon, mysqld, should work" ++ echo "This probably means that your host name is not listed in your" ++ echo "/etc/hosts file (as it should). The MySQL daemon, mysqld, should work" + echo "normally with the exception that host name resolving will not work." + echo "This means that you should use IP addresses instead of hostnames" + echo "when specifying MySQL privileges !" diff --git a/databases/mysql60-server/Makefile b/databases/mysql60-server/Makefile index 9db3fbe2ce7f..366a0b771d3f 100644 --- a/databases/mysql60-server/Makefile +++ b/databases/mysql60-server/Makefile @@ -130,10 +130,6 @@ pre-fetch: @${ECHO} " (default is /var/db/mysql)." @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library." @${ECHO} " OVERWRITE_DB=yes Re-initialize default databases." - @${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional DNS" - @${ECHO} " reverse lookup before inserting local" - @${ECHO} " hostname into mysql database" - @${ECHO} " (use it if your machine has no official DNS entry)." @${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations" @${ECHO} " (use it if you need speed)." @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld." @@ -162,12 +158,8 @@ post-install: @${RM} -r ${DB_DIR}/mysql ${DB_DIR}/test 2>/dev/null || true .endif .if !exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no") -.if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} -.else ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif -.endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif @${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh diff --git a/databases/mysql60-server/files/patch-scripts::mysql_install_db.sh b/databases/mysql60-server/files/patch-scripts::mysql_install_db.sh new file mode 100644 index 000000000000..1ccb78b2925a --- /dev/null +++ b/databases/mysql60-server/files/patch-scripts::mysql_install_db.sh @@ -0,0 +1,22 @@ +--- scripts/mysql_install_db.sh.orig Thu Mar 11 10:20:57 2004 ++++ scripts/mysql_install_db.sh Thu Mar 11 10:27:09 2004 +@@ -118,7 +118,7 @@ + if [ $? -ne 0 ] + then + resolved=`$bindir/resolveip localhost 2>&1` +- if [ $? -eq 0 ] ++ if [ $? -ne 0 ] + then + echo "Neither host '$hostname' and 'localhost' could not be looked up with" + echo "$bindir/resolveip" +@@ -128,8 +128,8 @@ + exit 1 + fi + echo "WARNING: The host '$hostname' could not be looked up with resolveip." +- echo "This probably means that your libc libraries are not 100 % compatible" +- echo "with this binary MySQL version. The MySQL daemon, mysqld, should work" ++ echo "This probably means that your host name is not listed in your" ++ echo "/etc/hosts file (as it should). The MySQL daemon, mysqld, should work" + echo "normally with the exception that host name resolving will not work." + echo "This means that you should use IP addresses instead of hostnames" + echo "when specifying MySQL privileges !" diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile index 9db3fbe2ce7f..366a0b771d3f 100644 --- a/databases/percona55-server/Makefile +++ b/databases/percona55-server/Makefile @@ -130,10 +130,6 @@ pre-fetch: @${ECHO} " (default is /var/db/mysql)." @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library." @${ECHO} " OVERWRITE_DB=yes Re-initialize default databases." - @${ECHO} " SKIP_DNS_CHECK=yes Don't run resolveip to do an additional DNS" - @${ECHO} " reverse lookup before inserting local" - @${ECHO} " hostname into mysql database" - @${ECHO} " (use it if your machine has no official DNS entry)." @${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations" @${ECHO} " (use it if you need speed)." @${ECHO} " BUILD_STATIC=yes Build a static version of mysqld." @@ -162,12 +158,8 @@ post-install: @${RM} -r ${DB_DIR}/mysql ${DB_DIR}/test 2>/dev/null || true .endif .if !exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no") -.if defined(SKIP_DNS_CHECK) - ${PREFIX}/bin/mysql_install_db --force --ldata=${DB_DIR} -.else ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR} .endif -.endif @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif @${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh diff --git a/databases/percona55-server/files/patch-scripts::mysql_install_db.sh b/databases/percona55-server/files/patch-scripts::mysql_install_db.sh new file mode 100644 index 000000000000..1ccb78b2925a --- /dev/null +++ b/databases/percona55-server/files/patch-scripts::mysql_install_db.sh @@ -0,0 +1,22 @@ +--- scripts/mysql_install_db.sh.orig Thu Mar 11 10:20:57 2004 ++++ scripts/mysql_install_db.sh Thu Mar 11 10:27:09 2004 +@@ -118,7 +118,7 @@ + if [ $? -ne 0 ] + then + resolved=`$bindir/resolveip localhost 2>&1` +- if [ $? -eq 0 ] ++ if [ $? -ne 0 ] + then + echo "Neither host '$hostname' and 'localhost' could not be looked up with" + echo "$bindir/resolveip" +@@ -128,8 +128,8 @@ + exit 1 + fi + echo "WARNING: The host '$hostname' could not be looked up with resolveip." +- echo "This probably means that your libc libraries are not 100 % compatible" +- echo "with this binary MySQL version. The MySQL daemon, mysqld, should work" ++ echo "This probably means that your host name is not listed in your" ++ echo "/etc/hosts file (as it should). The MySQL daemon, mysqld, should work" + echo "normally with the exception that host name resolving will not work." + echo "This means that you should use IP addresses instead of hostnames" + echo "when specifying MySQL privileges !" |