* Remove unused options from rublon default config * Remove safe|secure options * Allow 9 digits long passcode for passcode bypass * Change name of 'Mobile Passcode' to 'Passcode' * Do not display any prompt when user is waiting * remove unused alloca.h header * Add autopushPrompt option * Change name OTP method * Change enrolement message handling * ad static string ctor * Addded postrm script * Rename 01_rublon_ssh.conf to 01-rublon-ssh.conf * restart sshd service after rublon package instalation * Fix sshd not restarting bug on ubuntu 24.04 * disable logging from websocket-io * change package name to match old package name * Fix compilation issue when using non owning ptr * Set version to 2.0.0
45 lines
1.0 KiB
CMake
Executable File
45 lines
1.0 KiB
CMake
Executable File
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(rublon-ssh LANGUAGES CXX)
|
|
|
|
include(CTest)
|
|
include(GNUInstallDirs)
|
|
|
|
set(PROJECT_VERSION_MAJOR 2)
|
|
set(PROJECT_VERSION_MINOR 0)
|
|
set(PROJECT_VERSION_PATCH 0)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
|
set(CMAKE_CXX_EXTENSIONS NO)
|
|
|
|
add_compile_options(-Wall -Wextra -Wpedantic -Wno-format-security)
|
|
|
|
option(ENABLE_TESTS "Enable tests" OFF)
|
|
add_custom_target(CONFIG_IDE SOURCES ${CMAKE_CURRENT_LIST_DIR}/rsc/rublon.config.defaults)
|
|
add_custom_target(INSTSCRIPTS_IDE SUORCES ${CMAKE_CURRENT_LIST_DIR}/service/postinst)
|
|
|
|
# TODO configure to fill sysconfdir in postinst
|
|
# TODO add postrm that will disable PAM
|
|
|
|
install(
|
|
FILES
|
|
${CMAKE_CURRENT_LIST_DIR}/rsc/rublon.config.defaults
|
|
${CMAKE_CURRENT_LIST_DIR}/service/01-rublon-ssh.conf.default
|
|
DESTINATION
|
|
share/rublon
|
|
COMPONENT
|
|
PAM
|
|
PERMISSIONS
|
|
OWNER_READ
|
|
OWNER_WRITE
|
|
GROUP_READ
|
|
)
|
|
|
|
if (${ENABLE_TESTS})
|
|
enable_testing()
|
|
endif()
|
|
|
|
add_subdirectory(PAM/ssh)
|
|
include(pack.cmake)
|