Commit 4b0d1be6 authored by Harald Klein's avatar Harald Klein

Merge branch 'qpid-removal' into 'develop'

Qpid removal

See merge request !37
parents 937c7d38 8f5b942f
Pipeline #384 passed with stage
in 2 minutes and 35 seconds
*.so
*.so.*
*.a
*.pyc
*.o
CMakeFiles
cmake_install.cmake
CMakeCache.txt
build/
Makefile
*.core
*build*/
scripts/agososreport.sh
shared/agoclient/_directories.py
version.h
CTestTestfile.cmake
Testing/
# Eclipse/PTP related files
.project
......@@ -24,22 +12,7 @@ Testing/
# Apple FileSystem
.DS_Store
core/.DS_Store
core/rpc/.DS_Store
core/rpc/html/.DS_Store
core/rpc/html/configuration/devices/.DS_Store
unittest/.DS_Store
shared/.DS_Store
core/rpc/html/templates/.DS_Store
core/rpc/html/protocols/knx/.DS_Store
core/rpc/html/protocols/ipx800/.DS_Store
core/rpc/html/js/.DS_Store
core/rpc/html/dashboard/.DS_Store
core/rpc/html/dashboard/all/.DS_Store
core/rpc/html/configuration/.DS_Store
core/rpc/html/protocols/.DS_Store
debian/.DS_Store
core/rpc/html/js/libs/.DS_Store
devices/.DS_Store
*.save
.idea/
This diff is collapsed.
#ifndef AGOCONTROL_BUILD_CONFIG_H
#define AGOCONTROL_VERSION @AGOCONTROL_VERSION@
#cmakedefine HAVE_I2C_SMBUS_VIA_I2C_TOOLS @HAVE_I2C_SMBUS_VIA_I2C_TOOLS@
#cmakedefine HAVE_I2C_SMBUS_VIA_LINUX_I2C_DEV @HAVE_I2C_SMBUS_VIA_LINUX_I2C_DEV@
#cmakedefine HAVE_I2C_SMBUS_VIA_LIBI2C @HAVE_I2C_SMBUS_VIA_LIBI2C@
#cmakedefine HAVE_XLOCALE_H @HAVE_XLOCALE_H@
#endif
\ No newline at end of file
# Helper function to copy non-compiled files from source directory to binary directory
# as-is, without having to re-run cmake every time to copy (as is requried by configure_file(...COPYONLY))
# This is mostly useful for developer when running from binary dir without "make install" step.
#
# Usage:
#
# CopyFilesFromSource(someTarget "FILE1 FILE2 FILE3...")
#
# someTarget is a unique cmake target name to create
# This will be added as a default target ("ALL") for the current directory
# The FILE... argument should be a list of filenames, relative to current source directory,
# which are to be copied to the build dir, keeping the same relative directory structure.
function(CopyFilesFromSource TARGET SOURCE_FILES)
if (NOT IN_SOURCE_BUILD)
add_custom_target(${TARGET} ALL SOURCES ${SOURCE_FILES})
foreach (infile ${SOURCE_FILES})
string(REPLACE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} outfile ${infile})
#message("-- staging for copy: ${CMAKE_CURRENT_SOURCE_DIR}/${infile} -> ${CMAKE_CURRENT_BINARY_DIR}/${outfile}")
add_custom_command(
TARGET ${TARGET}
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${infile} ${outfile}
VERBATIM
)
endforeach()
endif()
endfunction()
# Helper to create "install" jobs for multiple files in the binary directory
function(InstallFiles DESTINATION SOURCE_FILES)
foreach (infile ${SOURCE_FILES})
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${infile} DESTINATION ${DESTINATION})
endforeach()
endfunction()
# Helper to define and install a Python program.
# With defaults, this will install the ago${PROGRAM_BASE_NAME}.py file into
# /opt/agocontrol/python/ago${PROGRAM_BASE_NAME}/
# and also create a symlink at /opt/agocontrol/bin/${PROGRAM_BASE_NAME} pointing to the main .py file
# Any extra files will be copied to the same "private" directory, to avoid poluting the main bin dir
# and to avoid conflicts.
#
# Usage:
# AgoPythonProgram(myapp DESCRIPTION "ago control blaha handler" [WITH_CONFIGDIR ] [EXTRA_FILES "..."])
#
# Will setup targets to copy agomyapp.py and any extra files to the CMAKE_CURRENT_BINARY_DIR,
# and setup install to then copy these files to the appropriate installation dir.
# Also prepares a conf/systemd/agomyapp.service file and installs it, unless a .in with same name
# exists in the source dir.
#
# If WITH_CONFIGDIR is set, it will enable installation of directory /etc/opt/agocontrol/myapp.
# If EXTRA_FILES is specified, these will be copied to the "private" dir next to the .py file.
# If RUN_AS is specified, systemd will have that User instead of default user.
#
# Note that PROGRAM_BASE_NAME should not have ago prefix, nor .py suffix.
# The directory containing this directive must have a file named ago<name>.py.
#
function(AgoPythonProgram PROGRAM_BASE_NAME)
set(options WITH_CONFIGDIR)
set(oneValueArgs DESCRIPTION RUN_AS)
set(multiValueArgs EXTRA_FILES)
cmake_parse_arguments(PYPROG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
set(PROGRAM_NAME "ago${PROGRAM_BASE_NAME}")
set(APP_DIR "${BASEDIR}/python/${PROGRAM_NAME}")
CopyFilesFromSource("${PROGRAM_NAME}" "${PROGRAM_NAME}.py;${PYPROG_EXTRA_FILES}")
install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${PROGRAM_NAME}.py DESTINATION ${APP_DIR})
if(PYPROG_WITH_CONFIGDIR)
install(DIRECTORY DESTINATION ${CONFDIR}/${PROGRAM_BASE_NAME})
endif()
AgoService(${PROGRAM_BASE_NAME} DESCRIPTION "${PYPROG_DESCRIPTION}" RUN_AS "${PYPROG_RUN_AS}")
install(CODE "
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ../python/${PROGRAM_NAME}/${PROGRAM_NAME}.py \$ENV{DESTDIR}${BINDIR}/${PROGRAM_NAME})
message(\"-- Installing symlink: \$ENV{DESTDIR}${BINDIR}/${PROGRAM_NAME} -> ../python/${PROGRAM_NAME}/${PROGRAM_NAME}.py\")
")
foreach (infile ${PYPROG_EXTRA_FILES})
get_filename_component(OUTDIR "${APP_DIR}/${infile}" DIRECTORY)
install (FILES "${CMAKE_CURRENT_BINARY_DIR}/${infile}" DESTINATION "${OUTDIR}")
endforeach()
endfunction()
function(AgoService PROGRAM_BASE_NAME)
set(options )
set(oneValueArgs DESCRIPTION RUN_AS)
set(multiValueArgs )
cmake_parse_arguments(PROG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
set(PROGRAM_NAME "ago${PROGRAM_BASE_NAME}")
if(NOT EXISTS "${PROJECT_SOURCE_DIR}/conf/systemd/${PROGRAM_NAME}.service.in")
if(NOT PROG_RUN_AS)
set(PROG_RUN_AS "agocontrol")
endif()
#message("Creating service file for ${PROGRAM_NAME} ${PROG_DESCRIPTION} AND ${PROG_RUN_AS}")
configure_file("${PROJECT_SOURCE_DIR}/conf/systemd/template.service.in" ${PROJECT_BINARY_DIR}/conf/systemd/${PROGRAM_NAME}.service)
install (FILES "${PROJECT_BINARY_DIR}/conf/systemd/${PROGRAM_NAME}.service" DESTINATION "/lib/systemd/system/")
endif()
endfunction()
\ No newline at end of file
IF (DEFINED my_device_service)
string(REGEX REPLACE "\.in$" "" ${my_device_service_out} ${my_device_service})
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/${my_device_service}"
"${CMAKE_CURRENT_BINARY_DIR}/${my_device_service_out}"
@ONLY
)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${my_device_service_out} DESTINATION /lib/systemd/system)
set(my_device_service)
set(my_device_service_out)
ENDIF (DEFINED my_device_service)
IF (DEFINED my_device_config)
string(REGEX REPLACE "\.in$" "" ${my_device_config_out} ${my_device_config})
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/${my_device_config}"
"${CMAKE_CURRENT_BINARY_DIR}/${my_device_config_out}"
@ONLY
)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${my_device_config_out} DESTINATION ${CONFDIR}/conf.d)
set(my_device_config)
set(my_device_config_out)
ENDIF (DEFINED my_device_config)
IF (DEFINED my_device_schema)
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/${my_device_schema} DESTINATION ${CONFDIR}/schema.d)
set(my_device_schema)
ENDIF (DEFINED my_device_schema)
......@@ -15,12 +15,12 @@ FIND_LIBRARY(CPPDB_LIBRARIES cppdb
/usr/local/lib
/usr/lib)
IF(CPPDB_INCLUDE_DIRS)
if(CPPDB_INCLUDE_DIRS)
IF(CPPDB_LIBRARIES)
SET(CPPDB_FOUND "YES")
SET(CPPDB_LIBRARIES ${CPPDB_LIBRARIES} ${CMAKE_DL_LIBS})
ENDIF(CPPDB_LIBRARIES)
ENDIF(CPPDB_INCLUDE_DIRS)
endif()
endif()
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPPDB DEFAULT_MSG CPPDB_LIBRARIES CPPDB_INCLUDE_DIRS)
......
......@@ -17,12 +17,12 @@ FIND_LIBRARY(CPPUNIT_LIBRARIES cppunit
/usr/local/lib
/usr/lib)
IF(CPPUNIT_INCLUDE_DIRS)
if(CPPUNIT_INCLUDE_DIRS)
IF(CPPUNIT_LIBRARIES)
SET(CPPUNIT_FOUND "YES")
SET(CPPUNIT_LIBRARIES ${CPPUNIT_LIBRARIES} ${CMAKE_DL_LIBS})
ENDIF(CPPUNIT_LIBRARIES)
ENDIF(CPPUNIT_INCLUDE_DIRS)
endif()
endif()
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CPPUNIT DEFAULT_MSG CPPUNIT_LIBRARIES CPPUNIT_INCLUDE_DIRS)
......@@ -16,12 +16,12 @@ FIND_LIBRARY(EibClient_LIBRARIES eibclient
/usr/local/lib64
/usr/lib)
IF(EibClient_INCLUDE_DIRS)
if(EibClient_INCLUDE_DIRS)
IF(EibClient_LIBRARIES)
SET(EibClient_FOUND "YES")
SET(EibClient_LIBRARIES ${EibClient_LIBRARIES} ${CMAKE_DL_LIBS})
ENDIF(EibClient_LIBRARIES)
ENDIF(EibClient_INCLUDE_DIRS)
endif()
endif()
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(EibClient DEFAULT_MSG EibClient_LIBRARIES EibClient_INCLUDE_DIRS)
......
# Different linux distributions places i2c-dev.h at different locations, with different contents.
# For example on debian i2c_smbus_write_i2c_block_data is provided by linux/i2c-dev.h, but Fedora 27 uses i2c-tools/i2c-dev.h
# even if it has linux/i2c-dev.h.
# This tries to figure out which file to include.
include (CheckSymbolExists)
check_symbol_exists(i2c_smbus_write_i2c_block_data i2c-tools/i2c-dev.h HAVE_I2C_SMBUS_VIA_I2C_TOOLS)
check_symbol_exists(i2c_smbus_write_i2c_block_data linux/i2c-dev.h HAVE_I2C_SMBUS_VIA_LINUX_I2C_DEV)
# Fedora 28 uses libi2c
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/BRUCA5P4WXL4MZLQ4Q6TP7IBDFR7WFWA/?sort=date
set(CMAKE_REQUIRED_LIBRARIES i2c)
check_symbol_exists(i2c_smbus_write_i2c_block_data i2c/smbus.h HAVE_I2C_SMBUS_VIA_LIBI2C)
set(CMAKE_REQUIRED_LIBRARIES)
if(HAVE_I2C_SMBUS_VIA_I2C_TOOLS)
message(STATUS "i2c_smbus_write_i2c_block_data available through i2c-tools/i2c-dev.h")
set(HAVE_I2C_SMBUS 1)
elseif(HAVE_I2C_SMBUS_VIA_LINUX_I2C_DEV)
message(STATUS "i2c_smbus_write_i2c_block_data available through linux/i2c-dev.h")
set(HAVE_I2C_SMBUS 1)
elseif(HAVE_I2C_SMBUS_VIA_LIBI2C)
message(STATUS "i2c_smbus_write_i2c_block_data available through i2c/smbus.h")
set(HAVE_I2C_SMBUS 1)
set(I2C_LIBRARIES i2c)
else()
message(STATUS "i2c_smbus_write_i2c_block_data not available, consider installing package providing i2c-tools/libi2c-devel")
set(HAVE_I2C_SMBUS 0)
endif()
# Find the OpenLightning includes and library
#
# This module defines
# OpenLighting_INCLUDE_DIRS, where to find OpenLighting.h
# OpenLighting_LIBRARIES, the libraries to link against to use it
# OpenLighting_FOUND, If false, do not try to use it
FIND_PATH(OpenLighting_INCLUDE_DIRS ola/DmxBuffer.h
/usr/local/include
/usr/include
)
FIND_LIBRARY(OpenLighting_LIBRARIES
NAMES olaslpclient
HINTS ${OpenLighting_INCLUDE_DIRS}/../lib
/usr/local/lib
/usr/lib)
IF(OpenLighting_INCLUDE_DIRS)
IF(OpenLighting_LIBRARIES)
SET(OpenLighting_FOUND "YES")
SET(OpenLighting_LIBRARIES ${OpenLighting_LIBRARIES} ${CMAKE_DL_LIBS})
ENDIF(OpenLighting_LIBRARIES)
ENDIF(OpenLighting_INCLUDE_DIRS)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenLighting DEFAULT_MSG OpenLighting_LIBRARIES OpenLighting_INCLUDE_DIRS)
......@@ -16,28 +16,28 @@ FIND_LIBRARY(OpenZWave_LIBRARIES openzwave
/usr/local/lib64
/usr/lib)
IF(OpenZWave_INCLUDE_BASE_DIR)
if(OpenZWave_INCLUDE_BASE_DIR)
IF(OpenZWave_LIBRARIES)
set(OpenZWave_FOUND "YES")
set(OpenZWave_LIBRARIES ${OpenZWave_LIBRARIES})
set(OpenZWave_INCLUDE_DIRS ${OpenZWave_INCLUDE_BASE_DIR}/openzwave)
set(OpenZWave_INCLUDE_DIRS ${OpenZWave_INCLUDE_BASE_DIR} ${OpenZWave_INCLUDE_BASE_DIR}/openzwave)
# Determine which version of OpenZWave we have
set(CMAKE_REQUIRED_INCLUDES "${OpenZWave_INCLUDE_DIRS}")
set(CMAKE_REQUIRED_LIBRARIES "${OpenZWave_LIBRARIES}")
IF(NOT DEFINED "OpenZWave_VERSION")
# This mimics CHECK_CXX_SOURCE_RUNS, but need to do manually to use RUN_OUTPUT_VARIABLE
# Determine which version of OpenZWave we have
set(CMAKE_REQUIRED_INCLUDES "${OpenZWave_INCLUDE_DIRS}")
set(CMAKE_REQUIRED_LIBRARIES "${OpenZWave_LIBRARIES}")
set(SOURCE "#include <iostream>
#include <stdint.h>
extern uint16_t ozw_vers_major;
extern uint16_t ozw_vers_minor;
extern uint16_t ozw_vers_revision;
int main(void){
std::cout << ozw_vers_major << ';' << ozw_vers_minor << ';' << ozw_vers_revision;
return 0;
}")
set(SOURCE "#include <iostream>
#include <stdint.h>
extern uint16_t ozw_vers_major;
extern uint16_t ozw_vers_minor;
extern uint16_t ozw_vers_revision;
int main(void){
std::cout << ozw_vers_major << ';' << ozw_vers_minor << ';' << ozw_vers_revision;
return 0;
}")
# This mimics CHECK_CXX_SOURCE_RUNS, but need to do manually to use RUN_OUTPUT_VARIABLE
IF(NOT DEFINED "OpenZWave_VERSION")
set(MACRO_CHECK_FUNCTION_DEFINITIONS "-DOpenZWave_VERSION ${CMAKE_REQUIRED_FLAGS}")
set(CHECK_CXX_SOURCE_COMPILES_ADD_LIBRARIES
LINK_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
......@@ -46,6 +46,14 @@ int main(void){
file(WRITE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cxx"
"${SOURCE}\n")
if(OS_DARWIN)
# On Darwin it tries to search system paths for library, even if given explicit path
# On FreeBSD (and probably linux?) it uses the rpath flag to link to specific library instead.
set(RESTORE_LIBRARY_PATH "$ENV{DYLD_LIBRARY_PATH}")
get_filename_component(OpenZWave_LIBRARY_PATH "${OpenZWave_LIBRARIES}" DIRECTORY)
set(ENV{DYLD_LIBRARY_PATH} "${OpenZWave_LIBRARY_PATH}:$ENV{DYLD_LIBRARY_PATH}")
endif()
try_run(OpenZWave_VERSION_EXITCODE OpenZWave_VERSION_COMPILED
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.cxx
......@@ -54,19 +62,30 @@ int main(void){
CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
-DCMAKE_SKIP_RPATH:BOOL=${CMAKE_SKIP_RPATH}
"${CHECK_CXX_SOURCE_COMPILES_ADD_INCLUDES}"
COMPILE_OUTPUT_VARIABLE OUTPUT
COMPILE_OUTPUT_VARIABLE BUILD_OUTPUT
RUN_OUTPUT_VARIABLE OpenZWave_VERSION)
if(NOT OpenZWave_VERSION_COMPILED)
if(OS_DARWIN)
set(ENV{DYLD_LIBRARY_PATH} "${RESTORE_DYLD_LIBRARY_PATH}")
endif()
if(NOT OpenZWave_VERSION_COMPILED OR OpenZWave_VERSION_EXITCODE)
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
"Performing C++ SOURCE FILE Test OpenZWave_VERSION failed with the following output:\n"
"${OUTPUT}\n"
"Performing OpenZWave_VERSION test failed.\n"
"Compile result: ${OpenZWave_VERSION_COMPILED}\n"
"Return value: ${OpenZWave_VERSION_EXITCODE}\n"
"Compile output:\n"
"${BUILD_OUTPUT}\n"
"Run output:\n"
"${OpenZWave_VERSION}\n"
"Source file was:\n${SOURCE}\n")
message(FATAL_ERROR "OpenZWave found but failed to determine version, build error."
message(FATAL_ERROR "OpenZWave found but failed to determine version.\n"
"See CMakeError.log for more details.")
endif()
set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES)
set( OpenZWave_VERSION_LIST ${OpenZWave_VERSION} )
separate_arguments(OpenZWave_VERSION_LIST)
list(GET OpenZWave_VERSION_LIST 0 OpenZWave_VERSION_MAJOR)
......@@ -77,11 +96,11 @@ int main(void){
set(OpenZWave_VERSION_MAJOR "${OpenZWave_VERSION_MAJOR}" CACHE INTERNAL "OpenZWave major version")
set(OpenZWave_VERSION_MINOR "${OpenZWave_VERSION_MINOR}" CACHE INTERNAL "OpenZWave minor version")
set(OpenZWave_VERSION_REVISION "${OpenZWave_VERSION_REVISION}" CACHE INTERNAL "OpenZWave GIT revision")
ENDIF()
endif()
message(STATUS "Found OpenZWave version: ${OpenZWave_VERSION}")
ENDIF(OpenZWave_LIBRARIES)
ENDIF(OpenZWave_INCLUDE_BASE_DIR)
endif()
endif()
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OPENZWAVE DEFAULT_MSG OpenZWave_LIBRARIES OpenZWave_INCLUDE_DIRS)
# On modern CMake versions we have https://cmake.org/cmake/help/latest/module/FindPython2.html etc
# but on cmake 3.0 we don't.
# This is losely based on https://github.com/caffe2/caffe2/issues/1676
function(pycmd python_exe outvar cmd)
# run the actual command
execute_process(
COMMAND "${python_exe}" -c "${cmd}"
RESULT_VARIABLE _exitcode
OUTPUT_VARIABLE _output)
if(NOT ${_exitcode} EQUAL 0)
message(ERROR " Failed when running ${python_exe} code: \"\"\"\n${cmd}\n\"\"\"")
message(FATAL_ERROR " Python command failed with error code: ${_exitcode}")
endif()
# Remove supurflous newlines (artifacts of print)
string(STRIP "${_output}" _output)
set(${outvar} "${_output}" PARENT_SCOPE)
endfunction()
find_program(PYTHON2_EXECUTABLE NAMES python2 python2.7 python2.6)
find_program(PYTHON3_EXECUTABLE NAMES python3)
if(PYTHON2_EXECUTABLE)
pycmd(${PYTHON2_EXECUTABLE} Python2_SITELIB "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(prefix='')")
message(STATUS "Python2_SITELIB = ${Python2_SITELIB}")
else()
message(ERROR "python2 executable not found. this is required for proper agocontrol operation")
endif()
if(PYTHON3_EXECUTABLE)
pycmd(${PYTHON3_EXECUTABLE} Python3_SITELIB "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(prefix=''))")
message(STATUS "Python3_SITELIB = ${Python3_SITELIB}")
else()
message(STATUS "python3 executable not found")
endif()
agoowfs.init
agoresolver.init
conf.d/rpc.conf
conf.d/eta.conf
sysvinit/agocontrol
agomeloware.init
agozwave.init
systemd/agoeta.service
systemd/agozmcam.service
systemd/agomeloware.service
systemd/agoevent.service
systemd/agodmx.service
systemd/agoscenario.service
systemd/agoasterisk.service
systemd/agodatalogger.service
systemd/agoapc.service
systemd/agoiscp.service
systemd/agojointspace.service
systemd/agomysensors.service
systemd/agogc100.service
systemd/agoi2c.service
systemd/agozwave.service
systemd/agoblinkm.service
systemd/raspi1wGPIO.service
systemd/agoping.service
systemd/agoradiothermostat.service
systemd/agowebcam.service
systemd/agosecurity.service
systemd/agokwikwai.service
systemd/agoknx.service
systemd/agoowfs.service
systemd/agoenigma2.service
systemd/raspiMCP3xxxGPIO.service
systemd/agolua.service
systemd/raspiGPIO.service
systemd/agosimulator.service
systemd/agotimer.service
systemd/agorain8net.service
systemd/agoirtransethernet.service
systemd/agofirmata.service
systemd/agoresolver.service
systemd/agorpc.service
systemd/agosqueezeboxserver.service
systemd/agomopidy.service
systemd/agox10.service
......@@ -16,12 +16,14 @@ foreach (infile ${INIT_FILES})
endforeach (infile)
add_subdirectory (systemd)
add_subdirectory (conf.d)
add_subdirectory (schema.d)
add_subdirectory (sysvinit)
install (FILES security-limits.conf DESTINATION ${ETCDIR}/security/limits.d RENAME agocontrol.conf)
install (FILES sysctl.conf DESTINATION ${ETCDIR}/sysctl.d RENAME agocontrol.conf)
if(OS_LINUX)
install (FILES security-limits.conf DESTINATION ${ETCDIR}/security/limits.d RENAME agocontrol.conf)
install (FILES sysctl.conf DESTINATION ${ETCDIR}/sysctl.d RENAME agocontrol.conf)
endif()
install (FILES rpc_cert.pem DESTINATION ${CONFDIR}/rpc)
install (FILES agocontrol.aug DESTINATION ${AUGEASLENSEDIR})
......@@ -11,4 +11,4 @@ stop on runlevel [!2345]
respawn
chdir @BINDIR@
exec @BINDIR@/agoalert.py
exec @BINDIR@/agoalert
......@@ -10,4 +10,4 @@ start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec @BINDIR@/agomeloware.py
exec @BINDIR@/agomeloware
......@@ -10,4 +10,4 @@ start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec @BINDIR@/agoowfs.py
exec @BINDIR@/agoowfs
......@@ -10,4 +10,4 @@ start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec @BINDIR@/agoresolver.py
exec @BINDIR@/agoresolver
......@@ -11,4 +11,4 @@ stop on runlevel [!2345]
respawn
chdir @BINDIR@
exec @BINDIR@/agorrdtool.py
exec @BINDIR@/agorrdtool
......@@ -3,6 +3,9 @@ ports=8008,8009s
htdocs=@HTMLDIR@
certificate=@CONFDIR@/rpc/rpc_cert.pem
numthreads=50
python_extra_paths=@PYTHON2DIST@/agoclient
# If agoclient is not installed in python's default include path, you can add extra
# include paths to be added to PYTHONPATH. Used by ui.cgi
# python_extra_paths=
......@@ -11,4 +11,4 @@ stop on runlevel [!2345]
respawn
chdir @BINDIR@
exec @BINDIR@/agoipx800.py
exec @BINDIR@/agoipx800
......@@ -11,4 +11,4 @@ stop on runlevel [!2345]
respawn
chdir @BINDIR@
exec @BINDIR@/agomopidy.py
exec @BINDIR@/agomopidy
......@@ -11,4 +11,4 @@ stop on runlevel [!2345]
respawn
chdir @BINDIR@
exec @BINDIR@/agosqueezebox.py
exec @BINDIR@/agosqueezebox
cmake_minimum_required (VERSION 3.0)
file (GLOB SYSTEMD_FILES *.in)
foreach (infile ${SYSTEMD_FILES})
string(REGEX REPLACE ".in$" "" outfile ${infile})
string(REGEX REPLACE ".*/" "" outfile ${outfile})
configure_file(
"${infile}"
"${CMAKE_CURRENT_BINARY_DIR}/${outfile}"
@ONLY
)
LIST(APPEND SYSTEMD_FILES_DONE ${CMAKE_CURRENT_BINARY_DIR}/${outfile})
endforeach (infile)
file (GLOB SYSTEMD_FILES *.service)