kexec: new port: User space utility to load and exec another kernel

This commit is contained in:
Steffen Nurpmeso 2021-08-04 00:30:02 +02:00
parent af7f9a5dc5
commit 62c64111e3
3 changed files with 40 additions and 0 deletions

7
kexec/.footprint Normal file
View File

@ -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

5
kexec/.signature Normal file
View File

@ -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

28
kexec/Pkgfile Normal file
View File

@ -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