Add SupplementaryGroups for storage permission 34/70834/3 accepted/tizen/common/20160523.144225 accepted/tizen/ivi/20160524.004820 accepted/tizen/mobile/20160524.004802 accepted/tizen/tv/20160524.004751 accepted/tizen/wearable/20160524.004744 submit/tizen/20160523.115525
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 23 May 2016 02:39:53 +0000 (11:39 +0900)
committerMinje ahn <minje.ahn@samsung.com>
Mon, 23 May 2016 02:57:49 +0000 (19:57 -0700)
Change-Id: I87514f200780fbf36b9007bd2d9d0ab6a9f17071
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Makefile.am
configure.ac
packaging/media-server.service

index cd69d84..463a742 100755 (executable)
@@ -22,7 +22,9 @@ COMMON_CFLAGS = -I${srcdir}/lib/include \
                $(SECURITY_CFLAGS) \
                $(SMACK_CFLAGS)
 
+if USE_NOTIFICATION
 COMMON_CFLAGS += $(STATUS_CFLAGS)
+endif
 
 COMMON_LDADD = libmedia-utils.la \
                $(GLIB_LIBS) \
@@ -35,7 +37,9 @@ COMMON_LDADD =        libmedia-utils.la \
                $(SMACK_LIBS) \
                -ldl
 
+if USE_NOTIFICATION
 COMMON_LDADD += $(STATUS_LIBS)
+endif
 
 ######################################################
 #pkgconfig
index 46b55e5..076ed3d 100755 (executable)
@@ -123,10 +123,22 @@ PKG_CHECK_MODULES(CYNARA_SESSION, cynara-session)
 AC_SUBST(CYNARA_SESSION_CFLAGS)
 AC_SUBST(CYNARA_SESSION_LIBS)
 
-#ticker noti library
-PKG_CHECK_MODULES(STATUS, notification)
-AC_SUBST(STATUS_CFLAGS)
-AC_SUBST(STATUS_LIBS)
+dnl use notification --------------------------------------------------------------------------
+AC_ARG_ENABLE(notification, AC_HELP_STRING([--enable-notification], [using notification]),
+[
+   case "${enableval}" in
+       yes) USE_NOTIFICATION=yes ;;
+        no) USE_NOTIFICATION=no ;;
+         *) AC_MSG_ERROR(bad value ${enableval} for --enable-notification) ;;
+   esac
+],[USE_NOTIFICATION=yes])
+if test "x$USE_NOTIFICATION" = "xyes"; then
+       #ticker noti library
+       PKG_CHECK_MODULES(STATUS, notification)
+       AC_SUBST(STATUS_CFLAGS)
+       AC_SUBST(STATUS_LIBS)
+fi
+AM_CONDITIONAL(USE_NOTIFICATION, test "x$USE_NOTIFICATION" = "xyes")
 
 #Checks for header files.
 AC_HEADER_DIRENT
index 6e4863a..b11ac81 100644 (file)
@@ -4,6 +4,7 @@ Description=Media server
 [Service]
 User=multimedia_fw
 Group=multimedia_fw
+SupplementaryGroups=priv_mediastorage priv_externalstorage
 Type=simple
 ExecStart=/usr/bin/media-server
 Restart=always