diff options
author | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-09-09 14:44:17 +0900 |
---|---|---|
committer | sangwan.kwon <sangwan.kwon@samsung.com> | 2016-09-09 14:46:20 +0900 |
commit | 863a54640572adaeac5ecbc367a45e489ed05357 (patch) | |
tree | 63eba832535ab0a7ca7acabc1ee66bc14f516c47 | |
parent | eb121522ca766e68713d54e6b2b039e2eb7900db (diff) | |
download | ca-certificates-tizen-accepted/tizen_mobile.tar.gz ca-certificates-tizen-accepted/tizen_mobile.tar.bz2 ca-certificates-tizen-accepted/tizen_mobile.zip |
Add platform upgrade scriptsubmit/tizen_unified/20170308.100408submit/tizen_3.0_wearable/20161015.000000submit/tizen_3.0_tv/20161015.000000submit/tizen_3.0_mobile/20161015.000000submit/tizen_3.0_ivi/20161010.000010submit/tizen_3.0_ivi/20161010.000000submit/tizen_3.0_common/20161104.104000submit/tizen/20160912.100526submit/tizen/20160912.023936accepted/tizen/wearable/20160913.042103accepted/tizen/unified/20170309.033324accepted/tizen/tv/20160913.042037accepted/tizen/mobile/20160913.042022accepted/tizen/ivi/20160913.042118accepted/tizen/common/20160912.181820accepted/tizen/3.0/wearable/20161015.080334accepted/tizen/3.0/tv/20161016.003427accepted/tizen/3.0/mobile/20161015.032259accepted/tizen/3.0/ivi/20161011.053526accepted/tizen/3.0/common/20161114.105909accepted/tizen_wearableaccepted/tizen_tvaccepted/tizen_mobileaccepted/tizen_iviaccepted/tizen_common
* About fingerprint_runtime.xml on rw area
Change-Id: I6f5d988fdd4013b979a7b0200f4d26e4e8070437
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
-rw-r--r-- | packaging/ca-certificates-tizen.spec | 11 | ||||
-rw-r--r-- | tools/CMakeLists.txt | 6 | ||||
-rwxr-xr-x | tools/upgrade/CMakeLists.txt | 25 | ||||
-rw-r--r-- | tools/upgrade/ca-certificates-tizen-upgrade.sh.in | 24 |
4 files changed, 65 insertions, 1 deletions
diff --git a/packaging/ca-certificates-tizen.spec b/packaging/ca-certificates-tizen.spec index d02f3eb..ee56aad 100644 --- a/packaging/ca-certificates-tizen.spec +++ b/packaging/ca-certificates-tizen.spec @@ -32,6 +32,10 @@ Requires: %name = %version-%release %define macro_ca_certificates_tizen %{ro_etc_dir}/rpm/macros.ca-certificates-tizen +%define upgrade_dir %{ro_data_dir}/upgrade +%define upgrade_script_dir %{upgrade_dir}/scripts +%define upgrade_data_dir %{upgrade_dir}/data + %prep %setup -q cp %{SOURCE1001} . @@ -53,7 +57,9 @@ echo "release engineering mode" -DTIZEN_DIR=%{tizen_dir} \ -DFINGERPRINT_DIR=%{fingerprint_dir} \ -DFINGERPRINT_RW_DIR=%{fingerprint_rw_dir} \ - -DPROFILE_TARGET=%{?profile} + -DPROFILE_TARGET=%{?profile} \ + -DUPGRADE_SCRIPT_DIR=%upgrade_script_dir \ + -DUPGRADE_DATA_DIR=%upgrade_data_dir make %{?_smp_mflags} @@ -73,5 +79,8 @@ echo "%TZ_SYS_REVOKED_CERTS_FINGERPRINTS_RUNTIME %{fingerprint_rw_dir}/fingerpri %{fingerprint_dir}/* %{fingerprint_rw_dir}/fingerprint_list_runtime.xml +%attr(775, root, root) %{upgrade_script_dir}/ca-certificates-tizen-upgrade.sh +%{upgrade_data_dir}/fingerprint_list_runtime.xml + %files devel %config %{macro_ca_certificates_tizen} diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 8fe0139..058de32 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -45,3 +45,9 @@ INSTALL(FILES ${FINGERPRINT_LIST_XML} ${FINGERPRINT_LIST_XSD} INSTALL(FILES ${FINGERPRINT_LIST_RW_XML} DESTINATION ${FINGERPRINT_RW_DIR} ) + +INSTALL(FILES ${FINGERPRINT_LIST_RW_XML} + DESTINATION ${UPGRADE_DATA_DIR} +) + +ADD_SUBDIRECTORY(upgrade) diff --git a/tools/upgrade/CMakeLists.txt b/tools/upgrade/CMakeLists.txt new file mode 100755 index 0000000..f7342dd --- /dev/null +++ b/tools/upgrade/CMakeLists.txt @@ -0,0 +1,25 @@ +# Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# @file CMakeLists.txt +# @author Sangwan Kwon (sangwan.kwon@samsung.com) +# + +CONFIGURE_FILE( + ca-certificates-tizen-upgrade.sh.in ca-certificates-tizen-upgrade.sh + @ONLY) + +INSTALL(FILES + ca-certificates-tizen-upgrade.sh + DESTINATION ${UPGRADE_SCRIPT_DIR}) diff --git a/tools/upgrade/ca-certificates-tizen-upgrade.sh.in b/tools/upgrade/ca-certificates-tizen-upgrade.sh.in new file mode 100644 index 0000000..d178e0e --- /dev/null +++ b/tools/upgrade/ca-certificates-tizen-upgrade.sh.in @@ -0,0 +1,24 @@ +#!/bin/bash +PATH=/bin:/usr/bin:/sbin:/usr/sbin + +# Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# @file ca-certificates-tizen-upgrade.sh.in +# @author Sangwan Kwon (sangwan.kwon@samsung.com) +# @brief fingerprint migration scripts for platform upgrade 2.4 -> 3.0 +# + +mkdir -p @FINGERPRINT_RW_DIR@ +cp @UPGRADE_DATA_DIR@/fingerprint_list_runtime.xml @FINGERPRINT_RW_DIR@ |