diff --git a/hotfix_cache.db b/hotfix_cache.db new file mode 100644 index 0000000000000000000000000000000000000000..d286854d84048f581a8c2cf8bb702bdd6231721d Binary files /dev/null and b/hotfix_cache.db differ diff --git a/livepatch-mgr-v0.1.2.tar.gz b/livepatch-mgr-v0.1.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..24c3ded50862aa22d24d181ee422c8c8986c8ae3 Binary files /dev/null and b/livepatch-mgr-v0.1.2.tar.gz differ diff --git a/livepatch-mgr.spec b/livepatch-mgr.spec new file mode 100644 index 0000000000000000000000000000000000000000..30ef66eed846a80c5ff5e4537a8beeb3efb8e4aa --- /dev/null +++ b/livepatch-mgr.spec @@ -0,0 +1,41 @@ +%define anolis_release 1 + +Name: livepatch-mgr +Version: 0.1.2 +Release: %{anolis_release}%{?dist} +Summary: Kernel live patch manager for Anolis +License: GPLv2 +Url: https://gitee.com/anolis/livepatch-mgr +Source0: https://gitee.com/anolis/livepatch-mgr/archive/refs/tags/%{name}-v%{version}.tar.gz + +BuildRequires: python3-devel /usr/bin/pathfix.py +Requires: bash kmod binutils kpatch +BuildArch: noarch + +%description +livepatch manager tool allows the user to manage +a collection of binary kernel patch modules which can be used to dynamically +patch the kernel without rebooting. + +%prep +%autosetup -n %{name}-v%{version} -p1 +pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . + +%build +make -C man + +%install +mkdir -p %{buildroot}/%{_bindir} +make install PREFIX=%{_prefix} DESTDIR=%{buildroot} -C man +install -m 0755 src/livepatch-mgr.py %{buildroot}/%{_bindir}/livepatch-mgr +pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}/usr/bin/livepatch-mgr + +%files +%license license.txt +%doc README.md +%{_bindir}/livepatch-mgr +%{_mandir}/man1/livepatch-mgr.1.zst + +%changelog +* Thu Jun 8 2023 zhangyongde - 0.1.2-1 +- init package