diff options
author | unknown <lenz@mysql.com> | 2003-02-19 21:02:05 +0100 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2003-02-19 21:02:05 +0100 |
commit | 68ee31cf6cee6991c8772ae1ff975b417987ada2 (patch) | |
tree | 6a0e1573715c77140d8e77f0bfa32e6a4f9ba747 /support-files/MacOSX | |
parent | 65508b65ba04d499f900259d52d6b16be871ef4a (diff) | |
download | mariadb-git-68ee31cf6cee6991c8772ae1ff975b417987ada2.tar.gz |
- added more files to support-files/MacOSX and added them to the
distribution
- added Bootstrap, logger.pm and Do-pkg to Build-tools:
Bootstrap is used to build the source distribution for the binary builds
logger.pm includes some helper functions
Do-pkg converts a binary distribution into a Mac OS X PKG (still needs
some polishing)
support-files/MacOSX/Description.plist.sh:
- Shortened IFPkgDescriptionDescription a bit
support-files/MacOSX/Makefile.am:
- Added more files (StartupParameters.plist, postinstall, preinstall) to
distribution
Diffstat (limited to 'support-files/MacOSX')
-rw-r--r-- | support-files/MacOSX/Description.plist.sh | 2 | ||||
-rw-r--r-- | support-files/MacOSX/Makefile.am | 21 | ||||
-rw-r--r-- | support-files/MacOSX/ReadMe.txt | 80 | ||||
-rw-r--r-- | support-files/MacOSX/StartupParameters.plist.sh | 19 | ||||
-rw-r--r-- | support-files/MacOSX/postinstall.sh | 18 | ||||
-rw-r--r-- | support-files/MacOSX/preinstall.sh | 18 |
6 files changed, 154 insertions, 4 deletions
diff --git a/support-files/MacOSX/Description.plist.sh b/support-files/MacOSX/Description.plist.sh index 4f388235eee..03212dfdeff 100644 --- a/support-files/MacOSX/Description.plist.sh +++ b/support-files/MacOSX/Description.plist.sh @@ -5,7 +5,7 @@ <key>IFPkgDescriptionDeleteWarning</key> <string></string> <key>IFPkgDescriptionDescription</key> - <string>This package provides a binary installation of MySQL @VERSION@@MYSQL_SERVER_SUFFIX@ for Mac OS X.</string> + <string>MySQL @VERSION@@MYSQL_SERVER_SUFFIX@ for Mac OS X</string> <key>IFPkgDescriptionTitle</key> <string>MySQL @VERSION@@MYSQL_SERVER_SUFFIX@ for Mac OS X</string> <key>IFPkgDescriptionVersion</key> diff --git a/support-files/MacOSX/Makefile.am b/support-files/MacOSX/Makefile.am index 0702d104e7e..d030ff39d84 100644 --- a/support-files/MacOSX/Makefile.am +++ b/support-files/MacOSX/Makefile.am @@ -17,19 +17,34 @@ ## Process this file with automake to create Makefile.in -EXTRA_DIST = Info.plist.sh Description.plist.sh +EXTRA_DIST = Info.plist.sh \ + Description.plist.sh \ + StartupParameters.plist.sh \ + postinstall.sh \ + preinstall.sh \ + ReadMe.txt -pkgdata_DATA = Info.plist Description.plist +pkgdata_DATA = Info.plist \ + Description.plist \ + StartupParameters.plist \ + postinstall \ + preinstall -CLEANFILES = Info.plist Description.plist +CLEANFILES = Info.plist \ + Description.plist \ + StartupParameters.plist \ + postinstall \ + preinstall SUFFIXES = .sh .sh: @RM@ -f $@ $@-t @SED@ \ + -e 's!@''prefix''@!$(prefix)!g' \ -e 's!@''VERSION''@!@VERSION@!' \ -e 's!@''MYSQL_SERVER_SUFFIX''@!@MYSQL_SERVER_SUFFIX@!' \ + -e 's!@''MYSQLD_USER''@!@MYSQLD_USER@!' \ $< > $@-t @MV@ $@-t $@ diff --git a/support-files/MacOSX/ReadMe.txt b/support-files/MacOSX/ReadMe.txt new file mode 100644 index 00000000000..ed2d2b4c714 --- /dev/null +++ b/support-files/MacOSX/ReadMe.txt @@ -0,0 +1,80 @@ +Installation notes for MySQL on Mac OS X + +PLEASE READ! + +For more details about installing and running +MySQL on Mac OS X, also refer to the manual, +which is available online: + +http://www.mysql.com/doc/en/Mac_OS_X_installation.html + +NOTE: Before proceeding with the installation, please +make sure that no other MySQL server is running! + +Please shut down all running MySQL instances before +continuing by either using the MySQL Manager +Application (on Mac OS X Server) or via "mysqladmin +shutdown" on the command line. + +This MySQL package will be installed into +"/usr/local/mysql-<version>" and will also create a +symbolic link "/usr/local/mysql", pointing to the new +location. + +A previously existing /usr/local/mysql directory will +be renamed to /usr/local/mysql.bak before proceeding +with the installation. + +Additionally, it will install the mysql grant tables by +executing "mysql_install_db" after the installation. + +If you are running Mac OS X Server, you already have a +version MySQL installed. Make sure to read Apple's help +about installing MySQL (Run the "Help View" application, +select "Mac OS X Server help", and do a search for MySQL +and read the item entitled "Installing MySQL"). + +If you previously used Marc Liyanage's MySQL packages +for MacOS X from http://www.entropy.ch, you can simply +follow the update instructions given on his pages. + +After the installation (and restoring the old database +files, if necessary), you can start up MySQL by running +the following commands in a terminal window: + + cd /usr/local/mysql + sudo ./bin/mysqld_safe + (Enter your password) + (Press CTRL+Z) + (Press CTRL+D to exit the shell) + bg + +You should now be able to connect to the MySQL server, +e.g. by running /usr/local/mysql/bin/mysql + +If you installed MySQL for the first time, +PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER! +This is done with the following two commands: + +/usr/local/mysql/bin/mysqladmin -u root password 'new-password' + +/usr/local/mysql/bin/mysqladmin -u root -h $hostname password 'new-password' + +Please note, that after upgrading from MySQL 3.23 to +MySQL 4.0 it is recommended to convert the MySQL +privilege tables using the mysql_fix_privilege_tables +script, since some new security privileges have been +added. + +Please see +http://www.mysql.com/doc/en/Upgrading-from-3.23.html +for more information on how to upgrade from MySQL 3.23. + +If you do not want to have to type the full path +"/usr/local/mysql/bin" in front of every command, you +can to add this directory to your PATH environment +variable in your login script. For the default shell +"tcsh", you can do this by running this command once: + +echo 'setenv PATH $PATH:/usr/local/mysql/bin' >> ~/.tcshrc + diff --git a/support-files/MacOSX/StartupParameters.plist.sh b/support-files/MacOSX/StartupParameters.plist.sh new file mode 100644 index 00000000000..f5620c73f5f --- /dev/null +++ b/support-files/MacOSX/StartupParameters.plist.sh @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>Description</key> + <string>MySQL @VERSION@@MYSQL_SERVER_SUFFIX@</string> + <key>OrderPreference</key> + <string>None</string> + <key>Provides</key> + <array> + <string>MySQL</string> + </array> + <key>Uses</key> + <array> + <string>Network</string> + <string>Resolver</string> + </array> + </dict> +</plist> diff --git a/support-files/MacOSX/postinstall.sh b/support-files/MacOSX/postinstall.sh new file mode 100644 index 00000000000..957717207cd --- /dev/null +++ b/support-files/MacOSX/postinstall.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# postinstall - this script will be executed after the MySQL PKG +# installation has been performed. +# +# This script will install the MySQL privilege tables using the +# "mysql_install_db" script and will correct the ownerships of these files +# afterwards. +# + +cd @prefix@ +if [ ! -f data/mysql/db.frm ] ; then + ./scripts/mysql_install_db +fi + +if [ -d data ] ; then + chown -R @MYSQLD_USER@ data +fi diff --git a/support-files/MacOSX/preinstall.sh b/support-files/MacOSX/preinstall.sh new file mode 100644 index 00000000000..62772573c46 --- /dev/null +++ b/support-files/MacOSX/preinstall.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# preinstall - this script will be executed before the MySQL PKG +# installation will be performed. +# +# If this package has been compiled with a prefix ending with "mysql" (e.g. +# /usr/local/mysql or /opt/mysql), it will rename any previosuly existing +# directory with this name before installing the new package (which includes +# a symlink named "mysql", pointing to the newly installed directory, which +# is named mysql-<version>) +# + +PREFIX="@prefix@" +BASENAME=`basename $PREFIX` + +if [ -d $PREFIX -a ! -L $PREFIX -a $BASENAME = "mysql" ] ; then + mv $PREFIX $PREFIX.bak +fi |