void-packages/srcpkgs/kpartx/template

23 lines
816 B
Bash
Raw Normal View History

# Template file for 'kpartx'
pkgname=kpartx
version=0.5.0
2015-05-13 16:34:14 +00:00
revision=3
2015-04-13 09:37:25 +00:00
wrksrc=multipath-tools-${version}
build_wrksrc=$pkgname
build_style=gnu-makefile
make_install_args="libudevdir=/usr/lib/udev bindir=/usr/bin"
2015-05-13 16:34:14 +00:00
CFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE"
LDFLAGS="-ldevmapper"
makedepends="device-mapper-devel"
short_desc="Create device maps from partition tables"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://christophe.varoqui.free.fr/"
distfiles="http://christophe.varoqui.free.fr/multipath-tools/multipath-tools-${version}.tar.bz2"
checksum=f13cf1eb84e94e83b2019e68f7965526903c13e94246db43965d181668a0a6f9
2015-05-13 16:34:14 +00:00
post_extract() {
sed -i 's/daddr_t/uint32_t/g' kpartx/solaris.c
sed -i 's,<sysmacros.h>,<sys/sysmacros.h>,g' kpartx/lopart.c
}