[Pkg-mysql-commits] r1090 - in branches: . community community/debian

Monty Taylor mtaylor-guest at alioth.debian.org
Tue Dec 18 14:17:36 UTC 2007


Author: mtaylor-guest
Date: 2007-12-18 14:17:36 +0000 (Tue, 18 Dec 2007)
New Revision: 1090

Added:
   branches/community/
   branches/community/debian/mysql-community-client-5.0.NEWS
   branches/community/debian/mysql-community-client-5.0.README.Debian
   branches/community/debian/mysql-community-client-5.0.dirs
   branches/community/debian/mysql-community-client-5.0.docs
   branches/community/debian/mysql-community-client-5.0.files
   branches/community/debian/mysql-community-client-5.0.lintian-overrides
   branches/community/debian/mysql-community-server-5.0.NEWS
   branches/community/debian/mysql-community-server-5.0.README.Debian
   branches/community/debian/mysql-community-server-5.0.config
   branches/community/debian/mysql-community-server-5.0.dirs
   branches/community/debian/mysql-community-server-5.0.docs
   branches/community/debian/mysql-community-server-5.0.files
   branches/community/debian/mysql-community-server-5.0.links
   branches/community/debian/mysql-community-server-5.0.lintian-overrides
   branches/community/debian/mysql-community-server-5.0.logcheck.ignore.paranoid
   branches/community/debian/mysql-community-server-5.0.logcheck.ignore.server
   branches/community/debian/mysql-community-server-5.0.logcheck.ignore.workstation
   branches/community/debian/mysql-community-server-5.0.mysql-community-server.logrotate
   branches/community/debian/mysql-community-server-5.0.mysql-ndb-mgm.init
   branches/community/debian/mysql-community-server-5.0.mysql-ndb.init
   branches/community/debian/mysql-community-server-5.0.mysql.init
   branches/community/debian/mysql-community-server-5.0.postinst
   branches/community/debian/mysql-community-server-5.0.postrm
   branches/community/debian/mysql-community-server-5.0.preinst
   branches/community/debian/mysql-community-server-5.0.prerm
   branches/community/debian/mysql-community-server-5.0.templates
Removed:
   branches/community/debian/mysql-client-5.0.NEWS
   branches/community/debian/mysql-client-5.0.README.Debian
   branches/community/debian/mysql-client-5.0.dirs
   branches/community/debian/mysql-client-5.0.docs
   branches/community/debian/mysql-client-5.0.files
   branches/community/debian/mysql-client-5.0.lintian-overrides
   branches/community/debian/mysql-server-5.0.NEWS
   branches/community/debian/mysql-server-5.0.README.Debian
   branches/community/debian/mysql-server-5.0.config
   branches/community/debian/mysql-server-5.0.dirs
   branches/community/debian/mysql-server-5.0.docs
   branches/community/debian/mysql-server-5.0.files
   branches/community/debian/mysql-server-5.0.links
   branches/community/debian/mysql-server-5.0.lintian-overrides
   branches/community/debian/mysql-server-5.0.logcheck.ignore.paranoid
   branches/community/debian/mysql-server-5.0.logcheck.ignore.server
   branches/community/debian/mysql-server-5.0.logcheck.ignore.workstation
   branches/community/debian/mysql-server-5.0.mysql-ndb-mgm.init
   branches/community/debian/mysql-server-5.0.mysql-ndb.init
   branches/community/debian/mysql-server-5.0.mysql-server.logrotate
   branches/community/debian/mysql-server-5.0.mysql.init
   branches/community/debian/mysql-server-5.0.postinst
   branches/community/debian/mysql-server-5.0.postrm
   branches/community/debian/mysql-server-5.0.preinst
   branches/community/debian/mysql-server-5.0.prerm
   branches/community/debian/mysql-server-5.0.templates
Modified:
   branches/community/debian/control
   branches/community/debian/rules
Log:
First pass at community naming change.


Copied: branches/community (from rev 1089, trunk)


Property changes on: branches/community
___________________________________________________________________
Name: bzr:revision-info
   + timestamp: 2007-12-18 12:09:22.734999895 -0200
committer: Monty Taylor <monty at inaugust.com>
properties: 
	branch-nick: community

Name: bzr:file-ids
   + debian/mysql-community-client-5.0.README.Debian	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-client-5.0.README.Debian
debian/mysql-community-client-5.0.dirs	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-client-5.0.dirs
debian/mysql-community-server-5.0.prerm	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.prerm
debian/mysql-community-server-5.0.preinst	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.preinst
debian/mysql-community-server-5.0.README.Debian	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.README.Debian
debian/mysql-community-server-5.0.templates	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.templates
debian/mysql-community-server-5.0.postinst	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.postinst
debian/mysql-community-server-5.0.logcheck.ignore.workstation	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.logcheck.ignore.workstation
debian/mysql-community-server-5.0.files	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.files
debian/mysql-community-server-5.0.logcheck.ignore.paranoid	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.logcheck.ignore.paranoid
debian/mysql-community-client-5.0.lintian-overrides	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-client-5.0.lintian-overrides
debian/mysql-community-server-5.0.dirs	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.dirs
debian/mysql-community-server-5.0.postrm	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.postrm
debian/mysql-community-server-5.0.mysql.init	228 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2Fsid-5.0:debian%2Fmysql-server-5.0.mysql.init
debian/mysql-community-server-5.0.logcheck.ignore.server	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.logcheck.ignore.server
debian/mysql-community-server-5.0.lintian-overrides	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.lintian-overrides
debian/mysql-community-client-5.0.files	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-client-5.0.files
debian/mysql-community-client-5.0.docs	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-client-5.0.docs
debian/mysql-community-server-5.0.config	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.config
debian/mysql-community-server-5.0.mysql-ndb-mgm.init	227 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2Fsid-5.0:debian%2Fmysql-server-5.0.mysql-ndb-mgm.init
debian/mysql-community-server-5.0.NEWS	401 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2Fsid-5.0:debian%2Fmysql-server-5.0.NEWS
debian/mysql-community-server-5.0.links	753 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2Fsid-5.0:debian%2Fmysql-server-5.0.links
debian/mysql-community-server-5.0.docs	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.docs
debian/mysql-community-server-5.0.mysql-community-server.logrotate	117 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2F5.0:debian%2Fmysql-server-5.0.mysql-server.logrotate
debian/mysql-community-server-5.0.mysql-ndb.init	227 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2Fsid-5.0:debian%2Fmysql-server-5.0.mysql-ndb.init
debian/mysql-community-client-5.0.NEWS	578 at bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1:branches%2Fsid-5.0:debian%2Fmysql-client-5.0.NEWS

Name: bzr:revision-id:v3-trunk0
   + 588 monty at inaugust.com-20071218115655-e9a3qdeanxkm37q0
588 monty at inaugust.com-20071218140922-2p0p7z3s1i61eo7a


Modified: branches/community/debian/control
===================================================================
--- trunk/debian/control	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/control	2007-12-18 14:17:36 UTC (rev 1090)
@@ -50,13 +50,13 @@
  This package includes files needed by all versions of the client library
  (e.g. /etc/mysql/my.cnf).
 
-Package: mysql-client-5.0
+Package: mysql-community-client-5.0
 Architecture: any
 Depends: debianutils (>=1.6), libdbi-perl, libdbd-mysql-perl (>= 1.2202), mysql-common (>= ${Source-Version}), libmysqlclient15off (>= ${Source-Version}), ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Recommends: libterm-readkey-perl
-Provides: virtual-mysql-client, mysql-client
-Conflicts: mysql-client (<< ${Source-Version})
-Replaces: mysql-client (<< ${Source-Version}), mysql-server
+Provides: virtual-mysql-client, mysql-client, mysql-client-5.0
+Conflicts: mysql-client (<< ${Source-Version}), mysql-enterprise-client-5.0
+Replaces: mysql-client (<< ${Source-Version}), mysql-server, mysql-enterprise-client (<< ${binary:Version})
 Description: MySQL database client binaries
  MySQL is a fast, stable and true multi-user, multi-threaded SQL database
  server. SQL (Structured Query Language) is the most popular database query
@@ -66,14 +66,14 @@
  This package includes the client binaries and the additional tools
  innotop and mysqlreport.
 
-Package: mysql-server-5.0
+Package: mysql-community-server-5.0
 Architecture: any                                                               
 Suggests: tinyca
 Recommends: mailx
 Pre-Depends: mysql-common (>= ${Source-Version}), adduser (>= 3.40), debconf
-Depends: mysql-client-5.0 (>= ${Source-Version}), libdbi-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10)
-Conflicts: mysql-server (<< ${Source-Version})
-Provides: mysql-server, virtual-mysql-server
+Depends: mysql-community-client-5.0 (>= ${Source-Version}), libdbi-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10)
+Conflicts: mysql-server (<< ${Source-Version}), mysql-enterprise-server-5.0
+Provides: mysql-server, virtual-mysql-server, mysql-server-5.0
 Replaces: mysql-server (<< ${Source-Version})
 Description: MySQL database server binaries
  MySQL is a fast, stable and true multi-user, multi-threaded SQL database
@@ -85,7 +85,7 @@
 
 Package: mysql-server
 Architecture: all
-Depends: mysql-server-5.0
+Depends: mysql-community-server-5.0
 Description: MySQL database server (meta package depending on the latest version)
  This is an empty package that depends on the current "best" version
  of mysql-server (currently mysql-server-5.0), as determined by the
@@ -100,7 +100,7 @@
 
 Package: mysql-client
 Architecture: all
-Depends: mysql-client-5.0
+Depends: mysql-community-client-5.0
 Description: MySQL database client (meta package depending on the latest version)
  This is an empty package that depends on the current "best" version of
  mysql-client (currently mysql-client-5.0), as determined by the MySQL

Deleted: branches/community/debian/mysql-client-5.0.NEWS
===================================================================
--- trunk/debian/mysql-client-5.0.NEWS	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-client-5.0.NEWS	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,6 +0,0 @@
-mysql-dfsg-5.0 (5.0.24a-2) unstable; urgency=low
-
-  * This package now includes "mysqlreport" from hackmysql.com which generates
-    a friendly report on the performance relevant variables from SHOW STATUS.
-
- -- Christian Hammers <ch at debian.org>  Sun,  3 Sep 2006 16:26:41 +0200

Deleted: branches/community/debian/mysql-client-5.0.README.Debian
===================================================================
--- trunk/debian/mysql-client-5.0.README.Debian	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-client-5.0.README.Debian	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,4 +0,0 @@
-FAQ:
-
-Q: My <tab> completition is gone, why?
-A: You have "no-auto-rehash" in the "[mysql]" section of /etc/mysql/my.cnf!

Deleted: branches/community/debian/mysql-client-5.0.dirs
===================================================================
--- trunk/debian/mysql-client-5.0.dirs	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-client-5.0.dirs	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,3 +0,0 @@
-usr/bin/
-usr/share/man/man1/
-usr/share/perl5/

Deleted: branches/community/debian/mysql-client-5.0.docs
===================================================================
--- trunk/debian/mysql-client-5.0.docs	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-client-5.0.docs	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,3 +0,0 @@
-README
-EXCEPTIONS-CLIENT
-debian/additions/innotop/changelog.innotop

Deleted: branches/community/debian/mysql-client-5.0.files
===================================================================
--- trunk/debian/mysql-client-5.0.files	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-client-5.0.files	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,48 +0,0 @@
-usr/bin/innotop
-usr/bin/myisam_ftdump
-usr/bin/mysql
-usr/bin/mysqlaccess
-usr/bin/mysqladmin
-usr/bin/mysqlbug
-usr/bin/mysqlcheck
-usr/bin/mysql_client_test
-usr/bin/mysql_client_test_embedded
-usr/bin/mysqldump
-usr/bin/mysqldumpslow
-usr/bin/mysql_explain_log
-usr/bin/mysql_find_rows
-usr/bin/mysql_fix_extensions
-usr/bin/mysqlimport
-usr/bin/mysqlreport
-usr/bin/mysqlshow
-usr/bin/mysql_tableinfo
-usr/bin/mysqltest_embedded
-usr/bin/mysqltestmanager
-usr/bin/mysqltestmanagerc
-usr/bin/mysqltestmanager-pwgen
-usr/bin/mysql_waitpid
-usr/sbin/mysqlmanager
-usr/share/lintian/overrides/mysql-client-5.0
-usr/share/man/man8/mysqlmanager.8
-usr/share/man/man1/innotop.1
-usr/share/man/man1/myisam_ftdump.1
-usr/share/man/man1/mysql.1
-usr/share/man/man1/mysqlaccess.1
-usr/share/man/man1/mysqladmin.1
-usr/share/man/man1/mysqlbug.1
-usr/share/man/man1/mysqlcheck.1
-usr/share/man/man1/mysqldump.1
-usr/share/man/man1/mysqldumpslow.1
-usr/share/man/man1/mysql_explain_log.1
-usr/share/man/man1/mysql_find_rows.1
-usr/share/man/man1/mysql_fix_extensions.1
-usr/share/man/man1/mysqlimport.1
-usr/share/man/man1/mysqlmanagerc.1
-usr/share/man/man1/mysqlmanager-pwgen.1
-usr/share/man/man1/mysqlreport.1
-usr/share/man/man1/mysqlshow.1
-usr/share/man/man1/mysql_tableinfo.1
-usr/share/man/man1/mysql_waitpid.1
-usr/share/man/man1/mysql_client_test.1
-usr/share/man/man1/mysql_client_test_embedded.1
-usr/share/perl5/InnoDBParser.pm

Deleted: branches/community/debian/mysql-client-5.0.lintian-overrides
===================================================================
--- trunk/debian/mysql-client-5.0.lintian-overrides	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-client-5.0.lintian-overrides	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,3 +0,0 @@
-mysql-client-5.0: package-has-a-duplicate-relation
-mysql-client-5.0: wrong-name-for-upstream-changelog usr/share/doc/mysql-client-5.0/changelog.innotop.gz
-mysql-client-5.0: pkg-not-in-package-test innotop

Copied: branches/community/debian/mysql-community-client-5.0.NEWS (from rev 1089, trunk/debian/mysql-client-5.0.NEWS)
===================================================================
--- branches/community/debian/mysql-community-client-5.0.NEWS	                        (rev 0)
+++ branches/community/debian/mysql-community-client-5.0.NEWS	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,6 @@
+mysql-dfsg-5.0 (5.0.24a-2) unstable; urgency=low
+
+  * This package now includes "mysqlreport" from hackmysql.com which generates
+    a friendly report on the performance relevant variables from SHOW STATUS.
+
+ -- Christian Hammers <ch at debian.org>  Sun,  3 Sep 2006 16:26:41 +0200

Copied: branches/community/debian/mysql-community-client-5.0.README.Debian (from rev 1089, trunk/debian/mysql-client-5.0.README.Debian)
===================================================================
--- branches/community/debian/mysql-community-client-5.0.README.Debian	                        (rev 0)
+++ branches/community/debian/mysql-community-client-5.0.README.Debian	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,4 @@
+FAQ:
+
+Q: My <tab> completition is gone, why?
+A: You have "no-auto-rehash" in the "[mysql]" section of /etc/mysql/my.cnf!

Copied: branches/community/debian/mysql-community-client-5.0.dirs (from rev 1089, trunk/debian/mysql-client-5.0.dirs)
===================================================================
--- branches/community/debian/mysql-community-client-5.0.dirs	                        (rev 0)
+++ branches/community/debian/mysql-community-client-5.0.dirs	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,3 @@
+usr/bin/
+usr/share/man/man1/
+usr/share/perl5/

Copied: branches/community/debian/mysql-community-client-5.0.docs (from rev 1089, trunk/debian/mysql-client-5.0.docs)
===================================================================
--- branches/community/debian/mysql-community-client-5.0.docs	                        (rev 0)
+++ branches/community/debian/mysql-community-client-5.0.docs	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,3 @@
+README
+EXCEPTIONS-CLIENT
+debian/additions/innotop/changelog.innotop

Copied: branches/community/debian/mysql-community-client-5.0.files (from rev 1089, trunk/debian/mysql-client-5.0.files)
===================================================================
--- branches/community/debian/mysql-community-client-5.0.files	                        (rev 0)
+++ branches/community/debian/mysql-community-client-5.0.files	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,48 @@
+usr/bin/innotop
+usr/bin/myisam_ftdump
+usr/bin/mysql
+usr/bin/mysqlaccess
+usr/bin/mysqladmin
+usr/bin/mysqlbug
+usr/bin/mysqlcheck
+usr/bin/mysql_client_test
+usr/bin/mysql_client_test_embedded
+usr/bin/mysqldump
+usr/bin/mysqldumpslow
+usr/bin/mysql_explain_log
+usr/bin/mysql_find_rows
+usr/bin/mysql_fix_extensions
+usr/bin/mysqlimport
+usr/bin/mysqlreport
+usr/bin/mysqlshow
+usr/bin/mysql_tableinfo
+usr/bin/mysqltest_embedded
+usr/bin/mysqltestmanager
+usr/bin/mysqltestmanagerc
+usr/bin/mysqltestmanager-pwgen
+usr/bin/mysql_waitpid
+usr/sbin/mysqlmanager
+usr/share/lintian/overrides/mysql-client-5.0
+usr/share/man/man8/mysqlmanager.8
+usr/share/man/man1/innotop.1
+usr/share/man/man1/myisam_ftdump.1
+usr/share/man/man1/mysql.1
+usr/share/man/man1/mysqlaccess.1
+usr/share/man/man1/mysqladmin.1
+usr/share/man/man1/mysqlbug.1
+usr/share/man/man1/mysqlcheck.1
+usr/share/man/man1/mysqldump.1
+usr/share/man/man1/mysqldumpslow.1
+usr/share/man/man1/mysql_explain_log.1
+usr/share/man/man1/mysql_find_rows.1
+usr/share/man/man1/mysql_fix_extensions.1
+usr/share/man/man1/mysqlimport.1
+usr/share/man/man1/mysqlmanagerc.1
+usr/share/man/man1/mysqlmanager-pwgen.1
+usr/share/man/man1/mysqlreport.1
+usr/share/man/man1/mysqlshow.1
+usr/share/man/man1/mysql_tableinfo.1
+usr/share/man/man1/mysql_waitpid.1
+usr/share/man/man1/mysql_client_test.1
+usr/share/man/man1/mysql_client_test_embedded.1
+usr/share/perl5/InnoDBParser.pm

