void-packages/srcpkgs/crash/template

35 lines
924 B
Text
Raw Normal View History

2015-02-05 15:11:57 +00:00
# Template file for 'crash'
pkgname=crash
2015-02-08 17:19:20 +00:00
version=7.1.0
2015-02-05 15:11:57 +00:00
revision=1
build_style=gnu-makefile
hostmakedepends="flex"
makedepends="ncurses-devel zlib-devel"
short_desc="Kernel crash dump debugger and live inspector"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-3"
homepage="http://people.redhat.com/anderson/"
distfiles="http://people.redhat.com/anderson/${pkgname}-${version}.tar.gz"
2015-02-08 17:19:20 +00:00
checksum=12e17267985ad1339b5da931143d4997fa4dafb82027d5664d4b7826175a21ec
2015-02-05 15:11:57 +00:00
nocross=yes
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
}
do_build() {
make ${makejobs}
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
}