void-packages/srcpkgs/makedumpfile/template

30 lines
907 B
Bash

# Template file for 'makedumpfile'
pkgname=makedumpfile
version=1.5.9
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=47d16312b3226f6d1a1e6548e22c33d00e8851fedab793d97da8d3c0a6205d4a
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
}
do_install() {
vbin makedumpfile
vbin makedumpfile-R.pl
vsconf makedumpfile.conf
vman makedumpfile.8
vman makedumpfile.conf.5
}