Copied: branches/community/debian/mysql-community-client-5.0.lintian-overrides (from rev 1089, trunk/debian/mysql-client-5.0.lintian-overrides)
===================================================================
--- branches/community/debian/mysql-community-client-5.0.lintian-overrides	                        (rev 0)
+++ branches/community/debian/mysql-community-client-5.0.lintian-overrides	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,3 @@
+mysql-client-5.0: package-has-a-duplicate-relation
+mysql-client-5.0: wrong-name-for-upstream-changelog usr/share/doc/mysql-client-5.0/changelog.innotop.gz
+mysql-client-5.0: pkg-not-in-package-test innotop

Copied: branches/community/debian/mysql-community-server-5.0.NEWS (from rev 1089, trunk/debian/mysql-server-5.0.NEWS)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.NEWS	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.NEWS	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,17 @@
+mysql-dfsg-5.0 (5.0.45-2) unstable; urgency=low
+
+  * Binary logging is now disabled by default. If you really need it (e.g. on
+    a replication master), remove the comment from the log_bin line in my.cnf.
+
+ -- Norbert Tretkowski <nobse at debian.org>  Sat, 10 Nov 2007 16:26:35 +0100
+
+mysql-dfsg-5.0 (5.0.18-9) unstable; urgency=low
+
+  * Rotation of the binary logs is now configured in /etc/mysql/my.cnf with
+    "expire-logs-days" which defaults to 20 days. The old file
+    /etc/mysql/debian-log-rotate.conf should be removed together with
+    /etc/cron.daily/mysql-server after this value has been adjusted. Note that
+    the old variable defined the number of files whereas the new one defines 
+    a time span in days.
+
+ -- Christian Hammers <ch at debian.org>  Tue, 24 Jan 2006 22:18:21 +0100

Copied: branches/community/debian/mysql-community-server-5.0.README.Debian (from rev 1089, trunk/debian/mysql-server-5.0.README.Debian)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.README.Debian	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.README.Debian	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,131 @@
+
+*                     REMEMBER TO SET THE ROOT PASSWORD !!!
+============================================================================
+
+* MYSQL WON'T INSTALL?
+======================
+MySQL will only install if you have a non-numeric hostname that is resolvable
+via the /etc/hosts file. E.g. if the "hostname" command returns "myhostname"
+then there must be a line like "10.0.0.1 myhostname".
+
+On upgrades from MySQL 3.23, as shipped with Debian Woody, symlinks in place of
+/var/lib/mysql or /var/log/mysql gets accidently removed and have manually be
+restored.
+
+* MYSQL WON'T START OR STOP?
+============================
+You may never ever delete the special mysql user "debian-sys-maint". This
+user together with the credentials in /etc/mysql/debian.cnf are used by the
+init scripts to stop the server as they would require knowledge of the mysql
+root users password else.
+So in most of the times you can fix the situation by making sure that the
+debian.cnf file contains the right password, e.g. by setting a new one
+(remember to do a "flush privileges" then).
+
+* WHAT TO DO AFTER UPGRADES:
+============================
+The privilege tables are automatically updated so all there is left is read
+the changelogs on dev.mysql.com to see if any changes affect custom apps.
+
+* WHAT TO DO AFTER INSTALLATION:
+================================
+The MySQL manual describes certain steps to do at this stage in a separate
+chapter.  They are not necessary as the Debian packages does them
+automatically.
+
+The only thing that is left over for the admin is 
+ - setting the *passwords* !!!
+ - creating new users and databases
+ - read the rest of this text
+
+* DOWNGRADING TO 4.0 or 4.1:
+============================
+Unsupported. Period.
+But if you do and get problems or make interesting experiences, mail me, it
+might help others.
+Ok, if you really want, I would recommend to "mysqldump --opt" all tables,
+then purge 4.1, delete /var/lib/mysql, install 4.0 and insert the dumps.  Be
+carefully, though, with the "mysql" table, you might not simply overwrite that
+one as the password for the mysql "debian-sys-maint" user is stored in
+/etc/mysql/debian.cnf and needed by /etc/init.d/ to start mysql and check if
+it's alive. 
+
+* SOME APPLICATION CAN NO LONGER CONNECT:
+=========================================
+This application is probably linked against libmysqlclient12 or below and
+somebody has created a mysql user with new-style passwords.
+The old_passwords option which forces backwards compatibility, can be set 
+with "dpkg-reconfigure mysql-server-5.0".
+If that does not help, the password can be set manually, the application that 
+inserted the user should be changed or the application that tries to connect 
+should be updated to libmysqlclient14 or -15. 
+Read http://dev.mysql.com/doc/refman/5.0/en/old-client.html
+
+* NETWORKING:
+=============
+For security reasons, the Debian package has enabled networking only on the
+loop-back device using "bind-address" in /etc/mysql/my.cnf.  Check with
+"netstat -tlnp" where it is listening. If your connection is aborted
+immediately see if "mysqld: all" or similar is in /etc/hosts.allow and read
+hosts_access(5).
+
+* WHERE IS THE DOCUMENTATION?:
+==============================
+Unfortunately due to licensing restrictions, debian currently not able
+to provide the mysql-doc package in any format.  For the most up to date
+documentation, please go to http://dev.mysql.com/doc.
+
+* PASSWORDS:
+============
+It is strongly recommended to set a password for the mysql root user (which
+is NOT the same as the "normal" root user) with these commands:
+  /usr/bin/mysql -u root -D mysql -e "update user set password=password('new-password') where user='root'"
+  /usr/bin/mysql -u root -e "flush privileges"
+If you already had a password set add "-p" before "-u" to the lines above.
+
+If you are tired to type the password in every time or want to automate your
+scripts you can store it in the file $HOME/.my.cnf. It should be chmod 0600
+(-rw------- username username .my.cnf) to ensure that nobody else can read
+it.  Every other configuration parameter can be stored there, too. You will
+find an example below and more information in the MySQL manual in
+/usr/share/doc/mysql-doc or www.mysql.com.
+
+ATTENTION: It is necessary, that a .my.cnf from root always contains a "user"
+line wherever there is a "password" line, else, the Debian maintenance
+scripts, that use /etc/mysql/debian.cnf, will use the username
+"debian-sys-maint" but the password that is in root's .my.cnf. Also note,
+that every change you make in the /root/.my.cnf will affect the mysql cron
+script, too.
+
+        # an example of $HOME/.my.cnf
+	[client]
+	user		= your-mysql-username
+	password	= enter-your-good-new-password-here
+
+* BIG_ROWS FOR EVEN MORE ROWS IN A TABLE:
+=========================================
+If you ever run out of rows in a table there is the possibility of building
+the package with "-DBIG_ROWS" which, according to a MySQL employee on
+packagers at lists.mysql.com should lead to a 64bit row index (I guess > 2^32
+rows) but also to an approx. 5% performance loss.
+
+* NDB CLUSTER ENGINE:
+=====================
+NDB is the shared-nothing cluster engine since MySQL-4.1.
+This package contains the all three components, the mysql backend, the NDB
+Data Node and the NDB Management Node. The init scripts of the cluster
+daemons will silently exit unless their configuration is provided:
+ mysql-ndb:	needs "ndb-connectstring" in /etc/mysql/my.cnf
+ mysql-ndb-mgm: needs /etc/mysql/ndb_mgmd.cnf
+Because of the need to perform rolling restarts of the cluster during an
+upgrade, neither ndbd or ndb_mgmd will restart during a package upgrade. 
+
+* FURTHER NOTES ON REPLICATION
+===============================
+Іf the MySQL server is acting as a replication slave, you should not
+set --tmpdir to point to a directory on a memory-based filesystem or to
+a directory that is cleared when the server host restarts. A replication
+slave needs some of its temporary files to survive a machine restart so
+that it can replicate temporary tables or LOAD DATA INFILE operations. If
+files in the temporary file directory are lost when the server restarts,
+replication fails.

Copied: branches/community/debian/mysql-community-server-5.0.config (from rev 1089, trunk/debian/mysql-server-5.0.config)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.config	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.config	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,47 @@
+#!/bin/bash -e
+
+. /usr/share/debconf/confmodule
+
+if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
+${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
+
+CNF=/etc/mysql/my.cnf
+
+# Beware that there are two ypwhich one of them needs the 2>/dev/null!
+if test -n "`which ypwhich 2>/dev/null`"  &&  ypwhich >/dev/null 2>&1; then
+  db_input high mysql-server-5.0/nis_warning || true
+  db_go
+fi
+
+# only ask this question on fresh installs and during "reconfiguration".  
+# there is also an additional check for empty root passwords in the
+# postinst script when the tools are available for us to use.
+if [ "$1" = "configure" ] && [ -z "$2" ] || [ "$1" = "reconfigure" ]; then
+	db_input high mysql-server/root_password || true
+	db_go
+fi
+
+# If this is an upgrade of an already existing installation ask the user if
+# we may use the backwards incompatible but more secure password format.
+# This should not be shown at dpkg-reconfigure, except for the dist-upgrade,
+# my.cnf is for the admin only!
+# Read: If mysql was already installed but not from Etch and it was either 4.0
+# or had old_passwords enabled before then the system is affected.
+if [ -n "$DEBIAN_SCRIPT_TRACE" ]; then
+  set +e
+  [ "$1" = "configure" ]; x1=$?
+  [ -f $CNF ]; x2=$?
+  [ ! -f /var/lib/mysql/debian-4.1.flag ]; x31=$?
+  egrep -q -i '^[[:space:]]*old.passwords[[:space:]]*=[[:space:]]*(1|true)' $CNF; x32=$?
+  set -e
+fi 
+if [ "$1" = "configure" ] && 
+   [ -f $CNF ] && 
+   (
+     [ ! -f /var/lib/mysql/debian-4.1.flag ] ||
+     egrep -q -i '^[[:space:]]*old.passwords[[:space:]]*=[[:space:]]*(1|true)' $CNF
+   ) 
+then
+	db_input medium mysql-server-5.0/need_sarge_compat || true
+	db_go
+fi

Copied: branches/community/debian/mysql-community-server-5.0.dirs (from rev 1089, trunk/debian/mysql-server-5.0.dirs)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.dirs	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.dirs	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,9 @@
+etc/init.d
+etc/logrotate.d
+usr/bin
+usr/sbin
+usr/share/man/man8
+usr/share/mysql
+var/run/mysqld
+var/lib/mysql-upgrade
+var/lib/mysql-cluster

Copied: branches/community/debian/mysql-community-server-5.0.docs (from rev 1089, trunk/debian/mysql-server-5.0.docs)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.docs	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.docs	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,2 @@
+EXCEPTIONS-CLIENT
+debian/copyright.more

Copied: branches/community/debian/mysql-community-server-5.0.files (from rev 1089, trunk/debian/mysql-server-5.0.files)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.files	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.files	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,89 @@
+etc/mysql/debian-start
+usr/bin/comp_err
+usr/bin/innochecksum
+usr/bin/msql2mysql
+usr/bin/myisamchk
+usr/bin/myisamlog
+usr/bin/myisampack
+usr/bin/my_print_defaults
+usr/bin/mysqlbinlog
+usr/bin/mysql_convert_table_format
+usr/bin/mysqld_multi
+usr/bin/mysqld_safe
+usr/bin/mysql_fix_privilege_tables
+usr/bin/mysqlhotcopy
+usr/bin/mysql_install_db
+usr/bin/mysql_secure_installation
+usr/bin/mysql_setpermission
+usr/bin/mysqltest
+usr/bin/mysql_tzinfo_to_sql
+usr/bin/mysql_upgrade
+usr/bin/mysql_upgrade_shell
+usr/bin/mysql_zap
+usr/bin/ndb_config
+usr/bin/ndb_delete_all
+usr/bin/ndb_desc
+usr/bin/ndb_drop_index
+usr/bin/ndb_drop_table
+usr/bin/ndb_error_reporter
+usr/bin/ndb_mgm
+usr/bin/ndb_restore
+usr/bin/ndb_select_all
+usr/bin/ndb_select_count
+usr/bin/ndb_show_tables
+usr/bin/ndb_size
+usr/bin/ndb_test_platform
+usr/bin/ndb_waiter
+usr/bin/perror
+usr/bin/replace
+usr/bin/resolveip
+usr/bin/resolve_stack_dump
+usr/sbin/mysqld
+usr/sbin/ndb_cpcd
+usr/sbin/ndbd
+usr/sbin/ndb_mgmd
+usr/share/doc/mysql-server-5.0/
+usr/share/lintian/overrides/mysql-server-5.0
+usr/share/man/man1/comp_err.1
+usr/share/man/man1/msql2mysql.1
+usr/share/man/man1/myisamchk.1
+usr/share/man/man1/myisamlog.1
+usr/share/man/man1/myisampack.1
+usr/share/man/man1/my_print_defaults.1
+usr/share/man/man1/mysqlbinlog.1
+usr/share/man/man1/mysql_convert_table_format.1
+usr/share/man/man1/mysqld_multi.1
+usr/share/man/man1/mysqld_safe.1
+usr/share/man/man1/mysql_fix_privilege_tables.1
+usr/share/man/man1/mysqlhotcopy.1
+usr/share/man/man1/mysql_install_db.1
+usr/share/man/man1/mysql_secure_installation.1
+usr/share/man/man1/mysql_setpermission.1
+usr/share/man/man1/mysqltest.1
+usr/share/man/man1/mysql_upgrade.1
+usr/share/man/man1/mysql_zap.1
+usr/share/man/man1/perror.1
+usr/share/man/man1/replace.1
+usr/share/man/man1/resolveip.1
+usr/share/man/man1/resolve_stack_dump.1
+usr/share/man/man1/innochecksum.1
+usr/share/man/man1/mysqltest_embedded.1
+usr/share/man/man1/mysql_tzinfo_to_sql.1
+usr/share/man/man1/ndb_config.1
+usr/share/man/man1/ndb_cpcd.1
+usr/share/man/man1/ndb_delete_all.1
+usr/share/man/man1/ndb_desc.1
+usr/share/man/man1/ndb_drop_index.1
+usr/share/man/man1/ndb_drop_table.1
+usr/share/man/man1/ndb_error_reporter.1
+usr/share/man/man1/ndb_mgm.1
+usr/share/man/man1/ndb_mgmd.1
+usr/share/man/man1/ndb_restore.1
+usr/share/man/man1/ndb_select_all.1
+usr/share/man/man1/ndb_select_count.1
+usr/share/man/man1/ndb_show_tables.1
+usr/share/man/man1/ndb_size.pl.1
+usr/share/man/man1/ndb_waiter.1
+usr/share/man/man1/ndbd.1
+usr/share/man/man8/mysqld.8
+usr/share/mysql/

Copied: branches/community/debian/mysql-community-server-5.0.links (from rev 1089, trunk/debian/mysql-server-5.0.links)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.links	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.links	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,2 @@
+usr/share/mysql/mysql-test/mysql-test-run.pl usr/share/mysql/mysql-test/mysql-test-run
+usr/share/mysql/mysql-test/mysql-test-run.pl usr/share/mysql/mysql-test/mtr

Copied: branches/community/debian/mysql-community-server-5.0.lintian-overrides (from rev 1089, trunk/debian/mysql-server-5.0.lintian-overrides)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.lintian-overrides	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.lintian-overrides	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,4 @@
+mysql-server-5.0: possible-bashism-in-maintainer-script postinst:81 'p{("a".."z","A".."Z",0..9)[int(rand(62))]}'
+mysql-server-5.0: possible-bashism-in-maintainer-script preinst:33 '${cmd/ */}'
+mysql-server-5.0: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql
+mysql-server-5.0: statically-linked-binary ./usr/sbin/mysqld

Copied: branches/community/debian/mysql-community-server-5.0.logcheck.ignore.paranoid (from rev 1089, trunk/debian/mysql-server-5.0.logcheck.ignore.paranoid)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.logcheck.ignore.paranoid	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.logcheck.ignore.paranoid	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,11 @@
+/etc/init.d/mysql\[[0-9]+\]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists\!$
+/etc/init.d/mysql\[[0-9]+\]: '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
+/etc/mysql/debian-start\[[0-9]+\]: Checking for crashed MySQL tables\.$
+mysqld\[[0-9]+\]: $
+mysqld\[[0-9]+\]: Support MySQL by buying support/licenses at http://shop.mysql.com$
+mysqld\[[0-9]+\]: Version: .* socket: '/var/run/mysqld/mysqld.sock'  port: 3306$
+mysqld\[[0-9]+\]: Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command line$
+mysqld_safe\[[0-9]+\]: started$
+mysqld_safe\[[0-9]+\]: Support MySQL by buying support/licenses at http://shop.mysql.com *$
+usermod\[[0-9]+\]: change user `mysql' GID from `([0-9]+)' to `\1'$
+usermod\[[0-9]+\]: change user `mysql' shell from `/bin/false' to `/bin/false'$

Copied: branches/community/debian/mysql-community-server-5.0.logcheck.ignore.server (from rev 1089, trunk/debian/mysql-server-5.0.logcheck.ignore.server)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.logcheck.ignore.server	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.logcheck.ignore.server	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,32 @@
+/etc/init.d/mysql\[[0-9]+\]: [0-9]+ processes alive and '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
+/etc/init.d/mysql\[[0-9]+\]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists\!$
+/etc/init.d/mysql\[[0-9]+\]: '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
+/etc/mysql/debian-start\[[0-9]+\]: Checking for crashed MySQL tables\.$
+mysqld\[[0-9]+\]: ?$
+mysqld\[[0-9]+\]: .*InnoDB: Shutdown completed
+mysqld\[[0-9]+\]: .*InnoDB: Started;
+mysqld\[[0-9]+\]: .*InnoDB: Starting shutdown\.\.\.$
+mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: Normal shutdown$
+mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: ready for connections\.$
+mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: Shutdown complete$
+mysqld\[[0-9]+\]: Support MySQL by buying support/licenses at http://shop.mysql.com$
+mysqld\[[0-9]+\]: /usr/sbin/mysqld: ready for connections\.$
+mysqld\[[0-9]+\]: .*/usr/sbin/mysqld: Shutdown Complete$
+mysqld\[[0-9]+\]: Version: .* socket
+mysqld\[[0-9]+\]: Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command line$
+mysqld_safe\[[0-9]+\]: ?$
+mysqld_safe\[[0-9]+\]: able to use the new GRANT command!$
+mysqld_safe\[[0-9]+\]: ended$
+mysqld_safe\[[0-9]+\]: http://www.mysql.com$
+mysqld_safe\[[0-9]+\]: NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run$
+mysqld_safe\[[0-9]+\]: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !$
+mysqld_safe\[[0-9]+\]: Please report any problems with the /usr/bin/mysqlbug script!$
+mysqld_safe\[[0-9]+\]: See the manual for more instructions.$
+mysqld_safe\[[0-9]+\]: started$
+mysqld_safe\[[0-9]+\]: Support MySQL by buying support/licenses at
+mysqld_safe\[[0-9]+\]: The latest information about MySQL is available on the web at$
+mysqld_safe\[[0-9]+\]: the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be$
+mysqld_safe\[[0-9]+\]: To do so, start the server, then issue the following commands:$
+mysqld_safe\[[0-9]+\]: /usr/bin/mysqladmin -u root password 'new-password'$
+usermod\[[0-9]+\]: change user `mysql' GID from `([0-9]+)' to `\1'$
+usermod\[[0-9]+\]: change user `mysql' shell from `/bin/false' to `/bin/false'$

Copied: branches/community/debian/mysql-community-server-5.0.logcheck.ignore.workstation (from rev 1089, trunk/debian/mysql-server-5.0.logcheck.ignore.workstation)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.logcheck.ignore.workstation	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.logcheck.ignore.workstation	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,32 @@
+/etc/init.d/mysql\[[0-9]+\]: [0-9]+ processes alive and '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
+/etc/init.d/mysql\[[0-9]+\]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists\!$
+/etc/init.d/mysql\[[0-9]+\]: '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
+/etc/mysql/debian-start\[[0-9]+\]: Checking for crashed MySQL tables\.$
+mysqld\[[0-9]+\]: ?$
+mysqld\[[0-9]+\]: .*InnoDB: Shutdown completed
+mysqld\[[0-9]+\]: .*InnoDB: Started;
+mysqld\[[0-9]+\]: .*InnoDB: Starting shutdown\.\.\.$
+mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: Normal shutdown$
+mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: ready for connections\.$
+mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: Shutdown complete$
+mysqld\[[0-9]+\]: Support MySQL by buying support/licenses at http://shop.mysql.com$
+mysqld\[[0-9]+\]: /usr/sbin/mysqld: ready for connections\.$
+mysqld\[[0-9]+\]: .*/usr/sbin/mysqld: Shutdown Complete$
+mysqld\[[0-9]+\]: Version: .* socket
+mysqld\[[0-9]+\]: Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command line$
+mysqld_safe\[[0-9]+\]: ?$
+mysqld_safe\[[0-9]+\]: able to use the new GRANT command!$
+mysqld_safe\[[0-9]+\]: ended$
+mysqld_safe\[[0-9]+\]: http://www.mysql.com$
+mysqld_safe\[[0-9]+\]: NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run$
+mysqld_safe\[[0-9]+\]: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !$
+mysqld_safe\[[0-9]+\]: Please report any problems with the /usr/bin/mysqlbug script!$
+mysqld_safe\[[0-9]+\]: See the manual for more instructions.$
+mysqld_safe\[[0-9]+\]: started$
+mysqld_safe\[[0-9]+\]: Support MySQL by buying support/licenses at
+mysqld_safe\[[0-9]+\]: The latest information about MySQL is available on the web at$
+mysqld_safe\[[0-9]+\]: the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be$
+mysqld_safe\[[0-9]+\]: To do so, start the server, then issue the following commands:$
+mysqld_safe\[[0-9]+\]: /usr/bin/mysqladmin -u root password 'new-password'$
+usermod\[[0-9]+\]: change user `mysql' GID from `([0-9]+)' to `\1'$
+usermod\[[0-9]+\]: change user `mysql' shell from `/bin/false' to `/bin/false'$

Copied: branches/community/debian/mysql-community-server-5.0.mysql-community-server.logrotate (from rev 1089, trunk/debian/mysql-server-5.0.mysql-server.logrotate)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.mysql-community-server.logrotate	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.mysql-community-server.logrotate	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,28 @@
+# - I put everything in one block and added sharedscripts, so that mysql gets 
+#   flush-logs'd only once.
+#   Else the binary logs would automatically increase by n times every day.
+# - The error log is obsolete, messages go to syslog now.
+/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log {
+	daily
+	rotate 7
+	missingok
+	create 640 mysql adm
+	compress
+	sharedscripts
+	postrotate
+		test -x /usr/bin/mysqladmin || exit 0
+
+		# If this fails, check debian.conf! 
+		export HOME=/etc/mysql/my.cnf
+		MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
+		if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then
+		  # Really no mysqld or rather a missing debian-sys-maint user?
+		  # If this occurs and is not a error please report a bug.
+		  if ps cax | grep -q mysqld; then
+ 		    exit 1
+		  fi 
+		else
+		  $MYADMIN flush-logs
+		fi
+	endscript
+}

Copied: branches/community/debian/mysql-community-server-5.0.mysql-ndb-mgm.init (from rev 1089, trunk/debian/mysql-server-5.0.mysql-ndb-mgm.init)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.mysql-ndb-mgm.init	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.mysql-ndb-mgm.init	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,86 @@
+#!/bin/bash
+#
+### BEGIN INIT INFO
+# Provides:          mysql-ndb-mgm
+# Required-Start:    $syslog
+# Required-Stop:     $syslog mysql
+# Should-Start:      $local_fs $remote_fs $network $named $time
+# Should-Stop:       $local_fs $remote_fs $network $named $time
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start and stop the mysql database cluster management daemon
+# Description:       Controls the MySQL NDB Management Node daemon "ndb_mgmd".
+### END INIT INFO
+#
+set -e
+set -u
+${DEBIAN_SCRIPT_DEBUG:+ set -v -x}
+
+# Variables
+SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)
+DAEMON=/usr/sbin/ndb_mgmd
+CONF=/etc/mysql/ndb_mgmd.cnf
+export HOME=/etc/mysql/
+
+# Safeguard (relative paths, core dumps..)
+cd /
+umask 077
+
+# Exit *silently* if we're not supposed to be started.
+#
+# The Debian scripts should execute these scripts to stop and start
+# the daemon when upgrading if it is started. On the other hand it should
+# remain silently if the server has not even been configured.
+# See /usr/share/doc/mysql-server-*/README.Debian for more information.
+test -x $DAEMON || exit 0
+test -r $CONF || exit 0
+. /lib/lsb/init-functions
+
+#
+# main()
+#
+case "${1:-''}" in
+  'start')
+	# Start daemon
+	log_daemon_msg "Starting MySQL NDB Management Node" "ndb_mgmd"
+	# --pid-file does not work as the daemon forks itself with $PID=$PID+1
+	if start-stop-daemon \
+		--start \
+		--exec $DAEMON \
+		--user mysql \
+		-- \
+		-f $CONF
+	then
+	  log_end_msg 0
+	else
+	  log_end_msg 1
+	  log_warning_msg "Please take a look at the syslog."
+	  exit 1
+	fi			  
+	;;
+
+  'stop')
+  	log_daemon_msg "Stopping MySQL NDB Management Node" "ndb_mgmd"	
+	if start-stop-daemon \
+		--stop \
+		--oknodo \
+		--exec $DAEMON
+	then
+	  log_end_msg 0
+	else
+	  log_end_msg 1
+	  exit 1
+        fi
+	;;
+
+  'restart'|'force-reload')
+	set +e; $SELF stop; set -e
+	$SELF start 
+	;;
+
+  *)
+	echo "Usage: $SELF start|stop|restart|force-reload"
+	exit 1
+	;;
+esac
+

