blob: 881c34ae76fa800b701234b6c366bafae1443dd5 (
plain) (
tree)
|
|
# Contributor: CyberLeo <cyberleo@cyberleo.net>
# Maintainer: CyberLeo <cyberleo@cyberleo.net>
pkgname=kpartx
pkgver=0.8.4
pkgrel=0
pkgdesc="Manipulates device mappings for the partitions of any block device."
url="http://christophe.varoqui.free.fr/"
arch="all"
options="checkroot" # Requires root and loopback kernel module.
license="LGPL-2.0-only"
depends=""
makedepends="lvm2-dev"
checkdepends="debianutils-which"
subpackages="$pkgname-doc"
source="https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=refs/tags/$pkgver;sf=tgz;/multipath-tools-$pkgver.tar.gz"
builddir="$srcdir/multipath-tools-$pkgver/kpartx"
build() {
make kpartx
}
check() {
echo 'exec sleep "$(echo ${1} / 1000000.0 | bc)"' > usleep && chmod 755 usleep
PATH=$PATH:/sbin:/usr/sbin:$builddir ./test-kpartx
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="130308e61d6dce31085fc2763219f4df0f3ad9153e0e6e7a5a1c3c948a2305cff9413699025c28f9b81dd24d2a9263f9fa825253060e44232c3bb6600cd1f07f multipath-tools-0.8.4.tar.gz"
|