!13 [sync] PR-11: update spec for file permission and add oncn-mda file
From: @openeuler-sync-bot Reviewed-by: @supercharge Signed-off-by: @supercharge
This commit is contained in:
commit
a08b5532a0
43
Kmesh.spec
43
Kmesh.spec
@ -1,12 +1,10 @@
|
|||||||
%global debug_package %{nil}
|
|
||||||
|
|
||||||
Name: Kmesh
|
Name: Kmesh
|
||||||
Version: 0.3.0
|
Version: 0.3.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: %{name} is a eBPF-based service mesh kernel solution
|
Summary: %{name} is a eBPF-based service mesh kernel solution
|
||||||
License: ASL 2.0
|
License: ASL 2.0 and GPL-2.0
|
||||||
URL: https://gitee.com/openeuler/%{name}
|
URL: https://gitee.com/openeuler/%{name}
|
||||||
Source0: %{version}.tar.gz
|
Source0: https://gitee.com/openeuler/%{name}/archive/refs/tags/%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: cmake make pkgconf dracut
|
BuildRequires: cmake make pkgconf dracut
|
||||||
BuildRequires: protobuf protobuf-c protobuf-c-devel
|
BuildRequires: protobuf protobuf-c protobuf-c-devel
|
||||||
@ -38,6 +36,11 @@ install %{_builddir}/%{name}-%{version}/kmesh-daemon %{buildroot}%{_bindir}
|
|||||||
install %{_builddir}/%{name}-%{version}/kmesh-cmd %{buildroot}%{_bindir}
|
install %{_builddir}/%{name}-%{version}/kmesh-cmd %{buildroot}%{_bindir}
|
||||||
install %{_builddir}/%{name}-%{version}/build/kmesh-start-pre.sh %{buildroot}%{_bindir}
|
install %{_builddir}/%{name}-%{version}/build/kmesh-start-pre.sh %{buildroot}%{_bindir}
|
||||||
install %{_builddir}/%{name}-%{version}/build/kmesh-stop-post.sh %{buildroot}%{_bindir}
|
install %{_builddir}/%{name}-%{version}/build/kmesh-stop-post.sh %{buildroot}%{_bindir}
|
||||||
|
install %{_builddir}/%{name}-%{version}/oncn-mda/deploy/mdacore %{buildroot}%{_bindir}
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_datarootdir}/oncn-mda
|
||||||
|
install %{_builddir}/%{name}-%{version}/oncn-mda/build/ebpf_src/CMakeFiles/sock_ops.dir/sock_ops.c.o %{buildroot}%{_datarootdir}/oncn-mda
|
||||||
|
install %{_builddir}/%{name}-%{version}/oncn-mda/build/ebpf_src/CMakeFiles/sock_redirect.dir/sock_redirect.c.o %{buildroot}%{_datarootdir}/oncn-mda
|
||||||
|
|
||||||
mkdir -p %{buildroot}/usr/lib64
|
mkdir -p %{buildroot}/usr/lib64
|
||||||
install %{_builddir}/%{name}-%{version}/bpf/deserialization_to_bpf_map/libkmesh_deserial.so %{buildroot}/usr/lib64
|
install %{_builddir}/%{name}-%{version}/bpf/deserialization_to_bpf_map/libkmesh_deserial.so %{buildroot}/usr/lib64
|
||||||
@ -48,6 +51,8 @@ install %{_builddir}/%{name}-%{version}/kernel/ko/kmesh.ko %{buildroot}/lib/modu
|
|||||||
|
|
||||||
mkdir -p %{buildroot}/%{_sysconfdir}/kmesh
|
mkdir -p %{buildroot}/%{_sysconfdir}/kmesh
|
||||||
install %{_builddir}/%{name}-%{version}/config/kmesh.json %{buildroot}/%{_sysconfdir}/kmesh
|
install %{_builddir}/%{name}-%{version}/config/kmesh.json %{buildroot}/%{_sysconfdir}/kmesh
|
||||||
|
mkdir -p %{buildroot}/%{_sysconfdir}/oncn-mda
|
||||||
|
install %{_builddir}/%{name}-%{version}/oncn-mda/etc/oncn-mda.conf %{buildroot}/%{_sysconfdir}/oncn-mda/
|
||||||
|
|
||||||
mkdir -p %{buildroot}/usr/lib/systemd/system
|
mkdir -p %{buildroot}/usr/lib/systemd/system
|
||||||
install %{_builddir}/%{name}-%{version}/build/kmesh.service %{buildroot}/usr/lib/systemd/system
|
install %{_builddir}/%{name}-%{version}/build/kmesh.service %{buildroot}/usr/lib/systemd/system
|
||||||
@ -83,22 +88,32 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(0550,root,root) %{_bindir}/kmesh-daemon
|
%attr(0500,root,root) %{_bindir}/kmesh-daemon
|
||||||
%attr(0550,root,root) %{_bindir}/kmesh-cmd
|
%attr(0500,root,root) %{_bindir}/kmesh-cmd
|
||||||
|
%attr(0500,root,root) %{_bindir}/mdacore
|
||||||
|
|
||||||
%attr(0500,root,root) /usr/lib64/libkmesh_deserial.so
|
%attr(0500,root,root) /usr/lib64/libkmesh_deserial.so
|
||||||
%attr(0500,root,root) /usr/lib64/libkmesh_api_v2_c.so
|
%attr(0500,root,root) /usr/lib64/libkmesh_api_v2_c.so
|
||||||
|
|
||||||
%attr(0550,root,root) %dir /lib/modules/kmesh
|
%attr(0500,root,root) %dir /usr/share/oncn-mda
|
||||||
%attr(0440,root,root) /lib/modules/kmesh/kmesh.ko
|
%attr(0500,root,root) /usr/share/oncn-mda/sock_ops.c.o
|
||||||
|
%attr(0500,root,root) /usr/share/oncn-mda/sock_redirect.c.o
|
||||||
|
|
||||||
%attr(0750,root,root) %dir %{_sysconfdir}/kmesh
|
%attr(0500,root,root) %dir /lib/modules/kmesh
|
||||||
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/kmesh/kmesh.json
|
%attr(0400,root,root) /lib/modules/kmesh/kmesh.ko
|
||||||
%config(noreplace) %attr(0640,root,root) /usr/lib/systemd/system/kmesh.service
|
|
||||||
%attr(0550,root,root) /usr/bin/kmesh-start-pre.sh
|
%attr(0700,root,root) %dir %{_sysconfdir}/kmesh
|
||||||
%attr(0550,root,root) /usr/bin/kmesh-stop-post.sh
|
%attr(0700,root,root) %dir %{_sysconfdir}/oncn-mda
|
||||||
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/kmesh/kmesh.json
|
||||||
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/oncn-mda/oncn-mda.conf
|
||||||
|
%config(noreplace) %attr(0600,root,root) /usr/lib/systemd/system/kmesh.service
|
||||||
|
%attr(0500,root,root) /usr/bin/kmesh-start-pre.sh
|
||||||
|
%attr(0500,root,root) /usr/bin/kmesh-stop-post.sh
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 18 2023 JofDiamonds <kwb0523@163.com> - 0.3.0-3
|
||||||
|
- update spec
|
||||||
|
|
||||||
* Thu Aug 17 2023 JofDiamonds <kwb0523@163.com> - 0.3.0-2
|
* Thu Aug 17 2023 JofDiamonds <kwb0523@163.com> - 0.3.0-2
|
||||||
- update package
|
- update package
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user