diff options
author | steve <steve@FreeBSD.org> | 1998-11-22 04:13:52 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-11-22 04:13:52 +0800 |
commit | 8e014c9f2edd9d87de9d33d7f5ecdf6ed1eac856 (patch) | |
tree | dbed04042e2ddbcbcf6cd1bbefd1e61e7ad8b1e9 /databases/percona55-server/files | |
parent | 9da9aeff10fd4e1ba1fb86e7f29df433dc36c414 (diff) | |
download | freebsd-ports-gnome-8e014c9f2edd9d87de9d33d7f5ecdf6ed1eac856.tar.gz freebsd-ports-gnome-8e014c9f2edd9d87de9d33d7f5ecdf6ed1eac856.tar.zst freebsd-ports-gnome-8e014c9f2edd9d87de9d33d7f5ecdf6ed1eac856.zip |
Update to version 3.22.10-beta.
PR: 8701
Submitted by: maintainer
Diffstat (limited to 'databases/percona55-server/files')
-rw-r--r-- | databases/percona55-server/files/patch-ab | 128 | ||||
-rw-r--r-- | databases/percona55-server/files/patch-af | 16 |
2 files changed, 30 insertions, 114 deletions
diff --git a/databases/percona55-server/files/patch-ab b/databases/percona55-server/files/patch-ab index 1698b84a1df9..004634cad72a 100644 --- a/databases/percona55-server/files/patch-ab +++ b/databases/percona55-server/files/patch-ab @@ -1,119 +1,35 @@ ---- scripts/mysql_install_db.sh.orig Sun Oct 18 23:59:46 1998 -+++ scripts/mysql_install_db.sh Wed Oct 21 15:22:31 1998 -@@ -3,7 +3,6 @@ - # For a more info consult the file COPYRIGHT distributed with this file +--- scripts/mysql_install_db.sh.orig Wed Nov 4 21:25:07 1998 ++++ scripts/mysql_install_db.sh Tue Nov 10 16:54:46 1998 +@@ -11,7 +11,7 @@ + mdata=@localstatedir@/mysql - # This scripts creates the privilige tables db, host, user in mysql --# It should be run from the top level installation directory. - # - # All arguments to this script is passed to safe_mysqld + # Are we are doing a rpm install? +-if test "$1" = "-IN-RPM"; then IN_RPM=1; shift; fi ++if test "$1" = "-IN-RPM"; then shift; fi -@@ -11,36 +10,8 @@ - - if test "$1" = "-IN-RPM" + if test ! -x @libexecdir@/mysqld then -- # We are doing a rpm install. -- IN_RPM=1; shift -- # First check if we already have the mysql database. -- if test -f $mdata/user.frm-new -a ! -f $mdata/user.ISM -- then -- for file in $mdata/*.frm-new -- do -- dir=`dirname $file` -- bn=`basename $file .frm-new` -- cp $file $dir/$bn.frm -- done -- fi --else -- if test ! -d "./data" -- then -- echo "Didn't find the 'data' directory in the current directory" -- echo "You should be in the distribution directory when executing this script" -- if test -d "../data" -- then -- echo "We will now try to execute this in the parent directory; If this doesn't" -- echo "work please go to the directory where unpacked this distribution" -- echo "and try again with 'scripts/mysql_install_db'" -- echo -- cd .. -- else -- echo "Please go to the directory where you unpacked this distribution" -- echo "and start this script with 'scripts/mysql_install_db'" -- exit 1 -- fi -- fi -+ # Make -IN-RPM a noop, just in case... -+ shift - fi - - if test ! -x @bindir@/mysqladmin -@@ -51,17 +22,6 @@ - ls -l /usr/bin/mysql* - echo "Didn't find @bindir@/mysqladmin" - exit 1 -- elif test "@localstatedir@" = "./data" -- then -- echo "Can't execute @bindir@/mysqladmin" -- echo "You should be in the distribution directory when executing this script" -- echo "Please go to the directory where you unpacked this distribution" -- echo "and start this script with 'scripts/mysql_install_db'" -- exit 1 -- else -- echo "Didn't find @bindir@/mysqladmin" -- echo "You should do a 'make install' before executing this script" -- exit 1 - fi - fi - -@@ -84,9 +44,6 @@ +@@ -26,8 +26,6 @@ fi fi -# On IRIX hostname is in /usr/bsd so add this to the path -PATH=$PATH:/usr/bsd -- hostname=`hostname` # Install this too in the user table - # create database mysql & test -@@ -142,10 +99,7 @@ - then - if test ! -f @localstatedir@/mysql/user.frm - then -- if test "@localstatedir@" != "./data" -- then -- cp -p ./data/mysql/*.frm @localstatedir@/mysql -- fi -+ cp -p ./data/mysql/*.frm @localstatedir@/mysql - fi - fi - -@@ -175,9 +129,6 @@ - # Dumping data for table 'user' - # - --INSERT INTO user VALUES ('localhost','@MYSQLD_USER@','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); --INSERT INTO user VALUES ('$hostname','@MYSQLD_USER@','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); -- - REPLACE INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); - REPLACE INTO user VALUES ('$hostname','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); - -@@ -185,6 +136,13 @@ - INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N'); + # Create database directories mysql & test +@@ -149,22 +147,9 @@ END_OF_DATA - -+if [ @MYSQLD_USER@ != root ]; then -+ @bindir@/mysql mysql <<END_OF_DATA -+INSERT INTO user VALUES ('localhost','@MYSQLD_USER@','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); -+INSERT INTO user VALUES ('$hostname','@MYSQLD_USER@','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); -+END_OF_DATA -+fi -+ - if test $? -eq 0 - then - @bindir@/mysqladmin reload -@@ -197,13 +155,6 @@ - echo + then + echo "" +- if test -z "$IN_RPM" +- then +- echo "To start mysqld at boot time you have to copy support-files/mysql.server" +- echo "to the right place for your system" +- echo +- fi echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !" + echo "See the manual for instructions." echo - if test -z "$IN_RPM" - then @@ -122,6 +38,6 @@ - echo "cd bench ; run-all-tests" - echo - fi - echo "You can also try the mysql command line tool with:" - echo "@bindir@/mysql test" + echo "Please report any problems with the @scriptdir@/mysqlbug script!" echo + echo "The latest information about MySQL is available on the web at http://www.tcx.se" diff --git a/databases/percona55-server/files/patch-af b/databases/percona55-server/files/patch-af index e3ba06c5d132..9318e20d9f0a 100644 --- a/databases/percona55-server/files/patch-af +++ b/databases/percona55-server/files/patch-af @@ -1,5 +1,5 @@ ---- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998 -+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998 +--- scripts/safe_mysqld.sh.orig Wed Nov 4 13:21:22 1998 ++++ scripts/safe_mysqld.sh Tue Nov 10 16:59:51 1998 @@ -12,33 +12,9 @@ trap '' 1 2 3 15 # we shouldn't let anyone kill us @@ -35,10 +35,10 @@ +DATADIR=@localstatedir@ +ledir=@libexecdir@ - pidfile=$DATADIR/`@HOSTNAME@`.pid + pid_file=$DATADIR/`@HOSTNAME@`.pid log=$DATADIR/`@HOSTNAME@`.log -@@ -103,33 +79,6 @@ - if test ! -f $pidfile # This is removed if normal shutdown +@@ -114,33 +90,6 @@ + if test ! -f $pid_file # This is removed if normal shutdown then break; - fi @@ -50,7 +50,7 @@ - # The only thing is ps x => redhat 5 gives warnings when using ps -x. - # kill -9 is used or the proces won't react on the kill. - numofproces=`ps x | grep -v "grep" | grep -c $ledir/mysqld` -- echo -e "\nNumber of processes running now: $numofproces" | tee -a $err +- echo -e "\nNumber of processes running now: $numofproces" | tee -a $err_log - I=1 - while test "$I" -le "$numofproces" - do @@ -62,12 +62,12 @@ - # echo "TEST $I - $T **" - if kill -9 $T - then -- echo "mysqld proces hanging, pid $T - killed" | tee -a $err +- echo "mysqld proces hanging, pid $T - killed" | tee -a $err_log - else - break - fi - I=`expr $I + 1` - done fi - echo "mysqld restarted on " `date` | tee -a $err + echo "mysqld restarted on " `date` | tee -a $err_log done |