From bd137d537852b794665b2431d75b86be1c2fed90 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 08:53:43 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20mysql-3?= =?UTF-8?q?.23.22-6.src.rpm=20Sun=20Aug=2027=202000=20Trond=20Eivind=20Glo?= =?UTF-8?q?msr=C3=B8d=20=20-=20Add=20"||=20:"=20to=20condr?= =?UTF-8?q?estart=20to=20avoid=20non-zero=20exit=20code=20Thu=20Aug=2024?= =?UTF-8?q?=202000=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-?= =?UTF-8?q?=20it's=20mysql.com,=20not=20mysql.org=20and=20use=20correct=20?= =?UTF-8?q?path=20to=20source=20(#16830)=20Wed=20Aug=2016=202000=20Trond?= =?UTF-8?q?=20Eivind=20Glomsr=C3=B8d=20=20-=20source=20fil?= =?UTF-8?q?e=20from=20/etc/rc.d,=20not=20/etc/rd.d.=20Doh.=20Sun=20Aug=201?= =?UTF-8?q?3=202000=20Trond=20Eivind=20Glomsr=C3=B8d=20=20?= =?UTF-8?q?-=20don't=20run=20ldconfig=20-n,=20it=20doesn't=20update=20ld.s?= =?UTF-8?q?o.cache=20(#16034)=20-=20include=20some=20missing=20binaries=20?= =?UTF-8?q?-=20use=20safe=5Fmysqld=20to=20start=20the=20server=20(request?= =?UTF-8?q?=20from=20mysql=20developers)=20Sat=20Aug=2005=202000=20Bill=20?= =?UTF-8?q?Nottingham=20=20-=20condrestart=20fixes=20T?= =?UTF-8?q?ue=20Aug=2001=202000=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=203.23.22.=20Disable=20the=20old=20patches,=20the?= =?UTF-8?q?y're=20now=20in.=20Thu=20Jul=2027=202000=20Trond=20Eivind=20Glo?= =?UTF-8?q?msr=C3=B8d=20=20-=20bugfixes=20in=20the=20inits?= =?UTF-8?q?cript=20-=20move=20the=20.so=20link=20to=20the=20devel=20packag?= =?UTF-8?q?e=20Wed=20Jul=2019=202000=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=20rebuild=20due=20to=20glibc=20changes=20Tue?= =?UTF-8?q?=20Jul=2018=202000=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=20disable=20compiler=20patch=20-=20don't=20include?= =?UTF-8?q?=20info=20directory=20file=20Mon=20Jul=2017=202000=20Trond=20Ei?= =?UTF-8?q?vind=20Glomsr=C3=B8d=20=20-=20move=20back=20to?= =?UTF-8?q?=20/etc/rc.d/init.d=20Fri=20Jul=2014=202000=20Trond=20Eivind=20?= =?UTF-8?q?Glomsr=C3=B8d=20=20-=20more=20cleanups=20in=20i?= =?UTF-8?q?nitscript=20Thu=20Jul=2013=202000=20Trond=20Eivind=20Glomsr?= =?UTF-8?q?=C3=B8d=20=20-=20add=20a=20patch=20to=20work=20?= =?UTF-8?q?around=20compiler=20bug=20(from=20monty@mysql.com)=20Wed=20Jul?= =?UTF-8?q?=2012=202000=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=20don't=20build=20the=20SQL=20daemon=20statically=20(glib?= =?UTF-8?q?c=20problems)=20-=20fix=20the=20logrotate=20script=20-=20only?= =?UTF-8?q?=20flush=20log=20if=20mysql=20is=20running=20-=20change=20the?= =?UTF-8?q?=20reloading=20procedure=20-=20remove=20icon=20-=20glint=20is?= =?UTF-8?q?=20obsolete=20a=20long=20time=20ago=20Wed=20Jul=2012=202000=20P?= =?UTF-8?q?rospector=20=20-=20automatic=20rebuild=20M?= =?UTF-8?q?on=20Jul=2010=202000=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=20try=20the=20new=20compiler=20again=20-=20build?= =?UTF-8?q?=20the=20SQL=20daemon=20statically=20-=20add=20compile=20time?= =?UTF-8?q?=20support=20for=20complex=20charsets=20-=20enable=20assembler?= =?UTF-8?q?=20-=20more=20cleanups=20in=20initscript=20Sun=20Jul=2009=20200?= =?UTF-8?q?0=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=20use?= =?UTF-8?q?=20old=20C++=20compiler=20-=20Exclusivearch=20x86=20Sat=20Jul?= =?UTF-8?q?=2008=202000=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=20move=20.so=20files=20to=20devel=20package=20-=20more=20?= =?UTF-8?q?cleanups=20-=20exclude=20sparc=20for=20now=20Wed=20Jul=2005=202?= =?UTF-8?q?000=20Trond=20Eivind=20Glomsr=C3=B8d=20=20-=203?= =?UTF-8?q?.23.21=20-=20remove=20file=20from=20/etc/sysconfig=20-=20Fix=20?= =?UTF-8?q?initscript=20a=20bit=20-=20initialization=20of=20databases=20do?= =?UTF-8?q?esn't=20work=20yet=20-=20specify=20the=20correct=20licenses=20-?= =?UTF-8?q?=20include=20a=20/etc/my.conf=20(empty,=20FTTB)=20-=20add=20con?= =?UTF-8?q?ditional=20restart=20to=20spec=20file=20Sun=20Jul=2002=202000?= =?UTF-8?q?=20Jakub=20Jelinek=20=20-=20Rebuild=20with=20?= =?UTF-8?q?new=20C++=20Fri=20Jun=2030=202000=20Trond=20Eivind=20Glomsr?= =?UTF-8?q?=C3=B8d=20=20-=20update=20to=203.23.20=20-=20us?= =?UTF-8?q?e=20%configure,=20%makeinstall,=20%{=5Ftmppath},=20%{=5Fmandir}?= =?UTF-8?q?,=20%{=5Finfodir},=20=20=20=20=20/etc/init.d=20-=20remove=20the?= =?UTF-8?q?=20bench=20package=20-=20change=20some=20of=20the=20description?= =?UTF-8?q?s=20a=20little=20bit=20-=20fix=20the=20init=20script=20-=20some?= =?UTF-8?q?=20compile=20fixes=20-=20specify=20mysql=20user=20-=20use=20mys?= =?UTF-8?q?ql=20uid=2027=20(postgresql=20is=2026)=20-=20don't=20build=20on?= =?UTF-8?q?=20ia64=20Sat=20Feb=2026=202000=20Jos=20Vos=20=20-?= =?UTF-8?q?=20Version=203.22.32=20release=20XOS.1=20for=20LinuX/OS=201.8.0?= =?UTF-8?q?=20-=20Upgrade=20from=20version=203.22.27=20to=203.22.32.=20-?= =?UTF-8?q?=20Do=20"make=20install"=20instead=20of=20"make=20install-strip?= =?UTF-8?q?",=20because=20"install=20-s"=20=20=20=20=20now=20appears=20to?= =?UTF-8?q?=20fail=20on=20various=20scripts.=20Afterwards,=20strip=20manua?= =?UTF-8?q?lly.=20-=20Reorganize=20subpackages,=20according=20to=20common?= =?UTF-8?q?=20Red=20Hat=20packages:=20the=20client=20=20=20=20=20program?= =?UTF-8?q?=20and=20shared=20library=20become=20the=20base=20package=20and?= =?UTF-8?q?=20the=20server=20and=20=20=20=20=20some=20accompanying=20files?= =?UTF-8?q?=20are=20now=20in=20a=20separate=20server=20package.=20The=20?= =?UTF-8?q?=20=20=20=20server=20package=20implicitly=20requires=20the=20ba?= =?UTF-8?q?se=20package=20(shared=20library),=20=20=20=20=20but=20we=20hav?= =?UTF-8?q?e=20added=20a=20manual=20require=20tag=20anyway=20(because=20of?= =?UTF-8?q?=20the=20shared=20=20=20=20=20config=20file,=20and=20more).=20-?= =?UTF-8?q?=20Rename=20the=20mysql-benchmark=20subpackage=20to=20mysql-ben?= =?UTF-8?q?ch.=20Mon=20Jan=2031=202000=20Jos=20Vos=20=20-=20Ve?= =?UTF-8?q?rsion=203.22.27=20release=20XOS.2=20for=20LinuX/OS=201.7.1=20-?= =?UTF-8?q?=20Add=20post(un)install=20scripts=20for=20updating=20ld.so.con?= =?UTF-8?q?f=20(client=20subpackage).=20Sun=20Nov=2021=201999=20Jos=20Vos?= =?UTF-8?q?=20=20-=20Version=203.22.27=20release=20XOS.1=20for?= =?UTF-8?q?=20LinuX/OS=201.7.0=20-=20Initial=20version.=20-=20Some=20ideas?= =?UTF-8?q?=20borrowed=20from=20Red=20Hat=20Powertools=206.1,=20although?= =?UTF-8?q?=20this=20spec=20file=20=20=20=20=20is=20a=20full=20rewrite=20f?= =?UTF-8?q?rom=20scratch.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 1 + mysql.init | 92 +++++++++++++++++ mysql.spec | 298 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 392 insertions(+) create mode 100644 mysql.init create mode 100644 mysql.spec diff --git a/.cvsignore b/.cvsignore index e69de29..67cda3b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +mysql-3.23.22-beta.tar.gz diff --git a/mysql.init b/mysql.init new file mode 100644 index 0000000..8847871 --- /dev/null +++ b/mysql.init @@ -0,0 +1,92 @@ +#!/bin/sh +# +# mysqld This shell script takes care of starting and stopping +# the MySQL subsystem (mysqld). +# +# chkconfig: - 85 15 +# description: MySQL database server. +# processname: mysqld +# config: /etc/my.conf +# pidfile: /var/run/mysqld.pid + +# Source function library. +. /etc/rc.d/init.d/functions + +# Source networking configuration. +. /etc/sysconfig/network + +# Source subsystem configuration. +[ -f /etc/sysconfig/subsys/mysqld ] && . /etc/sysconfig/subsys/mysqld + +start(){ + touch /var/log/mysqld.log /var/run/mysqld.pid + chown mysql.mysql /var/log/mysqld.log /var/run/mysqld.pid + if [ ! -d /var/lib/mysql/mysql ] ; then + 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 + /usr/bin/safe_mysqld --user=mysql --log=/var/log/mysqld.log \ + --pid-file=/var/run/mysqld.pid >/dev/null 2>&1 & + ret=$? + if [ $ret -eq 0 ]; then + action "Starting MySQL: " /bin/true + else + action "Starting MySQL: " /bin/false + fi + [ $ret -eq 0 ] && touch /var/lock/subsys/mysqld + return $ret +} + +stop(){ + echo -n "Shutting down MySQL server" + killproc mysqld + ret=$? + [ $ret -eq 0 ] && rm -f /var/lock/subsys/mysqld + [ $ret -eq 0 ] && rm -f /var/lib/mysql/mysql.sock + echo + return $ret +} + +restart(){ + stop + start +} + +condrestart(){ + [ -e /var/lock/subsys/mysqld ] && restart || : +} + +reload(){ + [ -e /var/lock/subsys/mysqld ] && mysqladmin reload +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + status mysqld + ;; + reload) + reload + ;; + restart) + restart + ;; + condrestart) + condrestart + ;; + *) + echo "Usage: $0 {start|stop|status|reload|condrestart|restart}" + exit 1 +esac + +exit $? diff --git a/mysql.spec b/mysql.spec new file mode 100644 index 0000000..cd7a78e --- /dev/null +++ b/mysql.spec @@ -0,0 +1,298 @@ +Name: mysql +Version: 3.23.22 +Release: 6 +Source0: http://www.mysql.com/Downloads/MySQL-3.23/mysql-%{version}-beta.tar.gz +Source1: mysql.init +Source2: mysql.logrotate +URL: http://www.mysql.com +BuildRoot: %{_tmppath}/mysql-%{version}-root +Summary: MySQL client program and shared library +License: GPL/LGPL +Group: Applications/Databases +Prereq: /sbin/ldconfig, /sbin/install-info, grep +ExcludeArch: ia64 sparc + +%description +MySQL is a multi-user, multi-threaded SQL database server. SQL is +the most popular database language in the world. MySQL is a client/server +implementation that consists of a server daemon mysqld and many different +client programs and libraries. This package contains the MySQL client +programs, the client shared library, and generic MySQL files. + +%package server + +Summary: MySQL server +License: GPL +Group: Applications/Databases +Prereq: /sbin/chkconfig, /usr/sbin/useradd, /usr/sbin/userdel +Requires: mysql = %{version} + +%description server +MySQL is a true multi-user, multi-threaded SQL database server. SQL is +the most popular database language in the world. MySQL is a client/server +implementation that consists of a server daemon mysqld and many different +client programs and libraries. This package contains the MySQL server and +some accompanying files and directories. + +%package devel + +Summary: MySQL devel +License: LGPL +Group: Applications/Databases +Requires: %{name} = %{version} + +%description devel +MySQL is a true multi-user, multi-threaded SQL database server. SQL is +the most popular database language in the world. MySQL is a client/server +implementation that consists of a server daemon mysqld and many different +client programs and libraries. This package contains the libraries and +header files that are needed for developing your own MySQL applications. + + +%prep +%setup -q -n mysql-%{version}-beta + + +%build + +%configure --without-debug \ + --without-readline \ + --enable-shared \ + --with-extra-charsets=complex \ + --without-bench \ + --localstatedir=/var/lib/mysql \ + --with-unix-socket-path=/var/lib/mysql/mysql.sock \ + --enable-assembler \ + --with-mysqld-user="mysql" + +# --with-mysqld-ldflags=-all-static + +make + +%install +rm -rf $RPM_BUILD_ROOT + +%makeinstall +# List the installed tree for RPM package maintenance purposes. +find $RPM_BUILD_ROOT -print | sed "s|^$RPM_BUILD_ROOT||" | sort > ROOTFILES +gzip $RPM_BUILD_ROOT/%{_infodir}/* +rm -f $RPM_BUILD_ROOT/usr/share/mysql/mysql-*.spec +rm -f $RPM_BUILD_ROOT/usr/share/mysql/mysql-log-rotate + +mkdir -p $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d} +install -m 0755 -d $RPM_BUILD_ROOT/var/lib/mysql +install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysqld +install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/mysqld +touch $RPM_BUILD_ROOT/etc/my.conf +rm -f $RPM_BUILD_ROOT/%{_infodir}/dir* + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre server +/usr/sbin/useradd -M -o -r -d /var/lib/mysql -s /bin/bash \ + -c "MySQL Server" -u 27 mysql > /dev/null 2>&1 || : + +%post +/sbin/install-info %{_infodir}/mysql.info.gz %{_infodir}/dir +if ! grep '^/usr/lib/mysql$' /etc/ld.so.conf > /dev/null 2>&1 +then + echo "/usr/lib/mysql" >> /etc/ld.so.conf +fi +/sbin/ldconfig /usr/lib/mysql + +%post server +if [ $1 = 1 ]; then + /sbin/chkconfig --add mysqld +fi + + +%preun +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/mysql.info.gz %{_infodir}/dir +fi + +%preun server +if [ $1 = 0 ]; then + /sbin/chkconfig --del mysqld +fi + +%postun +if [ $1 = 0 ] ; then + if grep '^/usr/lib/mysql$' /etc/ld.so.conf > /dev/null 2>&1 + then + grep -v '^/usr/lib/mysql$' /etc/ld.so.conf \ + > /etc/ld.so.conf.$$ 2> /dev/null + mv /etc/ld.so.conf.$$ /etc/ld.so.conf + fi + /sbin/ldconfig /usr/lib/mysql +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 + + +%files +%defattr(-,root,root) +%doc INSTALL* PUBLIC README Docs/INSTALL* Docs/MySQL-for-dummies +%doc Docs/manual* Docs/mysqld_error.txt + +# /usr/bin/* except mysqladmin and safe_mysqld +/usr/bin/[a-ln-rt-z]* +/usr/bin/msql2mysql +/usr/bin/mysql +/usr/bin/mysql_* +/usr/bin/mysqlaccess +/usr/bin/mysql[b-z]* +/usr/bin/my_* +/usr/bin/myisam* + +%{_infodir}/* +%{_mandir}/man1/* +%dir /usr/lib/mysql +/usr/lib/mysql/libmysqlclient.so.* + +%dir /usr/share/mysql +/usr/share/mysql/* + +%config /etc/my.conf + +%files server +%defattr(-,root,root) +/usr/bin/mysqladmin +/usr/bin/safe_mysqld +/usr/libexec/* + +%config /etc/rc.d/init.d/mysqld +%config /etc/logrotate.d/mysqld +%attr(0700,mysql,mysql) %dir /var/lib/mysql + +%files devel +%defattr(-,root,root) +/usr/include/mysql +%dir /usr/lib/mysql +/usr/lib/mysql/*.a +/usr/lib/mysql/libmysqlclient.so + +%changelog +* Sun Aug 27 2000 Trond Eivind Glomsrød +- Add "|| :" to condrestart to avoid non-zero exit code + +* Thu Aug 24 2000 Trond Eivind Glomsrød +- it's mysql.com, not mysql.org and use correct path to + source (#16830) + +* Wed Aug 16 2000 Trond Eivind Glomsrød +- source file from /etc/rc.d, not /etc/rd.d. Doh. + +* Sun Aug 13 2000 Trond Eivind Glomsrød +- don't run ldconfig -n, it doesn't update ld.so.cache + (#16034) +- include some missing binaries +- use safe_mysqld to start the server (request from + mysql developers) + +* Sat Aug 05 2000 Bill Nottingham +- condrestart fixes + +* Mon Aug 01 2000 Trond Eivind Glomsrød +- 3.23.22. Disable the old patches, they're now in. + +* Thu Jul 27 2000 Trond Eivind Glomsrød +- bugfixes in the initscript +- move the .so link to the devel package + +* Wed Jul 19 2000 Trond Eivind Glomsrød +- rebuild due to glibc changes + +* Tue Jul 18 2000 Trond Eivind Glomsrød +- disable compiler patch +- don't include info directory file + +* Mon Jul 17 2000 Trond Eivind Glomsrød +- move back to /etc/rc.d/init.d + +* Fri Jul 14 2000 Trond Eivind Glomsrød +- more cleanups in initscript + +* Thu Jul 13 2000 Trond Eivind Glomsrød +- add a patch to work around compiler bug + (from monty@mysql.com) + +* Wed Jul 12 2000 Trond Eivind Glomsrød +- don't build the SQL daemon statically (glibc problems) +- fix the logrotate script - only flush log if mysql + is running +- change the reloading procedure +- remove icon - glint is obsolete a long time ago + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Mon Jul 10 2000 Trond Eivind Glomsrød +- try the new compiler again +- build the SQL daemon statically +- add compile time support for complex charsets +- enable assembler +- more cleanups in initscript + +* Sun Jul 09 2000 Trond Eivind Glomsrød +- use old C++ compiler +- Exclusivearch x86 + +* Sat Jul 08 2000 Trond Eivind Glomsrød +- move .so files to devel package +- more cleanups +- exclude sparc for now + +* Wed Jul 05 2000 Trond Eivind Glomsrød +- 3.23.21 +- remove file from /etc/sysconfig +- Fix initscript a bit - initialization of databases doesn't + work yet +- specify the correct licenses +- include a /etc/my.conf (empty, FTTB) +- add conditional restart to spec file + +* Tue Jul 2 2000 Jakub Jelinek +- Rebuild with new C++ + +* Fri Jun 30 2000 Trond Eivind Glomsrød +- update to 3.23.20 +- use %%configure, %%makeinstall, %%{_tmppath}, %%{_mandir}, + %%{_infodir}, /etc/init.d +- remove the bench package +- change some of the descriptions a little bit +- fix the init script +- some compile fixes +- specify mysql user +- use mysql uid 27 (postgresql is 26) +- don't build on ia64 + +* Sat Feb 26 2000 Jos Vos +- Version 3.22.32 release XOS.1 for LinuX/OS 1.8.0 +- Upgrade from version 3.22.27 to 3.22.32. +- Do "make install" instead of "make install-strip", because "install -s" + now appears to fail on various scripts. Afterwards, strip manually. +- Reorganize subpackages, according to common Red Hat packages: the client + program and shared library become the base package and the server and + some accompanying files are now in a separate server package. The + server package implicitly requires the base package (shared library), + but we have added a manual require tag anyway (because of the shared + config file, and more). +- Rename the mysql-benchmark subpackage to mysql-bench. + +* Mon Jan 31 2000 Jos Vos +- Version 3.22.27 release XOS.2 for LinuX/OS 1.7.1 +- Add post(un)install scripts for updating ld.so.conf (client subpackage). + +* Sun Nov 21 1999 Jos Vos +- Version 3.22.27 release XOS.1 for LinuX/OS 1.7.0 +- Initial version. +- Some ideas borrowed from Red Hat Powertools 6.1, although this spec + file is a full rewrite from scratch. diff --git a/sources b/sources index e69de29..4801cf2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +dfb40c467219de80ed767ad372e34acf mysql-3.23.22-beta.tar.gz