diff options
author | unknown <monty@donna.mysql.com> | 2000-09-07 04:55:17 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.com> | 2000-09-07 04:55:17 +0300 |
commit | 71132e8fe7c5676e17656aa2d37fbaa721804004 (patch) | |
tree | cd775f59b4803ef23e407df9d47af3ae7b517a13 /support-files | |
parent | 98c8bc2bf933a336a30b661b3fc4b8f4713385fd (diff) | |
download | mariadb-git-71132e8fe7c5676e17656aa2d37fbaa721804004.tar.gz |
Small bug fixes
support-files/mysql.server-sys5.sh:
Change mode to -rw-rw-r--
Docs/manual.texi:
Added information about BeOS, Access 2000, AIX and user links
client/mysql.cc:
Fixed SOURCE to work on windows
client/mysqldump.c:
Strip of white space
configure.in:
Fix for AIX
include/dbug.h:
Assert handling
include/my_pthread.h:
Ia64 needs more thread stack than other processors
include/my_sys.h:
More comments
myisam/mi_key.c:
Fixed wrong key length checks
mysql.proj:
update
mysys/charset.c:
Cleanup
mysys/mf_keycache.c:
Moved SEC_LINK to file that used it
mysys/my_static.h:
Moved SEC_LINK to file that used it
scripts/Makefile.am:
Fix for debian
scripts/mysql_install_db.sh:
Cleanup
sql/gen_lex_hash.cc:
Better values
sql/ha_berkeley.cc:
Fix of reading of unique key
sql/handler.cc:
Fix memory allocation bug
sql/mysqld.cc:
Fix for Ia64
sql/share/charsets/latin1.conf:
Fixed sortorder back to scandinavian.
sql/sql_yacc.yy:
FULL shouldn't be a keyword
support-files/Makefile.am:
Fix for debian
support-files/mysql.server.sh:
Cleanups
Diffstat (limited to 'support-files')
46 files changed, 1522 insertions, 48 deletions
diff --git a/support-files/Makefile.am b/support-files/Makefile.am index 9aaff412990..ef37784c985 100644 --- a/support-files/Makefile.am +++ b/support-files/Makefile.am @@ -53,6 +53,7 @@ SUFFIXES = .sh @RM@ -f $@ $@-t @SED@ \ -e 's!@''bindir''@!$(bindir)!g' \ + -e 's!@''sbindir''@!$(sbindir)!g' \ -e 's!@''scriptdir''@!$(bindir)!g' \ -e 's!@''prefix''@!$(prefix)!g' \ -e 's!@''datadir''@!$(datadir)!g' \ diff --git a/support-files/PKG/INSTALL.sh b/support-files/PKG/INSTALL.sh new file mode 100755 index 00000000000..979f33f3f06 --- /dev/null +++ b/support-files/PKG/INSTALL.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# search & check GNU patch +PATCH="gpatch" +$PATCH --version || PATCH="patch" +$PATCH --version || exit + + +if /usr/bin/test ! -e PKG/stamp-pre ; then + grep VERSION configure | head -1 | sed 's/VERSION=//' > ./PKG/version + touch PKG/stamp-pre +fi + +if /usr/bin/test ! -e PKG/stamp-patch ; then + ${PATCH} -p0 < ./PKG/patch + touch PKG/stamp-patch +fi + +if /usr/bin/test ! -e PKG/stamp-compile ; then +sh ./PKG/compile.sh ujis +touch PKG/stamp-compile + +sh ./PKG/doc.sh ujis + +fi + + +cd PKG +sh mkpkg.sh ujis diff --git a/support-files/PKG/compile.sh b/support-files/PKG/compile.sh new file mode 100644 index 00000000000..5281ccde02d --- /dev/null +++ b/support-files/PKG/compile.sh @@ -0,0 +1,102 @@ +#!/bin/sh +# GNU ncurses + +# search & check GNU make +GMAKE="gmake" +$GMAKE --version || GMAKE="make" +$GMAKE --version || exit + +MAKE=$GMAKE +export MAKE + +CC=gcc +CFLAGS="-O6 -fomit-frame-pointer" +CXX=gcc +CXXFLAGS="-O6 -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" +# LDFLAGS="-static" +LD=gcc + +export CC +export CXX +export LD +export CFLAGS +export CXXFLAGS +# export LDFLAGS +# Solaris don't have libpthread.a. + +if [ "x$1" = "x" ]; then + echo " please set character set" + exit +fi + +CHAR="$1" +case "$1" in + [uU]*) + CHAR=ujis + ;; + [sS]*) + CHAR=sjis + ;; +esac + +#--------------- +P=`pwd` + +if [ -f Makefile ] ; then + ${GMAKE} distclean +fi + +for i in bin sbin include man share/doc/mysql mysql-data +do + /usr/bin/mkdir -p PKG/tmp-${CHAR}/usr/local/${i} +done +/usr/bin/mkdir -p PKG/tmp-${CHAR}/etc/init.d + +#---------------------------- +./configure \ + --prefix=/usr/local \ + --libexecdir=/usr/local/sbin \ + --sbindir=/usr/local/sbin \ + --localstatedir=/usr/local/mysql-data \ + --with-charset=${CHAR} \ + --with-extra-charsets=all \ + --with-raid \ + --without-docs \ + --without-bench \ + --without-perl \ + --with-gcc \ + --with-mysqld-ldflags="-static" \ + --with-client-ldflags="-static" \ + --with-named-curses-libs=/usr/local/lib/libncurses.a \ + --with-mysqld-user=mysql + +# --with-berkeley-db-includes=/usr/local/include/db3 \ +# --with-berkeley-db-libs=/usr/local/lib/libdb3.a \ +# --with-low-memory + +${GMAKE} +${GMAKE} install DESTDIR=${P}/PKG/tmp-${CHAR} + +v=`grep '^SHARED_LIB_VERSION' configure.in | sed 's@SHARED_LIB_VERSION@@' | sed -e 's@=@@' -e 's@:@ @g' | awk '{print $1}'` +km="libmysqlclient.so.$v" +export km + +(cd ${P}/PKG/tmp-${CHAR}/usr/local/lib/mysql/ ; \ + for i in libmysqlclient* ; do \ + if /usr/bin/test ! -L $i ; then \ + mv $i ../ ; ln -sf ../$i ; \ + fi ; \ + done ; \ + k=`ls libmysqlclient.so.*.*.*` ; \ + cd .. ; \ + if /usr/bin/test ! -z libmysqlclient.so ; then \ + ln -sf $k libmysqlclient.so ; + fi ; \ + if /usr/bin/test ! -z $km ; then \ + ln -sf $k $km ; + fi ; \ +) + +# +(cd ${P}/PKG/tmp-${CHAR}/usr/local/bin ; strip * ) +(cd ${P}/PKG/tmp-${CHAR}/usr/local/sbin ; strip * ) diff --git a/support-files/PKG/doc.sh b/support-files/PKG/doc.sh new file mode 100644 index 00000000000..9ef17166a6f --- /dev/null +++ b/support-files/PKG/doc.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +CHAR="$1" +case "$1" in + [uU]*) + CHAR=ujis + ;; + [sS]*) + CHAR=sjis + ;; +esac + +cp -r Docs/* PKG/tmp-${CHAR}/usr/local/share/doc/mysql/ +cp INSTALL-SOURCE* COPYING* MIRRORS README* PKG/tmp-${CHAR}/usr/local/share/doc/mysql/ + +cd PKG/tmp-${CHAR}/usr/local/share/doc/mysql/ +gzip *.txt *.texi *.info *.pdf diff --git a/support-files/PKG/mkpkg.sh b/support-files/PKG/mkpkg.sh new file mode 100644 index 00000000000..5a38113138d --- /dev/null +++ b/support-files/PKG/mkpkg.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +if [ "x$1" = "x" ]; then + echo " please set charset" + exit +fi + +CHAR="$1" +case "$1" in + [uU]*) + CHAR=ujis ; CH=uj + ;; + [sS]*) + CHAR=sjis ; CH=sj + ;; +esac + +#------------------- +DIR=`pwd` + +VERSION=`cat version` + +T=`uname -p` + +sed -e "s/@CHAR1@/${CH}/" \ + -e "s/@CHAR2@/${CHAR}/" \ + -e "s/@VERSION@/${VERSION}/" \ + -e "s/@TYPE@/${T}/" \ + pkginfo.ini > pkginfo.${CHAR} + +sed -e "s,@DIR@,${DIR},g" \ + -e "s,@PKGINFO@,${DIR}/pkginfo.${CHAR}," \ + prototype.ini > prototype.${CHAR} + +INIT="tmp-${CHAR}/etc/init.d/mysql" +cp ../support-files/mysql.server $INIT +chmod 755 $INIT + +(cd tmp-${CHAR}; \ +chown root etc usr ; \ +chgrp sys etc usr ;\ +chmod 755 usr etc; \ +chgrp sys etc/init.d ; \ +chmod 755 etc/init.d ; \ +find . -print|pkgproto >> ../prototype.${CHAR}) + +pkgmk -o -f prototype.${CHAR} -r ${DIR}/tmp-${CHAR} diff --git a/support-files/PKG/patch b/support-files/PKG/patch new file mode 100644 index 00000000000..373eb8518c6 --- /dev/null +++ b/support-files/PKG/patch @@ -0,0 +1,96 @@ +--- scripts/safe_mysqld.sh.orig Sat Sep 2 17:28:26 2000 ++++ scripts/safe_mysqld.sh Sat Sep 2 17:31:19 2000 +@@ -89,10 +89,10 @@ + + + NOHUP_NICENESS=`nohup nice` +-if test $? -ne 0 || test x"$NOHUP_NICENESS" = x0 || test ! nice --1 echo foo > /dev/null 2>&1; then ++if test $? -ne 0 || test x"$NOHUP_NICENESS" = x0 || test ! nice -1 echo foo > /dev/null 2>&1; then + NOHUP_NICENESS="nohup" + else +- NOHUP_NICENESS="nice --$NOHUP_NICENESS nohup" ++ NOHUP_NICENESS="nice -$NOHUP_NICENESS nohup" + fi + + export MYSQL_UNIX_PORT +@@ -163,7 +163,8 @@ + # The only thing is ps x => redhat 5 gives warnings when using ps -x. + # kill -9 is used or the process won't react on the kill. + numofproces=`ps xa | grep -v "grep" | grep -c $ledir/mysqld` +- echo -e "\nNumber of processes running now: $numofproces" | tee -a $err_log ++ echo | tee -a $err_log ++ echo "Number of processes running now: $numofproces" | tee -a $err_log + I=1 + while test "$I" -le "$numofproces" + do +@@ -185,4 +186,6 @@ + echo "`date +'%y%m%d %H:%M:%S mysqld restarted'`" | tee -a $err_log + done + +-echo -e "`date +'%y%m%d %H:%M:%S mysqld ended\n'`" | tee -a $err_log ++echo | tee -a $err_log ++echo "`date +'%y%m%d %H:%M:%S mysqld ended'`" | tee -a $err_log ++echo | tee -a $err_log +--- support-files/mysql.server.sh.orig Sat Sep 2 17:35:56 2000 ++++ support-files/mysql.server.sh Sat Sep 2 17:36:35 2000 +@@ -23,6 +23,9 @@ + mysql_daemon_user=@MYSQLD_USER@ + export PATH + ++## your options... ++OPT="" ++ + mode=$1 + + if test -w / # determine if we should look at the root config file +@@ -82,8 +85,9 @@ + then + # Give extra arguments to mysqld with the my.cnf file. This script may + # be overwritten at next upgrade. +- $bindir/safe_mysqld \ +- --user=$mysql_daemon_user --datadir=$datadir --pid-file=$pid_file --log=$log_file & ++ $bindir/safe_mysqld $OPT \ ++ --user=$mysql_daemon_user --datadir=$datadir --pid-file=$pid_file & ++# --log=$log_file & + else + echo "Can't execute $bindir/safe_mysqld" + fi +--- configure.orig Sat Sep 2 17:54:03 2000 ++++ configure Sat Sep 2 17:54:18 2000 +@@ -202,7 +202,7 @@ + --with-charset=CHARSET use CHARSET by default (one of: big5 cp1251 cp1257 + croat czech danish dec8 dos estonia euc_kr gb2312 gbk + german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr +- latin1 latin2 swe7 usa7 win1250 win1251 win1251ukr ++ latin1 latin2 swe7 usa7 win1250 win1251ukr + ujis sjis tis620; default is latin1)" + ac_help="$ac_help + --with-extra-charsets=cs1,cs2 +@@ -8843,7 +8843,7 @@ + + # Choose a character set + +-CHARSETS_AVAILABLE="big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1 latin2 swe7 usa7 win1250 win1251 win1251ukr ujis sjis tis620" ++CHARSETS_AVAILABLE="big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1 latin2 swe7 usa7 win1250 win1251ukr ujis sjis tis620" + DEFAULT_CHARSET=latin1 + + # Check whether --with-charset or --without-charset was given. +--- configure.in.orig Sat Sep 2 17:53:57 2000 ++++ configure.in Sat Sep 2 17:54:36 2000 +@@ -1517,14 +1517,14 @@ + dnl or other special handling, you must also create + dnl strings/ctype-$charset_name.c + +-CHARSETS_AVAILABLE="big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1 latin2 swe7 usa7 win1250 win1251 win1251ukr ujis sjis tis620" ++CHARSETS_AVAILABLE="big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1 latin2 swe7 usa7 win1250 win1251ukr ujis sjis tis620" + DEFAULT_CHARSET=latin1 + + AC_ARG_WITH(charset, + [ --with-charset=CHARSET use CHARSET by default (one of: big5 cp1251 cp1257 + croat czech danish dec8 dos estonia euc_kr gb2312 gbk + german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr +- latin1 latin2 swe7 usa7 win1250 win1251 win1251ukr ++ latin1 latin2 swe7 usa7 win1250 win1251ukr + ujis sjis tis620; default is latin1)], + [default_charset="$withval"], + [default_charset="$DEFAULT_CHARSET"]) diff --git a/support-files/PKG/pkginfo.ini b/support-files/PKG/pkginfo.ini new file mode 100644 index 00000000000..13b8b6adb09 --- /dev/null +++ b/support-files/PKG/pkginfo.ini @@ -0,0 +1,8 @@ +PKG=MySQL +NAME=MySQL +ARCH=@TYPE@ +VERSION=@VERSION@ +CATEGORY=utility +VENDOR=TcX DataKonsult AB, Detron HB and MySQL AB +BASEDIR=/ +CLASSES=none diff --git a/support-files/PKG/postinstall b/support-files/PKG/postinstall new file mode 100644 index 00000000000..2e199b9af82 --- /dev/null +++ b/support-files/PKG/postinstall @@ -0,0 +1,30 @@ +#!/bin/sh + +PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/ccs/bin +LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib +export PATH +export LD_LIBRARY_PATH + +D0="/usr/local/mysql-data" +D="${D0}/mysql" + +DOFIX=0 + +if /usr/bin/test ! -f ${D}/tables_priv.frm -a -d ${D} ; then + DOFIX=1 +fi + +if [ ! -d ${D} ]; then + DOFIX=2 + /usr/local/bin/mysql_install_db +fi + + chown -R mysql $D0 + chgrp -R mysql $D0 + +if /usr/bin/test $DOFIX -eq 1 ; then + /etc/init.d/mysql start + /usr/local/bin/mysql_fix_privilege_tables +else + /etc/init.d/mysql start || true +fi diff --git a/support-files/PKG/preinstall b/support-files/PKG/preinstall new file mode 100644 index 00000000000..c1175561a99 --- /dev/null +++ b/support-files/PKG/preinstall @@ -0,0 +1,21 @@ +#!/bin/sh + +PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/ccs/bin +LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib +export PATH +export LD_LIBRARY_PATH + +if /usr/bin/test -x /etc/init.d/mysql ; then + /etc/init.d/mysql stop || true +fi + +#----- user check +P=`grep mysql /etc/passwd` +G=`grep mysql /etc/group` + +if /usr/bin/test "x$G" = "x" ; then + /usr/sbin/groupadd mysql +fi +if /usr/bin/test "x$P" = "x" ; then + /usr/sbin/useradd -g mysql -d /usr/local/mysql-data -s /bin/false mysql +fi diff --git a/support-files/PKG/preremove b/support-files/PKG/preremove new file mode 100644 index 00000000000..a89648431c1 --- /dev/null +++ b/support-files/PKG/preremove @@ -0,0 +1,25 @@ +#!/bin/sh + +PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/ccs/bin +LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib +export PATH +export LD_LIBRARY_PATH + +pid=`/usr/bin/ps -e | /usr/bin/grep mysqld | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` +[ "$pid" != "" ] && /usr/local/bin/mysqladmin shutdown + +#--- +#/usr/ucb/echo -n "Remove DATA Directory (All data expire) [Y/N]? " +#read I +I=No + +case "$I" in +Y*|y*) + /usr/ucb/echo -n "Removing MySQL DATA ALL..." + rm -rf /usr/local/mysql-data + echo "done." + ;; +*) + echo "not purge DATA directory" + ;; +esac; diff --git a/support-files/PKG/prototype.ini b/support-files/PKG/prototype.ini new file mode 100644 index 00000000000..ca88bb67a90 --- /dev/null +++ b/support-files/PKG/prototype.ini @@ -0,0 +1,4 @@ +i pkginfo=@PKGINFO@ +i postinstall=@DIR@/postinstall +i preinstall=@DIR@/preinstall +i preremove=@DIR@/preremove diff --git a/support-files/PKG/version b/support-files/PKG/version new file mode 100644 index 00000000000..f9dc296b71b --- /dev/null +++ b/support-files/PKG/version @@ -0,0 +1 @@ +3.23.23-beta diff --git a/support-files/debian/README.debian b/support-files/debian/README.debian new file mode 100644 index 00000000000..aa6dbaac12e --- /dev/null +++ b/support-files/debian/README.debian @@ -0,0 +1,38 @@ +mysql for DEBIAN +---------------------- + +Comments regarding the Package + +* about patch files + if you want to make new patch, + write patch file and put it into debian/patches/. + debian/rules do patch debian/patches/* automatically. + +* about server packages + I use Debian alternative system, to switch next 3 type MySQL server. + + mysql-server : + this is static linked MySQL server(/usr/sbin/mysqld-static) and share/mysql/ files. + mysql-server-shared: + this is dynamic linked MySQL server only. (/usr/sbin/mysqld-shared) + mysql-server-debug: + --with-debug flag. mysqld only. (/usr/sbin/mysqld-debug) + +* about charset + I build MySQL server --with-extra-charsets=all + +* about location + server programs ...... /usr/sbin/ + share files .......... /usr/share/mysql/ + client programs ...... /usr/bin/ + MySQL data directory . /var/mysql/data/ + benchmark directory .. /var/mysql/sql-bench/ + socket file ......... /tmp/mysql.sock + include files ........ /usr/include/mysql/ + libraries ........... /usr/lib/ , /usr/lib/mysql/ + put libmysqlclient* into /usr/lib/ , + others, put /usr/lib/mysql/ . + + +takeshi@SoftAgency.co.jp + diff --git a/support-files/debian/changelog b/support-files/debian/changelog new file mode 100644 index 00000000000..ee32ceb4e74 --- /dev/null +++ b/support-files/debian/changelog @@ -0,0 +1,410 @@ +mysql (3.23.23-1potato.2) unstable; urgency=low + + * move patch into debian/patches/ + if you want to make new patch, + write patch file and put it into debian/patches/. + debian/rules do patch debian/patches/* automatically. + * change debian/rules , debian/move + + -- takeshi <takeshi@softagency.co.jp> Tue, 5 Sep 2000 05:07:35 +0900 + +mysql (3.23.23-1potato) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Sat, 2 Sep 2000 05:07:35 +0900 + +mysql (3.23.22-1potato) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Tue, 1 Aug 2000 05:07:35 +0900 + +mysql (3.23.21-1potato.2) unstable; urgency=low + + * MYI patch + * /usr/lib/mysql/libmysqlclient.a -> /usr/lib/ + * libmysqlclient patch + * fix mysql-dev conflicts libmysqlclient6 + + -- takeshi <takeshi@softagency.co.jp> Sun, 30 Jul 2000 05:07:35 +0900 + +mysql (3.23.21-1potato.1) unstable; urgency=low + + * MYI patch + * /usr/lib/mysql/libmysqlclient.a -> /usr/lib/ + + -- takeshi <takeshi@softagency.co.jp> Tue, 25 Jul 2000 05:07:35 +0900 + +mysql (3.23.21-1potato) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Thr, 6 Jul 2000 05:07:35 +0900 + +mysql (3.23.20-1potato) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Thr, 29 Jun 2000 05:07:35 +0900 + +mysql (3.23.19-1potato) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Thr, 29 Jun 2000 05:07:35 +0900 + +mysql (3.23.18-1) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Tue, 13 May 2000 05:07:35 +0900 + +mysql (3.23.17-1) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Wed, 31 May 2000 05:07:35 +0900 + +mysql (3.23.16-1) unstable; urgency=low + + * new + * branch static mysqld & shared mysqld + * no need ujis,sjis branch. 3.23 support dynamic charset + * add conf file /etc/my.cnf + + -- takeshi <takeshi@softagency.co.jp> Wed, 31 May 2000 05:07:35 +0900 + +mysql (3.22.32-2) unstable; urgency=low + + * fix mysqldump + * fix sjis + + -- takeshi <takeshi@softagency.co.jp> Thr, 6 Apr 2000 05:07:35 +0900 + +mysql (3.22.32-1) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Tue, 15 Feb 2000 05:07:35 +0900 + +mysql (3.22.30-2) unstable; urgency=low + + * fix perl path + * with system readline + + -- takeshi <takeshi@softagency.co.jp> Tue, 8 Feb 2000 05:07:35 +0900 + +mysql (3.22.30-1) unstable; urgency=low + + * new + * OOP! debian remove libreadlineg2-dev! + --without-readline => --with-readline + + -- takeshi <takeshi@softagency.co.jp> Fri, 14 Jan 2000 05:07:35 +0900 + +mysql (3.22.29-1) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Mon, 3 Jan 2000 05:07:35 +0900 + +mysql (3.22.29-0bo) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Mon, 3 Jan 2000 05:07:35 +0900 + +mysql (3.22.27-0bo.2) unstable; urgency=low + + * with linuxthread-0.71 + + -- takeshi <takeshi@softagency.co.jp> Thr, 9 Dec 1999 05:07:35 +0900 + +mysql (3.22.27-0bo.1) unstable; urgency=low + + * fix: mysqlaccess incorrect path + + -- takeshi <takeshi@softagency.co.jp> Sat, 13 Nov 1999 05:07:35 +0900 + +mysql (3.22.27-0bo) unstable; urgency=low + + * sql/sql_parse.cc patch + + -- takeshi <takeshi@softagency.co.jp> Wed, 13 Oct 1999 05:07:35 +0900 + +mysql (3.22.26a-0bo.1) unstable; urgency=low + + * BLOB SELECT DISTINCT patch + * all static linked + * fix: @sbindir@ was not changed + * mysql_find_rows -> /usr/bin/ + + -- takeshi <takeshi@softagency.co.jp> Mon, 20 Sep 1999 05:07:35 +0900 + +mysql (3.22.26a-0bo) unstable; urgency=low + + * new upstream + * fix incorrect path: init.d/mysql (= mysql.server.sh), msql2mysql, mysql_install_db + * change daemon user -> mysql + + -- takeshi <takeshi@softagency.co.jp> Mon, 13 Sep 1999 05:07:35 +0900 + +mysql (3.22.25-0bo) unstable; urgency=low + + * new + * change : libmysql6 -> libmysqlclient6 + + -- takeshi <takeshi@softagency.co.jp> Tue, 3 Aug 1999 05:07:35 +0900 + +mysql (3.22.24-0bo) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Mon, 25 Jul 1999 05:07:35 +0900 + +mysql (3.22.23b-0bo.1) unstable; urgency=low + + * new + * gcc patch + sql_load patch + + -- takeshi <takeshi@softagency.co.jp> Thr, 24 Jun 1999 05:07:35 +0900 + +mysql (3.22.23b-0bo) unstable; urgency=low + + * new + * gcc patch + + -- takeshi <takeshi@softagency.co.jp> Tue, 15 Jun 1999 05:07:35 +0900 + +mysql (3.22.22-0bo) unstable; urgency=low + + * new + + -- takeshi <takeshi@softagency.co.jp> Mon, 3 May 1999 05:07:35 +0900 + +mysql (3.22.21-0bo.1) unstable; urgency=low + + * re-compile + + -- takeshi <takeshi@softagency.co.jp> Fri, 30 Apr 1999 05:07:35 +0900 + +mysql (3.22.21-0bo) unstable; urgency=low + + * New up stream + + -- takeshi <takeshi@softagency.co.jp> Tue, 6 Apr 1999 05:07:35 +0900 + +mysql (3.22.20a-0bo) unstable; urgency=low + + * New up stream + + -- takeshi <takeshi@softagency.co.jp> Fri, 19 Mar 1999 05:07:35 +0900 + +mysql (3.22.19a-0bo) unstable; urgency=low + + * New up stream + + -- takeshi <takeshi@softagency.co.jp> Wed, 3 Mar 1999 05:07:35 +0900 + +mysql (3.22.18-0bo) unstable; urgency=low + + * New up stream + + -- takeshi <takeshi@softagency.co.jp> Sun, 28 Feb 1999 05:07:35 +0900 + +mysql (3.22.16a-gamma-0bo.1) unstable; urgency=low + + * fix libmysqlclient5 -> libmysqlclient6 + + -- takeshi <takeshi@softagency.co.jp> Thr, 11 Feb 1999 05:07:35 +0900 + +mysql (3.22.16a-gamma-0bo) unstable; urgency=low + + * new upstream + + -- takeshi <takeshi@softagency.co.jp> Sun, 7 Feb 1999 05:07:35 +0900 + +mysql (3.22.15-gamma-0bo) unstable; urgency=low + + * new upstream + + -- takeshi <takeshi@softagency.co.jp> Fri, 29 Jan 1999 05:07:35 +0900 + +mysql (3.22.14b-gamma-0bo) unstable; urgency=low + + * new upstream + * apply mb problem patch + + -- takeshi <takeshi@softagency.co.jp> Tue, 26 Jan 1999 05:07:35 +0900 + +mysql (3.22.14-gamma-0bo.1) unstable; urgency=low + + * egcs -all-static + + -- takeshi <takeshi@softagency.co.jp> Sun, 3 Jan 1999 05:07:35 +0900 + +mysql (3.22.14-gamma-0bo) unstable; urgency=low + + * New upstream + + -- takeshi <takeshi@softagency.co.jp> Sun, 3 Jan 1999 05:07:35 +0900 + +mysql (3.22.13-beta-0bo) unstable; urgency=low + + * New upstream + + -- takeshi <takeshi@softagency.co.jp> Fri, 11 Nov 1998 00:29:14 +0900 + +mysql (3.22.12-beta-0bo) unstable; urgency=low + + * New upstream + + -- takeshi <takeshi@softagency.co.jp> Fri, 11 Nov 1998 00:29:14 +0900 + +mysql (3.22.11-beta-0bo) unstable; urgency=low + + * New upstream + * !!! CHANGE PACKAGE NAME !!! + libmysql5 <- only libmysqlclinet.so.5 + mysql-client <- client commands + mysql-server <- server + mysql-dev <- .h & .a + mysql-doc <- Docs + mysql-bench <- benchmark suite. + + -- takeshi <takeshi@softagency.co.jp> Wed, 25 Nov 1998 15:03:45 +0900 + +mysql (3.22.10-beta-0bo.2) unstable; urgency=low + + * fix debian/rules , debian/*.dirs + * gcc-2.7.2.3, g++-2.7.2.1 compiled + * remove /usr/bin/mysql-sub/ + * rename /usr/bin/mysql-sub/replace -> /usr/bin/mysql_replace + * mv mysql-base:/usr/bin/mysql-sub/{perror,resolveip} -> mysql-server:/usr/bin/ + perror -> mysql_perror + resolveip-> mysql_resolveip + * mv add_*, make_binary_distribution -> /usr/share/mysql/ + * add japanese errmsg (/usr/share/mysql/japanese) + + -- takeshi <takeshi@softagency.co.jp> Fri, 13 Nov 1998 15:03:45 +0900 + +mysql (3.22.10-beta-0bo.1) unstable; urgency=low + + * fix debian/rules + * egcs compiled + * link libstdc++2.8.a (mysqld), so, you don't need libstdc++2.8 for running mysqld. + (not client programs.) + + -- takeshi <takeshi@softagency.co.jp> Wed, 11 Nov 1998 15:03:45 +0900 + +mysql (3.22.10-beta-0bo) unstable; urgency=low + + * New upstream + * egcs compiled + * fix: mysql-base-{char}/usr/bin/comp_err -> mysql-server-{char}/usr/sbin/comp_err + + -- takeshi <takeshi@softagency.co.jp> Thr, 5 Nov 1998 15:03:45 +0900 + +mysql (3.22.9-beta-0bo.1) unstable; urgency=low + + * new patch to sql_string.cc ('%' bug) + + -- takeshi <takeshi@softagency.co.jp> Tue, 27 Oct 1998 15:03:45 +0900 + +mysql (3.22.9-beta-0bo) unstable; urgency=low + + * fix cflags + * fix diff files + * fix & change categorize of client or server + mysql-server: + /usr/sbin/mysql_install_db + safe_mysqld mysqld + isamchk isamlog + + mysql-base: + /usr/bin/ + comp_err msql2mysql mysql mysql_zap + mysqlaccess mysqladmin mysqlbug + mysqldump mysqlimport mysqlshow + + /usr/bin/mysql-sub/ + add_file_priv add_func_table + add_long_password make_binary_distribution + perror replace resolveip + + * patch to sql_string.cc ('%' bug) + + -- takeshi <takeshi@softagency.co.jp> Wed, 7 Oct 1998 15:03:45 +0900 + +mysql (3.22.8-beta-0bo) unstable; urgency=low + + * New up stream + + -- takeshi <takeshi@softagency.co.jp> Wed, 7 Oct 1998 15:03:45 +0900 + +mysql (3.22.7b-0bo.1) unstable; urgency=low + + * left join patch + + -- takeshi <takeshi@softagency.co.jp> Thr, 24 Sep 1998 15:03:45 +0900 + +mysql (3.22.7b-0bo) unstable; urgency=low + + * New upstream version (bo) + * mb patch + * *.a -> /usr/lib/mysql/ + * add_file_priv add_func_table make_binary_distribution + add_long_password perror replace resolveip + -> /usr/bin/mysql-sub/ + * mysqld, safe_mysqld, mysql_install_db -> mysql-server /usr/sbin/ + * add '-lm -lz -ldl' when building libmysqlclient.so.4.0.0 + + -- takeshi <takeshi@softagency.co.jp> Sat, 15 Aug 1998 15:03:45 +0900 + +mysql (3.22.4a-0bo) unstable; urgency=low + + * New upstream version (bo) + * use system libreadline + + -- takeshi <takeshi@softagency.co.jp> Sat, 15 Aug 1998 15:03:45 +0900 + +mysql (3.21.33-0bo) unstable; urgency=low + + * New upstream version + + -- takeshi <takeshi@softagency.co.jp> Wed, 22 Jul 1998 12:51:45 +0900 + +mysql (3.21.30-1) unstable; urgency=low + + * New upstream version + * fix conffile setting + + -- takeshi <takeshi@softagency.co.jp> Tue, 12 May 1998 20:24:45 +0900 + +mysql (3.21.29.gamma-2) unstable; urgency=low + + * charset=ujis,sjis packages + * branch mysql-base-* (lib*.so) + * /usr/local/mysql/lib/mysql/lib* -> /usr/lib/ + * /usr/local/mysql/include -> /usr/include + * /usr/local/mysql/info -> /usr/info + * /usr/local/mysql/man -> /usr/man + * /usr/local/mysql/share -> /usr/share + * /usr/local/mysql/bin -> /usr/bin + * /usr/local/mysql/libexec -> /usr/sbin + * /usr/local/mysql/var -> /var/mysql/data + * /usr/local/mysql/sql-bench -> /var/mysql/sql-bench + + -- takeshi <takeshi@softagency.co.jp> Fri, 8 May 1998 00:04:45 +0900 + +mysql (3.21.29.gamma-1) unstable; urgency=low + + * Initial Release. + + -- takeshi <takeshi@softagency.co.jp> Sat, 2 May 1998 03:42:24 +0900 + +Local variables: +mode: debian-changelog +add-log-mailing-address: "takeshi@softagency.co.jp" +End: diff --git a/support-files/debian/control b/support-files/debian/control new file mode 100644 index 00000000000..acd83518412 --- /dev/null +++ b/support-files/debian/control @@ -0,0 +1,71 @@ +Source: mysql +Section: devel +Priority: extra +Maintainer: takeshi <takeshi@softagency.co.jp> +Standards-Version: 2.1.2.2 + +Package: mysql +Architecture: all +Description: mysql + Missing + +Package: mysql-doc +Architecture: all +Description: mysql Documentation (html) + MySQL Doc. + +Package: libmysqlclient9 +Architecture: any +Provides: libmysqlclient9 +Description: libmysqlclient.so.9 + libmysqlclient.so.9 + +Package: mysql-client +Architecture: any +Depends: ${shlibs:Depends} +Section: devel +Priority: extra +Conflicts: mysql-client-ujis, mysql-client-sjis +Replaces: mysql-base (<< 3.22.11), mysql-base-ujis (<< 3.22.11), mysql-base-sjis (<< 3.22.11), mysql-client-ujis, mysql-client-sjis +Provides: mysql-client +Description: mysql clients. + MySQL clients programs. + +Package: mysql-server +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: mysql-server-sjis, mysql-server-ujis, mysql-server (<< 3.23.0) +Replaces: mysql-server-sjis, mysql-base (<< 3.22.11), mysql-base-ujis (<< 3.22.11), mysql-base-sjis (<< 3.22.11), mysql-server-sjis, mysql-server-ujis, mysql-server (<< 3.23.0) +Provides: mysql-server +Description: MySQL server (static linked) + MySQL server. static linked. + +Package: mysql-server-shared +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: mysql-server-sjis, mysql-server-ujis, mysql-server (<< 3.23.0) +Replaces: mysql-server-sjis, mysql-base (<< 3.22.11), mysql-base-ujis (<< 3.22.11), mysql-base-sjis (<< 3.22.11), mysql-server-sjis, mysql-server-ujis, mysql-server (<< 3.23.0) +Description: MySQL server (dynamic linked) + MySQL server. dynamic linked. + +Package: mysql-server-debug +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: mysql-server-sjis, mysql-server-ujis, mysql-server (<< 3.23.0) +Replaces: mysql-server-sjis, mysql-base (<< 3.22.11), mysql-base-ujis (<< 3.22.11), mysql-base-sjis (<< 3.22.11), mysql-server-sjis, mysql-server-ujis, mysql-server (<< 3.23.0) +Description: MySQL server debug + MySQL server. debug + +Package: mysql-dev +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: mysql-dev-sjis, mysql-dev-ujis +Replaces: mysql-dev-sjis, mysql-dev-ujis, libmysqlclient6-ujis, libmysqlclient6-sjis +Provides: mysql-dev +Description: MySQL develop suite + MySQL develop. + +Package: mysql-bench +Architecture: all +Description: mysql benchmark suite. + MySQL sql-bench files. diff --git a/support-files/debian/copyright b/support-files/debian/copyright new file mode 100644 index 00000000000..3e97dbf8358 --- /dev/null +++ b/support-files/debian/copyright @@ -0,0 +1,8 @@ +This package was debianized by takeshi@softagency.co.jp on +Sat, 2 May 1998 03:42:24 +0900. + +It was downloaded from +http://www.mysql.com/ + +Copyright: +GPL diff --git a/support-files/debian/gomi b/support-files/debian/gomi new file mode 100644 index 00000000000..29afaf50a18 --- /dev/null +++ b/support-files/debian/gomi @@ -0,0 +1,25 @@ +Docs/Makefile +strings/Makefile +dbug/Makefile +mysys/Makefile +extra/Makefile +regex/Makefile +isam/Makefile +heap/Makefile +merge/Makefile +sql/Makefile +sql/share/Makefile +support-files/binary-configure +support-files/my-example.cnf +support-files/mysql-log-rotate +scripts/add_func_table +scripts/mysql_setpermisson +scripts/mysqlbug +scripts/mysqlhotcopy +client/my_static.h +client/mysys_priv.h +include/my_config.h +sql/lex_hash.h +sql-bench/Makefile +scripts/mysql_config +libmysql_r/Makefile diff --git a/support-files/debian/libmysqlclient9.dirs b/support-files/debian/libmysqlclient9.dirs new file mode 100644 index 00000000000..68457717bd8 --- /dev/null +++ b/support-files/debian/libmysqlclient9.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/support-files/debian/libmysqlclient9.postinst b/support-files/debian/libmysqlclient9.postinst new file mode 100644 index 00000000000..2d1871b1df6 --- /dev/null +++ b/support-files/debian/libmysqlclient9.postinst @@ -0,0 +1,3 @@ +#!/bin/sh + +ldconfig diff --git a/support-files/debian/move b/support-files/debian/move new file mode 100644 index 00000000000..e134c055fe9 --- /dev/null +++ b/support-files/debian/move @@ -0,0 +1,72 @@ +#!/bin/sh + +STAMPFILE="debian/stamp-move" + +if [ -e $STAMPFILE ]; then + exit +fi + +#---------- +CLIENT1="msql2mysql mysql mysql_convert_table_format mysql_find_rows mysql_fix_privilege_tables mysql_setpermission mysql_zap mysqlaccess mysqladmin mysqlbug mysqldump mysqlhotcopy mysqlimport mysqlshow" + +# CLIENT2="add_file_priv add_func_table add_long_password make_binary_distribution" + + + +P=`pwd` + +#---------- +for CHAR in build +do + #----- + cp -Rpd debian/${CHAR}/usr debian/mysql-server/ + cp -Rpd debian/${CHAR}-shared/usr/lib/mysql/libmysqlclient.so.* debian/libmysqlclient9/usr/lib/ + + #----- mysql-server-shared --- + cp -Rpd debian/${CHAR}-shared/usr/sbin/mysqld debian/mysql-server-shared/usr/sbin/mysqld-shared + + #----- mysql-server-debug --- + cp -Rpd debian/${CHAR}-debug/usr/sbin/mysqld debian/mysql-server-debug/usr/sbin/mysqld-debug + + #----- mysql-server --- + mv debian/mysql-server/usr/sbin/mysqld debian/mysql-server/usr/sbin/mysqld-static + + #----- mysql-client ---- + cd ${P}/debian/mysql-server/usr/bin/ && mv $CLIENT1 ../../../mysql-client/usr/bin/ + cd ${P} + + mv -f debian/mysql-server/usr/{man,info} debian/mysql-client/usr/share/ + mv debian/mysql-server/usr/share/mysql/my-example.cnf debian/mysql-client/usr/share/mysql/ + mv -f debian/mysql-server/usr/bin/replace debian/mysql-client/usr/bin/mysql_replace + + #----- mysql-server --- + mv debian/mysql-server/usr/bin/* debian/mysql-server/usr/sbin/ + mv debian/mysql-server/usr/sbin/my_print_defaults debian/mysql-server/usr/bin/ + mv debian/mysql-server/usr/sbin/comp_err debian/mysql-server/usr/bin/ + mv debian/mysql-server/usr/sbin/perror debian/mysql-server/usr/bin/mysql_perror + mv debian/mysql-server/usr/sbin/resolveip debian/mysql-server/usr/bin/mysql_resolveip + + #----- mysql-dev ---- + cp -Rpd debian/${CHAR}-shared/usr/lib/mysql/libmysqlclient.so debian/mysql-dev/usr/lib/ + mv debian/mysql-server/usr/include debian/mysql-dev/usr/ + mv debian/mysql-server/usr/lib/mysql debian/mysql-dev/usr/lib/ + + mv debian/mysql-dev/usr/lib/mysql/libmysqlclient.a debian/mysql-dev/usr/lib/ + (cd debian/mysql-dev/usr/lib/mysql ; ln -sf "../libmysqlclient.a" ) + + #----- + cp debian/README.debian debian/copyright debian/changelog \ + debian/mysql-client/usr/share/doc/mysql/ + +done + + +#################### +### doc +cp -r COPYING* MIRRORS README* Docs/* debian/mysql-doc/usr/share/doc/mysql/ + +#### sql-bench +mv debian/mysql-server/usr/sql-bench \ + debian/mysql-bench/var/mysql/ + +touch $STAMPFILE diff --git a/support-files/debian/my.cnf b/support-files/debian/my.cnf new file mode 100644 index 00000000000..0c9856ec5a7 --- /dev/null +++ b/support-files/debian/my.cnf @@ -0,0 +1,42 @@ +# Example mysql config file. +# You can copy this to one of: +# /etc/my.cnf to set global options, +# mysql-data-dir/my.cnf to set server-specific options (in this +# installation this directory is @localstatedir@) or +# ~/.my.cnf to set user-specific options. +# +# One can use all long options that the program supports. +# Run the program with --help to get a list of available options + +# This will be passed to all mysql clients +[client] +#password = my_password +#port = 3306 +#socket = /tmp/mysql.sock + +# Here is entries for some specific programs +# The following values assume you have at least 32M ram + +# The MySQL server +[mysqld] +default-character-set = ujis +#port = 3306 +#socket = /tmp/mysql.sock +#skip-locking +#set-variable = key_buffer=16M +#set-variable = max_allowed_packet=1M +#set-variable = thread_stack=128K +## Start logging +#log + +[mysqldump] +default-character-set = ujis +#quick +#set-variable = max_allowed_packet=16M + +[mysql] +default-character-set = ujis +#no-auto-rehash + +[isamchk] +#set-variable = key_buffer=16M diff --git a/support-files/debian/mysql-bench.dirs b/support-files/debian/mysql-bench.dirs new file mode 100644 index 00000000000..0ba3faa84f9 --- /dev/null +++ b/support-files/debian/mysql-bench.dirs @@ -0,0 +1 @@ +var/mysql diff --git a/support-files/debian/mysql-client.dirs b/support-files/debian/mysql-client.dirs new file mode 100644 index 00000000000..0ade9d76f65 --- /dev/null +++ b/support-files/debian/mysql-client.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/mysql +usr/share/doc/mysql diff --git a/support-files/debian/mysql-dev.dirs b/support-files/debian/mysql-dev.dirs new file mode 100644 index 00000000000..68457717bd8 --- /dev/null +++ b/support-files/debian/mysql-dev.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/support-files/debian/mysql-doc.dirs b/support-files/debian/mysql-doc.dirs new file mode 100644 index 00000000000..b8aa0f769f9 --- /dev/null +++ b/support-files/debian/mysql-doc.dirs @@ -0,0 +1 @@ +usr/share/doc/mysql diff --git a/support-files/debian/mysql-server-debug.dirs b/support-files/debian/mysql-server-debug.dirs new file mode 100644 index 00000000000..236670a2d0f --- /dev/null +++ b/support-files/debian/mysql-server-debug.dirs @@ -0,0 +1 @@ +usr/sbin diff --git a/support-files/debian/mysql-server-debug.postinst b/support-files/debian/mysql-server-debug.postinst new file mode 100644 index 00000000000..d48c21be9a7 --- /dev/null +++ b/support-files/debian/mysql-server-debug.postinst @@ -0,0 +1,3 @@ +#!/bin/sh + +update-alternatives --install /usr/sbin/mysqld mysqld /usr/sbin/mysqld-debug 20 diff --git a/support-files/debian/mysql-server-debug.postrm b/support-files/debian/mysql-server-debug.postrm new file mode 100644 index 00000000000..25c7aadf494 --- /dev/null +++ b/support-files/debian/mysql-server-debug.postrm @@ -0,0 +1,3 @@ +#!/bin/sh + +update-alternatives --auto mysqld diff --git a/support-files/debian/mysql-server-shared.dirs b/support-files/debian/mysql-server-shared.dirs new file mode 100644 index 00000000000..236670a2d0f --- /dev/null +++ b/support-files/debian/mysql-server-shared.dirs @@ -0,0 +1 @@ +usr/sbin diff --git a/support-files/debian/mysql-server-shared.postinst b/support-files/debian/mysql-server-shared.postinst new file mode 100644 index 00000000000..00c7248327a --- /dev/null +++ b/support-files/debian/mysql-server-shared.postinst @@ -0,0 +1,3 @@ +#!/bin/sh + +update-alternatives --install /usr/sbin/mysqld mysqld /usr/sbin/mysqld-shared 15 diff --git a/support-files/debian/mysql-server-shared.postrm b/support-files/debian/mysql-server-shared.postrm new file mode 100644 index 00000000000..25c7aadf494 --- /dev/null +++ b/support-files/debian/mysql-server-shared.postrm @@ -0,0 +1,3 @@ +#!/bin/sh + +update-alternatives --auto mysqld diff --git a/support-files/debian/mysql-server.conffiles b/support-files/debian/mysql-server.conffiles new file mode 100644 index 00000000000..5f4599b273c --- /dev/null +++ b/support-files/debian/mysql-server.conffiles @@ -0,0 +1,2 @@ +/etc/init.d/mysql +/etc/my.cnf diff --git a/support-files/debian/mysql-server.dirs b/support-files/debian/mysql-server.dirs new file mode 100644 index 00000000000..067eddeefad --- /dev/null +++ b/support-files/debian/mysql-server.dirs @@ -0,0 +1,2 @@ +etc/init.d +var/mysql diff --git a/support-files/debian/mysql-server.postinst b/support-files/debian/mysql-server.postinst new file mode 100644 index 00000000000..ef2f32dac19 --- /dev/null +++ b/support-files/debian/mysql-server.postinst @@ -0,0 +1,44 @@ +#!/bin/sh + +update-rc.d mysql defaults 50 >/dev/null + +#-------- +update-alternatives --install /usr/sbin/mysqld mysqld /usr/sbin/mysqld-static 10 + +#-------- + +DOFIX=0 +if [ ! -e /var/mysql/data/mysql/tables_priv.frm -a -d /var/mysql/data/mysql ]; then + DOFIX=1 +fi + +#-------- +i=`grep '^mysql:' /etc/group` +if [ "x${i}" == "x" ]; then + groupadd mysql || true +fi + +i=`grep '^mysql:' /etc/passwd` +if [ "x${i}" == "x" ]; then + useradd -g mysql -d /var/mysql/data -s /noexists mysql || true +fi + +#-------- + +if [ ! -d /var/mysql/data/mysql ]; then + install -d /var/mysql/data || true + /usr/sbin/mysql_install_db || true + chown -R mysql.mysql /var/mysql +fi + +#-------- +/etc/init.d/mysql start || true + +if [ $DOFIX -eq 1 ]; then + echo "***************************************" + echo " Now, fix tables for MySQL 3.22.11...." + echo " if you set root passwd, please in..." + echo -n " ? MySQL root passwd ? : " + read pass dumy + /usr/sbin/mysql_fix_privilege_tables $pass +fi diff --git a/support-files/debian/mysql-server.postrm b/support-files/debian/mysql-server.postrm new file mode 100644 index 00000000000..d493a73a04a --- /dev/null +++ b/support-files/debian/mysql-server.postrm @@ -0,0 +1,13 @@ +#!/bin/sh + +update-alternatives --auto mysqld + +if [ "$1" = "purge" ] +then + update-rc.d mysql remove >/dev/null + + echo -n " Shall I also remove all of the databases (y/N)?"; read ans + if [ "$ans" = "y" -o "$ans" = "Y" ]; then + rm -rf /var/mysql + fi +fi diff --git a/support-files/debian/mysql-server.prerm b/support-files/debian/mysql-server.prerm new file mode 100644 index 00000000000..569739ca00d --- /dev/null +++ b/support-files/debian/mysql-server.prerm @@ -0,0 +1,3 @@ +#!/bin/sh + +/etc/init.d/mysql stop || true diff --git a/support-files/debian/patches/aa b/support-files/debian/patches/aa new file mode 100644 index 00000000000..288197370be --- /dev/null +++ b/support-files/debian/patches/aa @@ -0,0 +1,11 @@ +--- mysql-3.23.23.orig/sql/Makefile.in ++++ mysql-3.23.23/sql/Makefile.in +@@ -366,7 +366,7 @@ + + mysqlbinlog: $(mysqlbinlog_OBJECTS) $(mysqlbinlog_DEPENDENCIES) + @rm -f mysqlbinlog +- $(CXXLINK) $(mysqlbinlog_LDFLAGS) $(mysqlbinlog_OBJECTS) $(mysqlbinlog_LDADD) $(LIBS) ++ $(CXXLINK) $(mysqld_LDFLAGS) $(mysqlbinlog_OBJECTS) $(mysqld_LDADD) $(LIBS) + + mysqld: $(mysqld_OBJECTS) $(mysqld_DEPENDENCIES) + @rm -f mysqld diff --git a/support-files/debian/patches/ab b/support-files/debian/patches/ab new file mode 100644 index 00000000000..ed6ca58f729 --- /dev/null +++ b/support-files/debian/patches/ab @@ -0,0 +1,20 @@ +--- mysql-3.23.23.orig/scripts/Makefile.in ++++ mysql-3.23.23/scripts/Makefile.in +@@ -337,6 +337,7 @@ + @RM@ -f $@ $@-t + @SED@ \ + -e 's!@''bindir''@!$(bindir)!g' \ ++ -e 's!@''sbindir''@!$(sbindir)!g' \ + -e 's!@''scriptdir''@!$(bindir)!g' \ + -e 's!@''prefix''@!$(prefix)!g' \ + -e 's!@''datadir''@!$(datadir)!g' \ +--- mysql-3.23.23.orig/support-files/Makefile.in ++++ mysql-3.23.23/support-files/Makefile.in +@@ -308,6 +308,7 @@ + @RM@ -f $@ $@-t + @SED@ \ + -e 's!@''bindir''@!$(bindir)!g' \ ++ -e 's!@''sbindir''@!$(sbindir)!g' \ + -e 's!@''scriptdir''@!$(bindir)!g' \ + -e 's!@''prefix''@!$(prefix)!g' \ + -e 's!@''datadir''@!$(datadir)!g' \ diff --git a/support-files/debian/patches/ac b/support-files/debian/patches/ac new file mode 100644 index 00000000000..8cc2cd5dff1 --- /dev/null +++ b/support-files/debian/patches/ac @@ -0,0 +1,8 @@ +--- mysql-3.23.23.orig/scripts/msql2mysql.sh ++++ mysql-3.23.23/scripts/msql2mysql.sh +@@ -13,4 +13,4 @@ + # described in the License. Among other things, the License requires that + # the copyright notice and this notice be preserved on all copies. + +-@bindir@/replace msqlConnect mysql_connect msqlListDBs mysql_list_dbs msqlNumRows mysql_num_rows msqlFetchRow mysql_fetch_row msqlFetchField mysql_fetch_field msqlFreeResult mysql_free_result msqlListFields mysql_list_fields msqlListTables mysql_list_tables msqlErrMsg 'mysql_error(mysql)' msqlStoreResult mysql_store_result msqlQuery mysql_query msqlField mysql_field msqlSelect mysql_select msqlSelectDB mysql_select_db msqlNumFields mysql_num_fields msqlClose mysql_close msqlDataSeek mysql_data_seek m_field MYSQL_FIELD m_result MYSQL_RES m_row MYSQL_ROW msql mysql mSQL mySQL MSQL MYSQL msqlCreateDB mysql_create_db msqlDropDB mysql_drop_db msqlFieldSeek mysql_field_seek -- $* ++@bindir@/mysql_replace msqlConnect mysql_connect msqlListDBs mysql_list_dbs msqlNumRows mysql_num_rows msqlFetchRow mysql_fetch_row msqlFetchField mysql_fetch_field msqlFreeResult mysql_free_result msqlListFields mysql_list_fields msqlListTables mysql_list_tables msqlErrMsg 'mysql_error(mysql)' msqlStoreResult mysql_store_result msqlQuery mysql_query msqlField mysql_field msqlSelect mysql_select msqlSelectDB mysql_select_db msqlNumFields mysql_num_fields msqlClose mysql_close msqlDataSeek mysql_data_seek m_field MYSQL_FIELD m_result MYSQL_RES m_row MYSQL_ROW msql mysql mSQL mySQL MSQL MYSQL msqlCreateDB mysql_create_db msqlDropDB mysql_drop_db msqlFieldSeek mysql_field_seek -- $* diff --git a/support-files/debian/patches/ad b/support-files/debian/patches/ad new file mode 100644 index 00000000000..a90cf669ff6 --- /dev/null +++ b/support-files/debian/patches/ad @@ -0,0 +1,52 @@ +--- mysql-3.23.23.orig/scripts/mysql_install_db.sh ++++ mysql-3.23.23/scripts/mysql_install_db.sh +@@ -11,6 +11,7 @@ + ldata=@localstatedir@ + execdir=@libexecdir@ + bindir=@bindir@ ++sbindir=@sbindir@ + force=0 + IN_RPM=0 + defaults= +@@ -47,6 +48,10 @@ + then + bindir=`grep "^bindir" $conf | sed 's;^[^=]*=[ \t]*;;' | sed 's;[ \t]$;;'` + fi ++ if grep "^sbindir" $conf >/dev/null ++ then ++ sbindir=`grep "^sbindir" $conf | sed '.*=[ \t]*//` ++ fi + if grep "^user" $conf >/dev/null + then + user=`grep "^user" $conf | sed 's;^[^=]*=[ \t]*;;' | sed 's;[ \t]$;;'` +@@ -56,7 +61,7 @@ + for arg + do + case "$arg" in +- --basedir=*) basedir=`echo "$arg"|sed 's;^--basedir=;;'`; bindir="$basedir/bin"; execdir="$basedir/libexec" ;; ++ --basedir=*) basedir=`echo "$arg"|sed 's;^--basedir=;;'`; bindir="$basedir/bin"; sbindir="$basedir/sbin"; execdir="$basedir/libexec" ;; + --datadir=*) ldata=`echo "$arg"|sed 's;^--datadir=;;'` ;; + --user=*) user=`echo "$arg"|sed 's;^--user=;;'` ;; + esac +@@ -82,10 +87,10 @@ + # Check if hostname is valid + if test "$IN_RPM" -eq 0 -a $force -eq 0 + then +- resolved=`$bindir/resolveip $hostname 2>&1` ++ resolved=`$bindir/mysql_resolveip $hostname 2>&1` + if [ $? -ne 0 ] + then +- resolved=`$bindir/resolveip localhost 2>&1` ++ resolved=`$bindir/mysql_resolveip localhost 2>&1` + if [ $? -eq 0 ] + then + echo "Sorry, the host '$hostname' could not be looked up." +@@ -300,7 +305,7 @@ + if test -z "$IN_RPM" + then + echo "You can start the MySQL demon with:" +- echo "cd @prefix@ ; $bindir/safe_mysqld &" ++ echo "cd @prefix@ ; $sbindir/safe_mysqld &" + echo + echo "You can test the MySQL demon with the benchmarks in the 'sql-bench' directory:" + echo "cd sql-bench ; run-all-tests" diff --git a/support-files/debian/patches/ae b/support-files/debian/patches/ae new file mode 100644 index 00000000000..d6ccdcfaaf0 --- /dev/null +++ b/support-files/debian/patches/ae @@ -0,0 +1,41 @@ +--- mysql-3.23.23.orig/support-files/mysql.server.sh Tue Sep 5 19:13:35 2000 ++++ mysql-3.23.23/support-files/mysql.server.sh Tue Sep 5 19:19:40 2000 +@@ -16,6 +16,7 @@ + PATH=/sbin:/usr/sbin:/bin:/usr/bin + basedir=@prefix@ + bindir=@bindir@ ++sbindir=@sbindir@ + datadir=@localstatedir@ + pid_file=@localstatedir@/mysqld.pid + log_file=@localstatedir@/mysqld.log +@@ -64,6 +65,10 @@ + then + bindir=`grep "^bindir" $conf | cut -f 2 -d= | tr -d ' '` + fi ++ if grep "^sbindir" $conf >/dev/null ++ then ++ sbindir=`grep "^sbindir" $conf | cut -f 2 -d= | tr -d ' '` ++ fi + if grep "^log[ \t]*=" $conf >/dev/null + then + log_file=`grep "log[ \t]*=" $conf | cut -f 2 -d= | tr -d ' '` +@@ -78,14 +83,15 @@ + 'start') + # Start daemon + +- if test -x $bindir/safe_mysqld ++ if test -x $sbindir/safe_mysqld + then + # Give extra arguments to mysqld with the my.cnf file. This script may + # be overwritten at next upgrade. +- $bindir/safe_mysqld \ +- --user=$mysql_daemon_user --datadir=$datadir --pid-file=$pid_file --log=$log_file & ++ $sbindir/safe_mysqld \ ++ --user=$mysql_daemon_user --datadir=$datadir --pid-file=$pid_file & ++# --log=$log_file & + else +- echo "Can't execute $bindir/safe_mysqld" ++ echo "Can't execute $sbindir/safe_mysqld" + fi + ;; + diff --git a/support-files/debian/patches/az b/support-files/debian/patches/az new file mode 100644 index 00000000000..0795946de32 --- /dev/null +++ b/support-files/debian/patches/az @@ -0,0 +1,39 @@ +--- mysql-3.23.23.orig/configure ++++ mysql-3.23.23/configure +@@ -202,7 +202,7 @@ + --with-charset=CHARSET use CHARSET by default (one of: big5 cp1251 cp1257 + croat czech danish dec8 dos estonia euc_kr gb2312 gbk + german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr +- latin1 latin2 swe7 usa7 win1250 win1251 win1251ukr ++ latin1 latin2 swe7 usa7 win1250 win1251ukr + ujis sjis tis620; default is latin1)" + ac_help="$ac_help + --with-extra-charsets=cs1,cs2 +@@ -8843,7 +8843,7 @@ + + # Choose a character set + +-CHARSETS_AVAILABLE="big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1 latin2 swe7 usa7 win1250 win1251 win1251ukr ujis sjis tis620" ++CHARSETS_AVAILABLE="big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1 latin2 swe7 usa7 win1250 win1251ukr ujis sjis tis620" + DEFAULT_CHARSET=latin1 + + # Check whether --with-charset or --without-charset was given. +--- mysql-3.23.23.orig/configure.in ++++ mysql-3.23.23/configure.in +@@ -1517,14 +1517,14 @@ + dnl or other special handling, you must also create + dnl strings/ctype-$charset_name.c + +-CHARSETS_AVAILABLE="big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1 latin2 swe7 usa7 win1250 win1251 win1251ukr ujis sjis tis620" ++CHARSETS_AVAILABLE="big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1 latin2 swe7 usa7 win1250 win1251ukr ujis sjis tis620" + DEFAULT_CHARSET=latin1 + + AC_ARG_WITH(charset, + [ --with-charset=CHARSET use CHARSET by default (one of: big5 cp1251 cp1257 + croat czech danish dec8 dos estonia euc_kr gb2312 gbk + german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr +- latin1 latin2 swe7 usa7 win1250 win1251 win1251ukr ++ latin1 latin2 swe7 usa7 win1250 win1251ukr + ujis sjis tis620; default is latin1)], + [default_charset="$withval"], + [default_charset="$DEFAULT_CHARSET"]) diff --git a/support-files/debian/rules b/support-files/debian/rules new file mode 100755 index 00000000000..e63f144a655 --- /dev/null +++ b/support-files/debian/rules @@ -0,0 +1,169 @@ +#!/usr/bin/make -f +# Made with the aid of debmake, by Christoph Lameter, +# based on the sample debian/rules file for GNU hello by Ian Jackson. + +package=mysql +CHARSET=ujis +TEMPINST=build + +#CFLAGS="-O6 -mpentium -mstack-align-double -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O6 -mpentium -mstack-align-double -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static + +CC=gcc +CFLAGS=-O6 -fomit-frame-pointer +CXX=gcc +CXXFLAGS=-O6 -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti +# CXXFLAGS=-O6 -fomit-frame-pointer -felide-constructors -fno-rtti + +SYSNAME= +COMMONCONF= --prefix=/usr --libexecdir=/usr/sbin \ + --localstatedir=/var/mysql/data \ + --enable-shared \ + --without-perl --without-readline \ + --without-docs --without-bench \ + --with-mysqld-user=mysql \ + --with-extra-charsets=all + +SERVERCONF=$(COMMONCONF) --enable-assembler \ + --with-raid + +# --with-berkeley-db-includes=/usr/include/db3 \ +# --with-berkeley-db-libs=/usr/lib/libdb3.a + +STATICCONF=--with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static + +CLIENTCONF=$(COMMONCONF) --without-server + +################################################## +patches debian/stamp-patches: + -test -e debian/stamp-patches || \ + for i in `find debian/patches -type f -print` ; do \ + patch -p1 < $$i ; \ + done + touch debian/stamp-patches + +################################################## +premkdir debian/stamp-premkdir: + $(checkdir) + -rm -rf debian/tmp debian/$(TEMPINST)* + dh_installdirs + -install -d debian/$(TEMPINST)/usr/{bin,sbin,share,man,include,info} + -install -d debian/$(TEMPINST)-shared/usr/{bin,sbin,share,man,include,info} + -install -d debian/$(TEMPINST)-debug/usr/{bin,sbin,share,man,include,info} + touch debian/stamp-premkdir + +################################################## +config debian/stamp-config: debian/stamp-premkdir debian/stamp-patches + CC=$(CC) CFLAGS="$(CFLAGS)" CXX=$(CXX) CXXFLAGS="$(CXXFLAGS)" \ + LDFLAGS="-static" \ + ./configure $(SERVERCONF) $(STATICCONF) \ + --with-charset=$(CHARSET) \ + --with-bench \ + $(SYSNAME) +# sed 's/-fno-implicit-templates//g' sql/Makefile > .m +# mv .m sql/Makefile + touch debian/stamp-config + +################################################## +build: debian/stamp-config + make LDFLAGS="-static" + make install DESTDIR=`pwd`/debian/$(TEMPINST) + cp include/m_ctype.h `pwd`/debian/$(TEMPINST)/usr/include/mysql/ + touch build + +################################################## +build-shared debian/stamp-build-shared: debian/stamp-patches + -make distclean + CC=$(CC) CFLAGS="$(CFLAGS)" CXX=$(CXX) CXXFLAGS="$(CXXFLAGS)" \ + ./configure $(SERVERCONF) \ + --with-charset=$(CHARSET) \ + $(SYSNAME) + +# ./configure $(CLIENTCONF) + + make + make install DESTDIR=`pwd`/debian/$(TEMPINST)-shared + + touch debian/stamp-build-shared + +################################################## +build-debug debian/stamp-build-debug: debian/stamp-patches + -make distclean + CC=$(CC) CFLAGS="$(CFLAGS)" CXX=$(CXX) CXXFLAGS="$(CXXFLAGS)" \ + ./configure $(SERVERCONF) \ + --with-charset=$(CHARSET) \ + --with-debug \ + $(SYSNAME) + +# ./configure $(CLIENTCONF) + + make + make install DESTDIR=`pwd`/debian/$(TEMPINST)-debug + + touch debian/stamp-build-debug + +################################################## +clean: + $(checkdir) + -make distclean + -test -e debian/stamp-patches && \ + for i in `find debian/patches -type f -print` ; do \ + patch -R -p1 < $$i ; \ + done + -rm -rf build debian/stamp-* debian/$(TEMPINST)* + -dh_clean + -rm -f `find . -name "*~"` + -rm -rf debian/tmp debian/files* core + -rm -f debian/*substvars + -rm -f `cat debian/gomi` + +################################################## +binary-indep: checkroot build + $(checkdir) +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: checkroot build debian/stamp-build-shared debian/stamp-build-debug + sh debian/move + +### init, post* + dh_installdeb + cp debian/shlibs debian/libmysqlclient9/DEBIAN/ + + cp debian/my.cnf debian/mysql-server/etc/ + cp support-files/mysql.server debian/mysql-server/etc/init.d/mysql ; chmod +x debian/mysql-server/etc/init.d/mysql + +### dpkg-xxx + dh_compress + + dh_fixperms + + dh_strip + + dh_shlibdeps + dh_gencontrol + + dpkg --build debian/libmysqlclient9 .. + dpkg --build debian/mysql-client .. + dpkg --build debian/mysql-server .. + dpkg --build debian/mysql-server-shared .. + dpkg --build debian/mysql-server-debug .. + dpkg --build debian/mysql-dev .. + dpkg --build debian/mysql-bench .. + dpkg --build debian/mysql-doc .. + +define checkdir + test -f debian/rules +endef + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +################################################## +checkroot: + $(checkdir) + test root = "`whoami`" + +################################################## +.PHONY: binary binary-arch binary-indep clean checkroot diff --git a/support-files/debian/shlibs b/support-files/debian/shlibs new file mode 100644 index 00000000000..9906c2b605f --- /dev/null +++ b/support-files/debian/shlibs @@ -0,0 +1 @@ +libmysqlclient 9 libmysqlclient9 diff --git a/support-files/mysql.server-sys5.sh b/support-files/mysql.server-sys5.sh index 4bda51acc4d..4bda51acc4d 100755..100644 --- a/support-files/mysql.server-sys5.sh +++ b/support-files/mysql.server-sys5.sh diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh index f6a75e22fea..9f847467f1e 100644 --- a/support-files/mysql.server.sh +++ b/support-files/mysql.server.sh @@ -13,63 +13,61 @@ # chkconfig: 2345 90 90 # description: A very fast and reliable SQL database engine. +# The following variables are only set for letting mysql.server find things +# if you want to affect other MySQL variables, you should make your changes +# in the /etc/my.cnf or other configuration files + PATH=/sbin:/usr/sbin:/bin:/usr/bin basedir=@prefix@ bindir=@bindir@ +sbindir=@sbindir@ datadir=@localstatedir@ pid_file=@localstatedir@/mysqld.pid -log_file=@localstatedir@/mysqld.log -# Run mysqld as this user. -mysql_daemon_user=@MYSQLD_USER@ + export PATH mode=$1 -if test -w / # determine if we should look at the root config file -then # or user config file - conf=/etc/my.cnf -else - conf=$HOME/.my.cnf # Using the users config file -fi - -# The following code tries to get the variables safe_mysqld needs from the -# config file. This isn't perfect as this ignores groups, but it should -# work as the options doesn't conflict with anything else. - -if test -f "$conf" # Extract those fields we need from config file. -then - if grep "^datadir" $conf >/dev/null - then - datadir=`grep "^datadir" $conf | cut -f 2 -d= | tr -d ' '` - fi - if grep "^user" $conf >/dev/null - then - mysql_daemon_user=`grep "^user" $conf | cut -f 2 -d= | tr -d ' ' | head -1` - fi - if grep "^pid-file" $conf >/dev/null - then - pid_file=`grep "^pid-file" $conf | cut -f 2 -d= | tr -d ' '` - else - if test -d "$datadir" - then - pid_file=$datadir/`hostname`.pid - fi - fi - if grep "^basedir" $conf >/dev/null - then - basedir=`grep "^basedir" $conf | cut -f 2 -d= | tr -d ' '` - bindir=$basedir/bin - fi - if grep "^bindir" $conf >/dev/null - then - bindir=`grep "^bindir" $conf | cut -f 2 -d= | tr -d ' '` - fi - if grep "^log[ \t]*=" $conf >/dev/null - then - log_file=`grep "log[ \t]*=" $conf | cut -f 2 -d= | tr -d ' '` - fi -fi +GetCNF () { + +VARIABLES="basedir bindir sbindir datadir pid-file" +CONFIG_FILES="/etc/my.cnf $basedir/my.cnf $HOME/.my.cnf" + +for c in $CONFIG_FILES +do + if [ -f $c ] + then + #echo "Processing $c..." + for v in $VARIABLES + do + # This method assumes last of duplicate $variable entries will be the + # value set ([mysqld]) + # This could easily be rewritten to gather [xxxxx]-specific entries, + # but for now it looks like only the mysqld ones are needed for + # server startup scripts + eval `sed -n -e '/^$/d' -e '/^#/d' -e 's,[ ],,g' -e '/=/p' $c |\ + awk -F= -v v=$v '{if ($1 == v) printf ("thevar=\"%s\"\n", $2)}'` + + # it would be easier if the my.cnf and variable values were + # all matched, but since they aren't we need to map them here. + case $v in + pid-file) v=pid_file ;; + log) v=log_file ;; + esac + + # As long as $thevar isn't blank, use it to set or override current + # value + [ "$thevar" != "" ] && eval $v=$thevar + + done + #else + # echo "No $c config file." + fi +done +} +# run function to get config values +GetCNF # Safeguard (relative paths, core dumps..) cd $basedir @@ -83,7 +81,7 @@ case "$mode" in # Give extra arguments to mysqld with the my.cnf file. This script may # be overwritten at next upgrade. $bindir/safe_mysqld \ - --user=$mysql_daemon_user --datadir=$datadir --pid-file=$pid_file --log=$log_file & + --datadir=$datadir --pid-file=$pid_file & else echo "Can't execute $bindir/safe_mysqld" fi |