Change log directory to /var/log/appfw/app-installers 00/213300/2
authorSangyoon Jang <jeremy.jang@samsung.com>
Wed, 4 Sep 2019 05:30:14 +0000 (14:30 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Wed, 4 Sep 2019 05:46:30 +0000 (14:46 +0900)
Change-Id: I5bf3246c12f78d0741b12350b9476901711a74a6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
packaging/app-installers.spec
src/common/CMakeLists.txt
src/common/app_installer.cc

index 6d1ccad..663dc3c 100644 (file)
@@ -48,7 +48,7 @@ Requires(post): /usr/bin/chsmack
 %define unpackdir /opt/usr/share/package-unpacked
 %define rwsignaturedir /opt/share/signatures
 %define rosignaturedir /usr/share/signatures
-%define logdir /var/log/app-installers
+%define logdir /var/log/appfw/app-installers
 
 %description
 This is a meta package that installs the common application
@@ -82,7 +82,8 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
          -DUNITDIR=%{_unitdir} \
          -DUNITDIR_USER=%{_unitdir_user} \
          -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
-         -DUNPACKDIR=%{unpackdir}
+         -DUNPACKDIR=%{unpackdir} \
+         -DLOGDIR=%{logdir}
 
 make %{?_smp_mflags}
 
index d37a183..d2c10ba 100644 (file)
@@ -76,6 +76,7 @@ ELSE(NOT DEFINED TIZEN_FULL_VERSION)
   ADD_DEFINITIONS("-DTIZEN_FULL_VERSION=\"${TIZEN_FULL_VERSION}\"")
 ENDIF(NOT DEFINED TIZEN_FULL_VERSION)
 ADD_DEFINITIONS("-DUNPACKDIR=\"${UNPACKDIR}\"")
+ADD_DEFINITIONS("-DLOGDIR=\"${LOGDIR}\"")
 CONFIGURE_FILE(${PLUGINS_LIST_FILE_PATH}.in ${PLUGINS_LIST_FILE_PATH} @ONLY)
 INSTALL(FILES ${PLUGINS_LIST_FILE_PATH} DESTINATION ${PLUGINS_LIST_INSTALL_PATH}/)
 
index 90bab92..744a38e 100644 (file)
@@ -19,9 +19,8 @@
 namespace {
 
 const unsigned kProgressRange = 100;
-const char kLogFileName[] = "/var/log/app-installers/app-installers.log";
-const char kHistoryFileName[] =
-    "/var/log/app-installers/installation-history.log";
+const char kLogFileName[] = LOGDIR"/app-installers.log";
+const char kHistoryFileName[] = LOGDIR"/installation-history.log";
 const int kLogRotationSize = 1024 * 256;  // 256KB
 const int kLogMaximumRotation = 3;