Copied: branches/community/debian/mysql-community-server-5.0.mysql-ndb.init (from rev 1089, trunk/debian/mysql-server-5.0.mysql-ndb.init)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.mysql-ndb.init	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.mysql-ndb.init	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,103 @@
+#!/bin/bash
+#
+### BEGIN INIT INFO
+# Provides:          mysql-ndb
+# Required-Start:    $syslog mysql mysql-ndb-mgm
+# Required-Stop:     $syslog mysql mysql-ndb-mgm
+# Should-Start:      $local_fs $remote_fs $network $named $time
+# Should-Stop:       $local_fs $remote_fs $network $named $time
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start and stop the mysql database cluster server daemon
+# Description:       Controls the MySQL NDB Data Node daemon "ndbd".
+### END INIT INFO
+#
+set -e
+set -u
+${DEBIAN_SCRIPT_DEBUG:+ set -v -x}
+
+# Variables
+SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)
+DAEMON=/usr/sbin/ndbd
+CONF=/etc/mysql/my.cnf
+export HOME=/etc/mysql/
+
+# Safeguard (relative paths, core dumps..)
+cd /
+umask 077
+
+# Exit *silently* if we're not supposed to be started.
+#
+# The Debian scripts should execute these scripts to stop and start
+# the daemon when upgrading if it is started. On the other hand it should
+# remain silently if the server has not even been configured.
+# See /usr/share/doc/mysql-server-*/README.Debian for more information.
+test -x $DAEMON || exit 0
+if $DAEMON --help | grep -q '^ndb-connectstring.*No default value'; then exit 0; fi
+. /lib/lsb/init-functions
+
+#
+# main()
+#
+case "${1:-''}" in
+  'start')
+	# Start daemon
+        # Creatign a PID file does not work as the master process forks
+        # a child with different PID and then terminates itself.
+	log_daemon_msg "Starting MySQL NDB Data Node" "ndbd"
+	if start-stop-daemon \
+		--start \
+		--exec $DAEMON \
+		--user mysql
+	then
+	  log_end_msg 0
+	else
+	  log_end_msg 1
+	  log_warning_msg "Please take a look at the syslog."
+	  exit 1
+	fi			  
+	;;
+
+  'start-initial')
+        # Perform an initial start of ndbd
+        log_daemon_msg "Initial start of MySQL NDB Data Node" "ndbd"
+        if start-stop-daemon \
+                --start \
+                --exec $DAEMON \
+                --user mysql \
+                -- --initial
+        then
+          log_end_msg 0
+        else
+          log_end_msg 1
+          log_warning_msg "Please take a look at the syslog."
+          exit 1
+        fi  
+        ;;
+
+  'stop')
+	log_daemon_msg "Stopping MySQL NDB Data Node" "ndbd"	
+	if start-stop-daemon \
+		--stop \
+		--oknodo \
+		--exec $DAEMON
+	then
+	  log_end_msg 0
+	else
+	  log_end_msg 1
+	  exit 1
+        fi
+	;;
+
+  'restart'|'force-reload')
+	set +e; $SELF stop; set -e
+	$SELF start 
+	;;
+
+  *)
+	echo "Usage: $SELF start|start-initial|stop|restart|force-reload"
+	echo " * start-initial starts ndbd with '--initial'"
+	exit 1
+	;;
+esac
+

Copied: branches/community/debian/mysql-community-server-5.0.mysql.init (from rev 1089, trunk/debian/mysql-server-5.0.mysql.init)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.mysql.init	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.mysql.init	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,190 @@
+#!/bin/bash
+#
+### BEGIN INIT INFO
+# Provides:          mysql
+# Required-Start:    $syslog mysql-ndb-mgm
+# Required-Stop:     $syslog
+# Should-Start:      $local_fs $remote_fs $network $named $time
+# Should-Stop:       $local_fs $remote_fs $network $named $time
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start and stop the mysql database server daemon
+# Description:       Controls the main MySQL database server daemon "mysqld"
+#                    and its wrapper script "mysqld_safe".
+### END INIT INFO
+#
+set -e
+set -u
+${DEBIAN_SCRIPT_DEBUG:+ set -v -x}
+
+test -x /usr/sbin/mysqld || exit 0
+
+. /lib/lsb/init-functions
+
+SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)
+CONF=/etc/mysql/my.cnf
+MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
+
+# priority can be overriden and "-s" adds output to stderr
+ERR_LOGGER="logger -p daemon.err -t /etc/init.d/mysql -i"
+
+# Safeguard (relative paths, core dumps..)
+cd /
+umask 077
+
+# mysqladmin likes to read /root/.my.cnf. This is usually not what I want
+# as many admins e.g. only store a password without a username there and
+# so break my scripts.
+export HOME=/etc/mysql/
+
+## Fetch a particular option from mysql's invocation.
+#
+# Usage: void mysqld_get_param option
+mysqld_get_param() {
+	/usr/sbin/mysqld --print-defaults \
+		| tr " " "\n" \
+		| grep -- "--$1" \
+		| tail -n 1 \
+		| cut -d= -f2
+}
+
+## Do some sanity checks before even trying to start mysqld.
+sanity_checks() {
+  # check for config file
+  if [ ! -r /etc/mysql/my.cnf ]; then
+    log_warning_msg "$0: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz"
+    echo                "WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz" | $ERR_LOGGER
+  fi
+
+  # check for diskspace shortage
+  datadir=`mysqld_get_param datadir`
+  if LC_ALL=C BLOCKSIZE= df --portability $datadir/. | tail -n 1 | awk '{ exit ($4>4096) }'; then
+    log_failure_msg "$0: ERROR: The partition with $datadir is too full!"
+    echo                "ERROR: The partition with $datadir is too full!" | $ERR_LOGGER
+    exit 1
+  fi
+}
+
+## Checks if there is a server running and if so if it is accessible.
+#
+# check_alive insists on a pingable server
+# check_dead also fails if there is a lost mysqld in the process list
+#
+# Usage: boolean mysqld_status [check_alive|check_dead] [warn|nowarn]
+mysqld_status () {
+    ping_output=`$MYADMIN ping 2>&1`; ping_alive=$(( ! $? ))
+
+    ps_alive=0
+    pidfile=`mysqld_get_param pid-file`
+    if [ -f "$pidfile" ] && ps `cat $pidfile` >/dev/null 2>&1; then ps_alive=1; fi
+    
+    if [ "$1" = "check_alive"  -a  $ping_alive = 1 ] ||
+       [ "$1" = "check_dead"   -a  $ping_alive = 0  -a  $ps_alive = 0 ]; then
+	return 0 # EXIT_SUCCESS
+    else
+  	if [ "$2" = "warn" ]; then
+  	    echo -e "$ps_alive processes alive and '$MYADMIN ping' resulted in\n$ping_output\n" | $ERR_LOGGER -p daemon.debug
+	fi
+  	return 1 # EXIT_FAILURE
+    fi
+}
+
+#
+# main()
+#
+
+case "${1:-''}" in
+  'start')
+	sanity_checks;
+	# Start daemon
+	log_daemon_msg "Starting MySQL database server" "mysqld"
+	if mysqld_status check_alive nowarn; then
+	   log_progress_msg "already running"
+	   log_end_msg 0
+	else
+  	    /usr/bin/mysqld_safe > /dev/null 2>&1 &
+	    # 6s was reported in #352070 to be too few when using ndbcluster
+	    for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
+                sleep 1
+	        if mysqld_status check_alive nowarn ; then break; fi
+		log_progress_msg "."
+	    done
+	    if mysqld_status check_alive warn; then
+                log_end_msg 0
+	        # Now start mysqlcheck or whatever the admin wants.
+	        output=$(/etc/mysql/debian-start)
+		[ -n "$output" ] && log_action_msg "$output"
+	    else
+	        log_end_msg 1
+		log_failure_msg "Please take a look at the syslog"
+	    fi
+	fi
+
+	# Some warnings
+        if $MYADMIN variables | egrep -q have_bdb.*YES; then
+            echo "BerkeleyDB is obsolete, see /usr/share/doc/mysql-server-5.0/README.Debian.gz" | $ERR_LOGGER -p daemon.info
+        fi
+        if [ -f /etc/mysql/debian-log-rotate.conf ]; then
+            echo "/etc/mysql/debian-log-rotate.conf is obsolete, see /usr/share/doc/mysql-server-5.0/NEWS.Debian.gz" | $ERR_LOGGER -p daemon.info
+        fi
+	;;
+
+  'stop')
+	# * As a passwordless mysqladmin (e.g. via ~/.my.cnf) must be possible
+	# at least for cron, we can rely on it here, too. (although we have 
+	# to specify it explicit as e.g. sudo environments points to the normal
+	# users home and not /root)
+	log_daemon_msg "Stopping MySQL database server" "mysqld"
+	if ! mysqld_status check_dead nowarn; then
+	  set +e
+	  shutdown_out=`$MYADMIN shutdown 2>&1`; r=$?
+	  set -e
+	  if [ "$r" -ne 0 ]; then
+	    log_end_msg 1
+	    [ "$VERBOSE" != "no" ] && log_failure_msg "Error: $shutdown_out"
+	    log_daemon_msg "Killing MySQL database server by signal" "mysqld"
+	    killall -15 mysqld
+            server_down=
+	    for i in 1 2 3 4 5 6 7 8 9 10; do
+              sleep 1
+              if mysqld_status check_dead nowarn; then server_down=1; break; fi
+            done
+          if test -z "$server_down"; then killall -9 mysqld; fi
+	  fi
+        fi
+
+        if ! mysqld_status check_dead warn; then
+	  log_end_msg 1
+	  log_failure_msg "Please stop MySQL manually and read /usr/share/doc/mysql-server-5.0/README.Debian.gz!"
+	  exit -1
+	else
+	  log_end_msg 0
+        fi
+	;;
+
+  'restart')
+	set +e; $SELF stop; set -e
+	$SELF start 
+	;;
+
+  'reload'|'force-reload')
+  	log_daemon_msg "Reloading MySQL database server" "mysqld"
+	$MYADMIN reload
+	log_end_msg 0
+	;;
+
+  'status')
+	if mysqld_status check_alive nowarn; then
+	  log_action_msg "$($MYADMIN version)"
+	else
+	  log_action_msg "MySQL is stopped."
+	  exit 3
+	fi
+  	;;
+
+  *)
+	echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
+	exit 1
+	;;
+esac
+

