2014-08-21 22:28:00 +02:00
|
|
|
# Template file for 'kpartx'
|
|
|
|
pkgname=kpartx
|
|
|
|
version=0.5.0
|
2015-05-13 18:34:14 +02:00
|
|
|
revision=3
|
2015-04-13 11:37:25 +02:00
|
|
|
wrksrc=multipath-tools-${version}
|
|
|
|
build_wrksrc=$pkgname
|
2014-08-21 22:28:00 +02:00
|
|
|
build_style=gnu-makefile
|
|
|
|
make_install_args="libudevdir=/usr/lib/udev bindir=/usr/bin"
|
2015-05-13 18:34:14 +02:00
|
|
|
CFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLIBDM_API_COOKIE"
|
|
|
|
LDFLAGS="-ldevmapper"
|
2014-08-21 22:28:00 +02:00
|
|
|
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 18:34:14 +02: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
|
|
|
|
}
|