diff options
Diffstat (limited to 'main/lvm2')
-rw-r--r-- | main/lvm2/APKBUILD | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/main/lvm2/APKBUILD b/main/lvm2/APKBUILD index 1b0c3e1cdf..3377611850 100644 --- a/main/lvm2/APKBUILD +++ b/main/lvm2/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lvm2 pkgver=2.02.79 -pkgrel=1 +pkgrel=2 pkgdesc="Logical Volume Manager 2 utilities" url="http://sourceware.org/lvm2/" arch="x86 x86_64" @@ -12,7 +12,7 @@ source="ftp://sources.redhat.com/pub/$pkgname/LVM2.$pkgver.tgz lvm.initd lvm.confd " -subpackages="$pkgname-dev $pkgname-doc device-mapper:dm" +subpackages="$pkgname-dev $pkgname-doc device-mapper:dm $pkgname-libs" build () { cd "$srcdir"/LVM2.$pkgver @@ -25,6 +25,7 @@ build () { --disable-nls \ --disable-readline \ --enable-pkgconfig \ + --enable-applib \ CLDFLAGS="$LDFLAGS" \ || return 1 @@ -40,18 +41,23 @@ package() { install -d "$pkgdir"/etc/lvm/archive "$pkgdir"/etc/lvm/backup install -Dm755 "$srcdir"/lvm.initd "$pkgdir"/etc/init.d/lvm install -Dm644 "$srcdir"/lvm.confd "$pkgdir"/etc/conf.d/lvm - # some packages need this iin usr/lib cd "$pkgdir"/lib || return 1 ln -s libdevmapper.so.1.02 libdevmapper.so || return 1 } dm() { pkgdesc="Device mapper userspace library and tools from LVM2" - mkdir -p "$subpkgdir"/sbin - mv "$pkgdir"/lib "$subpkgdir"/ + mkdir -p "$subpkgdir"/sbin "$subpkgdir"/lib + mv "$pkgdir"/lib/libdevmapper.so.* "$subpkgdir"/lib/ mv "$pkgdir"/sbin/dm* "$subpkgdir"/sbin/ } +libs() { + pkgdesc="LVM2 shared libraries" + mkdir -p "$subpkgdir"/lib + mv "$pkgdir"/lib/liblvm2*.so.* "$subpkgdir"/lib/ +} + md5sums="e6929251a90b0b626c024942a242f337 LVM2.2.02.79.tgz 6f65f902cf19f144a42b8d6aceadf395 lvm.initd ec36d5fe4561220304e406c5c797e71f lvm.confd" |