From 62c64111e39ff71b17db966b11c28ad824f5696b Mon Sep 17 00:00:00 2001 From: Steffen Nurpmeso Date: Wed, 4 Aug 2021 00:30:02 +0200 Subject: [PATCH] kexec: new port: User space utility to load and exec another kernel --- kexec/.footprint | 7 +++++++ kexec/.signature | 5 +++++ kexec/Pkgfile | 28 ++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 kexec/.footprint create mode 100644 kexec/.signature create mode 100644 kexec/Pkgfile diff --git a/kexec/.footprint b/kexec/.footprint new file mode 100644 index 000000000..426884cb5 --- /dev/null +++ b/kexec/.footprint @@ -0,0 +1,7 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/kexec.static +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/kexec.8.gz diff --git a/kexec/.signature b/kexec/.signature new file mode 100644 index 000000000..08aa4fde7 --- /dev/null +++ b/kexec/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF38sbhH8BXPuSxnuRR08Uh5rLxl6Ht58EhCM2AhjiMvjtQEtCYrLCoFgf4aspwk2LnBCFhcDSEpz7gnBEsFZ8Xw0= +SHA256 (Pkgfile) = c15596e6995a434c9fd3feb86a9d644f9d3ca0a6e5cf1de7f5d96b0191d2ee58 +SHA256 (.footprint) = b63f987e520d430ebe3fc026363382f6b37976e082f38327afe66f665612e891 +SHA256 (kexec-tools-2.0.22.tar.gz) = af618de7848142f204b57811f703de3ae7aa3f5bc5d52226db35800fa8fc4dff diff --git a/kexec/Pkgfile b/kexec/Pkgfile new file mode 100644 index 000000000..b3500a7bc --- /dev/null +++ b/kexec/Pkgfile @@ -0,0 +1,28 @@ +# Description: User space utility to load and exec another kernel +# URL: https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git +# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu +# Depends on: zlib + +name=kexec +version=2.0.22 +release=1 +source=(https://git.kernel.org/pub/scm/utils/kernel/${name}/\ +${name}-tools.git/snapshot/${name}-tools-${version}.tar.gz +) + +build() { + cd ${name}-tools-${version} + + ./bootstrap + LDFLAGS="-static ${LDFLAGS}" ./configure --prefix=/usr --without-lzma + make + make DESTDIR="${PKG}" install + + mv "${PKG}"/usr/sbin/kexec "${PKG}"/usr/sbin/kexec.static + rm -rf \ + "${PKG}"/usr/lib \ + "${PKG}"/usr/sbin/vmcore-dmesg \ + "${PKG}"/usr/share/man/man8/vmcore-dmesg.8 +} + +# s-sh-mode