Copied: branches/community/debian/mysql-community-server-5.0.postinst (from rev 1089, trunk/debian/mysql-server-5.0.postinst)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.postinst	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.postinst	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,276 @@
+#!/bin/bash -e
+
+. /usr/share/debconf/confmodule
+
+if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
+${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
+ 
+export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin
+
+# This command can be used as pipe to syslog. With "-s" it also logs to stderr.
+ERR_LOGGER="logger -p daemon.err -t mysqld_safe -i"
+
+invoke() {
+  if [ -x /usr/sbin/invoke-rc.d ]; then
+    invoke-rc.d mysql $1
+  else
+    /etc/init.d/mysql $1
+  fi
+}
+
+MYSQL_BOOTSTRAP="/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables  --skip-bdb  --skip-innodb "
+
+test_mysql_access() {
+	mysql --no-defaults -u root -h localhost </dev/null >/dev/null 2>&1
+}
+
+# call with $1 = "online" to connect to the server, otherwise it bootstraps
+set_mysql_rootpw() {
+	# forget we ever saw the password.  don't use reset to keep the seen status
+	db_set mysql-server/root_password ""
+
+	tfile=`mktemp`
+	if [ ! -f "$tfile" ]; then
+		return 1
+	fi
+
+	# this avoids us having to call "test" or "[" on $rootpw
+	cat << EOF > $tfile
+USE mysql;
+UPDATE user SET password=PASSWORD("$rootpw") WHERE user='root';
+FLUSH PRIVILEGES;
+EOF
+	if grep -q 'PASSWORD("")' $tfile; then
+		retval=0
+	elif [ "$1" = "online" ]; then
+		mysql --no-defaults -u root -h localhost <$tfile >/dev/null
+		retval=$?
+	else
+		$MYSQL_BOOTSTRAP <$tfile
+		retval=$?
+	fi
+	rm -f $tfile
+	return $retval
+}
+
+# This is necessary because mysql_install_db removes the pid file in /var/run
+# and because changed configuration options should take effect immediately.
+# In case the server wasn't running at all it should be ok if the stop
+# script fails. I can't tell at this point because of the cleaned /var/run.
+set +e; invoke stop; set -e
+    
+case "$1" in
+  configure)
+    mysql_cnf=/etc/mysql/my.cnf
+    mysql_datadir=/usr/share/mysql
+    mysql_statedir=/var/lib/mysql
+    mysql_rundir=/var/run/mysqld
+    mysql_logdir=/var/log
+    mysql_cfgdir=/etc/mysql
+    mysql_newlogdir=/var/log/mysql
+    mysql_upgradedir=/var/lib/mysql-upgrade
+
+    # first things first, if the following symlink exists, it is a preserved
+    # copy the old data dir from a mysql upgrade that would have otherwise
+    # been replaced by an empty mysql dir.  this should restore it.
+    for dir in DATADIR LOGDIR; do
+        if [ "$dir" = "DATADIR" ]; then targetdir=$mysql_statedir; else targetdir=$mysql_newlogdir; fi
+        savelink="$mysql_upgradedir/$dir.link"
+        if [ -L "$savelink" ]; then
+            # If the targetdir was a symlink before we upgraded it is supposed
+            # to be either still be present or not existing anymore now.
+            if [ -L "$targetdir" ]; then
+                rm "$savelink"
+            elif [ ! -d "$targetdir" ]; then
+                mv "$savelink" "$targetdir"
+            else
+                # this should never even happen, but just in case...
+                mysql_tmp=`mktemp -d -t mysql-symlink-restore-XXXXXX`
+                echo "this is very strange!  see $mysql_tmp/README..." >&2
+                mv "$targetdir" "$mysql_tmp"
+                cat << EOF > "$mysql_tmp/README"
+
+if you're reading this, it's most likely because you had replaced /var/lib/mysql
+with a symlink, then upgraded to a new version of mysql, and then dpkg
+removed your symlink (see #182747 and others).  the mysql packages noticed
+that this happened, and as a workaround have restored it.  however, because
+/var/lib/mysql seems to have been re-created in the meantime, and because
+we don't want to rm -rf something we don't know as much about, we're going
+to leave this unexpected directory here.  if your database looks normal,
+and this is not a symlink to your database, you should be able to blow
+this all away.
+
+EOF
+            fi
+        fi
+	rmdir $mysql_upgradedir 2>/dev/null || true
+    done
+    
+    # Ensure the existence and right permissions for the database and
+    # log files.
+    if [ ! -d "$mysql_statedir"       -a ! -L "$mysql_statedir"       ]; then mkdir "$mysql_statedir"; fi
+    if [ ! -d "$mysql_statedir/mysql" -a ! -L "$mysql_statedir/mysql" ]; then mkdir "$mysql_statedir/mysql"; fi
+    if [ ! -d "$mysql_newlogdir"      -a ! -L "$mysql_newlogdir"      ]; then mkdir "$mysql_newlogdir"; fi
+    # When creating an ext3 jounal on an already mounted filesystem like e.g.
+    # /var/lib/mysql, you get a .journal file that is not modifyable by chown.
+    # The mysql_datadir must not be writable by the mysql user under any
+    # circumstances as it contains scripts that are executed by root.
+    set +e
+    chown -R 0.0 $mysql_datadir
+    chown -R mysql $mysql_statedir
+    chown -R mysql $mysql_rundir
+    chown -R mysql:adm $mysql_newlogdir;	chmod 2750 $mysql_newlogdir;
+    for i in log err; do
+      touch             $mysql_logdir/mysql.$i
+      chown mysql:adm   $mysql_logdir/mysql.$i
+      chmod 0640        $mysql_logdir/mysql.$i
+    done
+    set -e
+
+    # This is important to avoid dataloss when there is a removed
+    # mysql-server version from Woody lying around which used the same
+    # data directory and then somewhen gets purged by the admin.
+    db_set mysql-server/postrm_remove_database false || true
+
+    # So that mysql-server (4.0) can check if it's safe to install.
+    touch $mysql_statedir/debian-5.0.flag
+
+    # On dist-upgrades, we ensure that the old_password setting is updated
+    # before passwords are changed. Except for that my.cnf is taboo!
+    db_get mysql-server-5.0/need_sarge_compat_done || true
+    if [ "$RET" = "false" ]; then
+ 	db_get mysql-server-5.0/need_sarge_compat
+	echo -e "# created by debconf\n[mysqld]\nold_passwords = $RET" > /etc/mysql/conf.d/old_passwords.cnf
+    fi
+    db_set mysql-server-5.0/need_sarge_compat_done true
+
+    # initiate databases. Output is not allowed by debconf :-(
+    # Debian: beware of the bashisms... 
+    # Debian: can safely run on upgrades with existing databases 
+    set +e
+    /bin/bash /usr/bin/mysql_install_db --rpm 2>&1 | $ERR_LOGGER
+    if [ "$?" != "0" ]; then
+      echo "ATTENTION: An error has occured. More info is in the syslog!"
+    fi
+    set -e
+    
+    ## On every reconfiguration the maintenance user is recreated.
+    #
+    # - It is easier to regenerate the password every time but as people
+    #   use fancy rsync scripts and file alteration monitors, the existing
+    #   password is used and existing files not touched.
+    # - The mysqld statement is like that in mysql_install_db because the
+    #   server is not already running. This has some implications:
+    # 	- The amount of newlines and semicolons in the query is important!
+    #   - GRANT is not possible with --skipt-grant-tables and "INSERT
+    #     (user,host..) VALUES" is not --ansi compliant
+    # - The echo is just for readability. ash's buildin has no "-e" so use /bin/echo.
+    # - The Super_priv, Show_db_priv, Create_tmp_table_priv and Lock_tables_priv
+    #   may not be present as old Woody 3.23 databases did not have it and the
+    #   admin might not already have run mysql_upgrade which adds them.
+    #   As the binlog cron scripts to need at least the Super_priv, I do first
+    #   the old query which always succeeds and then the new which may or may not.
+
+    # recreate the credentials file if not present or without mysql_upgrade stanza
+    dc=$mysql_cfgdir/debian.cnf; 
+    if [ -e "$dc" -a -n "`fgrep mysql_upgrade $dc 2>/dev/null`" ]; then
+        pass="`sed -n 's/password *= *// p' $dc | head -n 1`"
+    else
+	pass=`perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'`;
+        if [ ! -d "$mysql_cfgdir" ]; then install -o 0 -g 0 -m 0755 -d $mysql_cfgdir; fi
+        cat /dev/null > $dc
+        echo "# Automatically generated for Debian scripts. DO NOT TOUCH!" >>$dc
+        echo "[client]"                                                    >>$dc
+        echo "host     = localhost"                                        >>$dc
+        echo "user     = debian-sys-maint"                                 >>$dc
+        echo "password = $pass"                                            >>$dc
+        echo "socket   = $mysql_rundir/mysqld.sock"                        >>$dc
+        echo "[mysql_upgrade]"                                             >>$dc
+        echo "user     = debian-sys-maint"                                 >>$dc
+        echo "password = $pass"                                            >>$dc
+        echo "socket   = $mysql_rundir/mysqld.sock"                        >>$dc
+        echo "basedir  = /usr"                                             >>$dc
+    fi
+    # If this dir chmod go+w then the admin did it. But this file should not.
+    chown 0:0 $dc
+    chmod 0600 $dc
+
+    # update privilege and timezone tables
+    password_column_fix_query=`/bin/echo -e \
+	"USE mysql\n" \
+	"ALTER TABLE user CHANGE password Password varchar(41) collate utf8_bin NOT NULL default ''"`;
+    replace_query=`/bin/echo -e \
+	"USE mysql\n" \
+	"REPLACE INTO user SET " \
+	"  host='localhost', user='debian-sys-maint', password=password('$pass'), " \
+	"  Select_priv='Y', Insert_priv='Y', Update_priv='Y', Delete_priv='Y', " \
+	"  Create_priv='Y', Drop_priv='Y', Reload_priv='Y', Shutdown_priv='Y', " \
+	"  Process_priv='Y',  File_priv='Y', Grant_priv='Y', References_priv='Y', " \
+	"  Index_priv='Y', Alter_priv='Y' __EXTRA_PRIVS__"`;
+    extra_privs=`/bin/echo -e \
+	", Show_db_priv='Y' " \
+	", Super_priv='Y' " \
+	", Create_tmp_table_priv='Y' " \
+	", Lock_tables_priv='Y' " \
+	", Execute_priv='Y' " \
+	", Repl_slave_priv='Y' " \
+	", Repl_client_priv='Y' "`;
+
+    # Upgrade password column format before the root password gets set.
+    echo "$password_column_fix_query"                             | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
+
+    db_get mysql-server/root_password && rootpw="$RET"
+    if ! set_mysql_rootpw; then
+    	password_error="yes"
+    fi
+
+    echo "$replace_query" | sed "s/__EXTRA_PRIVS__//"             | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
+    set +e
+    echo "$replace_query" | sed "s/__EXTRA_PRIVS__/$extra_privs/" | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
+    set -e
+    mysql_tzinfo_to_sql /usr/share/zoneinfo/ 2>&1 | egrep -v 'Skipping it.$' | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
+
+    # The Sarge package "mysql-server" which used to include the mysqld daemon
+    # may still be in unselected-configured state (i.e. after a remove but not
+    # purge) in which case its now obsolete cronscript has to be moved away.
+    for i in /etc/cron.daily/mysql-server /etc/cron.daily/mysql-server-41 /etc/mysql/debian-log-rotate.conf; do
+      if [ -f $i ]; then mv $i $i.dpkg-old; fi 
+    done
+  ;;
+
+  abort-upgrade|abort-remove|abort-configure)
+  ;;
+
+  *)
+    echo "postinst called with unknown argument '$1'" 1>&2
+    exit 1
+  ;;
+esac
+
+#DEBHELPER#
+
+# here we check to see if we can connect as root without a password
+# this should catch upgrades from previous verisons where the root
+# password wasn't set.  if there is a password, or if the connection
+# fails for any other reason, nothing happens.
+if [ "$1" = "configure" ]; then
+	if test_mysql_access; then
+		db_input medium mysql-server/root_password || true
+		db_go
+		db_get mysql-server/root_password && rootpw="$RET"
+
+		if ! set_mysql_rootpw "online"; then
+			password_error="yes"
+		fi
+	fi
+
+	if [ "$password_error" = "yes" ]; then
+		db_input high mysql-server/error_setting_password || true
+		db_go
+	fi
+
+fi
+
+db_stop # in case invoke failes
+
+exit 0

Copied: branches/community/debian/mysql-community-server-5.0.postrm (from rev 1089, trunk/debian/mysql-server-5.0.postrm)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.postrm	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.postrm	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,97 @@
+#!/bin/bash -e
+
+# It is possible that Debconf has already been removed, too.
+if [ -f /usr/share/debconf/confmodule ]; then
+  . /usr/share/debconf/confmodule
+fi
+
+if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
+${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
+
+MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
+
+# Try to stop the server in a sane way. If it does not success let the admin
+# do it himself. No database directories should be removed while the server
+# is running!
+stop_server() {
+  set +e
+  if [ -x /usr/sbin/invoke-rc.d ]; then
+    invoke-rc.d mysql stop
+  else
+    /etc/init.d/mysql stop
+  fi
+  errno=$?
+  set -e
+
+  if [ "$?" != 0 ]; then
+    echo "Trying to stop the MySQL server resulted in exitcode $?." 1>&2
+    echo "Stop it yourself and try again!" 1>&2
+    exit 1
+  fi
+}
+
+case "$1" in
+  purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    if [ -n "`$MYADMIN ping 2>/dev/null`" ]; then
+      stop_server
+      sleep 2
+    fi
+  ;;
+  *)
+    echo "postrm called with unknown argument '$1'" 1>&2
+    exit 1
+  ;;
+esac
+
+# Remove Debconf generated config files to allow clean upgrades to 5.1.
+rm -f /etc/mysql/conf.d/old_passwords.cnf
+
+#
+# - Do NOT purge logs or data if another mysql-sever* package is installed (#307473)
+# - Remove the mysql user only after all his owned files are purged.
+#   
+if [ "$1" = "purge" -a ! \( -x /usr/sbin/mysqld -o -L /usr/sbin/mysqld \) ]; then
+  # we remove the mysql user only after all his owned files are purged
+  rm -f /var/log/mysql.{log,err}{,.0,.[1234567].gz}
+  rm -rf /var/log/mysql
+
+  db_input high mysql-server-5.0/postrm_remove_databases || true
+  db_go || true
+  db_get mysql-server-5.0/postrm_remove_databases || true
+  if [ "$RET" = "true" ]; then
+    # never remove the debian.cnf when the databases are still existing
+    # else we ran into big trouble on the next install!
+    rm -f /etc/mysql/debian.cnf
+    rm -rf /var/lib/mysql
+    rm -rf /var/run/mysqld
+    userdel mysql || true
+  fi
+
+  # (normally) Automatically added by dh_installinit
+  if [ "$1" = "purge" ] ; then
+        update-rc.d mysql remove >/dev/null || exit 0
+  fi
+  # (normally) End automatically added section
+fi
+
+# (normally) Automatically added by dh_installdebconf
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+        . /usr/share/debconf/confmodule
+        db_purge
+fi
+# (normally) End automatically added section
+
+# (normally) Automatically added by dh_installinit
+if [ "$1" = "purge" ] ; then
+        update-rc.d mysql-ndb-mgm remove >/dev/null || exit 0
+fi
+# (normally) End automatically added section
+# (normally) Automatically added by dh_installinit
+if [ "$1" = "purge" ] ; then
+        update-rc.d mysql-ndb remove >/dev/null || exit 0
+fi
+# (normally) End automatically added section
+
+# no DEBHELPER here, "update-rc.d remove" fails if mysql-server-5.0 is installed
+
+exit 0

