upgrade: removing scripts that are not needed when upgrading 4.0 -> 5.0 37/184437/1 accepted/tizen/unified/20180719.152636 submit/tizen/20180718.044459 submit/tizen/20180719.052039
authorINSUN PYO <insun.pyo@samsung.com>
Wed, 18 Jul 2018 04:32:38 +0000 (13:32 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Wed, 18 Jul 2018 04:32:55 +0000 (13:32 +0900)
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I9da3a25714704d75c7a2896b149ae89e8fc92311

packaging/tizen-platform-config.spec
scripts/200.filesystem-pre_24to30.patch.sh [deleted file]
scripts/200.filesystem-pre_30to40.patch.sh [deleted file]
scripts/201.tizen-platform-config_upgrade_24to30.sh [deleted file]
scripts/799.filesystem-post_24to30.patch.sh [deleted file]

index f794da0..6c946e0 100644 (file)
@@ -63,7 +63,6 @@ cp %{SOURCE1001} .
 
 %install
 %make_install
-install -m 755 scripts/200.filesystem-pre_30to40.patch.sh -D %{buildroot}%{_datadir}/upgrade/scripts/200.filesystem-pre.patch.sh
 rm %{buildroot}%{_libdir}/*.a
 
 %post
@@ -170,7 +169,6 @@ HOME="$saveHOME"
 %manifest %{name}.manifest
 %license LICENSE.MIT LICENSE.LGPL-2.0+
 %config %{_sysconfdir}/tizen-platform.conf
-%{_datadir}/upgrade/scripts/*
 
 %files -n %{libname}
 %manifest %{name}.manifest
diff --git a/scripts/200.filesystem-pre_24to30.patch.sh b/scripts/200.filesystem-pre_24to30.patch.sh
deleted file mode 100644 (file)
index 2deb476..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-#
-# RW update filesystem-pre script (2.4 -> 3.0)
-#
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-OWNER_HOME=/opt/usr/home/owner
-
-rm -rf /var/lock
-ln -snf /run/lock /var/lock
-
-# The operations of generic-base.post
-chown root:root /opt/var/log
-chsmack -a '*' -t /opt/var/log
diff --git a/scripts/200.filesystem-pre_30to40.patch.sh b/scripts/200.filesystem-pre_30to40.patch.sh
deleted file mode 100644 (file)
index 88815df..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-#
-# RW update filesystem-pre script (3.0 -> 4.0)
-#
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-source /usr/share/upgrade/rw-update-macro.inc
-source /etc/tizen-platform.conf
-
-# Make /opt/usr/media_shared directory
-if [ ! -e $TZ_SYS_MEDIASHARED ]; then
-    restore_backup_file -r $TZ_SYS_MEDIASHARED/
-fi
diff --git a/scripts/201.tizen-platform-config_upgrade_24to30.sh b/scripts/201.tizen-platform-config_upgrade_24to30.sh
deleted file mode 100644 (file)
index adac2f0..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-#
-# RW update: tizen-platform-config (2.4 -> 3.0)
-#
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-# tizen-platform-config post script
-. "/etc/tizen-platform.conf"
-cat << ENDOFCAT |
-MODE 777
-SMACK System::Shared true
-$TZ_SYS_STORAGE
-$TZ_SYS_MEDIA
-
-MODE 775
-SMACK User::Home false
-$TZ_SYS_DB
-$TZ_SYS_RW_PACKAGES
-$TZ_SYS_RW_APP
-
-SMACK System::Shared false
-$TZ_SYS_ETC
-
-ENDOFCAT
-while read s1 s2 s3; do
-  case "$s1" in
-    MODE) m="$s2";;
-    SMACK) c="$s2"; t="$s3";;
-    "") ;;
-    *) echo "$s1 ${m:-700} ${c:-_} ${t:-false}";;
-  esac
-done |
-LANG=C sort |
-while read dirname mode context transmute; do
-        if [ -e "$dirname" ]; then
-                chmod "$mode" "$dirname"
-        else
-                mkdir -p -m "$mode" "$dirname"
-        fi
-        if [ "$transmute" = true ]; then
-                chsmack -a "$context" -t "$dirname"
-        else
-                chsmack -a "$context" "$dirname"
-        fi >&2
-done
diff --git a/scripts/799.filesystem-post_24to30.patch.sh b/scripts/799.filesystem-post_24to30.patch.sh
deleted file mode 100644 (file)
index 328ac04..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# RW update filesystem-post script (2.4 -> 3.0)
-#
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-rm -rf /opt/usr/live
-rm -rf /opt/driver
-rm -rf /opt/storage
-
-# Migrate user contents to 3.0 path
-. /etc/tizen-platform.conf
-export `tzplatform-get --user $TZ_SYS_DEFAULT_USER TZ_USER_CONTENT`
-CONTENTS24=/opt/usr/media
-CONTENTS30=$TZ_USER_CONTENT
-
-cp -rT --preserve=mode,timestamps $CONTENTS24/DCIM      $CONTENTS30/Camera
-cp -rT --preserve=mode,timestamps $CONTENTS24/Documents $CONTENTS30/Documents
-cp -rT --preserve=mode,timestamps $CONTENTS24/Downloads $CONTENTS30/Downloads
-cp -rT --preserve=mode,timestamps $CONTENTS24/Images    $CONTENTS30/Images
-cp -rT --preserve=mode,timestamps $CONTENTS24/Music     $CONTENTS30/Music
-cp -rT --preserve=mode,timestamps $CONTENTS24/Others    $CONTENTS30/Others
-cp -rT --preserve=mode,timestamps $CONTENTS24/Sounds    $CONTENTS30/Sounds
-cp -rT --preserve=mode,timestamps $CONTENTS24/Videos    $CONTENTS30/Videos
-
-# Remove remain garbage files
-rm -rf $CONTENTS24
-mkdir -m 755 $CONTENTS24
-chsmack -a '_' $CONTENTS24
-rm -rf /opt/home/app