31 lines
922 B
Bash
31 lines
922 B
Bash
# Template file for 'makedumpfile'
|
|
pkgname=makedumpfile
|
|
version=1.6.1
|
|
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=0b6e73106998670407887de9e1a505b3a2dbb2fb517a4b968a665eda8fb097ce
|
|
|
|
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
|
|
}
|