22 lines
835 B
Bash
22 lines
835 B
Bash
# Template file for 'kpartx'
|
|
pkgname=kpartx
|
|
version=0.8.8
|
|
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://github.com/opensvc/multipath-tools/archive/refs/tags/${version}.tar.gz"
|
|
checksum=ff45ddb18a1effbfbe5712f513dd3b7146c68141091fc1c2489af8d6197026ef
|
|
LDFLAGS="-ldevmapper"
|
|
CFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE -I../libmultipath"
|
|
|
|
post_extract() {
|
|
sed -i 's/__kernel_uint32_t/uint32_t/g' kpartx/solaris.c
|
|
sed -i 's,<sysmacros.h>,<sys/sysmacros.h>,g' kpartx/lopart.c
|
|
}
|