# Maintainer: Natanael Copa pkgname=lvm2 pkgver=2.02.99 pkgrel=0 pkgdesc="Logical Volume Manager 2 utilities" url="http://sourceware.org/lvm2/" arch="all" license="GPL" depends= makedepends="pkgconfig" source="ftp://sources.redhat.com/pub/$pkgname/LVM2.$pkgver.tgz lvm.initd lvm.confd " subpackages="$pkgname-dev $pkgname-doc device-mapper:dm $pkgname-libs" build () { cd "$srcdir"/LVM2.$pkgver ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --libdir=/lib \ --sbindir=/sbin \ --localstatedir=/var \ --disable-nls \ --disable-readline \ --enable-pkgconfig \ --enable-applib \ CLDFLAGS="$LDFLAGS" \ || return 1 # TODO: fix parallel builds make -j1 || return 1 } package() { cd "$srcdir"/LVM2.$pkgver make -j1 DESTDIR="$pkgdir" \ install || return 1 #usrlibdir="$pkgdir"/lib \ 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 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 "$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="8600d999d04d826138d9fbb5d2d8cc34 LVM2.2.02.99.tgz 260dba1a691ea2ae86a3c49b39f1dd7d lvm.initd ec36d5fe4561220304e406c5c797e71f lvm.confd" sha256sums="493c9ad85bada036418671072355b2fc57fc30eb5a63fd14a7dfe8ed28dca040 LVM2.2.02.99.tgz 0be9b5503c4713fb848ad050ac4e57138770d72d639f536d32cc1a77b1ecc221 lvm.initd e2ff57977ace6098e1a2efc8a1f6796e8bf6e5dd148e4c105bb647ffc6f79230 lvm.confd" sha512sums="665c8be867b44a258e37e12f2202352dfe0d4b7a5018e041ef01ce53d59b88dd96195943f12bd6915ebadbc605340de138bb2268527fd830d35deb4d43ab561b LVM2.2.02.99.tgz 97bd0524b3982e54cc41cec7d9cc2433d30f49175eeca95661f25906e414885d512ba21de3bbbca4a9c5496ba69b0aac9d977168d6e76f95d70ae37f3a3f65c7 lvm.initd 07caf8fa942290f3c953cc2463aaf55bac01d0bcb9351daf3880fa4d0eefb67fe00761c46a7a4da91cd2f8e492a12fed35853a15dc939cd80d19d3303bc3951d lvm.confd"