New package: crash-7.0.9

This commit is contained in:
Christian Neukirchen 2015-02-05 16:11:57 +01:00
parent a73a4ca791
commit 08efd44db0

34
srcpkgs/crash/template Normal file
View file

@ -0,0 +1,34 @@
# Template file for 'crash'
pkgname=crash
version=7.0.9
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"
checksum=fb44255a50fe488e36a53654b030d641d5e77319f0b6dbf1bb07b6647ca80532
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
}