Secure collaboration server using 0MQ and Curve.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
1.2 KiB

# Configure paths
# Copyright (C) 2019-2021 David Sugar <tychosoft@gmail.com>.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
set(SERVER_ID "calypso")
if(SYSTEMD_FOUND)
set(CMAKE_INSTALL_FULL_LOCALSTATEDIR "/var")
set(CMAKE_INSTALL_FULL_SYSCONFDIR "/etc")
endif()
if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(SERVER_CONFIG_FILE "${CMAKE_CURRENT_SOURCE_DIR}/test/${SERVER_ID}.conf")
set(SERVER_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test")
set(SERVER_LIBEXEC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/test")
set(SERVER_CONTROL_IPC "/tmp/.${SERVER_ID}-$ENV{USER}.ipc")
else()
set(SERVER_CONFIG_FILE "${CMAKE_INSTALL_FULL_SYSCONFDIR}/${SERVER_ID}.conf")
set(SERVER_PREFIX_PATH "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/${SERVER_ID}")
set(SERVER_LIBEXEC_PATH "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${SERVER_ID}")
set(SERVER_CONTROL_IPC "/tmp/.${SERVER_ID}.ipc")
endif()