Copied: branches/community/debian/mysql-community-server-5.0.preinst (from rev 1089, trunk/debian/mysql-server-5.0.preinst)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.preinst	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.preinst	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,174 @@
+#!/bin/bash -e
+#
+# summary of how this script can be called:
+#        * <new-preinst> install
+#        * <new-preinst> install <old-version>
+#        * <new-preinst> upgrade <old-version>
+#        * <old-preinst> abort-upgrade <new-version>
+#
+
+. /usr/share/debconf/confmodule
+
+if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
+${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
+
+export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin
+MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
+DATADIR=/var/lib/mysql
+LOGDIR=/var/log/mysql
+UPGRADEDIR=/var/lib/mysql-upgrade
+
+# Try to stop the server in a sane way. If it does not success let the admin
+# do it himself. No database directories should be removed while the server
+# is running! Another mysqld in e.g. a different chroot is fine for us.
+stop_server() {
+    if [ ! -x /etc/init.d/mysql ]; then return; fi
+
+    set +e
+    if [ -x /usr/sbin/invoke-rc.d ]; then
+      cmd="invoke-rc.d mysql stop"
+    else
+      cmd="/etc/init.d/mysql stop"
+    fi
+    $cmd
+    errno=$?
+    set -e
+   
+    # 0=ok, 100=no init script (fresh install)
+    if [ "$errno" != 0 -a "$errno" != 100 ]; then
+      echo "${cmd/ */} returned $errno" 1>&2
+      echo "There is a MySQL server running, but we failed in our attempts to stop it." 1>&2
+      echo "Stop it yourself and try again!" 1>&2
+      db_stop  	
+      exit 1
+    fi
+}
+
+################################ main() ##########################
+
+this_version=5.0
+
+# Check kernel version
+if dpkg --compare-versions `uname -r` lt 2.6; then
+  /bin/echo -e "\nPROBLEM: MySQL-5.x is currently incompatible with kernel 2.4. Aborting.";
+  /bin/echo -e "See http://bugs.debian.org/416841 for more information.\n"
+  exit 1
+fi
+
+show_downgrade_warning=0
+for i in `ls $DATADIR/debian-*.flag 2>/dev/null`; do
+  found_version=`echo $i | sed 's/.*debian-\([0-9\.]\+\).flag/\1/'`
+  if dpkg --compare-versions "$this_version" '<<' "$found_version"; then
+    show_downgrade_warning=1
+    break;
+  fi
+done
+if [ "$show_downgrade_warning" = 1 ]; then
+  db_fset mysql-server-$this_version/really_downgrade seen false || true
+  db_input medium mysql-server-$this_version/really_downgrade || true
+  db_go
+  db_get mysql-server-$this_version/really_downgrade || true
+  if [ "$RET" = "true" ]; then
+    rm -f $DATADIR/debian-*.flag
+    touch $DATADIR/debian-$this_version.flag
+  else
+    echo "Aborting downgrade from (at least) $found_version to $this_version." 1>&2
+    db_stop
+    exit 1
+  fi
+fi
+
+# to be sure
+stop_server
+
+# If we use NIS then errors should be tolerated. It's up to the
+# user to ensure that the mysql user is correctly setup.
+# Beware that there are two ypwhich one of them needs the 2>/dev/null!
+if test -n "`which ypwhich 2>/dev/null`"  &&  ypwhich >/dev/null 2>&1; then
+  set +e
+fi
+
+#
+# Now we have to ensure the following state:
+# /etc/passwd: mysql:x:100:101:MySQL Server:/var/lib/mysql:/bin/false
+# /etc/group:  mysql:x:101:
+# 
+# Sadly there could any state be present on the system so we have to
+# modify everything carefully i.e. not doing a chown before creating
+# the user etc...
+#
+
+# creating mysql group if he isn't already there
+if ! getent group mysql >/dev/null; then
+ 	# Adding system group: mysql.
+	addgroup --system mysql >/dev/null
+fi
+
+# creating mysql user if he isn't already there
+if ! getent passwd mysql >/dev/null; then
+	# Adding system user: mysql.
+	adduser \
+	  --system \
+	  --disabled-login \
+	  --ingroup mysql \
+	  --home $DATADIR \
+	  --gecos "MySQL Server" \
+	  --shell /bin/false \
+	  mysql  >/dev/null
+fi
+
+# end of NIS tolerance zone
+set -e
+
+# if there's a symlink, let's store where it's pointing, because otherwise
+# it's going to be lost in some situations
+for dir in DATADIR LOGDIR; do
+    checkdir=`eval echo "$"$dir`
+    if [ -L "$checkdir" ]; then
+	mkdir -p "$UPGRADEDIR"
+	cp -d "$checkdir" "$UPGRADEDIR/$dir.link"
+    fi
+done
+
+# creating mysql home directory
+if [ ! -d $DATADIR -a ! -L $DATADIR ]; then
+ 	mkdir $DATADIR
+fi
+
+# checking disc space
+if LC_ALL=C BLOCKSIZE= df --portability $DATADIR/. | tail -n 1 | awk '{ exit ($4>1000) }'; then
+  echo "ERROR: There's not enough space in $DATADIR/" 1>&2
+  db_stop
+  exit 1
+fi
+
+# Since the home directory was created before putting the user into
+# the mysql group and moreover we cannot guarantee that the 
+# permissions were correctly *before* calling this script, we fix them now.
+# In case we use NIS and no mysql user is present then this script should
+# better fail now than later..
+# The "set +e" is necessary as e.g. a ".journal" of a ext3 partition is
+# not chgrp'able (#318435).
+set +e
+chown mysql:mysql $DATADIR
+find $DATADIR -follow -not -group mysql -print0 2>/dev/null \
+  | xargs -0 --no-run-if-empty chgrp mysql
+set -e
+
+# Some files below /etc/ were possibly in the mysql-server-4.1/sarge package
+# before. They get overwritten by current ones to avoid unnecessary dpkg questions.
+while read md5 file; do
+  if [ "`md5sum $file 2>/dev/null`" = "$md5  $file" ]; then
+    cp /usr/share/mysql-common/internal-use-only/`echo $file | sed 's°/°_°g'` $file
+  fi
+done <<EOT
+6691f2fdc5c6d27ff0260eb79813e1bc  /etc/init.d/mysql
+b53b9552d44661361d39157c3c7c51d3  /etc/logrotate.d/mysql-server
+57f3e58f72582ca55100dc1ba0f1a8ae  /etc/mysql/debian-start
+EOT
+
+db_stop
+
+#DEBHELPER#
+
+exit 0

Copied: branches/community/debian/mysql-community-server-5.0.prerm (from rev 1089, trunk/debian/mysql-server-5.0.prerm)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.prerm	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.prerm	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+. /usr/share/debconf/confmodule
+
+if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
+${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
+
+#DEBHELPER#

Copied: branches/community/debian/mysql-community-server-5.0.templates (from rev 1089, trunk/debian/mysql-server-5.0.templates)
===================================================================
--- branches/community/debian/mysql-community-server-5.0.templates	                        (rev 0)
+++ branches/community/debian/mysql-community-server-5.0.templates	2007-12-18 14:17:36 UTC (rev 1090)
@@ -0,0 +1,93 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# for an advice to debian-l10n-english at lists.debian.org
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+Template: mysql-server-5.0/really_downgrade
+Type: boolean
+Default: false
+_Description: Really proceed with downgrade?
+ A file named /var/lib/mysql/debian-*.flag exists on this system.
+ .
+ Such file is an indication that a mysql-server package with a higher
+ version has been installed earlier.
+ .
+ There is no guarantee that the version you're currently installing
+ will be able to use the current databases.
+
+Template: mysql-server-5.0/nis_warning
+Type: note
+#flag:translate!:3,5
+_Description: Important note for NIS/YP users
+ To use MySQL, the following entries for users and groups should be added
+ to the system:
+ .
+  /etc/passwd   : mysql:x:100:101:MySQL Server:/var/lib/mysql:/bin/false
+  /etc/group    : mysql:x:101:
+ .
+ You should also check the permissions and the owner of the
+ /var/lib/mysql directory:
+ .
+  /var/lib/mysql: drwxr-xr-x   mysql    mysql
+
+Template: mysql-server-5.0/postrm_remove_databases
+Type: boolean
+Default: false
+_Description: Remove all MySQL databases?
+ The /var/lib/mysql directory which contains the MySQL databases is about
+ to be removed.
+ .
+ If you're removing the MySQL package in order to later install a more
+ recent version or if a different mysql-server package is already
+ using it, the data should be kept.
+
+Template: mysql-server-5.0/start_on_boot
+Type: boolean
+Default: true
+_Description: Start the MySQL server on boot?
+ The MySQL server can be launched automatically at boot time or manually
+ with the '/etc/init.d/mysql start' command.
+
+Template: mysql-server/root_password
+Type: password
+_Description: New password for the MySQL "root" user:
+ While not mandatory, it is highly recommended that you set a password
+ for the MySQL administrative "root" user.
+ .
+ If that field is left blank, the password will not be changed.
+
+Template: mysql-server/error_setting_password
+Type: error
+_Description: Unable to set password for the MySQL "root" user
+ An error occurred while setting the password for the MySQL
+ administrative user. This may have happened because the account
+ already has a password, or because of a communication problem with
+ the MySQL server.
+ .
+ You should check the account's password after the package installation.
+ .
+ Please read the /usr/share/doc/mysql-server-5.0/README.Debian file
+ for more information.
+
+Template: mysql-server-5.0/need_sarge_compat
+Type: boolean
+Default: false
+_Description: Support MySQL connections from hosts running Debian "sarge" or older?
+ In old versions of MySQL clients on Debian, passwords were not stored
+ securely. This has been improved since then, however clients (such as PHP)
+ from hosts running Debian 3.1 Sarge will not be able to connect to
+ recent accounts or accounts whose password have been changed.
+ .
+ Please read the /usr/share/doc/mysql-server-5.0/README.Debian file
+ for more information.
+
+Template: mysql-server-5.0/need_sarge_compat_done
+Type: boolean
+Default: false
+Description: for internal use
+ Only internally used.
+

Deleted: branches/community/debian/mysql-server-5.0.NEWS
===================================================================
--- trunk/debian/mysql-server-5.0.NEWS	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.NEWS	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,17 +0,0 @@
-mysql-dfsg-5.0 (5.0.45-2) unstable; urgency=low
-
-  * Binary logging is now disabled by default. If you really need it (e.g. on
-    a replication master), remove the comment from the log_bin line in my.cnf.
-
- -- Norbert Tretkowski <nobse at debian.org>  Sat, 10 Nov 2007 16:26:35 +0100
-
-mysql-dfsg-5.0 (5.0.18-9) unstable; urgency=low
-
-  * Rotation of the binary logs is now configured in /etc/mysql/my.cnf with
-    "expire-logs-days" which defaults to 20 days. The old file
-    /etc/mysql/debian-log-rotate.conf should be removed together with
-    /etc/cron.daily/mysql-server after this value has been adjusted. Note that
-    the old variable defined the number of files whereas the new one defines 
-    a time span in days.
-
- -- Christian Hammers <ch at debian.org>  Tue, 24 Jan 2006 22:18:21 +0100

Deleted: branches/community/debian/mysql-server-5.0.README.Debian
===================================================================
--- trunk/debian/mysql-server-5.0.README.Debian	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.README.Debian	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,131 +0,0 @@
-
-*                     REMEMBER TO SET THE ROOT PASSWORD !!!
-============================================================================
-
-* MYSQL WON'T INSTALL?
-======================
-MySQL will only install if you have a non-numeric hostname that is resolvable
-via the /etc/hosts file. E.g. if the "hostname" command returns "myhostname"
-then there must be a line like "10.0.0.1 myhostname".
-
-On upgrades from MySQL 3.23, as shipped with Debian Woody, symlinks in place of
-/var/lib/mysql or /var/log/mysql gets accidently removed and have manually be
-restored.
-
-* MYSQL WON'T START OR STOP?
-============================
-You may never ever delete the special mysql user "debian-sys-maint". This
-user together with the credentials in /etc/mysql/debian.cnf are used by the
-init scripts to stop the server as they would require knowledge of the mysql
-root users password else.
-So in most of the times you can fix the situation by making sure that the
-debian.cnf file contains the right password, e.g. by setting a new one
-(remember to do a "flush privileges" then).
-
-* WHAT TO DO AFTER UPGRADES:
-============================
-The privilege tables are automatically updated so all there is left is read
-the changelogs on dev.mysql.com to see if any changes affect custom apps.
-
-* WHAT TO DO AFTER INSTALLATION:
-================================
-The MySQL manual describes certain steps to do at this stage in a separate
-chapter.  They are not necessary as the Debian packages does them
-automatically.
-
-The only thing that is left over for the admin is 
- - setting the *passwords* !!!
- - creating new users and databases
- - read the rest of this text
-
-* DOWNGRADING TO 4.0 or 4.1:
-============================
-Unsupported. Period.
-But if you do and get problems or make interesting experiences, mail me, it
-might help others.
-Ok, if you really want, I would recommend to "mysqldump --opt" all tables,
-then purge 4.1, delete /var/lib/mysql, install 4.0 and insert the dumps.  Be
-carefully, though, with the "mysql" table, you might not simply overwrite that
-one as the password for the mysql "debian-sys-maint" user is stored in
-/etc/mysql/debian.cnf and needed by /etc/init.d/ to start mysql and check if
-it's alive. 
-
-* SOME APPLICATION CAN NO LONGER CONNECT:
-=========================================
-This application is probably linked against libmysqlclient12 or below and
-somebody has created a mysql user with new-style passwords.
-The old_passwords option which forces backwards compatibility, can be set 
-with "dpkg-reconfigure mysql-server-5.0".
-If that does not help, the password can be set manually, the application that 
-inserted the user should be changed or the application that tries to connect 
-should be updated to libmysqlclient14 or -15. 
-Read http://dev.mysql.com/doc/refman/5.0/en/old-client.html
-
-* NETWORKING:
-=============
-For security reasons, the Debian package has enabled networking only on the
-loop-back device using "bind-address" in /etc/mysql/my.cnf.  Check with
-"netstat -tlnp" where it is listening. If your connection is aborted
-immediately see if "mysqld: all" or similar is in /etc/hosts.allow and read
-hosts_access(5).
-
-* WHERE IS THE DOCUMENTATION?:
-==============================
-Unfortunately due to licensing restrictions, debian currently not able
-to provide the mysql-doc package in any format.  For the most up to date
-documentation, please go to http://dev.mysql.com/doc.
-
-* PASSWORDS:
-============
-It is strongly recommended to set a password for the mysql root user (which
-is NOT the same as the "normal" root user) with these commands:
-  /usr/bin/mysql -u root -D mysql -e "update user set password=password('new-password') where user='root'"
-  /usr/bin/mysql -u root -e "flush privileges"
-If you already had a password set add "-p" before "-u" to the lines above.
-
-If you are tired to type the password in every time or want to automate your
-scripts you can store it in the file $HOME/.my.cnf. It should be chmod 0600
-(-rw------- username username .my.cnf) to ensure that nobody else can read
-it.  Every other configuration parameter can be stored there, too. You will
-find an example below and more information in the MySQL manual in
-/usr/share/doc/mysql-doc or www.mysql.com.
-
-ATTENTION: It is necessary, that a .my.cnf from root always contains a "user"
-line wherever there is a "password" line, else, the Debian maintenance
-scripts, that use /etc/mysql/debian.cnf, will use the username
-"debian-sys-maint" but the password that is in root's .my.cnf. Also note,
-that every change you make in the /root/.my.cnf will affect the mysql cron
-script, too.
-
-        # an example of $HOME/.my.cnf
-	[client]
-	user		= your-mysql-username
-	password	= enter-your-good-new-password-here
-
-* BIG_ROWS FOR EVEN MORE ROWS IN A TABLE:
-=========================================
-If you ever run out of rows in a table there is the possibility of building
-the package with "-DBIG_ROWS" which, according to a MySQL employee on
-packagers at lists.mysql.com should lead to a 64bit row index (I guess > 2^32
-rows) but also to an approx. 5% performance loss.
-
-* NDB CLUSTER ENGINE:
-=====================
-NDB is the shared-nothing cluster engine since MySQL-4.1.
-This package contains the all three components, the mysql backend, the NDB
-Data Node and the NDB Management Node. The init scripts of the cluster
-daemons will silently exit unless their configuration is provided:
- mysql-ndb:	needs "ndb-connectstring" in /etc/mysql/my.cnf
- mysql-ndb-mgm: needs /etc/mysql/ndb_mgmd.cnf
-Because of the need to perform rolling restarts of the cluster during an
-upgrade, neither ndbd or ndb_mgmd will restart during a package upgrade. 
-
-* FURTHER NOTES ON REPLICATION
-===============================
-Іf the MySQL server is acting as a replication slave, you should not
-set --tmpdir to point to a directory on a memory-based filesystem or to
-a directory that is cleared when the server host restarts. A replication
-slave needs some of its temporary files to survive a machine restart so
-that it can replicate temporary tables or LOAD DATA INFILE operations. If
-files in the temporary file directory are lost when the server restarts,
-replication fails.

Deleted: branches/community/debian/mysql-server-5.0.config
===================================================================
--- trunk/debian/mysql-server-5.0.config	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.config	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,47 +0,0 @@
-#!/bin/bash -e
-
-. /usr/share/debconf/confmodule
-
-if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
-${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
-
-CNF=/etc/mysql/my.cnf
-
-# Beware that there are two ypwhich one of them needs the 2>/dev/null!
-if test -n "`which ypwhich 2>/dev/null`"  &&  ypwhich >/dev/null 2>&1; then
-  db_input high mysql-server-5.0/nis_warning || true
-  db_go
-fi
-
-# only ask this question on fresh installs and during "reconfiguration".  
-# there is also an additional check for empty root passwords in the
-# postinst script when the tools are available for us to use.
-if [ "$1" = "configure" ] && [ -z "$2" ] || [ "$1" = "reconfigure" ]; then
-	db_input high mysql-server/root_password || true
-	db_go
-fi
-
-# If this is an upgrade of an already existing installation ask the user if
-# we may use the backwards incompatible but more secure password format.
-# This should not be shown at dpkg-reconfigure, except for the dist-upgrade,
-# my.cnf is for the admin only!
-# Read: If mysql was already installed but not from Etch and it was either 4.0
-# or had old_passwords enabled before then the system is affected.
-if [ -n "$DEBIAN_SCRIPT_TRACE" ]; then
-  set +e
-  [ "$1" = "configure" ]; x1=$?
-  [ -f $CNF ]; x2=$?
-  [ ! -f /var/lib/mysql/debian-4.1.flag ]; x31=$?
-  egrep -q -i '^[[:space:]]*old.passwords[[:space:]]*=[[:space:]]*(1|true)' $CNF; x32=$?
-  set -e
-fi 
-if [ "$1" = "configure" ] && 
-   [ -f $CNF ] && 
-   (
-     [ ! -f /var/lib/mysql/debian-4.1.flag ] ||
-     egrep -q -i '^[[:space:]]*old.passwords[[:space:]]*=[[:space:]]*(1|true)' $CNF
-   ) 
-then
-	db_input medium mysql-server-5.0/need_sarge_compat || true
-	db_go
-fi

Deleted: branches/community/debian/mysql-server-5.0.dirs
===================================================================
--- trunk/debian/mysql-server-5.0.dirs	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.dirs	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,9 +0,0 @@
-etc/init.d
-etc/logrotate.d
-usr/bin
-usr/sbin
-usr/share/man/man8
-usr/share/mysql
-var/run/mysqld
-var/lib/mysql-upgrade
-var/lib/mysql-cluster

Deleted: branches/community/debian/mysql-server-5.0.docs
===================================================================
--- trunk/debian/mysql-server-5.0.docs	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.docs	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,2 +0,0 @@
-EXCEPTIONS-CLIENT
-debian/copyright.more

Deleted: branches/community/debian/mysql-server-5.0.files
===================================================================
--- trunk/debian/mysql-server-5.0.files	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.files	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,89 +0,0 @@
-etc/mysql/debian-start
-usr/bin/comp_err
-usr/bin/innochecksum
-usr/bin/msql2mysql
-usr/bin/myisamchk
-usr/bin/myisamlog
-usr/bin/myisampack
-usr/bin/my_print_defaults
-usr/bin/mysqlbinlog
-usr/bin/mysql_convert_table_format
-usr/bin/mysqld_multi
-usr/bin/mysqld_safe
-usr/bin/mysql_fix_privilege_tables
-usr/bin/mysqlhotcopy
-usr/bin/mysql_install_db
-usr/bin/mysql_secure_installation
-usr/bin/mysql_setpermission
-usr/bin/mysqltest
-usr/bin/mysql_tzinfo_to_sql
-usr/bin/mysql_upgrade
-usr/bin/mysql_upgrade_shell
-usr/bin/mysql_zap
-usr/bin/ndb_config
-usr/bin/ndb_delete_all
-usr/bin/ndb_desc
-usr/bin/ndb_drop_index
-usr/bin/ndb_drop_table
-usr/bin/ndb_error_reporter
-usr/bin/ndb_mgm
-usr/bin/ndb_restore
-usr/bin/ndb_select_all
-usr/bin/ndb_select_count
-usr/bin/ndb_show_tables
-usr/bin/ndb_size
-usr/bin/ndb_test_platform
-usr/bin/ndb_waiter
-usr/bin/perror
-usr/bin/replace
-usr/bin/resolveip
-usr/bin/resolve_stack_dump
-usr/sbin/mysqld
-usr/sbin/ndb_cpcd
-usr/sbin/ndbd
-usr/sbin/ndb_mgmd
-usr/share/doc/mysql-server-5.0/
-usr/share/lintian/overrides/mysql-server-5.0
-usr/share/man/man1/comp_err.1
-usr/share/man/man1/msql2mysql.1
-usr/share/man/man1/myisamchk.1
-usr/share/man/man1/myisamlog.1
-usr/share/man/man1/myisampack.1
-usr/share/man/man1/my_print_defaults.1
-usr/share/man/man1/mysqlbinlog.1
-usr/share/man/man1/mysql_convert_table_format.1
-usr/share/man/man1/mysqld_multi.1
-usr/share/man/man1/mysqld_safe.1
-usr/share/man/man1/mysql_fix_privilege_tables.1
-usr/share/man/man1/mysqlhotcopy.1
-usr/share/man/man1/mysql_install_db.1
-usr/share/man/man1/mysql_secure_installation.1
-usr/share/man/man1/mysql_setpermission.1
-usr/share/man/man1/mysqltest.1
-usr/share/man/man1/mysql_upgrade.1
-usr/share/man/man1/mysql_zap.1
-usr/share/man/man1/perror.1
-usr/share/man/man1/replace.1
-usr/share/man/man1/resolveip.1
-usr/share/man/man1/resolve_stack_dump.1
-usr/share/man/man1/innochecksum.1
-usr/share/man/man1/mysqltest_embedded.1
-usr/share/man/man1/mysql_tzinfo_to_sql.1
-usr/share/man/man1/ndb_config.1
-usr/share/man/man1/ndb_cpcd.1
-usr/share/man/man1/ndb_delete_all.1
-usr/share/man/man1/ndb_desc.1
-usr/share/man/man1/ndb_drop_index.1
-usr/share/man/man1/ndb_drop_table.1
-usr/share/man/man1/ndb_error_reporter.1
-usr/share/man/man1/ndb_mgm.1
-usr/share/man/man1/ndb_mgmd.1
-usr/share/man/man1/ndb_restore.1
-usr/share/man/man1/ndb_select_all.1
-usr/share/man/man1/ndb_select_count.1
-usr/share/man/man1/ndb_show_tables.1
-usr/share/man/man1/ndb_size.pl.1
-usr/share/man/man1/ndb_waiter.1
-usr/share/man/man1/ndbd.1
-usr/share/man/man8/mysqld.8
-usr/share/mysql/

Deleted: branches/community/debian/mysql-server-5.0.links
===================================================================
--- trunk/debian/mysql-server-5.0.links	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.links	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,2 +0,0 @@
-usr/share/mysql/mysql-test/mysql-test-run.pl usr/share/mysql/mysql-test/mysql-test-run
-usr/share/mysql/mysql-test/mysql-test-run.pl usr/share/mysql/mysql-test/mtr

Deleted: branches/community/debian/mysql-server-5.0.lintian-overrides
===================================================================
--- trunk/debian/mysql-server-5.0.lintian-overrides	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.lintian-overrides	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,4 +0,0 @@
-mysql-server-5.0: possible-bashism-in-maintainer-script postinst:81 'p{("a".."z","A".."Z",0..9)[int(rand(62))]}'
-mysql-server-5.0: possible-bashism-in-maintainer-script preinst:33 '${cmd/ */}'
-mysql-server-5.0: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql
-mysql-server-5.0: statically-linked-binary ./usr/sbin/mysqld

Deleted: branches/community/debian/mysql-server-5.0.logcheck.ignore.paranoid
===================================================================
--- trunk/debian/mysql-server-5.0.logcheck.ignore.paranoid	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.logcheck.ignore.paranoid	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,11 +0,0 @@
-/etc/init.d/mysql\[[0-9]+\]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists\!$
-/etc/init.d/mysql\[[0-9]+\]: '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
-/etc/mysql/debian-start\[[0-9]+\]: Checking for crashed MySQL tables\.$
-mysqld\[[0-9]+\]: $
-mysqld\[[0-9]+\]: Support MySQL by buying support/licenses at http://shop.mysql.com$
-mysqld\[[0-9]+\]: Version: .* socket: '/var/run/mysqld/mysqld.sock'  port: 3306$
-mysqld\[[0-9]+\]: Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command line$
-mysqld_safe\[[0-9]+\]: started$
-mysqld_safe\[[0-9]+\]: Support MySQL by buying support/licenses at http://shop.mysql.com *$
-usermod\[[0-9]+\]: change user `mysql' GID from `([0-9]+)' to `\1'$
-usermod\[[0-9]+\]: change user `mysql' shell from `/bin/false' to `/bin/false'$

Deleted: branches/community/debian/mysql-server-5.0.logcheck.ignore.server
===================================================================
--- trunk/debian/mysql-server-5.0.logcheck.ignore.server	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.logcheck.ignore.server	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,32 +0,0 @@
-/etc/init.d/mysql\[[0-9]+\]: [0-9]+ processes alive and '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
-/etc/init.d/mysql\[[0-9]+\]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists\!$
-/etc/init.d/mysql\[[0-9]+\]: '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
-/etc/mysql/debian-start\[[0-9]+\]: Checking for crashed MySQL tables\.$
-mysqld\[[0-9]+\]: ?$
-mysqld\[[0-9]+\]: .*InnoDB: Shutdown completed
-mysqld\[[0-9]+\]: .*InnoDB: Started;
-mysqld\[[0-9]+\]: .*InnoDB: Starting shutdown\.\.\.$
-mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: Normal shutdown$
-mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: ready for connections\.$
-mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: Shutdown complete$
-mysqld\[[0-9]+\]: Support MySQL by buying support/licenses at http://shop.mysql.com$
-mysqld\[[0-9]+\]: /usr/sbin/mysqld: ready for connections\.$
-mysqld\[[0-9]+\]: .*/usr/sbin/mysqld: Shutdown Complete$
-mysqld\[[0-9]+\]: Version: .* socket
-mysqld\[[0-9]+\]: Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command line$
-mysqld_safe\[[0-9]+\]: ?$
-mysqld_safe\[[0-9]+\]: able to use the new GRANT command!$
-mysqld_safe\[[0-9]+\]: ended$
-mysqld_safe\[[0-9]+\]: http://www.mysql.com$
-mysqld_safe\[[0-9]+\]: NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run$
-mysqld_safe\[[0-9]+\]: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !$
-mysqld_safe\[[0-9]+\]: Please report any problems with the /usr/bin/mysqlbug script!$
-mysqld_safe\[[0-9]+\]: See the manual for more instructions.$
-mysqld_safe\[[0-9]+\]: started$
-mysqld_safe\[[0-9]+\]: Support MySQL by buying support/licenses at
-mysqld_safe\[[0-9]+\]: The latest information about MySQL is available on the web at$
-mysqld_safe\[[0-9]+\]: the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be$
-mysqld_safe\[[0-9]+\]: To do so, start the server, then issue the following commands:$
-mysqld_safe\[[0-9]+\]: /usr/bin/mysqladmin -u root password 'new-password'$
-usermod\[[0-9]+\]: change user `mysql' GID from `([0-9]+)' to `\1'$
-usermod\[[0-9]+\]: change user `mysql' shell from `/bin/false' to `/bin/false'$

Deleted: branches/community/debian/mysql-server-5.0.logcheck.ignore.workstation
===================================================================
--- trunk/debian/mysql-server-5.0.logcheck.ignore.workstation	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.logcheck.ignore.workstation	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,32 +0,0 @@
-/etc/init.d/mysql\[[0-9]+\]: [0-9]+ processes alive and '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
-/etc/init.d/mysql\[[0-9]+\]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists\!$
-/etc/init.d/mysql\[[0-9]+\]: '/usr/bin/mysqladmin --defaults-(extra-)?file=/etc/mysql/debian.cnf ping' resulted in$
-/etc/mysql/debian-start\[[0-9]+\]: Checking for crashed MySQL tables\.$
-mysqld\[[0-9]+\]: ?$
-mysqld\[[0-9]+\]: .*InnoDB: Shutdown completed
-mysqld\[[0-9]+\]: .*InnoDB: Started;
-mysqld\[[0-9]+\]: .*InnoDB: Starting shutdown\.\.\.$
-mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: Normal shutdown$
-mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: ready for connections\.$
-mysqld\[[0-9]+\]: .*\[Note\] /usr/sbin/mysqld: Shutdown complete$
-mysqld\[[0-9]+\]: Support MySQL by buying support/licenses at http://shop.mysql.com$
-mysqld\[[0-9]+\]: /usr/sbin/mysqld: ready for connections\.$
-mysqld\[[0-9]+\]: .*/usr/sbin/mysqld: Shutdown Complete$
-mysqld\[[0-9]+\]: Version: .* socket
-mysqld\[[0-9]+\]: Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command line$
-mysqld_safe\[[0-9]+\]: ?$
-mysqld_safe\[[0-9]+\]: able to use the new GRANT command!$
-mysqld_safe\[[0-9]+\]: ended$
-mysqld_safe\[[0-9]+\]: http://www.mysql.com$
-mysqld_safe\[[0-9]+\]: NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run$
-mysqld_safe\[[0-9]+\]: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !$
-mysqld_safe\[[0-9]+\]: Please report any problems with the /usr/bin/mysqlbug script!$
-mysqld_safe\[[0-9]+\]: See the manual for more instructions.$
-mysqld_safe\[[0-9]+\]: started$
-mysqld_safe\[[0-9]+\]: Support MySQL by buying support/licenses at
-mysqld_safe\[[0-9]+\]: The latest information about MySQL is available on the web at$
-mysqld_safe\[[0-9]+\]: the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be$
-mysqld_safe\[[0-9]+\]: To do so, start the server, then issue the following commands:$
-mysqld_safe\[[0-9]+\]: /usr/bin/mysqladmin -u root password 'new-password'$
-usermod\[[0-9]+\]: change user `mysql' GID from `([0-9]+)' to `\1'$
-usermod\[[0-9]+\]: change user `mysql' shell from `/bin/false' to `/bin/false'$

Deleted: branches/community/debian/mysql-server-5.0.mysql-ndb-mgm.init
===================================================================
--- trunk/debian/mysql-server-5.0.mysql-ndb-mgm.init	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.mysql-ndb-mgm.init	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,86 +0,0 @@
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides:          mysql-ndb-mgm
-# Required-Start:    $syslog
-# Required-Stop:     $syslog mysql
-# Should-Start:      $local_fs $remote_fs $network $named $time
-# Should-Stop:       $local_fs $remote_fs $network $named $time
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: Start and stop the mysql database cluster management daemon
-# Description:       Controls the MySQL NDB Management Node daemon "ndb_mgmd".
-### END INIT INFO
-#
-set -e
-set -u
-${DEBIAN_SCRIPT_DEBUG:+ set -v -x}
-
-# Variables
-SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)
-DAEMON=/usr/sbin/ndb_mgmd
-CONF=/etc/mysql/ndb_mgmd.cnf
-export HOME=/etc/mysql/
-
-# Safeguard (relative paths, core dumps..)
-cd /
-umask 077
-
-# Exit *silently* if we're not supposed to be started.
-#
-# The Debian scripts should execute these scripts to stop and start
-# the daemon when upgrading if it is started. On the other hand it should
-# remain silently if the server has not even been configured.
-# See /usr/share/doc/mysql-server-*/README.Debian for more information.
-test -x $DAEMON || exit 0
-test -r $CONF || exit 0
-. /lib/lsb/init-functions
-
-#
-# main()
-#
-case "${1:-''}" in
-  'start')
-	# Start daemon
-	log_daemon_msg "Starting MySQL NDB Management Node" "ndb_mgmd"
-	# --pid-file does not work as the daemon forks itself with $PID=$PID+1
-	if start-stop-daemon \
-		--start \
-		--exec $DAEMON \
-		--user mysql \
-		-- \
-		-f $CONF
-	then
-	  log_end_msg 0
-	else
-	  log_end_msg 1
-	  log_warning_msg "Please take a look at the syslog."
-	  exit 1
-	fi			  
-	;;
-
-  'stop')
-  	log_daemon_msg "Stopping MySQL NDB Management Node" "ndb_mgmd"	
-	if start-stop-daemon \
-		--stop \
-		--oknodo \
-		--exec $DAEMON
-	then
-	  log_end_msg 0
-	else
-	  log_end_msg 1
-	  exit 1
-        fi
-	;;
-
-  'restart'|'force-reload')
-	set +e; $SELF stop; set -e
-	$SELF start 
-	;;
-
-  *)
-	echo "Usage: $SELF start|stop|restart|force-reload"
-	exit 1
-	;;
-esac
-

