diff options
author | Jacques GUILLOU <jacques.guillou@pelagicore.com> | 2014-11-19 12:48:18 +0100 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2015-04-02 13:44:03 +0200 |
commit | cb4950d12a96cc51557e185fc555edd4b4a0ca62 (patch) | |
tree | c039ee2fa6253598e316754cca126bc3ece9e8ff /src/daemon | |
parent | 2cec5d20ae0b5361a84bfb8170335f2502ddd88f (diff) | |
download | DLT-daemon-cb4950d12a96cc51557e185fc555edd4b4a0ca62.tar.gz |
Remove absolute installation paths so that DLT can be installed at any location (not only "/usr").
Signed-off-by: Jacques GUILLOU <jacques.guillou@pelagicore.com>
Diffstat (limited to 'src/daemon')
-rwxr-xr-x | src/daemon/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/daemon/dlt-daemon.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/daemon/CMakeLists.txt b/src/daemon/CMakeLists.txt index 8ab6711..42d2081 100755 --- a/src/daemon/CMakeLists.txt +++ b/src/daemon/CMakeLists.txt @@ -30,4 +30,6 @@ install(TARGETS dlt-daemon WORLD_EXECUTE WORLD_READ COMPONENT base) -INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dlt.conf DESTINATION /etc COMPONENT base) +INSTALL(FILES dlt.conf + DESTINATION ${CONFIGURATION_FILES_DIR} + COMPONENT base) diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c index 6c44da5..b8b8ae9 100644 --- a/src/daemon/dlt-daemon.c +++ b/src/daemon/dlt-daemon.c @@ -91,7 +91,7 @@ void usage() printf("Options:\n"); printf(" -d Daemonize\n"); printf(" -h Usage\n"); - printf(" -c filename DLT daemon configuration file (Default: /etc/dlt.conf)\n"); + printf(" -c filename DLT daemon configuration file (Default: " CONFIGURATION_FILES_DIR "/dlt.conf)\n"); } /* usage() */ /** @@ -196,7 +196,7 @@ int option_file_parser(DltDaemonLocal *daemon_local) if(daemon_local->flags.cvalue[0]) filename = daemon_local->flags.cvalue; else - filename = "/etc/dlt.conf"; + filename = CONFIGURATION_FILES_DIR "/dlt.conf"; //printf("Load configuration from file: %s\n",filename); pFile = fopen (filename,"r"); |