summaryrefslogtreecommitdiff
path: root/experimental/kpartx/APKBUILD
diff options
context:
space:
mode:
authorCyberLeo <cyberleo@cyberleo.net>2020-07-31 00:04:37 -0500
committerCyberLeo <cyberleo@cyberleo.net>2020-07-31 00:04:37 -0500
commitd1dd9c3794f6f642a78ef33a92975129bb361d5a (patch)
treeb99448f60ea80be778195b1e2622b4992dab5ef0 /experimental/kpartx/APKBUILD
parent2bdcd9fb0c71520072d4da99f49149630bd2f1fa (diff)
downloadpackages-d1dd9c3794f6f642a78ef33a92975129bb361d5a.tar.gz
packages-d1dd9c3794f6f642a78ef33a92975129bb361d5a.tar.bz2
packages-d1dd9c3794f6f642a78ef33a92975129bb361d5a.tar.xz
packages-d1dd9c3794f6f642a78ef33a92975129bb361d5a.zip
experimental/kpartx: new port
Diffstat (limited to 'experimental/kpartx/APKBUILD')
-rw-r--r--experimental/kpartx/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/experimental/kpartx/APKBUILD b/experimental/kpartx/APKBUILD
new file mode 100644
index 000000000..00a4c909c
--- /dev/null
+++ b/experimental/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; part of linux multipath-tools."
+url="http://christophe.varoqui.free.fr/"
+arch="all"
+options="!check" # Requires root and loopback kernel module.
+license="LGPL-2.0"
+depends=""
+makedepends="lvm2-dev"
+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"
+
+build() {
+ cd kpartx
+ make kpartx
+}
+
+check() {
+ cd kpartx
+ ./test-kpartx
+}
+
+package() {
+ cd kpartx
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="130308e61d6dce31085fc2763219f4df0f3ad9153e0e6e7a5a1c3c948a2305cff9413699025c28f9b81dd24d2a9263f9fa825253060e44232c3bb6600cd1f07f multipath-tools-0.8.4.tar.gz"