void-packages/srcpkgs/makedumpfile/template
2016-06-09 12:03:42 +02:00

30 lines
920 B
Bash

# Template file for 'makedumpfile'
pkgname=makedumpfile
version=1.6.0
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"
checksum=e3147abc52df2ceac1e9affef45bf37e2f2e1d9979bc94a761ee11e4044072ac
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]*= @& $(CF) @' Makefile
}
do_build() {
make CC="$CC" LD="$LD" CF="$CFLAGS -D_GNU_SOURCE" \
LDFLAGS="$LDFLAGS" LINKTYPE=dynamic USELZO=on
}
do_install() {
vbin makedumpfile
vbin makedumpfile-R.pl
vsconf makedumpfile.conf
vman makedumpfile.8
vman makedumpfile.conf.5
}