!30 添加SA profile,sa_main拉起softbus server服务需要

From: @heppen 
Reviewed-by: @yukaii 
Signed-off-by: @yukaii
This commit is contained in:
openeuler-ci-bot 2024-03-01 03:23:14 +00:00 committed by Gitee
commit e4a5554999
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 86 additions and 47 deletions

View File

@ -6,7 +6,7 @@
Name: communication_dsoftbus Name: communication_dsoftbus
Version: 1.0.0 Version: 1.0.0
Release: 1 Release: 7
Summary: Inter-process Remote Procedure Call (RPC) Summary: Inter-process Remote Procedure Call (RPC)
License: Apache License 2.0 License: Apache License 2.0
Url: https://gitee.com/openharmony/communication_dsoftbus Url: https://gitee.com/openharmony/communication_dsoftbus
@ -14,6 +14,7 @@ Source1: https://gitee.com/openharmony/communication_dsoftbus/repository/
Source2: https://gitee.com/openharmony/third_party_sqlite/repository/archive/OpenHarmony-v3.2-Release.tar.gz #/third_party_sqlite-OpenHarmony-v3.2-Release.tar.gz Source2: https://gitee.com/openharmony/third_party_sqlite/repository/archive/OpenHarmony-v3.2-Release.tar.gz #/third_party_sqlite-OpenHarmony-v3.2-Release.tar.gz
Source3: https://gitee.com/openharmony/third_party_libcoap/repository/archive/OpenHarmony-v3.2-Release.tar.gz #/third_party_libcoap-OpenHarmony-v3.2-Release.tar.gz Source3: https://gitee.com/openharmony/third_party_libcoap/repository/archive/OpenHarmony-v3.2-Release.tar.gz #/third_party_libcoap-OpenHarmony-v3.2-Release.tar.gz
Source4: sqlite.BUILD.gn Source4: sqlite.BUILD.gn
Source5: softbus_server.xml
Patch1: 0001-remove-dependency-and-adapt-for-openeuler-dsoftbus.patch Patch1: 0001-remove-dependency-and-adapt-for-openeuler-dsoftbus.patch
Patch2: 0002-increase-the-pthread-stack-size-of-x86-and-other-env-dsoftbus.patch Patch2: 0002-increase-the-pthread-stack-size-of-x86-and-other-env-dsoftbus.patch
@ -80,6 +81,7 @@ install -d -m 0755 %{buildroot}/%{_includedir}/dsoftbus
install -d -m 0755 %{buildroot}/%{_includedir}/sqlite install -d -m 0755 %{buildroot}/%{_includedir}/sqlite
install -d -m 0755 %{buildroot}/%{_libdir} install -d -m 0755 %{buildroot}/%{_libdir}
install -d -m 0755 %{buildroot}/system/lib64 install -d -m 0755 %{buildroot}/system/lib64
install -d -m 0755 %{buildroot}/system/profile
install -d -m 0755 %{buildroot}/%{build_opt}/openeuler/compiler_gn/third_party/sqlite/ install -d -m 0755 %{buildroot}/%{build_opt}/openeuler/compiler_gn/third_party/sqlite/
%ifarch aarch64 %ifarch aarch64
@ -95,6 +97,10 @@ install -d -m 0755 %{buildroot}/%{build_opt}/openeuler/compiler_gn/third_party/s
rm -rf %{_builddir}/%{header_out_path}/softbus_client/inner_kits/transport/inner_session.h rm -rf %{_builddir}/%{header_out_path}/softbus_client/inner_kits/transport/inner_session.h
find %{_builddir}/%{header_out_path} -name *.h -print0 | xargs -0 -i cp -rf {} %{buildroot}/%{_includedir}/dsoftbus/ find %{_builddir}/%{header_out_path} -name *.h -print0 | xargs -0 -i cp -rf {} %{buildroot}/%{_includedir}/dsoftbus/
# install libs and headers from dsoftbus
rm -rf %{_builddir}/%{header_out_path}/softbus_client/inner_kits/transport/inner_session.h
find %{_builddir}/%{header_out_path} -name *.h -print0 | xargs -0 -i cp -rf {} %{buildroot}/%{_includedir}/dsoftbus/
# install libs and headers from dsoftbus # install libs and headers from dsoftbus
%define dsoftbus_module_path %{module_out_path}/communication/dsoftbus %define dsoftbus_module_path %{module_out_path}/communication/dsoftbus
@ -106,6 +112,7 @@ install -m 0755 %{_builddir}/third_party/sqlite/include/*.h %{buildroot}/%{_incl
install -m 0755 %{_builddir}/%{module_out_path}/common/common/libsqlite.z.so %{buildroot}/%{_libdir} install -m 0755 %{_builddir}/%{module_out_path}/common/common/libsqlite.z.so %{buildroot}/%{_libdir}
install -m 0755 %{_builddir}/%{module_out_path}/common/common/libsqlite.z.so %{buildroot}/system/lib64 install -m 0755 %{_builddir}/%{module_out_path}/common/common/libsqlite.z.so %{buildroot}/system/lib64
install -m 0755 %{SOURCE4} %{buildroot}/%{build_opt}/openeuler/compiler_gn/third_party/sqlite/BUILD.gn install -m 0755 %{SOURCE4} %{buildroot}/%{build_opt}/openeuler/compiler_gn/third_party/sqlite/BUILD.gn
install -m 0755 %{SOURCE5} %{buildroot}/system/profile
%files %files
%{_libdir}/*.so %{_libdir}/*.so
@ -113,8 +120,26 @@ install -m 0755 %{SOURCE4} %{buildroot}/%{build_opt}/openeuler/compiler_gn/third
%{_includedir}/sqlite/* %{_includedir}/sqlite/*
/system/* /system/*
%{build_opt} %{build_opt}
%changelog
* Tue Oct 19 2023 Yuying Mu <muyuying1@huawei.com> - 1.0.0-1 %changelog
* Tue Nov 20 2023 Jiaqi Zhao <zhaojiaqi18@huawei.com> - 1.0.0-1 * Fri Dec 15 2023 heppen <hepeng68@huawei.com> - 1.0.0-7
- Init package - Add SA profile
* Tue Oct 19 2023 Yuying Mu <muyuying1@huawei.com> - 1.0.0-6
* Tue Nov 20 2023 Jiaqi Zhao <zhaojiaqi18@huawei.com> - 1.0.0-6
- Update dsoftbus from 3.1.2 to 3.2
- Rename package name from dsoftbus to communication_dsoftbus
* Mon Sep 25 2023 heppen <hepeng68@huawei.com> - 1.0.0-5
- fix CVE-2023-30364 for libcoap
* Wed Sep 20 2023 heppen <hepeng68@huawei.com> - 1.0.0-4
- open udp stream and file feature for dsoftbus
* Wed Nov 30 2022 liheavy <lihaiwei8@huawei.com> - 1.0.0-3
- Disassemble yocto-embedded-tools and replace cjson, ninja, gn, openssl, libboundscheck
- with openEuler software package
* Wed Nov 23 2022 xuchongyu <xuchongyu@huawei.com> - 1.0.0-2
- add URL,change branch of libboundscheck to 22.03-LTS-SP1

14
softbus_server.xml Executable file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<info>
<process>softbus_server</process>
<loadlibs>
<libpath>libsoftbus_server.z.so</libpath>
</loadlibs>
<systemability>
<name>4700</name>
<libpath>libsoftbus_server.z.so</libpath>
<run-on-create>true</run-on-create>
<distributed>false</distributed>
<dump-level>1</dump-level>
</systemability>
</info>