Disable privilege check routine temporaly
authorsaerome kim <saerome.kim@samsung.com>
Tue, 13 Jun 2017 07:31:31 +0000 (16:31 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 17 Jul 2017 02:35:36 +0000 (11:35 +0900)
 - remove meshd.conf file

Signed-off-by: saerome kim <saerome.kim@samsung.com>
packaging/meshd.spec

index 481390b..337b967 100644 (file)
@@ -1,3 +1,5 @@
+%define CHECK_MESH_PRIVILEGE False
+
 Name:          meshd
 Summary:       mesh network daemon
 Version:       0.0.1
@@ -30,7 +32,9 @@ chmod 644 %{SOURCE0}
 chmod 644 %{SOURCE1}
 chmod 644 %{SOURCE2}
 chmod 644 %{SOURCE3}
+%if %{CHECK_MESH_PRIVILEGE} == "True"
 cp -a %{SOURCE1} ./meshd.conf
+%endif
 cp -a %{SOURCE2} .
 cp -a %{SOURCE3} .
 
@@ -51,8 +55,10 @@ rm -rf %{buildroot}
 
 %make_install
 
+%if %{CHECK_MESH_PRIVILEGE} == "True"
 mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
 cp meshd.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/meshd.conf
+%endif
 mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/
 cp net.mesh.service %{buildroot}%{_datadir}/dbus-1/system-services/net.mesh.service
 mkdir -p %{buildroot}%{_unitdir}
@@ -66,7 +72,9 @@ chmod 755 %{_sbindir}/mesh.sh
 %license LICENSE
 %defattr(-,root,root,-)
 %caps(cap_net_raw,cap_net_admin=eip) %attr(750,system,system) %{_bindir}/meshd
+%if %{CHECK_MESH_PRIVILEGE} == "True"
 %config %{_sysconfdir}/dbus-1/system.d/meshd.conf
+%endif
 %attr(644,root,root) %{_datadir}/dbus-1/system-services/*
 %attr(644,root,root) %{_unitdir}/meshd.service
 %attr(750,root,root) %{_sbindir}/mesh.sh