From 15e601f4ef930c11402b2ff899029ba71888ff3e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 10 2014 14:01:52 +0000 Subject: import kpatch-0.1.2-1.el7_0 --- diff --git a/.gitignore b/.gitignore index 3898a37..bf10ed6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/kpatch-0.0.tar.gz +SOURCES/v0.1.2.tar.gz diff --git a/.kpatch.metadata b/.kpatch.metadata index 93398c2..4d3440a 100644 --- a/.kpatch.metadata +++ b/.kpatch.metadata @@ -1 +1 @@ -701b69fec97a5d5f5bc5831cf36523c8eb226d90 SOURCES/kpatch-0.0.tar.gz +2bc3e61b9126ee42cb8369029d53d26dbee2537e SOURCES/v0.1.2.tar.gz diff --git a/SPECS/kpatch.spec b/SPECS/kpatch.spec index 3a8fec6..5c2d5b5 100644 --- a/SPECS/kpatch.spec +++ b/SPECS/kpatch.spec @@ -1,67 +1,62 @@ Name: kpatch -Version: 0.0 +Version: 0.1.2 Release: 1%{?dist} Summary: Dynamic kernel patch manager Group: System Environment/Kernel License: GPLv2 -#URL: -Source0: kpatch-%{version}.tar.gz +URL: https://github.com/dynup/kpatch +Source0: https://github.com/dynup/kpatch/archive/v%{version}.tar.gz #BuildRequires: -Requires: bash, systemd -Requires(post): systemd +Requires: bash kmod dracut BuildArch: noarch %description -Kpatch is a dynamic kernel patch manager. It allows the user to manage a -collection of binary kernel patches which can be used to dynamically patch the -kernel without rebooting. +kpatch is a dynamic kernel patch module manager. It allows the user to manage +a collection of binary kernel patch modules which can be used to dynamically +patch the kernel without rebooting. + %prep %setup -q %build +make -C man %install -make install DESTDIR=%{buildroot} - +make install PREFIX=/usr DESTDIR=%{buildroot} -C kpatch +make install PREFIX=/usr DESTDIR=%{buildroot} -C man +make install PREFIX=/usr DESTDIR=%{buildroot} -C contrib +rm -f %{buildroot}/usr/share/man/man1/kpatch-build.1.gz -%post -# TODO: open bug to put kpatch in the preset policy instead and then use -# %systemd macros -# https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd -if [ $1 -eq 1 ] ; then - # Initial installation - /bin/systemctl enable kpatch.service >/dev/null 2>&1 || : -fi +%files +%{_sbindir}/kpatch +%dir %{_usr}/lib/dracut/modules.d/99kpatch +%{_usr}/lib/dracut/modules.d/99kpatch/* +%doc %{_mandir}/man1/kpatch.1.gz -%preun -if [ $1 -eq 0 ] ; then - # Package removal, not upgrade - /bin/systemctl --no-reload disable kpatch.service > /dev/null 2>&1 || : - /bin/systemctl stop kpatch.service > /dev/null 2>&1 || : -fi +%changelog +* Wed May 21 2014 Josh Poimboeuf 0.1.2-1 +- update to kpatch 0.1.2 -%postun -/bin/systemctl daemon-reload >/dev/null 2>&1 || : -if [ $1 -ge 1 ] ; then - # Package upgrade, not uninstall - /bin/systemctl try-restart kpatch.service >/dev/null 2>&1 || : -fi +* Mon May 19 2014 Josh Poimboeuf 0.1.1-2 +- fix initramfs core module path +* Mon May 19 2014 Josh Poimboeuf 0.1.1-1 +- rebase to kpatch 0.1.1 -%files -%{_bindir}/* -%{_prefix}/lib/systemd/system/* +* Fri May 9 2014 Josh Poimboeuf 0.1.0-2 +- modprobe core module +* Tue May 6 2014 Josh Poimboeuf 0.1.0-1 +- Initial kpatch release 0.1.0 -%changelog * Thu Jan 30 2014 Josh Poimboeuf 0.0-1 - Initial build