Permalink
Browse files

Modified to use WEBOS_INSTALL_STATEDIR to save its stamp files

Change-Id: Ifb72345b3621434212058bf183df862cffe0fa29
  • Loading branch information...
sarumugam committed Sep 7, 2012
1 parent a5a4cc0 commit 394e1f84823b66a1cfb6adfbc4f3c2bcf917a138
Showing with 7 additions and 6 deletions.
  1. +1 −0 CMakeLists.txt
  2. +0 −6 src/Configurator.cpp
  3. +6 −0 src/{Configurator.h → Configurator.h.in}
View
@@ -82,5 +82,6 @@ target_link_libraries(configurator
${CJSON_LDFLAGS}
)
+webos_configure_header_files(src)
webos_build_program()
webos_build_system_bus_files()
View
@@ -28,12 +28,6 @@
using namespace std;
-static const MojModeT kCacheDirPerms = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
-static const MojModeT kCacheStampPerm = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
-
-static const char* kCacheDir = "/var/cache/";
-static const char* kConfCacheDir = "/var/cache/configurator/";
-
static std::string Replace(std::string input, const std::string& substr, const std::string& replacement)
{
size_t i;
@@ -28,6 +28,12 @@
class ConfiguratorCallback;
+static const MojModeT kCacheDirPerms = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
+static const MojModeT kCacheStampPerm = S_IRWXU | S_IRGRP | S_IROTH;
+
+static const char* kCacheDir = "@WEBOS_INSTALL_LOCALSTATEDIR@/cache/";
+static const char* kConfCacheDir = "@WEBOS_INSTALL_LOCALSTATEDIR@/cache/configurator/";
+
class Configurator : public MojSignalHandler
{
public:

0 comments on commit 394e1f8

Please sign in to comment.