diff options
author | CyberLeo <cyberleo@cyberleo.net> | 2020-08-08 21:02:22 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2020-08-08 21:02:22 +0000 |
commit | e95748c9053ef90cb89e67f15d52e45e7f80fe7f (patch) | |
tree | a342208476bbb2c258520e93b0f22ae80be4c4cc /user/kpartx/APKBUILD | |
parent | 3de73cb6e35941541d5689c0ab0d2ecacb85005e (diff) | |
download | packages-e95748c9053ef90cb89e67f15d52e45e7f80fe7f.tar.gz packages-e95748c9053ef90cb89e67f15d52e45e7f80fe7f.tar.bz2 packages-e95748c9053ef90cb89e67f15d52e45e7f80fe7f.tar.xz packages-e95748c9053ef90cb89e67f15d52e45e7f80fe7f.zip |
user/kpartx: New package
Diffstat (limited to 'user/kpartx/APKBUILD')
-rw-r--r-- | user/kpartx/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/user/kpartx/APKBUILD b/user/kpartx/APKBUILD new file mode 100644 index 000000000..e1e0feddb --- /dev/null +++ b/user/kpartx/APKBUILD @@ -0,0 +1,32 @@ +# 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="!check" # Requires root and loopback/dm-mod kernel modules. +license="LGPL-2.0-only" +depends="" +makedepends="lvm2-dev" +checkdepends="debianutils-which parted" +subpackages="$pkgname-doc" +source="multipath-tools-$pkgver.tar.gz::https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=refs/tags/$pkgver;sf=tgz;/multipath-tools-$pkgver.tar.gz +test-kpartx" +builddir="$srcdir/multipath-tools-$pkgver/kpartx" + +build() { + make kpartx +} + +check() { + sudo KPARTX="${builddir}/kpartx" WAIT_US=1000000 "${srcdir}/test-kpartx" +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="130308e61d6dce31085fc2763219f4df0f3ad9153e0e6e7a5a1c3c948a2305cff9413699025c28f9b81dd24d2a9263f9fa825253060e44232c3bb6600cd1f07f multipath-tools-0.8.4.tar.gz +2e3702243bfc52df7353cc828fb03e3dff36eddbf77eb13140fd58d857c3d45990c679c535c00c569e5a5412ad3823717e264449c038ebf1726a4e7adc08e06e test-kpartx" |