diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-28 07:32:39 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-28 08:04:00 +0000 |
commit | 4786c5d2e74ac2458d433e0e5ce9f5ba86d8a3e2 (patch) | |
tree | 2cd4ebba69977f708c730a5ff63818801201e05c | |
parent | 4f6d3b0eedc95bc3c83b1cbc96027f9380abd0c0 (diff) | |
download | aports-4786c5d2e74ac2458d433e0e5ce9f5ba86d8a3e2.tar.bz2 aports-4786c5d2e74ac2458d433e0e5ce9f5ba86d8a3e2.tar.xz |
main/lvm2: enable applib
-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 1b0c3e1cd..337761185 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" |