Commit 13f43bba authored by Natanael Copa's avatar Natanael Copa

main/lvm2: subpackages for libdevmapper and libdevmapper-event

parent e5b02963
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lvm2
pkgver=2.02.168
pkgrel=1
pkgrel=2
pkgdesc="Logical Volume Manager 2 utilities"
url="http://sourceware.org/lvm2/"
arch="all"
license="GPL"
depends=
# lvm2 will dlopen libs so we need to add explicit depend
depends="lvm2-libs=$pkgver-r$pkgrel"
depends_dev="linux-headers"
makedepends_build="coreutils"
makedepends_host="$depends_dev"
......@@ -25,6 +26,8 @@ subpackages="
$pkgname-doc
$pkgname-dmeventd
device-mapper:dm
device-mapper-libs:dm_libs
device-mapper-event-libs:dm_event_libs
$pkgname-libs
$pkgname-extra
"
......@@ -82,16 +85,28 @@ dmeventd() {
dm() {
pkgdesc="Device mapper userspace library and tools from LVM2"
mkdir -p "$subpkgdir"/sbin "$subpkgdir"/lib
mv "$pkgdir"/lib/libdevmapper.so.* "$subpkgdir"/lib/
mv "$pkgdir"/sbin/dm* "$subpkgdir"/sbin/
}
libs() {
pkgdesc="LVM2 shared libraries"
depends=
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/liblvm2*.so.* "$subpkgdir"/lib/ || return 1
mv "$pkgdir"/lib/libdevmapper-event-lvm2*.so.* "$subpkgdir"/lib/ || return 1
mv "$pkgdir"/lib/device-mapper "$subpkgdir"/lib/ || return 1
}
dm_libs() {
pkgdesc="Device-mapper shared library"
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/libdevmapper.so.* "$subpkgdir"/lib/
}
dm_event_libs() {
pkgdesc="Device-mapper event daemon shared library"
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/liblvm2*.so.* "$subpkgdir"/lib/
mv "$pkgdir"/lib/libdevmapper-event*.so.* "$subpkgdir"/lib/
mv "$pkgdir"/lib/device-mapper "$subpkgdir"/lib/
mv "$pkgdir"/lib/libdevmapper-event.so.* "$subpkgdir"/lib/
}
extra() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment