2015-02-26 12:04:13 +01:00
|
|
|
# Template file for 'makedumpfile'
|
|
|
|
pkgname=makedumpfile
|
2015-03-26 10:27:23 +01:00
|
|
|
version=1.5.8
|
2015-02-26 12:04:13 +01:00
|
|
|
revision=1
|
|
|
|
makedepends="elfutils-devel zlib-devel bzip2-devel liblzma-devel lzo-devel"
|
|
|
|
depends="perl"
|
|
|
|
short_desc="Make a small dumpfile of kdump"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://sourceforge.net/projects/makedumpfile/"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}-${version}.tar.gz"
|
2015-03-26 10:27:23 +01:00
|
|
|
checksum=dd9c6c40c1ae6774b61bbe7b53f5ebbee9734f576d8ecb75ffb929288f5ea64d
|
2015-02-26 12:04:13 +01:00
|
|
|
|
2015-06-22 12:12:47 +02:00
|
|
|
post_extract() {
|
|
|
|
sed -i '/#define PAGESIZE/i#undef PAGESIZE' makedumpfile.h
|
|
|
|
sed -i '1i#include <limits.h>' common.h
|
|
|
|
sed -i 's@CFLAGS\(\|_ARCH\)[ \t]*= @& '"$CFLAGS -D_GNU_SOURCE @" Makefile
|
|
|
|
}
|
|
|
|
do_build() {
|
|
|
|
make CC="$CC" LD="$LD" LDFLAGS="$LDFLAGS" LINKTYPE=dynamic USELZO=on
|
|
|
|
}
|
|
|
|
|
2015-02-26 12:04:13 +01:00
|
|
|
do_install() {
|
|
|
|
vbin makedumpfile
|
|
|
|
vbin makedumpfile-R.pl
|
|
|
|
vsconf makedumpfile.conf
|
|
|
|
vman makedumpfile.8
|
|
|
|
vman makedumpfile.conf.5
|
|
|
|
}
|