From 9d7c8151afbaebca7269d8536d8258eff1e11200 Mon Sep 17 00:00:00 2001 From: Peter Hawkins Date: Thu, 22 Oct 1998 07:47:41 +0000 Subject: Submitted by: Dirk Froemberg - Upgrade to mysql-3.22.9-beta - fix build under ELF --- databases/mysql323-server/Makefile | 12 ++--- databases/mysql323-server/distinfo | 2 +- databases/mysql323-server/files/patch-ab | 86 ++++++++++++++++++++------------ databases/mysql323-server/files/patch-af | 26 ++++++---- databases/mysql323-server/pkg-plist | 14 +++--- 5 files changed, 84 insertions(+), 56 deletions(-) (limited to 'databases/mysql323-server') diff --git a/databases/mysql323-server/Makefile b/databases/mysql323-server/Makefile index 3fcfd1cd04f6..5ed51094cf47 100644 --- a/databases/mysql323-server/Makefile +++ b/databases/mysql323-server/Makefile @@ -3,11 +3,11 @@ # Date created: 26 Jan 1998 # Whom: Josh Tiefenbach # -# $Id: Makefile,v 1.28 1998/10/01 11:29:51 jseger Exp $ +# $Id: Makefile,v 1.29 1998/10/08 01:20:26 asami Exp $ # -DISTNAME= mysql-3.22.6-alpha -PKGNAME= mysql-3.22.6a +DISTNAME= mysql-3.22.9-beta +PKGNAME= mysql-3.22.9b CATEGORIES= databases MASTER_SITES= http://mysql.polaris.ca/Downloads/MySQL-3.22/ \ http://www.fh-wolfenbuettel.de/ftp/pub/database/mysql/Downloads/MySQL-3.22/ \ @@ -15,8 +15,6 @@ MASTER_SITES= http://mysql.polaris.ca/Downloads/MySQL-3.22/ \ MAINTAINER= ibex@physik.TU-Berlin.DE -BROKEN_ELF= build - MANUAL_PACKAGE_BUILD= incompatible with mysql321 NO_LATEST_LINK= yes MAN1= mysql.1 @@ -75,6 +73,8 @@ post-install: @ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh + @ ${ECHO} "/sbin/ldconfig -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql.sh + @ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql.sh @ ${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql.sh @@ -93,6 +93,6 @@ post-install: @install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir .endif - ${LDCONFIG} -m ${PREFIX}/lib + ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/mysql .include diff --git a/databases/mysql323-server/distinfo b/databases/mysql323-server/distinfo index 3c563e34508d..b51827f250a8 100644 --- a/databases/mysql323-server/distinfo +++ b/databases/mysql323-server/distinfo @@ -1 +1 @@ -MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4 +MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258 diff --git a/databases/mysql323-server/files/patch-ab b/databases/mysql323-server/files/patch-ab index 2aa751cd44c6..1698b84a1df9 100644 --- a/databases/mysql323-server/files/patch-ab +++ b/databases/mysql323-server/files/patch-ab @@ -1,17 +1,29 @@ ---- scripts/mysql_install_db.sh.orig Mon Aug 17 23:09:45 1998 -+++ scripts/mysql_install_db.sh Tue Sep 1 15:38:03 1998 +--- 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 # This scripts creates the privilige tables db, host, user in mysql --# It should be run from the top level installation directory +-# It should be run from the top level installation directory. # # All arguments to this script is passed to safe_mysqld -@@ -16,40 +15,12 @@ - bn=`basename $file .frm-new` - mv $file $dir/$bn.frm - done +@@ -11,36 +10,8 @@ + + if test "$1" = "-IN-RPM" + 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 @@ -30,27 +42,31 @@ - exit 1 - fi - fi ++ # Make -IN-RPM a noop, just in case... ++ shift fi if test ! -x @bindir@/mysqladmin - then -- if test "@localstatedir@" = "./data" +@@ -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 "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 +- exit 1 - else - echo "Didn't find @bindir@/mysqladmin" - echo "You should do a 'make install' before executing this script" - exit 1 -- fi + fi fi - if test -f @localstatedir@/mysql/db.ISM -@@ -65,9 +36,6 @@ - exit 1 +@@ -84,9 +44,6 @@ + fi fi -# On IRIX hostname is in /usr/bsd so add this to the path @@ -59,29 +75,29 @@ hostname=`hostname` # Install this too in the user table # create database mysql & test -@@ -118,10 +86,7 @@ - # - if test ! -f @localstatedir@/mysql/user.frm +@@ -142,10 +99,7 @@ then -- if test "@localstatedir@" != "./data" -- then -- cp -p ./data/mysql/*.frm @localstatedir@/mysql -- fi -+ cp -p @pkgdatadir@/mysql/*.frm @localstatedir@/mysql + 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 - @bindir@/mysql mysql < 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 $log +- echo -e "\nNumber of processes running now: $numofproces" | tee -a $err - I=1 - while test "$I" -le "$numofproces" - do @@ -54,12 +62,12 @@ - # echo "TEST $I - $T **" - if kill -9 $T - then -- echo "mysqld proces hanging, pid $T - killed" | tee -a $log +- echo "mysqld proces hanging, pid $T - killed" | tee -a $err - else - break - fi - I=`expr $I + 1` - done fi - echo "mysqld restarted on " `date` | tee -a $log + echo "mysqld restarted on " `date` | tee -a $err done diff --git a/databases/mysql323-server/pkg-plist b/databases/mysql323-server/pkg-plist index 4bcfb3097885..bbab91cd70ca 100644 --- a/databases/mysql323-server/pkg-plist +++ b/databases/mysql323-server/pkg-plist @@ -7,8 +7,8 @@ bin/isamlog bin/make_binary_distribution bin/msql2mysql bin/mysql -bin/mysql.server bin/mysql_install_db +bin/mysql_zap bin/mysqlaccess bin/mysqladmin bin/mysqlbug @@ -19,8 +19,6 @@ bin/perror bin/replace bin/resolveip bin/safe_mysqld -bin/which1 -bin/zap etc/rc.d/mysql.sh include/mysql/dbug.h include/mysql/errmsg.h @@ -41,7 +39,7 @@ lib/mysql/libmerge.a lib/mysql/libmysqlclient.a lib/mysql/libmysqlclient.la lib/mysql/libmysqlclient.so -lib/mysql/libmysqlclient.so.4.0 +lib/mysql/libmysqlclient.so.4 lib/mysql/libmystrings.a lib/mysql/libmysys.a lib/mysql/libnisam.a @@ -52,6 +50,7 @@ share/doc/mysql/manual.ps share/doc/mysql/manual.texi share/doc/mysql/manual.txt share/doc/mysql/manual_toc.html +share/mysql/binary-configure share/mysql/czech/errmsg.sys share/mysql/czech/errmsg.txt share/mysql/dutch/errmsg.sys @@ -67,8 +66,9 @@ share/mysql/hungarian/errmsg.txt share/mysql/italian/errmsg.sys share/mysql/italian/errmsg.txt share/mysql/my-example.cnf -share/mysql/mysql-3.22.6-alpha.spec +share/mysql/mysql-3.22.9-beta.spec share/mysql/mysql-log-rotate +share/mysql/mysql.server share/mysql/mysql/db.frm share/mysql/mysql/func.frm share/mysql/mysql/host.frm @@ -108,5 +108,5 @@ share/mysql/swedish/errmsg.txt @dirrm share/mysql @exec %D/bin/mysql_install_db @exec /usr/bin/killall mysqld -@unexec /sbin/ldconfig -R -@exec /sbin/ldconfig -m %D/lib +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib/mysql +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R -- cgit v1.2.3