mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
93425e748d
`libcryptsetup` is a required runtime dependency. Corresponding sections of provision files: - [CentOS provision file](8235fd155f/tools/provision/centos.sh (L73-L78)
) - [RHEL provision file](8235fd155f/tools/provision/rhel.sh (L94-L99)
) CentOS 6 -------- [Demonstration of problem and work around.](https://gist.github.com/brandt/e32af345b63c339ddbdb#file-centos-6-log-L81) Error message: ``` [root@b1a7318dbf3c /]# osqueryi osqueryi: error while loading shared libraries: libcryptsetup.so.1: cannot open shared object file: No such file or directory ``` CentOS 7 -------- [Demonstration of problem and work around.](https://gist.github.com/brandt/e32af345b63c339ddbdb#file-centos-7-log-L314) Error message: ``` [root@be01c8b1bb18 /]# osqueryi osqueryi: error while loading shared libraries: libcryptsetup.so.4: cannot open shared object file: No such file or directory ```
98 lines
2.5 KiB
CMake
98 lines
2.5 KiB
CMake
# make package
|
|
if(APPLE)
|
|
add_custom_target(
|
|
packages
|
|
"${CMAKE_SOURCE_DIR}/tools/deployment/make_osx_package.sh"
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
COMMENT "Building default OS X package (no custom config)" VERBATIM
|
|
DEPENDS daemon shell
|
|
)
|
|
elseif(LINUX)
|
|
if(UBUNTU)
|
|
set(PACKAGE_TYPE "deb")
|
|
set(PACKAGE_DEPENDENCIES
|
|
"libc6 (>=2.15)"
|
|
"zlib1g"
|
|
"libbz2-1.0"
|
|
"libapt-pkg4.12"
|
|
"libreadline6"
|
|
)
|
|
if(OSQUERY_BUILD_DISTRO STREQUAL "precise")
|
|
set(PACKAGE_ITERATION "1.ubuntu12.04")
|
|
set(PACKAGE_DEPENDENCIES
|
|
"${PACKAGE_DEPENDENCIES}"
|
|
"libstdc++6"
|
|
"libudev0"
|
|
)
|
|
elseif(OSQUERY_BUILD_DISTRO STREQUAL "trusty")
|
|
set(PACKAGE_ITERATION "1.ubuntu14.04")
|
|
set(PACKAGE_DEPENDENCIES
|
|
"${PACKAGE_DEPENDENCIES}"
|
|
"libstdc++6 (>= 4.8)"
|
|
"libudev1"
|
|
)
|
|
endif()
|
|
elseif(CENTOS)
|
|
set(PACKAGE_TYPE "rpm")
|
|
set(PACKAGE_ITERATION "1.el")
|
|
set(PACKAGE_DEPENDENCIES
|
|
"glibc >= 2.12"
|
|
"openssl >= 1.0"
|
|
"bzip2-libs"
|
|
"readline"
|
|
"zlib"
|
|
"rpm-libs"
|
|
)
|
|
if(OSQUERY_BUILD_DISTRO STREQUAL "centos6")
|
|
set(PACKAGE_ITERATION "1.el6_6.5")
|
|
set(PACKAGE_DEPENDENCIES
|
|
"${PACKAGE_DEPENDENCIES}"
|
|
"cryptsetup-luks-libs"
|
|
"libudev"
|
|
)
|
|
elseif(OSQUERY_BUILD_DISTRO STREQUAL "centos7")
|
|
set(PACKAGE_ITERATION "1.el7_7.0")
|
|
set(PACKAGE_DEPENDENCIES
|
|
"${PACKAGE_DEPENDENCIES}"
|
|
"cryptsetup-libs"
|
|
)
|
|
endif()
|
|
elseif(RHEL)
|
|
set(PACKAGE_TYPE "rpm")
|
|
set(PACKAGE_ITERATION "1.el")
|
|
set(PACKAGE_DEPENDENCIES
|
|
"glibc >= 2.12"
|
|
"openssl >= 1.0"
|
|
"bzip2-libs"
|
|
"readline"
|
|
"zlib"
|
|
"rpm-libs"
|
|
)
|
|
if(OSQUERY_BUILD_DISTRO STREQUAL "rhel6")
|
|
set(PACKAGE_ITERATION "1.el6_6.5")
|
|
set(PACKAGE_DEPENDENCIES
|
|
"${PACKAGE_DEPENDENCIES}"
|
|
"cryptsetup-luks-libs"
|
|
"libudev"
|
|
)
|
|
elseif(OSQUERY_BUILD_DISTRO STREQUAL "rhel7")
|
|
set(PACKAGE_ITERATION "1.el7_7.0")
|
|
set(PACKAGE_DEPENDENCIES
|
|
"${PACKAGE_DEPENDENCIES}"
|
|
"cryptsetup-libs"
|
|
)
|
|
endif()
|
|
endif()
|
|
JOIN("${PACKAGE_DEPENDENCIES}" ", " PACKAGE_DEPENDENCIES)
|
|
|
|
add_custom_target(
|
|
packages
|
|
"${CMAKE_SOURCE_DIR}/tools/deployment/make_linux_package.sh"
|
|
-t ${PACKAGE_TYPE} -i "${PACKAGE_ITERATION}"
|
|
-d "${PACKAGE_DEPENDENCIES}"
|
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
|
COMMENT "Building linux packages (no custom config)" VERBATIM
|
|
DEPENDS daemon shell
|
|
)
|
|
endif()
|