Change path of configuration file 56/259156/1
authorYoungHun Kim <yh8004.kim@samsung.com>
Tue, 1 Jun 2021 22:51:17 +0000 (07:51 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Tue, 1 Jun 2021 22:51:20 +0000 (07:51 +0900)
Change-Id: I9921664041c477d48cf3c44f634392431928cf75

packaging/murphy.spec
src/plugins/plugin-lua.c

index 621b1980fea24caaa568654aac329c04842c266e..32296d0a62285513fcdeba72340df231a1e2adc2 100644 (file)
@@ -29,7 +29,7 @@
 Summary: Resource policy framework
 Name: murphy
 Version: 0.0.75
-Release: 20
+Release: 21
 License: BSD-3-Clause
 Group: System/Service
 URL: http://01.org/murphy/
@@ -186,6 +186,9 @@ This package contains various test binaries for Murphy.
 cp %{SOURCE1001} .
 
 %build
+export CFLAGS="$CFLAGS -DSYSCONFDIR=\\\"%{_hal_sysconfdir}\\\""
+export CXXFLAGS="$CXXFLAGS -DSYSCONFDIR=\\\"%{_hal_sysconfdir}\\\""
+
 %if "%{asan}" == "1"
 %restore_fcommon
 export CFLAGS="-DTIZEN_DISABLE_MEMORY_CHECK"
index 9674498a09cad6a3fe543bc3372c3f942c9d4892..8d4072ac147af7fb1862a467317e6e447cc85717 100644 (file)
@@ -191,7 +191,7 @@ static void plugin_exit(mrp_plugin_t *plugin)
 #define PLUGIN_AUTHORS     "Krisztian Litkey <kli@iki.fi>"
 #define PLUGIN_VERSION     MRP_VERSION_INT(0, 0, 1)
 
-#define DEFAULT_CONFIG  "/etc/murphy/murphy.lua"
+#define DEFAULT_CONFIG  SYSCONFDIR"/murphy/murphy.lua"
 
 static mrp_plugin_arg_t plugin_args[] = {
     MRP_PLUGIN_ARGIDX(ARG_CONFIG  , STRING,  "config",  DEFAULT_CONFIG),