summaryrefslogtreecommitdiff
path: root/cmake/mysql_version.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-07-07 15:07:13 +0200
committerSergei Golubchik <serg@mariadb.org>2019-07-10 09:02:10 +0200
commitab3a6ca67032f22c763c8a1b97d644d4a8701334 (patch)
tree3438abc8e196cf98a7a65741af715f4392fdb791 /cmake/mysql_version.cmake
parente47a143fc08f7114fd877ad8ee83d322f877a672 (diff)
downloadmariadb-git-ab3a6ca67032f22c763c8a1b97d644d4a8701334.tar.gz
cleanup: CPACK_RPM_* package description
add cmake helper macro SET_IF_UNSET() and use it for CPACK_* variables
Diffstat (limited to 'cmake/mysql_version.cmake')
-rw-r--r--cmake/mysql_version.cmake25
1 files changed, 14 insertions, 11 deletions
diff --git a/cmake/mysql_version.cmake b/cmake/mysql_version.cmake
index 26e8538bbbc..114af99f954 100644
--- a/cmake/mysql_version.cmake
+++ b/cmake/mysql_version.cmake
@@ -70,24 +70,27 @@ ENDMACRO()
GET_MYSQL_VERSION()
SET(MYSQL_TCP_PORT_DEFAULT 0)
-IF(NOT MYSQL_TCP_PORT)
- SET(MYSQL_TCP_PORT 3306)
-ENDIF()
+SET_IF_UNSET(MYSQL_TCP_PORT 3306)
-IF(NOT COMPILATION_COMMENT)
- SET(COMPILATION_COMMENT "Source distribution")
-ENDIF()
+SET_IF_UNSET(COMPILATION_COMMENT "Source distribution")
INCLUDE(package_name)
IF(NOT CPACK_PACKAGE_FILE_NAME)
GET_PACKAGE_FILE_NAME(CPACK_PACKAGE_FILE_NAME)
ENDIF()
-IF(NOT CPACK_SOURCE_PACKAGE_FILE_NAME)
- SET(CPACK_SOURCE_PACKAGE_FILE_NAME "mariadb-${VERSION}")
-ENDIF()
-SET(CPACK_PACKAGE_CONTACT "MariaDB Developers <maria-developers@lists.launchpad.net>")
-SET(CPACK_PACKAGE_VENDOR "MariaDB Foundation")
+SET_IF_UNSET(CPACK_SOURCE_PACKAGE_FILE_NAME "mariadb-${VERSION}")
+SET_IF_UNSET(CPACK_PACKAGE_CONTACT "MariaDB Developers <maria-developers@lists.launchpad.net>")
+SET_IF_UNSET(CPACK_PACKAGE_VENDOR "MariaDB Foundation")
+SET_IF_UNSET(CPACK_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}
+
+It is GPL v2 licensed, which means you can use the it free of charge under the
+conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).
+
+MariaDB documentation can be found at https://mariadb.com/kb
+MariaDB bug reports should be submitted through https://jira.mariadb.org
+
+")
SET(CPACK_SOURCE_GENERATOR "TGZ")
# Defintions for windows version resources