init spec and get-version script
init for first version 0.1.1 Signed-off-by: snoweay <snoweay@163.com> (cherry picked from commit 64410d4aff5e0fbf2d3edc44cd5b750cd6474511)
This commit is contained in:
parent
697719add3
commit
363d65290d
Binary file not shown.
28
syscare.spec
28
syscare.spec
@ -18,7 +18,7 @@ Requires: kpatch-runtime
|
||||
|
||||
%description
|
||||
SysCare is a system-level hot-fix software that provides single-machine-level and cluster-level security patches and system error hot-fixes for the operating system.
|
||||
The host can fix the system problem without rebooting.
|
||||
The host can fix the system problem without rebooting.
|
||||
|
||||
%package build
|
||||
Summary: Tools for build syscare patch.
|
||||
@ -39,31 +39,19 @@ make
|
||||
%install
|
||||
%make_install
|
||||
|
||||
mkdir -p %{buildroot}/usr/lib/systemd/system
|
||||
install -m 0644 %{_builddir}/%{name}-%{version}/misc/%{name}-restore.service %{buildroot}/usr/lib/systemd/system
|
||||
install -m 0644 %{_builddir}/%{name}-%{version}/misc/%{name}-pre.service %{buildroot}/usr/lib/systemd/system
|
||||
|
||||
%post
|
||||
%systemd_post %{name}-restore.service
|
||||
%systemd_post %{name}-pre.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%attr(755,root,root) /usr/bin/syscare
|
||||
%attr(755,root,root) /usr/libexec/%{name}/upatch-tool
|
||||
%attr(755,root,root) /usr/libexec/%{name}/auto-recovery.sh
|
||||
%attr(644,root,root) /usr/lib/systemd/system/%{name}-restore.service
|
||||
%attr(644,root,root) /usr/lib/systemd/system/%{name}-pre.service
|
||||
%dir /usr/libexec/%{name}
|
||||
%attr(750,root,root) /usr/bin/syscare
|
||||
|
||||
%files build
|
||||
%defattr(-,root,root,-)
|
||||
%dir /usr/libexec/%{name}
|
||||
%attr(755,root,root) /usr/libexec/%{name}/upatch-diff
|
||||
%attr(755,root,root) /usr/libexec/%{name}/upatch-build
|
||||
%attr(755,root,root) /usr/libexec/%{name}/syscare-build
|
||||
%attr(750,root,root) /usr/libexec/%{name}/upatch-diff
|
||||
%attr(750,root,root) /usr/libexec/%{name}/upatch-build
|
||||
%attr(750,root,root) /usr/libexec/%{name}/upatch-tool
|
||||
%attr(750,root,root) /usr/libexec/%{name}/syscare-build
|
||||
|
||||
%changelog
|
||||
* Mon Nov 28 2022 snoweay<snoweay@163.com> - 0.1.1-1
|
||||
- First version for test. Support patches restore, remove, insmod upatch.ko.
|
||||
* Mon Nov 21 2022 snoweay<snoweay@163.com> - 0.1.0-1
|
||||
* Mon Nov 21 2022 snoweay<snoweay@163.com> - 0.1.1-1
|
||||
- init version for 0.1.1-1.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user