41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'crash'
|
|
pkgname=crash
|
|
version=8.0.2
|
|
revision=1
|
|
archs="i686 x86_64" # broken on musl
|
|
build_style=gnu-makefile
|
|
hostmakedepends="flex tar wget texinfo"
|
|
makedepends="lzo-devel ncurses-devel zlib-devel readline-devel"
|
|
depends="binutils"
|
|
short_desc="Kernel crash dump debugger and live inspector"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://crash-utility.github.io/"
|
|
changelog="https://crash-utility.github.io/crash.changelog.html"
|
|
distfiles="https://github.com/crash-utility/crash/archive/${version}.tar.gz"
|
|
checksum=a2071e677476c31428b2820aa0d1d9413cb455e84850f1210a8b55c3733e9815
|
|
nocross=yes
|
|
disable_parallel_build=yes
|
|
LDFLAGS=-llzo2
|
|
|
|
post_extract() {
|
|
sed -i 's|arch|uname -a|g' extensions/snap.mk
|
|
sed -i 's|/usr/lib/debug/lib/modules|/usr/lib/debug/usr/lib/modules|g' defs.h
|
|
sed -i 's|/boot/efi/redhat|/usr/lib/debug/boot/|g' filesys.c
|
|
sed -i '/^LDFLAGS=/d' Makefile
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} lzo GDB_CONF_FLAGS="--with-system-readline --with-system-zlib"
|
|
make ${makejobs} extensions
|
|
}
|
|
|
|
do_install() {
|
|
vbin crash
|
|
vman crash.8
|
|
vmkdir usr/lib/crash/extensions
|
|
for f in extensions/*.so; do
|
|
vinstall $f 0644 usr/lib/crash/extensions
|
|
done
|
|
}
|