aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Migacz <jacekmigacz@gmail.com>2020-07-06 17:47:15 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-09-20 20:09:39 +0000
commitabaf1ee5fcf1ecc5ad68edfb51bb66280960ac7d (patch)
tree564d92473ef0eb1f68f3490baf8e754bb27f9fa4
parent983fa60fc4fd5b3f3dbc68ee6354046641f6b703 (diff)
downloadaports-abaf1ee5fcf1ecc5ad68edfb51bb66280960ac7d.tar.gz
aports-abaf1ee5fcf1ecc5ad68edfb51bb66280960ac7d.tar.bz2
aports-abaf1ee5fcf1ecc5ad68edfb51bb66280960ac7d.tar.xz
main/lvm2: add devmapper-static subpackage
-rw-r--r--main/lvm2/APKBUILD31
1 files changed, 27 insertions, 4 deletions
diff --git a/main/lvm2/APKBUILD b/main/lvm2/APKBUILD
index 9d08323f2b..6c78d0cd58 100644
--- a/main/lvm2/APKBUILD
+++ b/main/lvm2/APKBUILD
@@ -1,7 +1,8 @@
+# Contributor: Jacek Migacz <jacekmigacz@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lvm2
pkgver=2.02.187
-pkgrel=0
+pkgrel=1
pkgdesc="Logical Volume Manager 2 utilities"
url="https://sourceware.org/lvm2/"
arch="all"
@@ -23,13 +24,16 @@ source="https://mirrors.kernel.org/sourceware/lvm2/LVM2.$pkgver.tgz
dmeventd.initd
"
subpackages="
+ $pkgname-static:lvm2_static
+ device-mapper-static:dm_static
+ device-mapper-libs:dm_libs
+ device-mapper-event-static:dm_event_static
+ device-mapper-event-libs:dm_event_libs
$pkgname-dev
$pkgname-doc
$pkgname-dmeventd
$pkgname-openrc
device-mapper:dm
- device-mapper-libs:dm_libs
- device-mapper-event-libs:dm_event_libs
device-mapper-udev:udev:noarch
$pkgname-libs
$pkgname-extra::noarch
@@ -50,6 +54,7 @@ build() {
--libdir=/lib \
--sbindir=/sbin \
--localstatedir=/var \
+ --enable-static_link \
--disable-nls \
--disable-readline \
--enable-pkgconfig \
@@ -81,9 +86,15 @@ dmeventd() {
install -Dm755 "$srcdir"/dmeventd.initd "$subpkgdir"/etc/init.d/dmeventd
}
+dm_static() {
+ pkgdesc="Device-mapper static library"
+ mkdir -p "$subpkgdir"/lib
+ mv "$pkgdir"/usr/lib/libdevmapper.a "$subpkgdir"/lib/
+}
+
dm() {
pkgdesc="Device mapper userspace library and tools from LVM2"
- mkdir -p "$subpkgdir"/sbin "$subpkgdir"/lib
+ mkdir -p "$subpkgdir"/sbin
mv "$pkgdir"/sbin/dm* "$subpkgdir"/sbin/
}
@@ -118,6 +129,18 @@ dm_event_libs() {
mv "$pkgdir"/lib/libdevmapper-event.so.* "$subpkgdir"/lib/
}
+dm_event_static() {
+ pkgdesc="Device-mapper event daemon static library"
+ mkdir -p "$subpkgdir"/lib
+ mv "$pkgdir"/usr/lib/libdevmapper-event.a "$subpkgdir"/lib/
+}
+
+lvm2_static() {
+ pkgdesc="$pkgdesc static library"
+ mkdir -p "$subpkgdir"/lib
+ mv "$pkgdir"/usr/lib/liblvm2*.a "$subpkgdir"/lib/
+}
+
extra() {
pkgdesc="LVM2 extra utilities"
depends="bash coreutils"