2015-02-05 15:11:57 +00:00
|
|
|
# Template file for 'crash'
|
|
|
|
pkgname=crash
|
2015-07-14 10:57:07 +00:00
|
|
|
version=7.1.2
|
2015-05-28 11:34:40 +00:00
|
|
|
revision=1
|
2015-02-05 15:11:57 +00:00
|
|
|
build_style=gnu-makefile
|
|
|
|
hostmakedepends="flex"
|
2015-02-26 16:58:06 +00:00
|
|
|
makedepends="ncurses-devel zlib-devel lzo-devel"
|
2015-02-05 15:11:57 +00:00
|
|
|
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-07-14 10:57:07 +00:00
|
|
|
checksum=037f3bdde8ad0602150f7a09a7a2870966b863d689e73e91d0d8d2a4cf28845e
|
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
|
2015-02-26 16:58:06 +00:00
|
|
|
sed -i 's|/boot/efi/redhat|/usr/lib/debug/boot/|g' filesys.c
|
2015-02-05 15:11:57 +00:00
|
|
|
}
|
|
|
|
do_build() {
|
2015-05-11 14:21:05 +00:00
|
|
|
make gdb_unzip
|
|
|
|
sed -i 's|sys/debugreg.h|asm/debugreg.h|g' gdb-7.6/gdb/amd64-linux-nat.c
|
|
|
|
|
2015-02-26 16:58:06 +00:00
|
|
|
make ${makejobs} lzo
|
2015-02-05 15:11:57 +00:00
|
|
|
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
|
|
|
|
}
|