From 5736950da1d293405fddf3858771ed6a29107b1a Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 08:54:46 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20mysql-3?= =?UTF-8?q?.23.36-1.src.rpm=20Wed=20Mar=2028=202001=20Trond=20Eivind=20Glo?= =?UTF-8?q?msr=C3=B8d=20=20-=20Make=20it=20obsolete=20our?= =?UTF-8?q?=206.2=20PowerTools=20packages=20-=203.23.36=20bugfix=20release?= =?UTF-8?q?=20-=20fixes=20some=20security=20issues=20which=20didn't=20appl?= =?UTF-8?q?y=20to=20=20=20=20=20our=20standard=20configuration=20-=20Make?= =?UTF-8?q?=20"make=20test"=20part=20of=20the=20build=20process,=20except?= =?UTF-8?q?=20on=20IA64=20(it=20fails=20=20=20=20=20there)=20Tue=20Mar=202?= =?UTF-8?q?0=202001=20Trond=20Eivind=20Glomsr=C3=B8d=20=20?= =?UTF-8?q?-=203.23.35=20bugfix=20release=20-=20Don't=20delete=20the=20mys?= =?UTF-8?q?ql=20user=20on=20uninstall=20Tue=20Mar=2013=202001=20Trond=20Ei?= =?UTF-8?q?vind=20Glomsr=C3=B8d=20=20-=203.23.34a=20bugfix?= =?UTF-8?q?=20release=20Wed=20Feb=2007=202001=20Trond=20Eivind=20Glomsr?= =?UTF-8?q?=C3=B8d=20=20-=20added=20readline-devel=20to=20?= =?UTF-8?q?BuildRequires:=20Tue=20Feb=2006=202001=20Trond=20Eivind=20Gloms?= =?UTF-8?q?r=C3=B8d=20=20-=20small=20i18n-fixes=20to=20ini?= =?UTF-8?q?tscript=20(action=20needs=20$)=20Tue=20Jan=2030=202001=20Trond?= =?UTF-8?q?=20Eivind=20Glomsr=C3=B8d=20=20-=20make=20it=20?= =?UTF-8?q?shut=20down=20and=20rotate=20logs=20without=20using=20mysqladmi?= =?UTF-8?q?n=20(from=20#24909)=20Mon=20Jan=2029=202001=20Trond=20Eivind=20?= =?UTF-8?q?Glomsr=C3=B8d=20=20-=20conflict=20with=20"MySQL?= =?UTF-8?q?"=20Tue=20Jan=2023=202001=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=20improve=20gettextizing=20Mon=20Jan=2022=20?= =?UTF-8?q?2001=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=20?= =?UTF-8?q?3.23.32=20-=20fix=20logrotate=20script=20(#24589)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 2 +- mysql.init | 30 ++++++++++++++---------- mysql.spec | 69 +++++++++++++++++++++++++++++++++++++++--------------- sources | 2 +- 4 files changed, 69 insertions(+), 34 deletions(-) diff --git a/.cvsignore b/.cvsignore index bf0abc3..83eb674 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -mysql-3.23.32.tar.bz2 +mysql-3.23.36.tar.bz2 diff --git a/mysql.init b/mysql.init index 81d0983..f8a2d9c 100644 --- a/mysql.init +++ b/mysql.init @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # mysqld This shell script takes care of starting and stopping # the MySQL subsystem (mysqld). @@ -18,43 +18,47 @@ # Source subsystem configuration. [ -f /etc/sysconfig/subsys/mysqld ] && . /etc/sysconfig/subsys/mysqld + +prog="MySQL" + start(){ touch /var/log/mysqld.log chown mysql.mysql /var/log/mysqld.log chmod 0640 /var/log/mysqld.log if [ ! -d /var/lib/mysql/mysql ] ; then - action "Initializing MySQL database" /usr/bin/mysql_install_db + action $"Initializing MySQL database: " /usr/bin/mysql_install_db ret=$? chown -R mysql.mysql /var/lib/mysql if [ $ret -ne 0 ] ; then return $ret fi fi + chown mysql.mysql /var/lib/mysql + chmod 0755 /var/lib/mysql /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf >/dev/null 2>&1 & ret=$? if [ $ret -eq 0 ]; then - action "Starting MySQL: " /bin/true + action $"Starting $prog: " /bin/true else - action "Starting MySQL: " /bin/false + action $"Starting $prog: " /bin/false fi [ $ret -eq 0 ] && touch /var/lock/subsys/mysqld return $ret } stop(){ - /usr/bin/mysqladmin shutdown > /dev/null 2>&1 - ret=$? - if [ $ret -eq 0 ]; then - action "Stopping MySQL: " /bin/true - else - action "Stopping MySQL: " /bin/false - fi + /bin/kill `cat /var/run/mysqld/mysqld.pid 2> /dev/null ` > /dev/null 2>&1 ret=$? + if [ $ret -eq 0 ]; then + action $"Stopping $prog: " /bin/true + else + action $"Stopping $prog: " /bin/false + fi [ $ret -eq 0 ] && rm -f /var/lock/subsys/mysqld [ $ret -eq 0 ] && rm -f /var/lib/mysql/mysql.sock return $ret } - + restart(){ stop start @@ -89,7 +93,7 @@ case "$1" in condrestart ;; *) - echo "Usage: $0 {start|stop|status|reload|condrestart|restart}" + echo $"Usage: $0 {start|stop|status|reload|condrestart|restart}" exit 1 esac diff --git a/mysql.spec b/mysql.spec index 51c27f7..e174c6e 100644 --- a/mysql.spec +++ b/mysql.spec @@ -1,6 +1,6 @@ Name: mysql -Version: 3.23.32 -Release: 1.7 +Version: 3.23.36 +Release: 1 Source0: http://www.mysql.com/Downloads/MySQL-3.23/mysql-%{version}.tar.bz2 Source1: mysql.init Source2: mysql.logrotate @@ -11,8 +11,10 @@ Summary: MySQL client program and shared library License: GPL/LGPL Group: Applications/Databases Prereq: /sbin/ldconfig, /sbin/install-info, grep, fileutils, chkconfig -BuildRequires: gperf, perl, db3-devel -Requires: glibc >= 2.2, libstdc++ >= 2.96-69 +BuildRequires: gperf, perl, db3-devel, readline-devel +Requires: bash >= 2 +Conflicts: MySQL +Obsoletes: mysql-client mysql-bench mysql-perl %description MySQL is a multi-user, multi-threaded SQL database server. SQL is @@ -28,6 +30,7 @@ License: GPL Group: Applications/Databases Prereq: /sbin/chkconfig, /usr/sbin/useradd, /usr/sbin/userdel Requires: mysql = %{version}, sh-utils +Conflicts: MySQL-server %description server MySQL is a true multi-user, multi-threaded SQL database server. SQL is @@ -42,6 +45,7 @@ Summary: MySQL devel License: LGPL Group: Applications/Databases Requires: %{name} = %{version} +Conflicts: MySQL-devel %description devel MySQL is a true multi-user, multi-threaded SQL database server. SQL is @@ -52,7 +56,7 @@ header files that are needed for developing your own MySQL applications. %prep -%setup -q +%setup -q %build @@ -60,16 +64,18 @@ header files that are needed for developing your own MySQL applications. --without-readline \ --enable-shared \ --with-extra-charsets=complex \ - --without-bench \ + --with-bench \ --localstatedir=/var/lib/mysql \ --with-unix-socket-path=/var/lib/mysql/mysql.sock \ --with-mysqld-user="mysql" \ - --with-extra-charsets=all - -# --with-mysqld-ldflags=-all-static -# --enable-assembler \ + --with-extra-charsets=all \ + --with-berkeley-db make +make check +%ifnarch ia64 +make test +%endif %install rm -rf $RPM_BUILD_ROOT @@ -138,9 +144,6 @@ if [ $1 = 0 ] ; then fi %postun server -if [ $1 = 0 ] ; then - /usr/sbin/userdel mysql > /dev/null 2>&1 || : -fi if [ $1 -ge 1 ]; then /sbin/service mysqld condrestart >/dev/null 2>&1 || : fi @@ -190,17 +193,45 @@ fi /usr/lib/mysql/libmysqlclient*.so %changelog -* Mon Jan 21 2001 Trond Eivind Glomsrød -- 3.23.32 -- fix logrotate script, so it doesn't return "false" if - mysqld isn't running (#24589) +* Wed Mar 28 2001 Trond Eivind Glomsrød +- Make it obsolete our 6.2 PowerTools packages +- 3.23.36 bugfix release - fixes some security issues + which didn't apply to our standard configuration +- Make "make test" part of the build process, except on IA64 + (it fails there) -* Thu Jan 18 2001 Trond Eivind Glomsrød -- 3.23.31 +* Tue Mar 20 2001 Trond Eivind Glomsrød +- 3.23.35 bugfix release +- Don't delete the mysql user on uninstall + +* Tue Mar 13 2001 Trond Eivind Glomsrød +- 3.23.34a bugfix release + +* Wed Feb 7 2001 Trond Eivind Glomsrød +- added readline-devel to BuildRequires: + +* Tue Feb 6 2001 Trond Eivind Glomsrød +- small i18n-fixes to initscript (action needs $) + +* Tue Jan 30 2001 Trond Eivind Glomsrød +- make it shut down and rotate logs without using mysqladmin + (from #24909) + +* Mon Jan 29 2001 Trond Eivind Glomsrød +- conflict with "MySQL" + +* Tue Jan 23 2001 Trond Eivind Glomsrød +- improve gettextizing + +* Mon Jan 22 2001 Trond Eivind Glomsrød +- 3.23.32 +- fix logrotate script (#24589) * Wed Jan 17 2001 Trond Eivind Glomsrød +- gettextize - move the items in Requires(post): to Requires: in preparation for an errata for 7.0 when 3.23.31 is released +- 3.23.31 * Tue Jan 16 2001 Trond Eivind Glomsrød - add the log file to the rpm database, and make it 0640 diff --git a/sources b/sources index 7967f6f..5bd485a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -284f902e8248fdd0248da1ffcfc33183 mysql-3.23.32.tar.bz2 +41bab3965d6aa60b437a4f236fab1907 mysql-3.23.36.tar.bz2