diff --git a/syscare-0.1.1.tar.gz b/syscare-0.1.1.tar.gz index 48d98fb39521a5c8c4646609193645c15fec6ab5..8eaabf1eb11840d2a82689ecd48f80b486dcce28 100644 Binary files a/syscare-0.1.1.tar.gz and b/syscare-0.1.1.tar.gz differ diff --git a/syscare.spec b/syscare.spec index 8de800b9aeff4711ac644db81b38fbb9e6d74ae7..65b0a405e70f525a158711eedb9031e718dc65b2 100644 --- a/syscare.spec +++ b/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,19 +39,31 @@ 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,-) -%dir /usr/libexec/%{name} -%attr(750,root,root) /usr/bin/syscare +%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 %files build %defattr(-,root,root,-) %dir /usr/libexec/%{name} -%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 +%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 %changelog -* Mon Nov 21 2022 snoweay - 0.1.1-1 +* Mon Nov 28 2022 snoweay - 0.1.1-1 +- First version for test. Support patches restore, remove, insmod upatch.ko. +* Mon Nov 21 2022 snoweay - 0.1.0-1 - init version for 0.1.1-1.