Commit f10be5b6 authored by Jonathan Perkin's avatar Jonathan Perkin

First cut at -DINSTALL_LAYOUT=DEB support.

parent 912708c3
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
# RPM # RPM
# Build as per default RPM layout, with prefix=/usr # Build as per default RPM layout, with prefix=/usr
# #
# DEB
# Build as per STANDALONE, prefix=/opt/mysql-$major.$minor
#
# SVR4 # SVR4
# Solaris package layout suitable for pkg* tools, prefix=/opt/mysql/mysql # Solaris package layout suitable for pkg* tools, prefix=/opt/mysql/mysql
# #
...@@ -69,6 +72,10 @@ CACHE STRING "Installation directory layout. Options are: STANDALONE (as in zip ...@@ -69,6 +72,10 @@ CACHE STRING "Installation directory layout. Options are: STANDALONE (as in zip
IF(UNIX) IF(UNIX)
IF(INSTALL_LAYOUT MATCHES "RPM") IF(INSTALL_LAYOUT MATCHES "RPM")
SET(default_prefix "/usr") SET(default_prefix "/usr")
ELSEIF(INSTALL_LAYOUT MATCHES "DEB")
SET(default_prefix "/opt/${MYSQL_BASE_VERSION}")
# This is required to avoid "cpack -GDEB" default of prefix=/usr
SET(CPACK_SET_DESTDIR ON)
ELSEIF(INSTALL_LAYOUT MATCHES "SVR4") ELSEIF(INSTALL_LAYOUT MATCHES "SVR4")
SET(default_prefix "/opt/mysql/mysql") SET(default_prefix "/opt/mysql/mysql")
ELSE() ELSE()
...@@ -121,6 +128,23 @@ SET(INSTALL_DOCREADMEDIR_RPM "share/mysql/doc/MySQL-server-${MYSQL_NO_DASH_VERSI ...@@ -121,6 +128,23 @@ SET(INSTALL_DOCREADMEDIR_RPM "share/mysql/doc/MySQL-server-${MYSQL_NO_DASH_VERSI
SET(INSTALL_SUPPORTFILESDIR_RPM "share/mysql") SET(INSTALL_SUPPORTFILESDIR_RPM "share/mysql")
SET(INSTALL_MYSQLDATADIR_RPM "var") SET(INSTALL_MYSQLDATADIR_RPM "var")
# DEB layout
SET(INSTALL_BINDIR_DEB "bin")
SET(INSTALL_SBINDIR_DEB "bin")
SET(INSTALL_LIBDIR_DEB "lib")
SET(INSTALL_INCLUDEDIR_DEB "include")
SET(INSTALL_PLUGINDIR_DEB "lib/plugin")
SET(INSTALL_DOCDIR_DEB "docs")
SET(INSTALL_MANDIR_DEB "man")
SET(INSTALL_MYSQLSHAREDIR_DEB "share")
SET(INSTALL_SHAREDIR_DEB "share")
SET(INSTALL_SCRIPTDIR_DEB "scripts")
SET(INSTALL_MYSQLTESTDIR_DEB "mysql-test")
SET(INSTALL_SQLBENCHROOTDIR_DEB ".")
SET(INSTALL_DOCREADMEDIR_DEB ".")
SET(INSTALL_SUPPORTFILESDIR_DEB "support-files")
SET(INSTALL_MYSQLDATADIR_DEB "data")
# SVR4 layout # SVR4 layout
SET(INSTALL_BINDIR_SVR4 "bin") SET(INSTALL_BINDIR_SVR4 "bin")
SET(INSTALL_SBINDIR_SVR4 "bin") SET(INSTALL_SBINDIR_SVR4 "bin")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment