Update: Not install gumd.service file with TV profile. 96/86396/1 accepted/tizen/common/20160901.143438 accepted/tizen/ivi/20160901.103832 accepted/tizen/mobile/20160901.103741 accepted/tizen/tv/20160901.103757 accepted/tizen/wearable/20160901.103816 submit/tizen/20160901.050243
authorYunmi Ha <yunmi.ha@samsung.com>
Thu, 1 Sep 2016 03:39:59 +0000 (12:39 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Thu, 1 Sep 2016 03:39:59 +0000 (12:39 +0900)
gumd.service file istallation was failed cause of security policy.
So when build TV profile, package doesn't install gumd.service.
And gumd will works as dbus service.

Change-Id: I35bcc43f3c9f8e93515bb072b4e020d348db6d2b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
packaging/gumd.spec
src/daemon/dbus/services/org.O1.SecurityAccounts.gUserManagement.service.common.in [moved from src/daemon/dbus/services/org.O1.SecurityAccounts.gUserManagement.service.in with 100% similarity]
src/daemon/dbus/services/org.O1.SecurityAccounts.gUserManagement.service.vd.in [new file with mode: 0644]

index 40da7ea..ff56467 100644 (file)
@@ -10,6 +10,7 @@
 %define disable_cap_admin 0
 %endif
 
+%define GUMD_DBUS_SERVICE "src/daemon/dbus/services/org.O1.SecurityAccounts.gUserManagement.service"
 
 Name:    gumd
 Summary: User management daemon and client library
@@ -87,12 +88,18 @@ Requires:   libgum = %{version}-%{release}
 %setup -q -n %{name}-%{version}
 cp -a %{SOURCE1001} %{name}.manifest
 cp -a %{SOURCE1002} libgum.manifest
+
+%if "%{TIZEN_PRODUCT_TV}" ==  "1"
+mv "%{GUMD_DBUS_SERVICE}".vd.in "%{GUMD_DBUS_SERVICE}".in
+%else
+mv "%{GUMD_DBUS_SERVICE}".common.in "%{GUMD_DBUS_SERVICE}".in
 %if %{disable_cap_admin} == 1
 echo "CapabilityBoundingSet=~CAP_MAC_ADMIN" >> data/gumd.service
 echo "SmackProcessLabel=System" >> data/gumd.service
 %else
 echo "SmackProcessLabel=System::Privileged" >> data/gumd.service
 %endif
+%endif
 
 %build
 autoreconf -ivf
@@ -109,8 +116,10 @@ rm -rf %{buildroot}
 rm -f %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
 install -m 755 -d %{buildroot}%{_sysconfdir}/%{name}
 install -m 644 data/tizen/etc/%{name}/%{name}-tizen-common.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
+%if "%{TIZEN_PRODUCT_TV}" !=  "1"
 install -m 755 -d %{buildroot}%{_unitdir}
 install -m 644 data/gumd.service %{buildroot}%{_unitdir}
+%endif
 
 %post
 ldconfig
@@ -159,8 +168,10 @@ install -d -m 755 %{_localstatedir}/lib/%{name}/user
 %dir %{_sysconfdir}/dbus-1
 %dir %{_sysconfdir}/dbus-1/system.d
 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/gumd-dbus.conf
+%if "%{TIZEN_PRODUCT_TV}" !=  "1"
 %{_unitdir}/gumd.service
 %endif
+%endif
 
 %files doc
 %defattr(-,root,root,-)
diff --git a/src/daemon/dbus/services/org.O1.SecurityAccounts.gUserManagement.service.vd.in b/src/daemon/dbus/services/org.O1.SecurityAccounts.gUserManagement.service.vd.in
new file mode 100644 (file)
index 0000000..02fb552
--- /dev/null
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.O1.SecurityAccounts.gUserManagement
+Exec=@prefix@/bin/gumd
+@MESSAGE_BUS_USER@