Deleted: branches/community/debian/mysql-server-5.0.mysql-ndb.init
===================================================================
--- trunk/debian/mysql-server-5.0.mysql-ndb.init	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.mysql-ndb.init	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,103 +0,0 @@
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides:          mysql-ndb
-# Required-Start:    $syslog mysql mysql-ndb-mgm
-# Required-Stop:     $syslog mysql mysql-ndb-mgm
-# Should-Start:      $local_fs $remote_fs $network $named $time
-# Should-Stop:       $local_fs $remote_fs $network $named $time
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: Start and stop the mysql database cluster server daemon
-# Description:       Controls the MySQL NDB Data Node daemon "ndbd".
-### END INIT INFO
-#
-set -e
-set -u
-${DEBIAN_SCRIPT_DEBUG:+ set -v -x}
-
-# Variables
-SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)
-DAEMON=/usr/sbin/ndbd
-CONF=/etc/mysql/my.cnf
-export HOME=/etc/mysql/
-
-# Safeguard (relative paths, core dumps..)
-cd /
-umask 077
-
-# Exit *silently* if we're not supposed to be started.
-#
-# The Debian scripts should execute these scripts to stop and start
-# the daemon when upgrading if it is started. On the other hand it should
-# remain silently if the server has not even been configured.
-# See /usr/share/doc/mysql-server-*/README.Debian for more information.
-test -x $DAEMON || exit 0
-if $DAEMON --help | grep -q '^ndb-connectstring.*No default value'; then exit 0; fi
-. /lib/lsb/init-functions
-
-#
-# main()
-#
-case "${1:-''}" in
-  'start')
-	# Start daemon
-        # Creatign a PID file does not work as the master process forks
-        # a child with different PID and then terminates itself.
-	log_daemon_msg "Starting MySQL NDB Data Node" "ndbd"
-	if start-stop-daemon \
-		--start \
-		--exec $DAEMON \
-		--user mysql
-	then
-	  log_end_msg 0
-	else
-	  log_end_msg 1
-	  log_warning_msg "Please take a look at the syslog."
-	  exit 1
-	fi			  
-	;;
-
-  'start-initial')
-        # Perform an initial start of ndbd
-        log_daemon_msg "Initial start of MySQL NDB Data Node" "ndbd"
-        if start-stop-daemon \
-                --start \
-                --exec $DAEMON \
-                --user mysql \
-                -- --initial
-        then
-          log_end_msg 0
-        else
-          log_end_msg 1
-          log_warning_msg "Please take a look at the syslog."
-          exit 1
-        fi  
-        ;;
-
-  'stop')
-	log_daemon_msg "Stopping MySQL NDB Data Node" "ndbd"	
-	if start-stop-daemon \
-		--stop \
-		--oknodo \
-		--exec $DAEMON
-	then
-	  log_end_msg 0
-	else
-	  log_end_msg 1
-	  exit 1
-        fi
-	;;
-
-  'restart'|'force-reload')
-	set +e; $SELF stop; set -e
-	$SELF start 
-	;;
-
-  *)
-	echo "Usage: $SELF start|start-initial|stop|restart|force-reload"
-	echo " * start-initial starts ndbd with '--initial'"
-	exit 1
-	;;
-esac
-

Deleted: branches/community/debian/mysql-server-5.0.mysql-server.logrotate
===================================================================
--- trunk/debian/mysql-server-5.0.mysql-server.logrotate	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.mysql-server.logrotate	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,28 +0,0 @@
-# - I put everything in one block and added sharedscripts, so that mysql gets 
-#   flush-logs'd only once.
-#   Else the binary logs would automatically increase by n times every day.
-# - The error log is obsolete, messages go to syslog now.
-/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log {
-	daily
-	rotate 7
-	missingok
-	create 640 mysql adm
-	compress
-	sharedscripts
-	postrotate
-		test -x /usr/bin/mysqladmin || exit 0
-
-		# If this fails, check debian.conf! 
-		export HOME=/etc/mysql/my.cnf
-		MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
-		if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then
-		  # Really no mysqld or rather a missing debian-sys-maint user?
-		  # If this occurs and is not a error please report a bug.
-		  if ps cax | grep -q mysqld; then
- 		    exit 1
-		  fi 
-		else
-		  $MYADMIN flush-logs
-		fi
-	endscript
-}

