Add the script file for 3.0 OS upgrade 26/86926/2 accepted/tizen/common/20160907.154510 accepted/tizen/ivi/20160908.004149 accepted/tizen/mobile/20160908.004055 accepted/tizen/tv/20160908.004112 accepted/tizen/wearable/20160908.004126 submit/tizen/20160907.050933
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 5 Sep 2016 12:35:45 +0000 (21:35 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 6 Sep 2016 04:02:51 +0000 (13:02 +0900)
Change-Id: I5d36724fea4e71a063dc28b9c4c698ce57d3105a
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluetoothd_upgrade.sh [new file with mode: 0644]
packaging/bluez.spec

diff --git a/packaging/bluetoothd_upgrade.sh b/packaging/bluetoothd_upgrade.sh
new file mode 100644 (file)
index 0000000..d500621
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+#------------------------------------------#
+# bluetoothd patch for upgrade (2.4 -> 3.0) #
+#------------------------------------------#
+
+# Change the smack label for BT chip and paired info
+chsmack -a "User" /var/lib/bluetooth
+chsmack -a "System" /var/lib/bluetooth/* -r
index 95d4a28..c6dff64 100644 (file)
@@ -1,5 +1,6 @@
 #%define with_libcapng --enable-capng
 %define _libpath /usr/lib
+%define upgrade_script_path /usr/share/upgrade/scripts
 Name:          bluez
 Summary:       Bluetooth Stack for Linux
 Version:       5.37
@@ -194,6 +195,9 @@ ln -sf bluetooth.service %{buildroot}%{_libpath}/systemd/system/dbus-org.bluez.s
 ln -sf ../bluetooth-frwk.service %{buildroot}%{_libpath}/systemd/system/multi-user.target.wants/bluetooth.service
 %endif
 
+mkdir -p %{buildroot}%{upgrade_script_path}
+cp -f packaging/bluetoothd_upgrade.sh %{buildroot}%{upgrade_script_path}
+
 %post -n libbluetooth -p /sbin/ldconfig
 
 %postun -n libbluetooth -p /sbin/ldconfig
@@ -224,6 +228,7 @@ ln -sf ../bluetooth-frwk.service %{buildroot}%{_libpath}/systemd/system/multi-us
 #%{_sbindir}/hid2hci
 %dir /usr/lib/udev
 /usr/lib/udev/*
+%{upgrade_script_path}/bluetoothd_upgrade.sh
 
 #test -2
 %if "%{?profile}" == "tv"