# Maintainer: Leonardo Arena pkgname=multipath-tools pkgver=0.8.2 pkgrel=1 pkgdesc="Device Mapper Multipathing Driver" url="http://christophe.varoqui.free.fr" arch="all" license="GPL" depends="eudev" makedepends="lvm2-dev libaio-dev readline-dev ncurses-dev eudev-dev userspace-rcu-dev json-c-dev perl" subpackages="$pkgname-doc $pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://git.opensvc.com/gitweb.cgi?p=$pkgname/.git;a=snapshot;h=$pkgver;sf=tgz multipath-tools.conf multipath-tools.confd multipath-tools.initd fix-unknown-mode_t.patch " options="!check" builddir="$srcdir/multipath-tools" prepare() { # Rename unpacked directory with hash in the name to something sane... mv "$srcdir"/multipath-tools-$pkgver-* "$builddir" default_prepare } build() { cd $builddir make prefix="/usr" \ sysconfdir="/etc" \ mandir="/usr/share/man" \ infodir="/usr/share/info" } package() { cd $builddir make DESTDIR="$pkgdir" install install -D -m644 "$srcdir"/$pkgname.conf "$pkgdir"/etc/multipath.conf install -D -m644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/multipathd install -D -m755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/multipathd } sha512sums="c809e652479a8b6b141fd69810dbba316d93368ec6cf1c57f479ccde50e3ccf0bebe1b62e9db4791135aec45a90761f9100635f0ffa4b175ce9c2d82ebcea5c9 multipath-tools-0.8.2.tar.gz e81462b22c0cbc92ea935d7544b9f9a0c4ccbcf13f3bc03dadf6de96407c9cf49964c9bbf02f12a134e1255c66421c6fde39d54b15eef975e8df81bdc88b2213 multipath-tools.conf 303c62b7506b207ba2266310e7a701d76151e6f1544b44faf666dfabdc59c5aeb98544d380988e18b4a7b8235e4000380f025c4dd6c95d45a7b8b51bbf39dce5 multipath-tools.confd 1ca0a8be7ddd0d57b810ab4905bc35d6b89b924ef528a7ee77dad162b86b990e0b86ef714f63857def4a61e30bfabe7a3980f624d63b80108408dd876a7c468c multipath-tools.initd 079943d788d4ecf250a201f38cca4661c29499dd1ba9b74b471c66fe59785215fd096425d51e74664e5e68a21378179b081bc8d9503c7ed99bc3d7f785ecf8cd fix-unknown-mode_t.patch"