Deleted: branches/community/debian/mysql-server-5.0.mysql.init
===================================================================
--- trunk/debian/mysql-server-5.0.mysql.init	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.mysql.init	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,190 +0,0 @@
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides:          mysql
-# Required-Start:    $syslog mysql-ndb-mgm
-# Required-Stop:     $syslog
-# Should-Start:      $local_fs $remote_fs $network $named $time
-# Should-Stop:       $local_fs $remote_fs $network $named $time
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: Start and stop the mysql database server daemon
-# Description:       Controls the main MySQL database server daemon "mysqld"
-#                    and its wrapper script "mysqld_safe".
-### END INIT INFO
-#
-set -e
-set -u
-${DEBIAN_SCRIPT_DEBUG:+ set -v -x}
-
-test -x /usr/sbin/mysqld || exit 0
-
-. /lib/lsb/init-functions
-
-SELF=$(cd $(dirname $0); pwd -P)/$(basename $0)
-CONF=/etc/mysql/my.cnf
-MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
-
-# priority can be overriden and "-s" adds output to stderr
-ERR_LOGGER="logger -p daemon.err -t /etc/init.d/mysql -i"
-
-# Safeguard (relative paths, core dumps..)
-cd /
-umask 077
-
-# mysqladmin likes to read /root/.my.cnf. This is usually not what I want
-# as many admins e.g. only store a password without a username there and
-# so break my scripts.
-export HOME=/etc/mysql/
-
-## Fetch a particular option from mysql's invocation.
-#
-# Usage: void mysqld_get_param option
-mysqld_get_param() {
-	/usr/sbin/mysqld --print-defaults \
-		| tr " " "\n" \
-		| grep -- "--$1" \
-		| tail -n 1 \
-		| cut -d= -f2
-}
-
-## Do some sanity checks before even trying to start mysqld.
-sanity_checks() {
-  # check for config file
-  if [ ! -r /etc/mysql/my.cnf ]; then
-    log_warning_msg "$0: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz"
-    echo                "WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz" | $ERR_LOGGER
-  fi
-
-  # check for diskspace shortage
-  datadir=`mysqld_get_param datadir`
-  if LC_ALL=C BLOCKSIZE= df --portability $datadir/. | tail -n 1 | awk '{ exit ($4>4096) }'; then
-    log_failure_msg "$0: ERROR: The partition with $datadir is too full!"
-    echo                "ERROR: The partition with $datadir is too full!" | $ERR_LOGGER
-    exit 1
-  fi
-}
-
-## Checks if there is a server running and if so if it is accessible.
-#
-# check_alive insists on a pingable server
-# check_dead also fails if there is a lost mysqld in the process list
-#
-# Usage: boolean mysqld_status [check_alive|check_dead] [warn|nowarn]
-mysqld_status () {
-    ping_output=`$MYADMIN ping 2>&1`; ping_alive=$(( ! $? ))
-
-    ps_alive=0
-    pidfile=`mysqld_get_param pid-file`
-    if [ -f "$pidfile" ] && ps `cat $pidfile` >/dev/null 2>&1; then ps_alive=1; fi
-    
-    if [ "$1" = "check_alive"  -a  $ping_alive = 1 ] ||
-       [ "$1" = "check_dead"   -a  $ping_alive = 0  -a  $ps_alive = 0 ]; then
-	return 0 # EXIT_SUCCESS
-    else
-  	if [ "$2" = "warn" ]; then
-  	    echo -e "$ps_alive processes alive and '$MYADMIN ping' resulted in\n$ping_output\n" | $ERR_LOGGER -p daemon.debug
-	fi
-  	return 1 # EXIT_FAILURE
-    fi
-}
-
-#
-# main()
-#
-
-case "${1:-''}" in
-  'start')
-	sanity_checks;
-	# Start daemon
-	log_daemon_msg "Starting MySQL database server" "mysqld"
-	if mysqld_status check_alive nowarn; then
-	   log_progress_msg "already running"
-	   log_end_msg 0
-	else
-  	    /usr/bin/mysqld_safe > /dev/null 2>&1 &
-	    # 6s was reported in #352070 to be too few when using ndbcluster
-	    for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14; do
-                sleep 1
-	        if mysqld_status check_alive nowarn ; then break; fi
-		log_progress_msg "."
-	    done
-	    if mysqld_status check_alive warn; then
-                log_end_msg 0
-	        # Now start mysqlcheck or whatever the admin wants.
-	        output=$(/etc/mysql/debian-start)
-		[ -n "$output" ] && log_action_msg "$output"
-	    else
-	        log_end_msg 1
-		log_failure_msg "Please take a look at the syslog"
-	    fi
-	fi
-
-	# Some warnings
-        if $MYADMIN variables | egrep -q have_bdb.*YES; then
-            echo "BerkeleyDB is obsolete, see /usr/share/doc/mysql-server-5.0/README.Debian.gz" | $ERR_LOGGER -p daemon.info
-        fi
-        if [ -f /etc/mysql/debian-log-rotate.conf ]; then
-            echo "/etc/mysql/debian-log-rotate.conf is obsolete, see /usr/share/doc/mysql-server-5.0/NEWS.Debian.gz" | $ERR_LOGGER -p daemon.info
-        fi
-	;;
-
-  'stop')
-	# * As a passwordless mysqladmin (e.g. via ~/.my.cnf) must be possible
-	# at least for cron, we can rely on it here, too. (although we have 
-	# to specify it explicit as e.g. sudo environments points to the normal
-	# users home and not /root)
-	log_daemon_msg "Stopping MySQL database server" "mysqld"
-	if ! mysqld_status check_dead nowarn; then
-	  set +e
-	  shutdown_out=`$MYADMIN shutdown 2>&1`; r=$?
-	  set -e
-	  if [ "$r" -ne 0 ]; then
-	    log_end_msg 1
-	    [ "$VERBOSE" != "no" ] && log_failure_msg "Error: $shutdown_out"
-	    log_daemon_msg "Killing MySQL database server by signal" "mysqld"
-	    killall -15 mysqld
-            server_down=
-	    for i in 1 2 3 4 5 6 7 8 9 10; do
-              sleep 1
-              if mysqld_status check_dead nowarn; then server_down=1; break; fi
-            done
-          if test -z "$server_down"; then killall -9 mysqld; fi
-	  fi
-        fi
-
-        if ! mysqld_status check_dead warn; then
-	  log_end_msg 1
-	  log_failure_msg "Please stop MySQL manually and read /usr/share/doc/mysql-server-5.0/README.Debian.gz!"
-	  exit -1
-	else
-	  log_end_msg 0
-        fi
-	;;
-
-  'restart')
-	set +e; $SELF stop; set -e
-	$SELF start 
-	;;
-
-  'reload'|'force-reload')
-  	log_daemon_msg "Reloading MySQL database server" "mysqld"
-	$MYADMIN reload
-	log_end_msg 0
-	;;
-
-  'status')
-	if mysqld_status check_alive nowarn; then
-	  log_action_msg "$($MYADMIN version)"
-	else
-	  log_action_msg "MySQL is stopped."
-	  exit 3
-	fi
-  	;;
-
-  *)
-	echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
-	exit 1
-	;;
-esac
-

Deleted: branches/community/debian/mysql-server-5.0.postinst
===================================================================
--- trunk/debian/mysql-server-5.0.postinst	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.postinst	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,276 +0,0 @@
-#!/bin/bash -e
-
-. /usr/share/debconf/confmodule
-
-if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
-${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
- 
-export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin
-
-# This command can be used as pipe to syslog. With "-s" it also logs to stderr.
-ERR_LOGGER="logger -p daemon.err -t mysqld_safe -i"
-
-invoke() {
-  if [ -x /usr/sbin/invoke-rc.d ]; then
-    invoke-rc.d mysql $1
-  else
-    /etc/init.d/mysql $1
-  fi
-}
-
-MYSQL_BOOTSTRAP="/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables  --skip-bdb  --skip-innodb "
-
-test_mysql_access() {
-	mysql --no-defaults -u root -h localhost </dev/null >/dev/null 2>&1
-}
-
-# call with $1 = "online" to connect to the server, otherwise it bootstraps
-set_mysql_rootpw() {
-	# forget we ever saw the password.  don't use reset to keep the seen status
-	db_set mysql-server/root_password ""
-
-	tfile=`mktemp`
-	if [ ! -f "$tfile" ]; then
-		return 1
-	fi
-
-	# this avoids us having to call "test" or "[" on $rootpw
-	cat << EOF > $tfile
-USE mysql;
-UPDATE user SET password=PASSWORD("$rootpw") WHERE user='root';
-FLUSH PRIVILEGES;
-EOF
-	if grep -q 'PASSWORD("")' $tfile; then
-		retval=0
-	elif [ "$1" = "online" ]; then
-		mysql --no-defaults -u root -h localhost <$tfile >/dev/null
-		retval=$?
-	else
-		$MYSQL_BOOTSTRAP <$tfile
-		retval=$?
-	fi
-	rm -f $tfile
-	return $retval
-}
-
-# This is necessary because mysql_install_db removes the pid file in /var/run
-# and because changed configuration options should take effect immediately.
-# In case the server wasn't running at all it should be ok if the stop
-# script fails. I can't tell at this point because of the cleaned /var/run.
-set +e; invoke stop; set -e
-    
-case "$1" in
-  configure)
-    mysql_cnf=/etc/mysql/my.cnf
-    mysql_datadir=/usr/share/mysql
-    mysql_statedir=/var/lib/mysql
-    mysql_rundir=/var/run/mysqld
-    mysql_logdir=/var/log
-    mysql_cfgdir=/etc/mysql
-    mysql_newlogdir=/var/log/mysql
-    mysql_upgradedir=/var/lib/mysql-upgrade
-
-    # first things first, if the following symlink exists, it is a preserved
-    # copy the old data dir from a mysql upgrade that would have otherwise
-    # been replaced by an empty mysql dir.  this should restore it.
-    for dir in DATADIR LOGDIR; do
-        if [ "$dir" = "DATADIR" ]; then targetdir=$mysql_statedir; else targetdir=$mysql_newlogdir; fi
-        savelink="$mysql_upgradedir/$dir.link"
-        if [ -L "$savelink" ]; then
-            # If the targetdir was a symlink before we upgraded it is supposed
-            # to be either still be present or not existing anymore now.
-            if [ -L "$targetdir" ]; then
-                rm "$savelink"
-            elif [ ! -d "$targetdir" ]; then
-                mv "$savelink" "$targetdir"
-            else
-                # this should never even happen, but just in case...
-                mysql_tmp=`mktemp -d -t mysql-symlink-restore-XXXXXX`
-                echo "this is very strange!  see $mysql_tmp/README..." >&2
-                mv "$targetdir" "$mysql_tmp"
-                cat << EOF > "$mysql_tmp/README"
-
-if you're reading this, it's most likely because you had replaced /var/lib/mysql
-with a symlink, then upgraded to a new version of mysql, and then dpkg
-removed your symlink (see #182747 and others).  the mysql packages noticed
-that this happened, and as a workaround have restored it.  however, because
-/var/lib/mysql seems to have been re-created in the meantime, and because
-we don't want to rm -rf something we don't know as much about, we're going
-to leave this unexpected directory here.  if your database looks normal,
-and this is not a symlink to your database, you should be able to blow
-this all away.
-
-EOF
-            fi
-        fi
-	rmdir $mysql_upgradedir 2>/dev/null || true
-    done
-    
-    # Ensure the existence and right permissions for the database and
-    # log files.
-    if [ ! -d "$mysql_statedir"       -a ! -L "$mysql_statedir"       ]; then mkdir "$mysql_statedir"; fi
-    if [ ! -d "$mysql_statedir/mysql" -a ! -L "$mysql_statedir/mysql" ]; then mkdir "$mysql_statedir/mysql"; fi
-    if [ ! -d "$mysql_newlogdir"      -a ! -L "$mysql_newlogdir"      ]; then mkdir "$mysql_newlogdir"; fi
-    # When creating an ext3 jounal on an already mounted filesystem like e.g.
-    # /var/lib/mysql, you get a .journal file that is not modifyable by chown.
-    # The mysql_datadir must not be writable by the mysql user under any
-    # circumstances as it contains scripts that are executed by root.
-    set +e
-    chown -R 0.0 $mysql_datadir
-    chown -R mysql $mysql_statedir
-    chown -R mysql $mysql_rundir
-    chown -R mysql:adm $mysql_newlogdir;	chmod 2750 $mysql_newlogdir;
-    for i in log err; do
-      touch             $mysql_logdir/mysql.$i
-      chown mysql:adm   $mysql_logdir/mysql.$i
-      chmod 0640        $mysql_logdir/mysql.$i
-    done
-    set -e
-
-    # This is important to avoid dataloss when there is a removed
-    # mysql-server version from Woody lying around which used the same
-    # data directory and then somewhen gets purged by the admin.
-    db_set mysql-server/postrm_remove_database false || true
-
-    # So that mysql-server (4.0) can check if it's safe to install.
-    touch $mysql_statedir/debian-5.0.flag
-
-    # On dist-upgrades, we ensure that the old_password setting is updated
-    # before passwords are changed. Except for that my.cnf is taboo!
-    db_get mysql-server-5.0/need_sarge_compat_done || true
-    if [ "$RET" = "false" ]; then
- 	db_get mysql-server-5.0/need_sarge_compat
-	echo -e "# created by debconf\n[mysqld]\nold_passwords = $RET" > /etc/mysql/conf.d/old_passwords.cnf
-    fi
-    db_set mysql-server-5.0/need_sarge_compat_done true
-
-    # initiate databases. Output is not allowed by debconf :-(
-    # Debian: beware of the bashisms... 
-    # Debian: can safely run on upgrades with existing databases 
-    set +e
-    /bin/bash /usr/bin/mysql_install_db --rpm 2>&1 | $ERR_LOGGER
-    if [ "$?" != "0" ]; then
-      echo "ATTENTION: An error has occured. More info is in the syslog!"
-    fi
-    set -e
-    
-    ## On every reconfiguration the maintenance user is recreated.
-    #
-    # - It is easier to regenerate the password every time but as people
-    #   use fancy rsync scripts and file alteration monitors, the existing
-    #   password is used and existing files not touched.
-    # - The mysqld statement is like that in mysql_install_db because the
-    #   server is not already running. This has some implications:
-    # 	- The amount of newlines and semicolons in the query is important!
-    #   - GRANT is not possible with --skipt-grant-tables and "INSERT
-    #     (user,host..) VALUES" is not --ansi compliant
-    # - The echo is just for readability. ash's buildin has no "-e" so use /bin/echo.
-    # - The Super_priv, Show_db_priv, Create_tmp_table_priv and Lock_tables_priv
-    #   may not be present as old Woody 3.23 databases did not have it and the
-    #   admin might not already have run mysql_upgrade which adds them.
-    #   As the binlog cron scripts to need at least the Super_priv, I do first
-    #   the old query which always succeeds and then the new which may or may not.
-
-    # recreate the credentials file if not present or without mysql_upgrade stanza
-    dc=$mysql_cfgdir/debian.cnf; 
-    if [ -e "$dc" -a -n "`fgrep mysql_upgrade $dc 2>/dev/null`" ]; then
-        pass="`sed -n 's/password *= *// p' $dc | head -n 1`"
-    else
-	pass=`perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'`;
-        if [ ! -d "$mysql_cfgdir" ]; then install -o 0 -g 0 -m 0755 -d $mysql_cfgdir; fi
-        cat /dev/null > $dc
-        echo "# Automatically generated for Debian scripts. DO NOT TOUCH!" >>$dc
-        echo "[client]"                                                    >>$dc
-        echo "host     = localhost"                                        >>$dc
-        echo "user     = debian-sys-maint"                                 >>$dc
-        echo "password = $pass"                                            >>$dc
-        echo "socket   = $mysql_rundir/mysqld.sock"                        >>$dc
-        echo "[mysql_upgrade]"                                             >>$dc
-        echo "user     = debian-sys-maint"                                 >>$dc
-        echo "password = $pass"                                            >>$dc
-        echo "socket   = $mysql_rundir/mysqld.sock"                        >>$dc
-        echo "basedir  = /usr"                                             >>$dc
-    fi
-    # If this dir chmod go+w then the admin did it. But this file should not.
-    chown 0:0 $dc
-    chmod 0600 $dc
-
-    # update privilege and timezone tables
-    password_column_fix_query=`/bin/echo -e \
-	"USE mysql\n" \
-	"ALTER TABLE user CHANGE password Password varchar(41) collate utf8_bin NOT NULL default ''"`;
-    replace_query=`/bin/echo -e \
-	"USE mysql\n" \
-	"REPLACE INTO user SET " \
-	"  host='localhost', user='debian-sys-maint', password=password('$pass'), " \
-	"  Select_priv='Y', Insert_priv='Y', Update_priv='Y', Delete_priv='Y', " \
-	"  Create_priv='Y', Drop_priv='Y', Reload_priv='Y', Shutdown_priv='Y', " \
-	"  Process_priv='Y',  File_priv='Y', Grant_priv='Y', References_priv='Y', " \
-	"  Index_priv='Y', Alter_priv='Y' __EXTRA_PRIVS__"`;
-    extra_privs=`/bin/echo -e \
-	", Show_db_priv='Y' " \
-	", Super_priv='Y' " \
-	", Create_tmp_table_priv='Y' " \
-	", Lock_tables_priv='Y' " \
-	", Execute_priv='Y' " \
-	", Repl_slave_priv='Y' " \
-	", Repl_client_priv='Y' "`;
-
-    # Upgrade password column format before the root password gets set.
-    echo "$password_column_fix_query"                             | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
-
-    db_get mysql-server/root_password && rootpw="$RET"
-    if ! set_mysql_rootpw; then
-    	password_error="yes"
-    fi
-
-    echo "$replace_query" | sed "s/__EXTRA_PRIVS__//"             | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
-    set +e
-    echo "$replace_query" | sed "s/__EXTRA_PRIVS__/$extra_privs/" | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
-    set -e
-    mysql_tzinfo_to_sql /usr/share/zoneinfo/ 2>&1 | egrep -v 'Skipping it.$' | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
-
-    # The Sarge package "mysql-server" which used to include the mysqld daemon
-    # may still be in unselected-configured state (i.e. after a remove but not
-    # purge) in which case its now obsolete cronscript has to be moved away.
-    for i in /etc/cron.daily/mysql-server /etc/cron.daily/mysql-server-41 /etc/mysql/debian-log-rotate.conf; do
-      if [ -f $i ]; then mv $i $i.dpkg-old; fi 
-    done
-  ;;
-
-  abort-upgrade|abort-remove|abort-configure)
-  ;;
-
-  *)
-    echo "postinst called with unknown argument '$1'" 1>&2
-    exit 1
-  ;;
-esac
-
-#DEBHELPER#
-
-# here we check to see if we can connect as root without a password
-# this should catch upgrades from previous verisons where the root
-# password wasn't set.  if there is a password, or if the connection
-# fails for any other reason, nothing happens.
-if [ "$1" = "configure" ]; then
-	if test_mysql_access; then
-		db_input medium mysql-server/root_password || true
-		db_go
-		db_get mysql-server/root_password && rootpw="$RET"
-
-		if ! set_mysql_rootpw "online"; then
-			password_error="yes"
-		fi
-	fi
-
-	if [ "$password_error" = "yes" ]; then
-		db_input high mysql-server/error_setting_password || true
-		db_go
-	fi
-
-fi
-
-db_stop # in case invoke failes
-
-exit 0

