mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
Submitted by: Dirk Froemberg <ibex@physik.TU-Berlin.DE>
- Upgrade to mysql-3.22.9-beta - fix build under ELF
This commit is contained in:
parent
d83046f9ca
commit
9d7c8151af
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=14157
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -3,11 +3,11 @@
|
||||
# Date created: 26 Jan 1998
|
||||
# Whom: Josh Tiefenbach <josh@ican.net>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (mysql-3.22.6-alpha.tar.gz) = 2bd0e6a7beb21dcb8d6e8b5b5f2b3bc4
|
||||
MD5 (mysql-3.22.9-beta.tar.gz) = 1abe771fba482e473937ecd4bff95258
|
||||
|
@ -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 <<END_OF_DATA
|
||||
@@ -150,9 +115,6 @@
|
||||
@@ -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');
|
||||
-
|
||||
INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
|
||||
INSERT INTO user VALUES ('$hostname','root','','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');
|
||||
|
||||
@@ -160,16 +122,19 @@
|
||||
@@ -185,6 +136,13 @@
|
||||
INSERT INTO user VALUES ('$hostname','','','N','N','N','N','N','N','N','N','N','N');
|
||||
END_OF_DATA
|
||||
|
||||
@ -95,13 +111,17 @@
|
||||
if test $? -eq 0
|
||||
then
|
||||
@bindir@/mysqladmin reload
|
||||
echo "mysqld demon is running and mysql grant tables are installed."
|
||||
@@ -197,13 +155,6 @@
|
||||
echo
|
||||
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
|
||||
- echo
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
echo
|
||||
- if test -z "$IN_RPM"
|
||||
- then
|
||||
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
|
||||
- echo "directory:"
|
||||
- echo "cd bench ; run-all-tests"
|
||||
- echo
|
||||
- fi
|
||||
echo "You can also try the mysql command line tool with:"
|
||||
echo "@bindir@/mysql test"
|
||||
echo
|
||||
|
@ -1,8 +1,8 @@
|
||||
--- scripts/safe_mysqld.sh.orig Mon Aug 10 16:31:56 1998
|
||||
+++ scripts/safe_mysqld.sh Tue Sep 1 11:03:21 1998
|
||||
@@ -10,25 +10,9 @@
|
||||
# mysql.server works by first doing a cd to the base directory and from there
|
||||
# executing safe_mysqld
|
||||
--- scripts/safe_mysqld.sh.orig Wed Oct 7 10:30:58 1998
|
||||
+++ scripts/safe_mysqld.sh Wed Oct 21 15:05:52 1998
|
||||
@@ -12,33 +12,9 @@
|
||||
|
||||
trap '' 1 2 3 15 # we shouldn't let anyone kill us
|
||||
|
||||
-# Check if we are starting this relative (for the binary release)
|
||||
-if test -f ./data/mysql/db.frm -a -f ./share/mysql/english/errmsg.sys -a \
|
||||
@ -22,6 +22,14 @@
|
||||
- MY_BASEDIR_VERSION=@prefix@
|
||||
- DATADIR=@localstatedir@
|
||||
- ledir=@libexecdir@
|
||||
- if test ! -x $ledir/mysqld
|
||||
- then
|
||||
- echo "The file $ledir/mysqld doesn't exists or is not executable"
|
||||
- echo "Please do a cd to the mysql installation directory and restart"
|
||||
- echo "this scrift from there as follows:"
|
||||
- echo "./bin/safe_mysqld".
|
||||
- exit 1;
|
||||
- fi
|
||||
-fi
|
||||
+MY_BASEDIR_VERSION=@prefix@
|
||||
+DATADIR=@localstatedir@
|
||||
@ -29,7 +37,7 @@
|
||||
|
||||
pidfile=$DATADIR/`@HOSTNAME@`.pid
|
||||
log=$DATADIR/`@HOSTNAME@`.log
|
||||
@@ -93,33 +77,6 @@
|
||||
@@ -103,33 +79,6 @@
|
||||
if test ! -f $pidfile # This is removed if normal shutdown
|
||||
then
|
||||
break;
|
||||
@ -42,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 $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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user