Commits
Herby Gillot authored and Frank Schima committed caebc24d901
1 - | --- a/cmake/install_layout.cmake.orig 2016-02-08 20:35:02.000000000 -0430 |
2 - | +++ b/cmake/install_layout.cmake 2016-02-08 20:53:31.000000000 -0430 |
3 - | |
1 + | --- a/cmake/install_layout.cmake 2019-10-24 09:35:40.000000000 -0500 |
2 + | +++ b/cmake/install_layout.cmake 2019-10-24 09:40:23.000000000 -0500 |
3 + | |
4 4 | ENDIF() |
5 - | |
5 + | |
6 6 | SET(INSTALL_LAYOUT "${DEFAULT_INSTALL_LAYOUT}" |
7 - | -CACHE STRING "Installation directory layout. Options are: TARGZ (as in tar.gz installer), WIN (as in zip installer), STANDALONE, RPM, DEB, SVR4, FREEBSD, GLIBC, OSX, SLES") |
8 - | +CACHE STRING "Installation directory layout. Options are: TARGZ (as in tar.gz installer), WIN (as in zip installer), STANDALONE, RPM, DEB, SVR4, FREEBSD, GLIBC, OSX, MACPORTS, SLES") |
9 - | |
7 + | -CACHE STRING "Installation directory layout. Options are: TARGZ (as in tar.gz installer), STANDALONE, RPM, DEB, SVR4, FREEBSD, GLIBC, OSX") |
8 + | +CACHE STRING "Installation directory layout. Options are: TARGZ (as in tar.gz installer), STANDALONE, RPM, DEB, SVR4, FREEBSD, GLIBC, OSX, MACPORTS") |
9 + | |
10 10 | IF(UNIX) |
11 - | IF(INSTALL_LAYOUT MATCHES "RPM" OR |
12 - | |
13 - | SET(CMAKE_INSTALL_PREFIX ${default_prefix} |
11 + | IF(INSTALL_LAYOUT MATCHES "RPM") |
12 + | |
14 13 | CACHE PATH "install prefix" FORCE) |
15 14 | ENDIF() |
16 - | - SET(VALID_INSTALL_LAYOUTS "RPM" "DEB" "SVR4" "FREEBSD" "GLIBC" "OSX" "TARGZ" "SLES" "STANDALONE") |
17 - | + SET(VALID_INSTALL_LAYOUTS "RPM" "DEB" "SVR4" "FREEBSD" "GLIBC" "OSX" "MACPORTS" "TARGZ" "SLES" "STANDALONE") |
15 + | SET(VALID_INSTALL_LAYOUTS |
16 + | - "RPM" "DEB" "SVR4" "FREEBSD" "GLIBC" "OSX" "TARGZ" "STANDALONE") |
17 + | + "RPM" "DEB" "SVR4" "FREEBSD" "GLIBC" "OSX" "TARGZ" "STANDALONE" "MACPORTS") |
18 18 | LIST(FIND VALID_INSTALL_LAYOUTS "${INSTALL_LAYOUT}" ind) |
19 19 | IF(ind EQUAL -1) |
20 20 | MESSAGE(FATAL_ERROR "Invalid INSTALL_LAYOUT parameter:${INSTALL_LAYOUT}." |
21 - | |
22 - | SET(INSTALL_SECURE_FILE_PRIV_EMBEDDEDDIR_OSX ${secure_file_priv_embedded_path}) |
23 - | |
24 - | # |
21 + | |
22 + | SET(INSTALL_MYSQLKEYRINGDIR_RPM "/var/lib/mysql-keyring") |
23 + | SET(INSTALL_SECURE_FILE_PRIVDIR_RPM ${secure_file_priv_path}) |
24 + | |
25 + | + |
25 26 | +# MACPORTS layout |
26 27 | +# |
27 28 | +SET(INSTALL_BINDIR_MACPORTS "lib/@NAME@/bin") |
28 29 | +SET(INSTALL_SBINDIR_MACPORTS "lib/@NAME@/bin") |
29 30 | +SET(INSTALL_SCRIPTDIR_MACPORTS "lib/@NAME@/bin") |
30 31 | +# |
31 32 | +SET(INSTALL_LIBDIR_MACPORTS "lib/@NAME@/mysql") |
33 + | +SET(INSTALL_PRIV_LIBDIR_MACPORTS "lib/@NAME@/mysql") |
32 34 | +SET(INSTALL_PLUGINDIR_MACPORTS "lib/@NAME@/plugin") |
33 35 | +# |
34 36 | +SET(INSTALL_INCLUDEDIR_MACPORTS "include/@NAME@/mysql") |
35 37 | +# |
36 38 | +SET(INSTALL_DOCDIR_MACPORTS "share/doc/@NAME@") |
37 39 | +SET(INSTALL_DOCREADMEDIR_MACPORTS "share/doc/@NAME@") |
38 40 | +SET(INSTALL_MANDIR_MACPORTS "share/man/@NAME@") |
39 41 | +SET(INSTALL_INFODIR_MACPORTS "share/doc/@NAME@") |
40 42 | +# |
41 43 | +SET(INSTALL_SHAREDIR_MACPORTS "share/@NAME@") |
42 44 | +SET(INSTALL_MYSQLSHAREDIR_MACPORTS "share/@NAME@") |
43 45 | +SET(INSTALL_MYSQLTESTDIR_MACPORTS "share/@NAME@/mysql-test") |
44 46 | +SET(INSTALL_SQLBENCHDIR_MACPORTS "share/@NAME@") |
45 47 | +SET(INSTALL_SUPPORTFILESDIR_MACPORTS "share/@NAME@/support-files") |
46 48 | +# |
47 49 | +SET(INSTALL_MYSQLDATADIR_MACPORTS "${CMAKE_INSTALL_PREFIX}/var/db/@NAME@") |
48 50 | +SET(INSTALL_MYSQLKEYRINGDIR_MACPORTS "${CMAKE_INSTALL_PREFIX}/var/db/@NAME@-keyring") |
49 51 | +SET(INSTALL_SECURE_FILE_PRIVDIR_MACPORTS "${CMAKE_INSTALL_PREFIX}/var/db/@NAME@-files") |
50 52 | +SET(INSTALL_SECURE_FILE_PRIV_EMBEDDEDDIR_MACPORTS "${CMAKE_INSTALL_PREFIX}/var/db/@NAME@-files") |
51 53 | +SET(INSTALL_PLUGINTESTDIR_MACPORTS ${plugin_tests}) |
52 - | +# |
53 - | +# SUID /bin/ps is not in MacPorts sandbox causing scripts/CMakeLists.txt tests to fail so we set FIND_PROC here. |
54 - | +# |
55 - | +SET(FIND_PROC "ps -ef | grep -v mysqld_safe | grep -- $MYSQLD | grep $PID > /dev/null") |
56 54 | + |
57 - | +# |
58 - | # TARGZ layout |
55 + | + |
56 + | # |
57 + | # DEB layout |
59 58 | # |
60 - | SET(INSTALL_BINDIR_TARGZ "bin") |