Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
179 changed files
with
3,392 additions
and
198,666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
COLUMNSTORE_VERSION_MAJOR=1 | ||
COLUMNSTORE_VERSION_MINOR=0 | ||
COLUMNSTORE_VERSION_PATCH=7 | ||
COLUMNSTORE_VERSION_RELEASE=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash -e | ||
|
||
rpmmode=install | ||
prefix=/usr/local | ||
|
||
echo "MariaDB ColumnStore install completed" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash -e | ||
|
||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash -e | ||
|
||
rpmmode=install | ||
prefix=/usr/local | ||
|
||
test -x /usr/local/mariadb/columnstore/bin/post-install && /usr/local/mariadb/columnstore/bin/post-install --prefix=$prefix --rpmmode=$rpmmode | ||
|
||
echo "MariaDB ColumnStore install completed" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash -e | ||
|
||
test -x /usr/local/mariadb/columnstore/bin/pre-uninstall && /usr/local/mariadb/columnstore/bin/pre-uninstall | ||
|
||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash -e | ||
|
||
rpmmode=install | ||
prefix=/usr/local | ||
|
||
echo "MariaDB ColumnStore install completed" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash -e | ||
|
||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version=@VERSION@ | ||
release=@RELEASE@ | ||
version=@PACKAGE_VERSION@ | ||
release=@PACKAGE_RELEASE@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
|
||
# Generate "something" to trigger cmake rerun when VERSION changes | ||
CONFIGURE_FILE( | ||
${CMAKE_SOURCE_DIR}/VERSION | ||
${CMAKE_BINARY_DIR}/VERSION.dep | ||
) | ||
|
||
# Read value for a variable from VERSION. | ||
|
||
MACRO(COLUMNSTORE_GET_CONFIG_VALUE keyword var) | ||
IF(NOT ${var}) | ||
FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION str REGEX "^[ ]*${keyword}=") | ||
IF(str) | ||
STRING(REPLACE "${keyword}=" "" str ${str}) | ||
STRING(REGEX REPLACE "[ ].*" "" str "${str}") | ||
SET(${var} ${str}) | ||
ENDIF() | ||
ENDIF() | ||
ENDMACRO() | ||
|
||
MACRO(GET_COLUMNSTORE_VERSION) | ||
COLUMNSTORE_GET_CONFIG_VALUE("COLUMNSTORE_VERSION_MAJOR" MAJOR_VERSION) | ||
COLUMNSTORE_GET_CONFIG_VALUE("COLUMNSTORE_VERSION_MINOR" MINOR_VERSION) | ||
COLUMNSTORE_GET_CONFIG_VALUE("COLUMNSTORE_VERSION_PATCH" PATCH_VERSION) | ||
COLUMNSTORE_GET_CONFIG_VALUE("COLUMNSTORE_VERSION_EXTRA" EXTRA_VERSION) | ||
COLUMNSTORE_GET_CONFIG_VALUE("COLUMNSTORE_VERSION_RELEASE" RELEASE_VERSION) | ||
|
||
|
||
IF(NOT "${MAJOR_VERSION}" MATCHES "[0-9]+" OR | ||
NOT "${MINOR_VERSION}" MATCHES "[0-9]+" OR | ||
NOT "${PATCH_VERSION}" MATCHES "[0-9]+") | ||
MESSAGE(FATAL_ERROR "VERSION file cannot be parsed.") | ||
ENDIF() | ||
|
||
SET(VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EXTRA_VERSION}") | ||
MESSAGE(STATUS "MariaDB-Columnstore ${VERSION}") | ||
SET(CPACK_PACKAGE_VERSION_MAJOR ${MAJOR_VERSION}) | ||
SET(CPACK_PACKAGE_VERSION_MINOR ${MINOR_VERSION}) | ||
SET(CPACK_PACKAGE_VERSION_PATCH ${PATCH_VERSION}${EXTRA_VERSION}) | ||
SET(PACKAGE_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EXTRA_VERSION}") | ||
SET(PACKAGE_RELEASE "${RELEASE_VERSION}") | ||
ENDMACRO() | ||
|
||
# Get columnstore version | ||
GET_COLUMNSTORE_VERSION() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
IF(DEB) | ||
|
||
SET(CMAKE_INSTALL_PREFIX ${INSTALL_ENGINE}) | ||
|
||
SET(CPACK_GENERATOR "DEB") | ||
SET(CPACK_DEBIAN_PACKAGE_DEBUG 1) | ||
SET(CPACK_PACKAGING_INSTALL_PREFIX ${INSTALL_ENGINE}) | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7) | ||
|
||
|
||
# Note that this variable is DEB not DEBIAN! http://public.kitware.com/pipermail/cmake/2014-July/058030.html | ||
SET(CPACK_DEB_COMPONENT_INSTALL ON) | ||
|
||
SET(CPACK_COMPONENTS_ALL platform libs storage-engine) | ||
|
||
SET(CPACK_PACKAGE_NAME "mariadb-columnstore") | ||
SET(ENGINE_ARCH "x86_64") | ||
|
||
IF (NOT CPACK_DEBIAN_PACKAGE_VERSION) | ||
SET (CPACK_DEBIAN_PACKAGE_VERSION ${PACKAGE_VERSION}) | ||
ENDIF() | ||
IF (NOT CPACK_DEBIAN_PACKAGE_RELEASE) | ||
SET (CPACK_DEBIAN_PACKAGE_RELEASE ${PACKAGE_RELEASE}) | ||
ENDIF() | ||
|
||
SET(CPACK_DEBIAN_PACKAGE_NAME ${CPACK_PACKAGE_NAME}) | ||
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_DEBIAN_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_RELEASE}-${ENGINE_ARCH}-${DEB}") | ||
|
||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MariaDB Columnstore: a very fast and robust SQL database server") | ||
SET(CPACK_PACKAGE_URL "http://mariadb.org") | ||
SET(CPACK_PACKAGE_CONTACT "MariaDB Corporation Ab") | ||
SET(CPACK_PACKAGE_SUMMARY "MariaDB-Columnstore software") | ||
SET(CPACK_PACKAGE_VENDOR "MariaDB Corporation Ab") | ||
SET(CPACK_PACKAGE_LICENSE "Copyright (c) 2016 MariaDB Corporation Ab., all rights reserved; redistributable under the terms of the GPL, see the file COPYING for details.") | ||
|
||
|
||
SET(CPACK_DEBIAN_PACKAGE_LICENSE "GPLv2") | ||
SET(CPACK_DEBIAN_PACKAGE_RELOCATABLE FALSE) | ||
SET(CPACK_PACKAGE_RELOCATABLE FALSE) | ||
SET(CPACK_DEBIAN_PACKAGE_URL ${CPACK_PACKAGE_URL}) | ||
SET(CPACK_DEBIAN_PACKAGE_SUMMARY ${CPACK_PACKAGE_SUMMARY}) | ||
SET(CPACK_DEBIAN_PACKAGE_VENDOR ${CPACK_PACKAGE_VENDOR}) | ||
SET(CPACK_DEBIAN_PACKAGE_LICENSE ${CPACK_PACKAGE_LICENSE}) | ||
|
||
SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION_SUMMARY}) | ||
|
||
SET(CPACK_DEBIAN_PLATFORM_PACKAGE_DESCRIPTION "MariaDB-Columnstore binary files") | ||
SET(CPACK_DEBIAN_PLATFORM_PACKAGE_SUMMARY "MariaDB-Columnstore software binaries") | ||
|
||
SET(CPACK_DEBIAN_LIBS_PACKAGE_DESCRIPTION "MariaDB-Columnstore libraries") | ||
SET(CPACK_DEBIAN_LIBS_PACKAGE_SUMMARY "MariaDB-Columnstore software libraries") | ||
|
||
SET(CPACK_DEBIAN_STORAGE-ENGINE_PACKAGE_DESCRIPTION "MariaDB Columnstore connector binary files") | ||
SET(CPACK_DEBIAN_STORAGE-ENGINE_PACKAGE_SUMMARY "MariaDB-Columnstore software MariaDB connector") | ||
|
||
|
||
SET(CPACK_DEBIAN_LIBS_PACKAGE_PROVIDES "mariadb-columnstore-libs") | ||
SET(CPACK_DEBIAN_PLATFORM_PACKAGE_PROVIDES "mariadb-columnstore-platform") | ||
SET(CPACK_DEBIAN_STORAGE-ENGINE_PACKAGE_PROVIDES "mariadb-columnstore-storage-engine") | ||
|
||
SET(CPACK_DEBIAN_PLATFORM_PACKAGE_DEPENDS "expect, libboost-all-dev, mariadb-columnstore-libs") | ||
|
||
SET(CPACK_DEBIAN_STORAGE-ENGINE_PACKAGE_DEPENDS "mariadb-columnstore-libs") | ||
|
||
|
||
set( CPACK_DEBIAN_LIBS_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/build/debian/libs/postinst;${CMAKE_CURRENT_SOURCE_DIR}/build/debian/libs/prerm;" ) | ||
set( CPACK_DEBIAN_PLATFORM_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/build/debian/platform/postinst;${CMAKE_CURRENT_SOURCE_DIR}/build/debian/platform/prerm;" ) | ||
set( CPACK_DEBIAN_STORAGE-ENGINE_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/build/debian/storageEngine/postinst;${CMAKE_CURRENT_SOURCE_DIR}/build/debian/storageEngine/prerm;" ) | ||
|
||
INCLUDE (CPack) | ||
|
||
ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.