void-packages/srcpkgs/kpartx/template
2018-11-30 12:03:29 -02:00

22 lines
835 B
Bash

# Template file for 'kpartx'
pkgname=kpartx
version=0.7.9
revision=1
wrksrc="multipath-tools-${version}"
build_wrksrc=kpartx
build_style=gnu-makefile
make_install_args="libudevdir=/usr/lib/udev bindir=/usr/bin"
makedepends="device-mapper-devel"
short_desc="Create device maps from partition tables"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="http://christophe.varoqui.free.fr/"
distfiles="https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=refs/tags/${version}>kpartx-${version}.tar.gz"
checksum=5537996bc053d059f28343ce00b5d722a0ff42aac28110a5429a67259fb50c12
LDFLAGS="-ldevmapper"
CFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE"
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
}