2020-07-31 13:46:52 +03:00
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
# Licensed under the Apache 2.0 License.
|
|
|
|
|
2022-11-01 20:56:09 +03:00
|
|
|
set(CPACK_PACKAGE_NAME "${CCF_PROJECT}")
|
2020-07-31 13:46:52 +03:00
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Confidential Consortium Framework")
|
|
|
|
set(CPACK_PACKAGE_CONTACT "https://github.com/Microsoft/CCF")
|
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CCF_DIR}/LICENSE")
|
|
|
|
set(CPACK_PACKAGE_VERSION ${CCF_RELEASE_VERSION})
|
|
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
|
|
|
|
2022-11-01 20:56:09 +03:00
|
|
|
set(CPACK_DEBIAN_PACKAGE_VERSION "${CCF_RELEASE_VERSION}")
|
2022-10-26 16:57:54 +03:00
|
|
|
|
2021-04-29 14:04:35 +03:00
|
|
|
if(CCF_VERSION_SUFFIX)
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_VERSION
|
2022-10-26 16:57:54 +03:00
|
|
|
"${CPACK_DEBIAN_PACKAGE_VERSION}~${CCF_VERSION_SUFFIX}"
|
2021-04-29 14:04:35 +03:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-10-26 16:57:54 +03:00
|
|
|
message(STATUS "Debian package version: ${CPACK_DEBIAN_PACKAGE_VERSION}")
|
|
|
|
|
2023-05-04 17:00:17 +03:00
|
|
|
# Note: On Ubuntu, the most up-to-date version of the OpenSSL deb package is
|
|
|
|
# 1.1.1f, which corresponds to the OpenSSL 1.1.1t release (latest security
|
|
|
|
# patches).
|
|
|
|
set(CCF_DEB_BASE_DEPENDENCIES "libuv1 (>= 1.34.2);openssl (>=1.1.1f)")
|
2022-10-26 16:57:54 +03:00
|
|
|
set(CCF_DEB_DEPENDENCIES ${CCF_DEB_BASE_DEPENDENCIES})
|
|
|
|
|
2024-08-16 13:43:28 +03:00
|
|
|
list(APPEND CCF_DEB_DEPENDENCIES "libc++1-15;libc++abi1-15")
|
2022-10-26 16:57:54 +03:00
|
|
|
|
|
|
|
list(JOIN CCF_DEB_DEPENDENCIES ", " CPACK_DEBIAN_PACKAGE_DEPENDS)
|
|
|
|
|
2020-07-31 13:46:52 +03:00
|
|
|
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
|
|
|
|
|
|
|
|
include(CPack)
|