Deleted: branches/community/debian/mysql-server-5.0.postrm
===================================================================
--- trunk/debian/mysql-server-5.0.postrm	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.postrm	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,97 +0,0 @@
-#!/bin/bash -e
-
-# It is possible that Debconf has already been removed, too.
-if [ -f /usr/share/debconf/confmodule ]; then
-  . /usr/share/debconf/confmodule
-fi
-
-if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
-${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
-
-MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
-
-# Try to stop the server in a sane way. If it does not success let the admin
-# do it himself. No database directories should be removed while the server
-# is running!
-stop_server() {
-  set +e
-  if [ -x /usr/sbin/invoke-rc.d ]; then
-    invoke-rc.d mysql stop
-  else
-    /etc/init.d/mysql stop
-  fi
-  errno=$?
-  set -e
-
-  if [ "$?" != 0 ]; then
-    echo "Trying to stop the MySQL server resulted in exitcode $?." 1>&2
-    echo "Stop it yourself and try again!" 1>&2
-    exit 1
-  fi
-}
-
-case "$1" in
-  purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-    if [ -n "`$MYADMIN ping 2>/dev/null`" ]; then
-      stop_server
-      sleep 2
-    fi
-  ;;
-  *)
-    echo "postrm called with unknown argument '$1'" 1>&2
-    exit 1
-  ;;
-esac
-
-# Remove Debconf generated config files to allow clean upgrades to 5.1.
-rm -f /etc/mysql/conf.d/old_passwords.cnf
-
-#
-# - Do NOT purge logs or data if another mysql-sever* package is installed (#307473)
-# - Remove the mysql user only after all his owned files are purged.
-#   
-if [ "$1" = "purge" -a ! \( -x /usr/sbin/mysqld -o -L /usr/sbin/mysqld \) ]; then
-  # we remove the mysql user only after all his owned files are purged
-  rm -f /var/log/mysql.{log,err}{,.0,.[1234567].gz}
-  rm -rf /var/log/mysql
-
-  db_input high mysql-server-5.0/postrm_remove_databases || true
-  db_go || true
-  db_get mysql-server-5.0/postrm_remove_databases || true
-  if [ "$RET" = "true" ]; then
-    # never remove the debian.cnf when the databases are still existing
-    # else we ran into big trouble on the next install!
-    rm -f /etc/mysql/debian.cnf
-    rm -rf /var/lib/mysql
-    rm -rf /var/run/mysqld
-    userdel mysql || true
-  fi
-
-  # (normally) Automatically added by dh_installinit
-  if [ "$1" = "purge" ] ; then
-        update-rc.d mysql remove >/dev/null || exit 0
-  fi
-  # (normally) End automatically added section
-fi
-
-# (normally) Automatically added by dh_installdebconf
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
-        . /usr/share/debconf/confmodule
-        db_purge
-fi
-# (normally) End automatically added section
-
-# (normally) Automatically added by dh_installinit
-if [ "$1" = "purge" ] ; then
-        update-rc.d mysql-ndb-mgm remove >/dev/null || exit 0
-fi
-# (normally) End automatically added section
-# (normally) Automatically added by dh_installinit
-if [ "$1" = "purge" ] ; then
-        update-rc.d mysql-ndb remove >/dev/null || exit 0
-fi
-# (normally) End automatically added section
-
-# no DEBHELPER here, "update-rc.d remove" fails if mysql-server-5.0 is installed
-
-exit 0

Deleted: branches/community/debian/mysql-server-5.0.preinst
===================================================================
--- trunk/debian/mysql-server-5.0.preinst	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.preinst	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,174 +0,0 @@
-#!/bin/bash -e
-#
-# summary of how this script can be called:
-#        * <new-preinst> install
-#        * <new-preinst> install <old-version>
-#        * <new-preinst> upgrade <old-version>
-#        * <old-preinst> abort-upgrade <new-version>
-#
-
-. /usr/share/debconf/confmodule
-
-if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
-${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
-
-export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin
-MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
-DATADIR=/var/lib/mysql
-LOGDIR=/var/log/mysql
-UPGRADEDIR=/var/lib/mysql-upgrade
-
-# Try to stop the server in a sane way. If it does not success let the admin
-# do it himself. No database directories should be removed while the server
-# is running! Another mysqld in e.g. a different chroot is fine for us.
-stop_server() {
-    if [ ! -x /etc/init.d/mysql ]; then return; fi
-
-    set +e
-    if [ -x /usr/sbin/invoke-rc.d ]; then
-      cmd="invoke-rc.d mysql stop"
-    else
-      cmd="/etc/init.d/mysql stop"
-    fi
-    $cmd
-    errno=$?
-    set -e
-   
-    # 0=ok, 100=no init script (fresh install)
-    if [ "$errno" != 0 -a "$errno" != 100 ]; then
-      echo "${cmd/ */} returned $errno" 1>&2
-      echo "There is a MySQL server running, but we failed in our attempts to stop it." 1>&2
-      echo "Stop it yourself and try again!" 1>&2
-      db_stop  	
-      exit 1
-    fi
-}
-
-################################ main() ##########################
-
-this_version=5.0
-
-# Check kernel version
-if dpkg --compare-versions `uname -r` lt 2.6; then
-  /bin/echo -e "\nPROBLEM: MySQL-5.x is currently incompatible with kernel 2.4. Aborting.";
-  /bin/echo -e "See http://bugs.debian.org/416841 for more information.\n"
-  exit 1
-fi
-
-show_downgrade_warning=0
-for i in `ls $DATADIR/debian-*.flag 2>/dev/null`; do
-  found_version=`echo $i | sed 's/.*debian-\([0-9\.]\+\).flag/\1/'`
-  if dpkg --compare-versions "$this_version" '<<' "$found_version"; then
-    show_downgrade_warning=1
-    break;
-  fi
-done
-if [ "$show_downgrade_warning" = 1 ]; then
-  db_fset mysql-server-$this_version/really_downgrade seen false || true
-  db_input medium mysql-server-$this_version/really_downgrade || true
-  db_go
-  db_get mysql-server-$this_version/really_downgrade || true
-  if [ "$RET" = "true" ]; then
-    rm -f $DATADIR/debian-*.flag
-    touch $DATADIR/debian-$this_version.flag
-  else
-    echo "Aborting downgrade from (at least) $found_version to $this_version." 1>&2
-    db_stop
-    exit 1
-  fi
-fi
-
-# to be sure
-stop_server
-
-# If we use NIS then errors should be tolerated. It's up to the
-# user to ensure that the mysql user is correctly setup.
-# Beware that there are two ypwhich one of them needs the 2>/dev/null!
-if test -n "`which ypwhich 2>/dev/null`"  &&  ypwhich >/dev/null 2>&1; then
-  set +e
-fi
-
-#
-# Now we have to ensure the following state:
-# /etc/passwd: mysql:x:100:101:MySQL Server:/var/lib/mysql:/bin/false
-# /etc/group:  mysql:x:101:
-# 
-# Sadly there could any state be present on the system so we have to
-# modify everything carefully i.e. not doing a chown before creating
-# the user etc...
-#
-
-# creating mysql group if he isn't already there
-if ! getent group mysql >/dev/null; then
- 	# Adding system group: mysql.
-	addgroup --system mysql >/dev/null
-fi
-
-# creating mysql user if he isn't already there
-if ! getent passwd mysql >/dev/null; then
-	# Adding system user: mysql.
-	adduser \
-	  --system \
-	  --disabled-login \
-	  --ingroup mysql \
-	  --home $DATADIR \
-	  --gecos "MySQL Server" \
-	  --shell /bin/false \
-	  mysql  >/dev/null
-fi
-
-# end of NIS tolerance zone
-set -e
-
-# if there's a symlink, let's store where it's pointing, because otherwise
-# it's going to be lost in some situations
-for dir in DATADIR LOGDIR; do
-    checkdir=`eval echo "$"$dir`
-    if [ -L "$checkdir" ]; then
-	mkdir -p "$UPGRADEDIR"
-	cp -d "$checkdir" "$UPGRADEDIR/$dir.link"
-    fi
-done
-
-# creating mysql home directory
-if [ ! -d $DATADIR -a ! -L $DATADIR ]; then
- 	mkdir $DATADIR
-fi
-
-# checking disc space
-if LC_ALL=C BLOCKSIZE= df --portability $DATADIR/. | tail -n 1 | awk '{ exit ($4>1000) }'; then
-  echo "ERROR: There's not enough space in $DATADIR/" 1>&2
-  db_stop
-  exit 1
-fi
-
-# Since the home directory was created before putting the user into
-# the mysql group and moreover we cannot guarantee that the 
-# permissions were correctly *before* calling this script, we fix them now.
-# In case we use NIS and no mysql user is present then this script should
-# better fail now than later..
-# The "set +e" is necessary as e.g. a ".journal" of a ext3 partition is
-# not chgrp'able (#318435).
-set +e
-chown mysql:mysql $DATADIR
-find $DATADIR -follow -not -group mysql -print0 2>/dev/null \
-  | xargs -0 --no-run-if-empty chgrp mysql
-set -e
-
-# Some files below /etc/ were possibly in the mysql-server-4.1/sarge package
-# before. They get overwritten by current ones to avoid unnecessary dpkg questions.
-while read md5 file; do
-  if [ "`md5sum $file 2>/dev/null`" = "$md5  $file" ]; then
-    cp /usr/share/mysql-common/internal-use-only/`echo $file | sed 's°/°_°g'` $file
-  fi
-done <<EOT
-6691f2fdc5c6d27ff0260eb79813e1bc  /etc/init.d/mysql
-b53b9552d44661361d39157c3c7c51d3  /etc/logrotate.d/mysql-server
-57f3e58f72582ca55100dc1ba0f1a8ae  /etc/mysql/debian-start
-EOT
-
-db_stop
-
-#DEBHELPER#
-
-exit 0

Deleted: branches/community/debian/mysql-server-5.0.prerm
===================================================================
--- trunk/debian/mysql-server-5.0.prerm	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.prerm	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,8 +0,0 @@
-#!/bin/bash -e
-
-. /usr/share/debconf/confmodule
-
-if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
-${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
-
-#DEBHELPER#

Deleted: branches/community/debian/mysql-server-5.0.templates
===================================================================
--- trunk/debian/mysql-server-5.0.templates	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/mysql-server-5.0.templates	2007-12-18 14:17:36 UTC (rev 1090)
@@ -1,93 +0,0 @@
-# These templates have been reviewed by the debian-l10n-english
-# team
-#
-# If modifications/additions/rewording are needed, please ask
-# for an advice to debian-l10n-english at lists.debian.org
-#
-# Even minor modifications require translation updates and such
-# changes should be coordinated with translators and reviewers.
-
-Template: mysql-server-5.0/really_downgrade
-Type: boolean
-Default: false
-_Description: Really proceed with downgrade?
- A file named /var/lib/mysql/debian-*.flag exists on this system.
- .
- Such file is an indication that a mysql-server package with a higher
- version has been installed earlier.
- .
- There is no guarantee that the version you're currently installing
- will be able to use the current databases.
-
-Template: mysql-server-5.0/nis_warning
-Type: note
-#flag:translate!:3,5
-_Description: Important note for NIS/YP users
- To use MySQL, the following entries for users and groups should be added
- to the system:
- .
-  /etc/passwd   : mysql:x:100:101:MySQL Server:/var/lib/mysql:/bin/false
-  /etc/group    : mysql:x:101:
- .
- You should also check the permissions and the owner of the
- /var/lib/mysql directory:
- .
-  /var/lib/mysql: drwxr-xr-x   mysql    mysql
-
-Template: mysql-server-5.0/postrm_remove_databases
-Type: boolean
-Default: false
-_Description: Remove all MySQL databases?
- The /var/lib/mysql directory which contains the MySQL databases is about
- to be removed.
- .
- If you're removing the MySQL package in order to later install a more
- recent version or if a different mysql-server package is already
- using it, the data should be kept.
-
-Template: mysql-server-5.0/start_on_boot
-Type: boolean
-Default: true
-_Description: Start the MySQL server on boot?
- The MySQL server can be launched automatically at boot time or manually
- with the '/etc/init.d/mysql start' command.
-
-Template: mysql-server/root_password
-Type: password
-_Description: New password for the MySQL "root" user:
- While not mandatory, it is highly recommended that you set a password
- for the MySQL administrative "root" user.
- .
- If that field is left blank, the password will not be changed.
-
-Template: mysql-server/error_setting_password
-Type: error
-_Description: Unable to set password for the MySQL "root" user
- An error occurred while setting the password for the MySQL
- administrative user. This may have happened because the account
- already has a password, or because of a communication problem with
- the MySQL server.
- .
- You should check the account's password after the package installation.
- .
- Please read the /usr/share/doc/mysql-server-5.0/README.Debian file
- for more information.
-
-Template: mysql-server-5.0/need_sarge_compat
-Type: boolean
-Default: false
-_Description: Support MySQL connections from hosts running Debian "sarge" or older?
- In old versions of MySQL clients on Debian, passwords were not stored
- securely. This has been improved since then, however clients (such as PHP)
- from hosts running Debian 3.1 Sarge will not be able to connect to
- recent accounts or accounts whose password have been changed.
- .
- Please read the /usr/share/doc/mysql-server-5.0/README.Debian file
- for more information.
-
-Template: mysql-server-5.0/need_sarge_compat_done
-Type: boolean
-Default: false
-Description: for internal use
- Only internally used.
-

Modified: branches/community/debian/rules
===================================================================
--- trunk/debian/rules	2007-12-18 11:58:15 UTC (rev 1089)
+++ branches/community/debian/rules	2007-12-18 14:17:36 UTC (rev 1090)
@@ -175,8 +175,8 @@
 	dh_clean -k
 	dh_installdirs
 
-	# this is stupid, if mysql-server symlinks point to something in the
-	# mysql-client package they get not compressed and end up stale
+	# this is stupid, if mysql-community-server symlinks point to something in the
+	# mysql-community-client package they get not compressed and end up stale
 	mkdir -p $(TMP)/usr/share/man/man1/
 	mkdir -p $(TMP)/usr/share/man/man8/
 	cp debian/additions/manpages/*.1 $(TMP)/usr/share/man/man1/
@@ -211,23 +211,23 @@
 	install -d $(TMP)/etc/mysql
 	install -m 0644 debian/additions/my.cnf $(TMP)/etc/mysql/my.cnf
 
-	# mysql-client
+	# mysql-community-client
 	install -m 0755 debian/additions/mysqlreport/mysqlreport $(TMP)/usr/bin/
 	install -m 0644 debian/additions/mysqlreport/mysqlreport.1 $(TMP)/usr/share/man/man1/
 	install -m 0755 debian/additions/innotop/innotop $(TMP)/usr/bin/
 	install -m 0644 debian/additions/innotop/innotop.1 $(TMP)/usr/share/man/man1/
 	install -m 0644 -D debian/additions/innotop/InnoDBParser.pm $(TMP)/usr/share/perl5/InnoDBParser.pm
 
-	# mysql-server
+	# mysql-community-server
 	install -m 0755 scripts/mysqld_safe $(TMP)/usr/bin/mysqld_safe
-	mkdir -p $(TMP)/usr/share/doc/mysql-server-5.0/examples
-	mv $(TMP)/usr/share/mysql/*cnf 	    $(TMP)/usr/share/doc/mysql-server-5.0/examples/
+	mkdir -p $(TMP)/usr/share/doc/mysql-community-server-5.0/examples
+	mv $(TMP)/usr/share/mysql/*cnf 	    $(TMP)/usr/share/doc/mysql-community-server-5.0/examples/
 	rm -vf $(TMP)/usr/share/mysql/mi_test_all* \
 	       $(TMP)/usr/share/mysql/mysql-log-rotate \
 	       $(TMP)/usr/share/mysql/mysql.server \
 	       $(TMP)/usr/share/mysql/binary-configure
-	nm -n sql/mysqld |gzip -9 > $(TMP)/usr/share/doc/mysql-server-5.0/mysqld.sym.gz
-	install -m 0644 debian/additions/ndb_mgmd.cnf $(TMP)/usr/share/doc/mysql-server-5.0/examples/
+	nm -n sql/mysqld |gzip -9 > $(TMP)/usr/share/doc/mysql-community-server-5.0/mysqld.sym.gz
+	install -m 0644 debian/additions/ndb_mgmd.cnf $(TMP)/usr/share/doc/mysql-community-server-5.0/examples/
 	install -m 0755 debian/additions/echo_stderr $(TMP)/usr/share/mysql/
 	install -m 0755 debian/additions/debian-start $(TMP)/etc/mysql/
 	install -m 0755 debian/additions/debian-start.inc.sh $(TMP)/usr/share/mysql/
@@ -236,15 +236,15 @@
 	mv $(TMP)/usr/sql-bench $(TMP)/usr/share/mysql/
 	# lintian overrides
 	mkdir -p $(TMP)/usr/share/lintian/overrides/
-	cp debian/mysql-server-5.0.lintian-overrides $(TMP)/usr/share/lintian/overrides/mysql-server-5.0
-	cp debian/mysql-client-5.0.lintian-overrides $(TMP)/usr/share/lintian/overrides/mysql-client-5.0
+	cp debian/mysql-community-server-5.0.lintian-overrides $(TMP)/usr/share/lintian/overrides/mysql-community-server-5.0
+	cp debian/mysql-community-client-5.0.lintian-overrides $(TMP)/usr/share/lintian/overrides/mysql-community-client-5.0
 	cp debian/libmysqlclient15-dev.lintian-overrides $(TMP)/usr/share/lintian/overrides/libmysqlclient15-dev
 
 	# For 4.1 -> 5.0 transition
 	d=$(TMP)/usr/share/mysql-common/internal-use-only/; \
 	mkdir -p $$d; \
-	cp debian/mysql-server-5.0.mysql.init $$d/_etc_init.d_mysql; \
-	cp debian/mysql-server-5.0.mysql-server.logrotate $$d/_etc_logrotate.d_mysql-server; \
+	cp debian/mysql-community-server-5.0.mysql.init $$d/_etc_init.d_mysql; \
+	cp debian/mysql-community-server-5.0.mysql-community-server.logrotate $$d/_etc_logrotate.d_mysql-community-server; \
 	cp debian/additions/debian-start $$d/_etc_mysql_debian-start
 
 	dh_movefiles
@@ -284,7 +284,7 @@
 	dh_installdocs -a
 	dh_installexamples -a
 	dh_installmenu -a
-	dh_installlogrotate -a --name mysql-server
+	dh_installlogrotate -a --name mysql-community-server
 	# NDB needs to start before MySQL if they share a machine
 	# Neither should automatically restart on package install. There
 	# is a rolling order in which nodes in a cluster should be 
@@ -294,7 +294,7 @@
 	# Start mysql in runlevel 19 before 20 where apache, proftpd etc gets
 	# started which might depend on a running database server.
 	dh_installinit -a --name=mysql -- defaults 19 21
-	dh_installcron -a --name mysql-server
+	dh_installcron -a --name mysql-community-server
 	dh_installman -a
 	dh_installinfo -a
 	dh_installlogcheck -a




More information about the Pkg-mysql-commits mailing list