!11 filemanagement_dfs_service仓库,从openEuler-22.03-LTS-SP3合并到openEuler-22.03-LTS-SP4

From: @hong-xuming 
Reviewed-by: @yukaii 
Signed-off-by: @yukaii
This commit is contained in:
openeuler-ci-bot 2024-06-05 07:13:13 +00:00 committed by Gitee
commit 8a12c83038
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 6 deletions

View File

@ -5,11 +5,13 @@
Name: filemanagement_dfs_service
Version: 1.0.0
Release: 3
Release: 4
Summary: The distributed file service from OpenHarmony
License: Apache-2.0
Url: https://gitee.com/openharmony/filemanagement_dfs_service
Source1: https://gitee.com/openharmony/filemanagement_dfs_service/repository/archive/%{oh_version}.tar.gz #/filemanagement_dfs_service-%{oh_version}.tar.gz
Source2: distributedfiledaemon.xml
Patch1: 0001-cut-access_token-common_event-ability.patch
Patch2: 0002-change-default-devsl-from-0-to-4.patch
@ -26,7 +28,7 @@ Requires: distributed-beget, hilog, commonlibrary_c_utils
Requires: communication_ipc, communication_dsoftbus
Requires: systemabilitymgr_safwk, systemabilitymgr_samgr
Requires: security_dataclassification, security_device_auth
Requires: distributedhardware_device_manager
Requires: distributedhardware_device_manager, hmdfs
%description
The distributed file service provides cross-device access capabilities that meet the POSIX specifications.
@ -34,9 +36,9 @@ The distributed file service provides cross-device access capabilities that meet
%prep
rm -rf %{_builddir}/*
cp -rf %{build_opt} %{_builddir}/build
ln -s %{_builddir}/build/build_scripts/build.sh %{_builddir}/build.sh
ln -s %{_builddir}/build/core/gn/dotfile.gn %{_builddir}/.gn
ln -s %{_builddir}/build/lite/build.py %{_builddir}/build.py
[ ! -L "%{_builddir}/build.sh" ] && ln -s %{_builddir}/build/build_scripts/build.sh %{_builddir}/build.sh
[ ! -L "%{_builddir}/.gn" ] && ln -s %{_builddir}/build/core/gn/dotfile.gn %{_builddir}/.gn
[ ! -L "%{_builddir}/build.py" ] && ln -s %{_builddir}/build/lite/build.py %{_builddir}/build.py
cp -rf %{_builddir}/build/openeuler/vendor %{_builddir}/
cp -rf %{_builddir}/build/openeuler/compiler_gn/* %{_builddir}
@ -56,6 +58,7 @@ cp -rf %{_builddir}/build/openeuler/compiler_gn/* %{_builddir}
%install
install -d -m 0755 %{buildroot}/%{_libdir}
install -d -m 0755 %{buildroot}/system/lib64
install -d -m 0755 %{buildroot}/system/profile
%ifarch x86_64
%define lib_path out/openeuler/linux_clang_x86_64/filemanagement/dfs_service
@ -69,11 +72,17 @@ install -d -m 0755 %{buildroot}/system/lib64
install -m 0755 %{_builddir}/%{lib_path}/*.so %{buildroot}/%{_libdir}
install -m 0755 %{_builddir}/%{lib_path}/*.so %{buildroot}/system/lib64
# prepare sa profile
install -m 0755 %{SOURCE2} %{buildroot}/system/profile
%files
%{_libdir}/*.so
/system/lib64/*.so
/system/*
%changelog
* Fri Dec 15 2023 heppen <hepeng68@huawei.com> - 1.0.0-4
- Add SA profile
* Tue Nov 14 2023 Peng He <hepeng68@huawei.com> - 1.0.0-3
- Update requires and buildrequires.

16
distributedfiledaemon.xml Executable file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<info>
<process>distributedfiledaemon</process>
<loadlibs>
<libpath>libdistributedfiledaemon.z.so</libpath>
</loadlibs>
<systemability>
<name>5201</name>
<libpath>libdistributedfiledaemon.z.so</libpath>
<depend>4802;4700</depend>
<depend-time-out>60000</depend-time-out>
<run-on-create>true</run-on-create>
<distributed>false</distributed>
<dump-level>1</dump-level>
</systemability>
</info>