diff options
author | unknown <mtaylor@blade09.mysql.com> | 2007-04-19 23:07:09 +0200 |
---|---|---|
committer | unknown <mtaylor@blade09.mysql.com> | 2007-04-19 23:07:09 +0200 |
commit | 506ef8f2a021f376368dedc65f33e8a9edc4fb54 (patch) | |
tree | 0defa243ec12ebe01a2f0fd5105af9f5f22d66f4 /debian | |
parent | d429061d6bda816fa1faa390f25b2fa85ee79955 (diff) | |
download | mariadb-git-506ef8f2a021f376368dedc65f33e8a9edc4fb54.tar.gz |
control.in:
Fixed branding problem.
Many files:
Fixed branding problem
changelog:
Upgraded to 5.0.42
defs.mk.in:
Fixed branding and variable persiting problem.
debian/changelog:
Upgraded to 5.0.42
debian/control.in:
Fixed branding problem.
debian/defs.mk.in:
Fixed branding and variable persiting problem.
debian/mysql-client-BASE.files.in:
Fixed branding problem
debian/mysql-client-BASE.lintian-overrides.in:
Fixed branding problem
debian/mysql-server-BASE.config.in:
Fixed branding problem
debian/mysql-server-BASE.files.in:
Fixed branding problem
debian/mysql-server-BASE.lintian-overrides.in:
Fixed branding problem
debian/mysql-server-BASE.postinst.in:
Fixed branding problem
debian/mysql-server-BASE.postrm.in:
Fixed branding problem
debian/mysql-server-BASE.templates.in:
Fixed branding problem
debian/rules:
Fixed branding problem
debian/source.lintian-overrides.in:
Fixed branding problem
debian/po/POTFILES.in.in:
Fixed branding problem
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/control.in | 52 | ||||
-rw-r--r-- | debian/defs.mk.in | 4 | ||||
-rw-r--r-- | debian/mysql-client-BASE.files.in | 2 | ||||
-rw-r--r-- | debian/mysql-client-BASE.lintian-overrides.in | 2 | ||||
-rw-r--r-- | debian/mysql-server-BASE.config.in | 4 | ||||
-rw-r--r-- | debian/mysql-server-BASE.files.in | 2 | ||||
-rw-r--r-- | debian/mysql-server-BASE.lintian-overrides.in | 8 | ||||
-rw-r--r-- | debian/mysql-server-BASE.postinst.in | 6 | ||||
-rw-r--r-- | debian/mysql-server-BASE.postrm.in | 6 | ||||
-rw-r--r-- | debian/mysql-server-BASE.templates.in | 14 | ||||
-rw-r--r-- | debian/po/POTFILES.in.in | 2 | ||||
-rwxr-xr-x | debian/rules | 56 | ||||
-rw-r--r-- | debian/source.lintian-overrides.in | 4 |
14 files changed, 95 insertions, 73 deletions
diff --git a/debian/changelog b/debian/changelog index 75cb03f081d..3a5b2cf4973 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mysql-enterprise-5.0 (5.0.42unreleased) feisty; urgency=low + + * Built unreleased version of 5.0.42 for assessment by Canonical. + + -- Monty Taylor <mtaylor@blade09> Thu, 19 Apr 2007 22:18:02 +0200 + mysql-5.0 (5.0.38) enterprise; urgency=low * Imported packaging work from Debian. diff --git a/debian/control.in b/debian/control.in index f6ef14de537..3b23351a889 100644 --- a/debian/control.in +++ b/debian/control.in @@ -1,4 +1,4 @@ -Source: mysql-@MYSQL_BASE_VERSION@ +Source: mysql-@MYSQL_BRANDED_BASE_VERSION@ Section: misc Priority: optional Maintainer: Monty Taylor <mtaylor@mysql.com> @@ -115,9 +115,9 @@ Package: mysql-common Section: misc Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} -Conflicts: mysql-common-@MYSQL_PREVIOUS_BASE_VERSION@ -Provides: mysql-common-@MYSQL_PREVIOUS_BASE_VERSION@ -Replaces: mysql-common-@MYSQL_PREVIOUS_BASE_VERSION@ +Conflicts: mysql-common-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ +Provides: mysql-common-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ +Replaces: mysql-common-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ Description: mysql database common files (e.g. /etc/mysql/my.cnf) The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server @@ -138,12 +138,12 @@ Description: mysql database common files (e.g. /etc/mysql/my.cnf) . This package includes files needed by all versions of the client library. -Package: mysql-client-@MYSQL_BASE_VERSION@ +Package: mysql-client-@MYSQL_BRANDED_BASE_VERSION@ Architecture: any Depends: debianutils (>=1.6), libdbi-perl, libdbd-mysql-perl (>= 1.2202), mysql-common (>= ${Source-Version}), libmysqlclient@SHARED_LIB_MAJOR_VERSION@ (>= ${Source-Version}), ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends} -Provides: virtual-mysql-client, mysql-client, mysql-client-@MYSQL_PREVIOUS_BASE_VERSION@ -Conflicts: mysql-client (<< ${Source-Version}), mysql-client-@MYSQL_PREVIOUS_BASE_VERSION@ -Replaces: mysql-client (<< ${Source-Version}), mysql-server, mysql-client-@MYSQL_PREVIOUS_BASE_VERSION@ +Provides: virtual-mysql-client, mysql-client, mysql-client-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ +Conflicts: mysql-client (<< ${Source-Version}), mysql-client-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ +Replaces: mysql-client (<< ${Source-Version}), mysql-server, mysql-client-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ Description: mysql database client binaries The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server @@ -164,15 +164,15 @@ Description: mysql database client binaries . This package contains the standard MySQL clients and administration tools. -Package: mysql-server-@MYSQL_BASE_VERSION@ +Package: mysql-server-@MYSQL_BRANDED_BASE_VERSION@ Architecture: any Suggests: tinyca Recommends: mailx Pre-Depends: mysql-common (>= ${Source-Version}), adduser (>= 3.40) -Depends: mysql-client-@MYSQL_BASE_VERSION@ (>= ${Source-Version}), libdbi-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10) -Conflicts: mysql-server (<< ${Source-Version}), mysql-server-@MYSQL_PREVIOUS_BASE_VERSION@ (<< 5.0.26-3) -Provides: mysql-server, virtual-mysql-server, mysql-server-@MYSQL_PREVIOUS_BASE_VERSION@ -Replaces: mysql-server (<< ${Source-Version}), mysql-server-@MYSQL_PREVIOUS_BASE_VERSION@ +Depends: mysql-client-@MYSQL_BRANDED_BASE_VERSION@ (>= ${Source-Version}), libdbi-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10) +Conflicts: mysql-server (<< ${Source-Version}), mysql-server-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ (<< 5.0.26-3) +Provides: mysql-server, virtual-mysql-server, mysql-server-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ +Replaces: mysql-server (<< ${Source-Version}), mysql-server-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ Description: mysql database server binaries The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server @@ -195,12 +195,12 @@ Description: mysql database server binaries as related utilities to run and administrate a MySQL server. . If you want to access and work with the database, you have to install - package mysql-client-@MYSQL_BASE_VERSION@ as well! + package mysql-client-@MYSQL_BRANDED_BASE_VERSION@ as well! -Package: mysql-test-@MYSQL_BASE_VERSION@ +Package: mysql-test-@MYSQL_BRANDED_BASE_VERSION@ Architecture: any Pre-Depends: mysql-common (>= ${Source-Version}) -Depends: mysql-client-@MYSQL_BASE_VERSION@ (>= ${Source-Version}), libdbd-mysql-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends} +Depends: mysql-client-@MYSQL_BRANDED_BASE_VERSION@ (>= ${Source-Version}), libdbd-mysql-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends} Description: MySQL - test suite The MySQL(TM) software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server @@ -221,7 +221,7 @@ Description: MySQL - test suite . This package contains the MySQL regression test suite. -Package: mysql-storage-@MYSQL_BASE_VERSION@ +Package: mysql-storage-@MYSQL_BRANDED_BASE_VERSION@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: MySQL - ndbcluster storage engine @@ -248,7 +248,7 @@ Description: MySQL - ndbcluster storage engine Note that this storage engine can only be used in conjunction with the MySQL Max server. -Package: mysql-management-@MYSQL_BASE_VERSION@ +Package: mysql-management-@MYSQL_BRANDED_BASE_VERSION@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: MySQL - ndbcluster storage engine management @@ -273,7 +273,7 @@ Description: MySQL - ndbcluster storage engine management It is necessary to have this package installed on at least one computer in the cluster. -Package: mysql-tools-@MYSQL_BASE_VERSION@ +Package: mysql-tools-@MYSQL_BRANDED_BASE_VERSION@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: MySQL - ndbcluster storage engine basic tools @@ -296,7 +296,7 @@ Description: MySQL - ndbcluster storage engine basic tools . This package contains ndbcluster storage engine basic tools. -Package: mysql-extra-@MYSQL_BASE_VERSION@ +Package: mysql-extra-@MYSQL_BRANDED_BASE_VERSION@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: MySQL - ndbcluster storage engine extra tools @@ -323,11 +323,11 @@ Description: MySQL - ndbcluster storage engine extra tools They should be used with caution -Package: mysql-server-@MYSQL_PREVIOUS_BASE_VERSION@ +Package: mysql-server-@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ Architecture: any Section: oldlibs Priority: extra -Depends: mysql-server-@MYSQL_BASE_VERSION@ +Depends: mysql-server-@MYSQL_BRANDED_BASE_VERSION@ Description: mysql database server (transitional package) MySQL is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query @@ -338,18 +338,18 @@ Description: mysql database server (transitional package) Package: mysql-server Architecture: all -Depends: mysql-server-@MYSQL_BASE_VERSION@ +Depends: mysql-server-@MYSQL_BRANDED_BASE_VERSION@ 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-@MYSQL_BASE_VERSION@), as determined by the MySQL + mysql-server (currently mysql-server-@MYSQL_BRANDED_BASE_VERSION@), as determined by the MySQL maintainers. Install this package if in doubt about which MySQL version you want, as this is the one we consider to be in the best shape. Package: mysql-client Architecture: all -Depends: mysql-client-@MYSQL_BASE_VERSION@ +Depends: mysql-client-@MYSQL_BRANDED_BASE_VERSION@ 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-@MYSQL_BASE_VERSION@), as determined by the MySQL + mysql-client (currently mysql-client-@MYSQL_BRANDED_BASE_VERSION@), as determined by the MySQL maintainers. Install this package if in doubt about which MySQL version you want, as this is the one we consider to be in the best shape. diff --git a/debian/defs.mk.in b/debian/defs.mk.in index 892ec136107..dd2c44313be 100644 --- a/debian/defs.mk.in +++ b/debian/defs.mk.in @@ -6,9 +6,9 @@ MYSQL_BUILD_CXX=gcc # we re-write state into this file. MYSQL_BASE_VERSION might get a suffix added # by debian/rules which could result in a nasty loop. VER is there to hold the # original unadorned version from autoconf -VER=@MYSQL_BASE_VERSION@ -OLDVER=@MYSQL_PREVIOUS_BASE_VERSION@ MYSQL_BASE_VERSION=@MYSQL_BASE_VERSION@ MYSQL_PREVIOUS_BASE_VERSION=@MYSQL_PREVIOUS_BASE_VERSION@ +MYSQL_BRANDED_BASE_VERSION=@MYSQL_BRANDED_BASE_VERSION@ +MYSQL_BRANDED_PREVIOUS_BASE_VERSION=@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@ SHARED_LIB_MAJOR_VERSION=@SHARED_LIB_MAJOR_VERSION@ NDB_SHARED_LIB_MAJOR_VERSION=@NDB_SHARED_LIB_MAJOR_VERSION@ diff --git a/debian/mysql-client-BASE.files.in b/debian/mysql-client-BASE.files.in index bff49a052c5..df635f5e911 100644 --- a/debian/mysql-client-BASE.files.in +++ b/debian/mysql-client-BASE.files.in @@ -10,7 +10,7 @@ usr/bin/mysqlcheck usr/bin/mysqldump usr/bin/mysqlimport usr/bin/mysqlshow -usr/share/lintian/overrides/mysql-client-@MYSQL_BASE_VERSION@ +usr/share/lintian/overrides/mysql-client-@MYSQL_BRANDED_BASE_VERSION@ usr/share/man/man1/mysql.1 usr/share/man/man1/mysqlaccess.1 usr/share/man/man1/mysqladmin.1 diff --git a/debian/mysql-client-BASE.lintian-overrides.in b/debian/mysql-client-BASE.lintian-overrides.in index 501147bc425..9de261e2154 100644 --- a/debian/mysql-client-BASE.lintian-overrides.in +++ b/debian/mysql-client-BASE.lintian-overrides.in @@ -1 +1 @@ -mysql-client-@MYSQL_BASE_VERSION@: package-has-a-duplicate-relation +mysql-client-@MYSQL_BRANDED_BASE_VERSION@: package-has-a-duplicate-relation diff --git a/debian/mysql-server-BASE.config.in b/debian/mysql-server-BASE.config.in index 0b031b2d3f8..c89c6127dc2 100644 --- a/debian/mysql-server-BASE.config.in +++ b/debian/mysql-server-BASE.config.in @@ -9,7 +9,7 @@ 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-@MYSQL_BASE_VERSION@/nis_warning || true + db_input high mysql-server-@MYSQL_BRANDED_BASE_VERSION@/nis_warning || true db_go fi @@ -34,6 +34,6 @@ if [ "$1" = "configure" ] && egrep -q -i '^[[:space:]]*old.passwords[[:space:]]*=[[:space:]]*(1|true)' $CNF ) then - db_input medium mysql-server-@MYSQL_BASE_VERSION@/need_sarge_compat || true + db_input medium mysql-server-@MYSQL_BRANDED_BASE_VERSION@/need_sarge_compat || true db_go fi diff --git a/debian/mysql-server-BASE.files.in b/debian/mysql-server-BASE.files.in index f44044deb91..3481faa968a 100644 --- a/debian/mysql-server-BASE.files.in +++ b/debian/mysql-server-BASE.files.in @@ -26,7 +26,7 @@ usr/bin/resolveip usr/sbin/mysqld usr/sbin/mysqlmanager usr/lib/mysql/mysqld.sym -usr/share/lintian/overrides/mysql-server-@MYSQL_BASE_VERSION@ +usr/share/lintian/overrides/mysql-server-@MYSQL_BRANDED_BASE_VERSION@ usr/share/info/mysql.info usr/share/man/man1/mysqlman.1 usr/share/man/man1/my_print_defaults.1 diff --git a/debian/mysql-server-BASE.lintian-overrides.in b/debian/mysql-server-BASE.lintian-overrides.in index ea9afce1e7e..7eceabc1aec 100644 --- a/debian/mysql-server-BASE.lintian-overrides.in +++ b/debian/mysql-server-BASE.lintian-overrides.in @@ -1,4 +1,4 @@ -mysql-server-@MYSQL_BASE_VERSION@: possible-bashism-in-maintainer-script postinst:81 'p{("a".."z","A".."Z",0..9)[int(rand(62))]}' -mysql-server-@MYSQL_BASE_VERSION@: possible-bashism-in-maintainer-script preinst:33 '${cmd/ */}' -mysql-server-@MYSQL_BASE_VERSION@: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql -mysql-server-@MYSQL_BASE_VERSION@: statically-linked-binary ./usr/sbin/mysqld +mysql-server-@MYSQL_BRANDED_BASE_VERSION@: possible-bashism-in-maintainer-script postinst:81 'p{("a".."z","A".."Z",0..9)[int(rand(62))]}' +mysql-server-@MYSQL_BRANDED_BASE_VERSION@: possible-bashism-in-maintainer-script preinst:33 '${cmd/ */}' +mysql-server-@MYSQL_BRANDED_BASE_VERSION@: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql +mysql-server-@MYSQL_BRANDED_BASE_VERSION@: statically-linked-binary ./usr/sbin/mysqld diff --git a/debian/mysql-server-BASE.postinst.in b/debian/mysql-server-BASE.postinst.in index 1457eca4be5..19ae1892de8 100644 --- a/debian/mysql-server-BASE.postinst.in +++ b/debian/mysql-server-BASE.postinst.in @@ -137,12 +137,12 @@ EOF # On dist-upgrades, we ensure that the old_password setting is updated # before passwords are changed. Except for that config files are taboo! - db_get mysql-server-@MYSQL_BASE_VERSION@/need_sarge_compat_done || true + db_get mysql-server-@MYSQL_BRANDED_BASE_VERSION@/need_sarge_compat_done || true if [ "$RET" = "false" ]; then - db_get mysql-server-@MYSQL_BASE_VERSION@/need_sarge_compat + db_get mysql-server-@MYSQL_BRANDED_BASE_VERSION@/need_sarge_compat echo -e "# created by debconf but save to be edited\n[mysqld]\nold_passwords = $RET" > /etc/mysql/conf.d/old_passwords.cnf fi - db_set mysql-server-@MYSQL_BASE_VERSION@/need_sarge_compat_done true + db_set mysql-server-@MYSQL_BRANDED_BASE_VERSION@/need_sarge_compat_done true # initiate databases. Output is not allowed by debconf :-( # Debian: beware of the bashisms... diff --git a/debian/mysql-server-BASE.postrm.in b/debian/mysql-server-BASE.postrm.in index 14c61f1f90a..8021068d87a 100644 --- a/debian/mysql-server-BASE.postrm.in +++ b/debian/mysql-server-BASE.postrm.in @@ -49,9 +49,9 @@ if [ "$1" = "purge" -a ! \( -x /usr/sbin/mysqld -o -L /usr/sbin/mysqld \) ]; the rm -f /var/log/mysql.{log,err}{,.0,.[1234567].gz} rm -rf /var/log/mysql - db_input high mysql-server-@MYSQL_BASE_VERSION@/postrm_remove_databases || true + db_input high mysql-server-@MYSQL_BRANDED_BASE_VERSION@/postrm_remove_databases || true db_go - db_get mysql-server-@MYSQL_BASE_VERSION@/postrm_remove_databases || true + db_get mysql-server-@MYSQL_BRANDED_BASE_VERSION@/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! @@ -87,6 +87,6 @@ if [ "$1" = "purge" ] ; then fi # (normally) End automatically added section -# no DEBHELPER here, "update-rc.d remove" fails if mysql-server-@MYSQL_BASE_VERSION@ is installed +# no DEBHELPER here, "update-rc.d remove" fails if mysql-server-@MYSQL_BRANDED_BASE_VERSION@ is installed exit 0 diff --git a/debian/mysql-server-BASE.templates.in b/debian/mysql-server-BASE.templates.in index dd3b63c1e8a..888f61345bf 100644 --- a/debian/mysql-server-BASE.templates.in +++ b/debian/mysql-server-BASE.templates.in @@ -1,4 +1,4 @@ -Template: mysql-server-@MYSQL_BASE_VERSION@/really_downgrade +Template: mysql-server-@MYSQL_BRANDED_BASE_VERSION@/really_downgrade Type: boolean Default: false _Description: Do you really want to downgrade? @@ -6,7 +6,7 @@ _Description: Do you really want to downgrade? mysql-server package with a higher version has been installed before. It can not be guaranteed that this version can use its data. -Template: mysql-server-@MYSQL_BASE_VERSION@/nis_warning +Template: mysql-server-@MYSQL_BRANDED_BASE_VERSION@/nis_warning Type: note _Description: Important note for NIS/YP users! To use mysql you must install an equivalent user and group to the @@ -19,7 +19,7 @@ _Description: Important note for NIS/YP users! . /var/lib/mysql: drwxr-xr-x mysql mysql -Template: mysql-server-@MYSQL_BASE_VERSION@/postrm_remove_databases +Template: mysql-server-@MYSQL_BRANDED_BASE_VERSION@/postrm_remove_databases Type: boolean Default: false _Description: Remove the databases used by all MySQL versions? @@ -27,7 +27,7 @@ _Description: Remove the databases used by all MySQL versions? If it is planned to just install a higher MySQL version or if a different mysql-server package is already using it, the data should be kept. -Template: mysql-server-@MYSQL_BASE_VERSION@/start_on_boot +Template: mysql-server-@MYSQL_BRANDED_BASE_VERSION@/start_on_boot Type: boolean Default: true _Description: Should MySQL start on boot? @@ -54,16 +54,16 @@ _Description: Unable to set password for MySQL "root" user is properly protected with a password (see README.Debian for more information). -Template: mysql-server-@MYSQL_BASE_VERSION@/need_sarge_compat +Template: mysql-server-@MYSQL_BRANDED_BASE_VERSION@/need_sarge_compat Type: boolean Default: false _Description: Support MySQL connections from hosts running Debian "sarge" or older? The way passwords were stored was not very secure. This has been improved with the drawback that clients (e.g. PHP) from hosts running Debian 3.1 Sarge will not be able to connect to account which are new or whose password have - been changed. See /usr/share/doc/mysql-server-@MYSQL_BASE_VERSION@/README.Debian. + been changed. See /usr/share/doc/mysql-server-@MYSQL_BRANDED_BASE_VERSION@/README.Debian. -Template: mysql-server-@MYSQL_BASE_VERSION@/need_sarge_compat_done +Template: mysql-server-@MYSQL_BRANDED_BASE_VERSION@/need_sarge_compat_done Type: boolean Default: false Description: for internal use diff --git a/debian/po/POTFILES.in.in b/debian/po/POTFILES.in.in index 98a5aa969d7..01e1e87fc55 100644 --- a/debian/po/POTFILES.in.in +++ b/debian/po/POTFILES.in.in @@ -1 +1 @@ -[type: gettext/rfc822deb] mysql-server-@MYSQL_BASE_VERSION@.templates +[type: gettext/rfc822deb] mysql-server-@MYSQL_BRANDED_BASE_VERSION@.templates diff --git a/debian/rules b/debian/rules index 7b83bc4b97c..8a10e0e6762 100755 --- a/debian/rules +++ b/debian/rules @@ -18,11 +18,19 @@ ifeq ("x$(MYSQL_FLAVOR)","x") endif ifneq ("x$(MYSQL_FLAVOR)","x") - MYSQL_BASE_VERSION:=$(MYSQL_FLAVOR)-$(MYSQL_BASE_VERSION) - MYSQL_PREVIOUS_BASE_VERSION:=$(MYSQL_FLAVOR)-$(MYSQL_PREVIOUS_BASE_VERSION) + MYSQL_BRANDED_BASE_VERSION:=$(MYSQL_FLAVOR)-$(MYSQL_BASE_VERSION) + MYSQL_BRANDED_PREVIOUS_BASE_VERSION:=$(MYSQL_FLAVOR)-$(MYSQL_PREVIOUS_BASE_VERSION) +else + ifeq ( "$(MYSQL_BRANDED_BASE_VERSION)","@MYSQL_BRANDED_BASE_VERSION@" ) + MYSQL_BRANDED_BASE_VERSION:=$(MYSQL_BASE_VERSION) + MYSQL_BRANDED_PREVIOUS_BASE_VERSION:=$(MYSQL_PREVIOUS_BASE_VERSION) + else + MYSQL_BRANDED_BASE_VERSION:=$(MYSQL_BRANDED_BASE_VERSION) + MYSQL_BRANDED_PREVIOUS_BASE_VERSION:=$(MYSQL_BRANDED_PREVIOUS_BASE_VERSION) + endif endif -PACKAGE=mysql-$(MYSQL_BASE_VERSION) +PACKAGE=mysql-$(MYSQL_BRANDED_BASE_VERSION) PWD=$(shell pwd) TMP=$(PWD)/debian/tmp/ @@ -65,9 +73,10 @@ endif control-file: @echo "## This file is autogenerated you want to edit control.in instead" > debian/control.tmp sed -e "s/@MYSQL_BASE_VERSION@/$(MYSQL_BASE_VERSION)/g" \ - -e "s/@VER@/$(VER)/g" \ + -e "s/@MYSQL_BRANDED_BASE_VERSION@/$(MYSQL_BRANDED_BASE_VERSION)/g" \ -e "s/@VERSIONSTRING@/$(VERSIONSTRING)/g" \ -e "s/@MYSQL_PREVIOUS_BASE_VERSION@/$(MYSQL_PREVIOUS_BASE_VERSION)/g" \ + -e "s/@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@/$(MYSQL_BRANDED_PREVIOUS_BASE_VERSION)/g" \ -e "s/@MYSQL_SOURCE_BASE_VERSION@/$(MYSQL_SOURCE_BASE_VERSION)/g" \ -e "s/@SHARED_LIB_MAJOR_VERSION@/$(SHARED_LIB_MAJOR_VERSION)/g" \ -e "s/@NDB_SHARED_LIB_MAJOR_VERSION@/$(NDB_SHARED_LIB_MAJOR_VERSION)/g" \ @@ -174,18 +183,20 @@ build-stamp: configure stamp-control: # We have to prepare the various control files + echo "in stamp-control - BASE_VER==$(MYSQL_BASE_VERSION)" # We have some naming inconsistencies here... for f in debian/*.in debian/po/POTFILES.in.in ; do \ - f2=`echo $$f | sed "s,BASE,$(MYSQL_BASE_VERSION),g;\ - s,PREV,$(MYSQL_PREVIOUS_BASE_VERSION),g;\ + f2=`echo $$f | sed "s,BASE,$(MYSQL_BRANDED_BASE_VERSION),g;\ + s,PREV,$(MYSQL_BRANDED_PREVIOUS_BASE_VERSION),g;\ s,NLIB,$(NDB_SHARED_LIB_MAJOR_VERSION),g;\ s,SLIB,$(SHARED_LIB_MAJOR_VERSION),g;s,\.in$$,,"`; \ if [ $$f2 != debian/control -a $$f2 != debian/Makefile ]; then \ sed -e "s/@MYSQL_BASE_VERSION@/$(MYSQL_BASE_VERSION)/g" \ + -e "s/@MYSQL_BRANDED_BASE_VERSION@/$(MYSQL_BRANDED_BASE_VERSION)/g" \ -e "s/@VERSIONSTRING@/$(VERSIONSTRING)/g" \ - -e "s/@VER@/$(VER)/g" \ -e "s/@PRIORITY@/$(PRIORITY)/g" \ -e "s/@MYSQL_PREVIOUS_BASE_VERSION@/$(MYSQL_PREVIOUS_BASE_VERSION)/g" \ + -e "s/@MYSQL_BRANDED_PREVIOUS_BASE_VERSION@/$(MYSQL_BRANDED_PREVIOUS_BASE_VERSION)/g" \ -e "s/@MYSQL_SOURCE_BASE_VERSION@/$(MYSQL_SOURCE_BASE_VERSION)/g" \ -e "s/@SHARED_LIB_MAJOR_VERSION@/$(SHARED_LIB_MAJOR_VERSION)/g" \ -e "s/@NDB_SHARED_LIB_MAJOR_VERSION@/$(NDB_SHARED_LIB_MAJOR_VERSION)/g" \ @@ -194,13 +205,19 @@ stamp-control: <$$f >$$f2; \ fi; \ done + echo "MYSQL_BUILD_OPTS=$(MYSQL_BUILD_OPTS)" >> debian/defs.mk + echo "MYSQL_BUILD_CXXFLAGS=$(MYSQL_BUILD_CXXFLAGS)" >> debian/defs.mk + echo "MYSQL_BUILD_CFLAGS=$(MYSQL_BUILD_CFLAGS)" >> debian/defs.mk + echo "MYSQL_BUILD_CC=$(MYSQL_BUILD_CC)" >> debian/defs.mk + echo "MYSQL_BUILD_CXX=$(MYSQL_BUILD_CXX)" >> debian/defs.mk + # depending on two files we expect to be in the root # to protect from accidentally deleting a whole bunch of # files somewhere else. clean: configure.in Makefile.am control-file - rm -f debian/mysql-server-$(MYSQL_BASE_VERSION).mysql.init + rm -f debian/mysql-server-$(MYSQL_BRANDED_BASE_VERSION).mysql.init # We depend on this later, and delete the results in the mean time $(MAKE) -f debian/rules stamp-control @@ -218,11 +235,10 @@ clean: configure.in Makefile.am control-file debconf-updatepo for f in debian/*.in; do \ - f2=`echo $$f | sed "s,MYSQL_BASE_VERSION,$(MYSQL_BASE_VERSION),g;\ - s,MYSQL_PREVIOUS_BASE_VERSION,$(MYSQL_PREVIOUS_BASE_VERSION),g;\ - s,MYSQL_SOURCE_BASE_VERSION,$(MYSQL_SOURCE_BASE_VERSION),g;\ - s,NDB_SHARED_LIB_MAJOR_VERSION,$(NDB_SHARED_LIB_MAJOR_VERSION),g;\ - s,SHARED_LIB_MAJOR_VERSION,$(SHARED_LIB_MAJOR_VERSION),g;s,\.in$$,,"`; \ + f2=`echo $$f | sed "s,BASE,$(MYSQL_BRANDED_BASE_VERSION),g;\ + s,PREV,$(MYSQL_BRANDED_PREVIOUS_BASE_VERSION),g;\ + s,NLIB,$(NDB_SHARED_LIB_MAJOR_VERSION),g;\ + s,SLIB,$(SHARED_LIB_MAJOR_VERSION),g;s,\.in$$,,"`; \ if [ $$f2 != debian/control -a $$f2 != debian/Makefile -a $$f2 != debian/defs.mk ]; then \ rm -f $$f2; \ fi; \ @@ -243,7 +259,7 @@ install: build stamp-control # Sort of hackish way to make sure we have a init script # for dh_installinit - cp support-files/mysql.server debian/mysql-server-$(MYSQL_BASE_VERSION).mysql.init + cp support-files/mysql.server debian/mysql-server-$(MYSQL_BRANDED_BASE_VERSION).mysql.init mkdir -p $(TMP)/usr/lib/mysql/mysqld.sym cp sql/mysqld.sym $(TMP)/usr/lib/mysql/mysqld.sym @@ -292,8 +308,8 @@ install: build stamp-control # mysql-server install -m 0755 scripts/mysqld_safe $(TMP)/usr/bin/mysqld_safe - mkdir -p $(TMP)/usr/share/doc/mysql-server-$(MYSQL_BASE_VERSION)/examples - mv $(TMP)/usr/share/mysql/*cnf $(TMP)/usr/share/doc/mysql-server-$(MYSQL_BASE_VERSION)/examples/ + mkdir -p $(TMP)/usr/share/doc/mysql-server-$(MYSQL_BRANDED_BASE_VERSION)/examples + mv $(TMP)/usr/share/mysql/*cnf $(TMP)/usr/share/doc/mysql-server-$(MYSQL_BRANDED_BASE_VERSION)/examples/ rm -vf $(TMP)/usr/share/mysql/mi_test_all* \ $(TMP)/usr/share/mysql/mysql-log-rotate \ $(TMP)/usr/share/mysql/mysql.server \ @@ -305,14 +321,14 @@ install: build stamp-control cp -a sql-bench $(TMP)/usr/share/mysql/ # lintian overrides mkdir -p $(TMP)/usr/share/lintian/overrides/ - cp debian/mysql-server-$(MYSQL_BASE_VERSION).lintian-overrides $(TMP)/usr/share/lintian/overrides/mysql-server-$(MYSQL_BASE_VERSION) - cp debian/mysql-client-$(MYSQL_BASE_VERSION).lintian-overrides $(TMP)/usr/share/lintian/overrides/mysql-client-$(MYSQL_BASE_VERSION) + cp debian/mysql-server-$(MYSQL_BRANDED_BASE_VERSION).lintian-overrides $(TMP)/usr/share/lintian/overrides/mysql-server-$(MYSQL_BRANDED_BASE_VERSION) + cp debian/mysql-client-$(MYSQL_BRANDED_BASE_VERSION).lintian-overrides $(TMP)/usr/share/lintian/overrides/mysql-client-$(MYSQL_BRANDED_BASE_VERSION) # For 4.1 -> 5.0 transition d=$(TMP)/usr/share/mysql-common/internal-use-only/; \ mkdir -p $$d; \ - cp debian/mysql-server-$(MYSQL_BASE_VERSION).mysql.init $$d/_etc_init.d_mysql; \ - cp debian/mysql-server-$(MYSQL_BASE_VERSION).mysql-server.logrotate $$d/_etc_logrotate.d_mysql-server; \ + cp debian/mysql-server-$(MYSQL_BRANDED_BASE_VERSION).mysql.init $$d/_etc_init.d_mysql; \ + cp debian/mysql-server-$(MYSQL_BRANDED_BASE_VERSION).mysql-server.logrotate $$d/_etc_logrotate.d_mysql-server; \ dh_movefiles diff --git a/debian/source.lintian-overrides.in b/debian/source.lintian-overrides.in index 8af64e3a256..22a9164cf66 100644 --- a/debian/source.lintian-overrides.in +++ b/debian/source.lintian-overrides.in @@ -1,5 +1,5 @@ -maintainer-script-lacks-debhelper-token debian/mysql-server-@MYSQL_BASE_VERSION@.postinst -maintainer-script-lacks-debhelper-token debian/mysql-server-@MYSQL_BASE_VERSION@.postrm +maintainer-script-lacks-debhelper-token debian/mysql-server-@MYSQL_BRANDED_BASE_VERSION@.postinst +maintainer-script-lacks-debhelper-token debian/mysql-server-@MYSQL_BRANDED_BASE_VERSION@.postrm outdated-autotools-helper-file bdb/dist/config.sub 2002-07-03 outdated-autotools-helper-file bdb/dist/config.guess 2002-07-23 bad-distribution-in-changes-file sarge |