aboutsummaryrefslogtreecommitdiffstats
path: root/main/multipath-tools/APKBUILD
blob: 368aa1708c3497518cfb7977a8c4930f1045cc3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="multipath-tools"
pkgver=0.5.0
pkgrel=3
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"
install=
subpackages="$pkgname-doc"
source="http://christophe.varoqui.free.fr/multipath-tools/multipath-tools-$pkgver.tar.bz2
	multipath-tools.conf
	multipath-tools.confd
	multipath-tools.initd

	sys-types.patch
	daddr_t.patch
	"

_builddir="$srcdir"/multipath-tools-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd $_builddir
	make prefix="/usr" \
		sysconfdir="/etc" \
		mandir="/usr/share/man" \
		infodir="/usr/share/info" || return 1
}

package() {
	cd $_builddir
	make DESTDIR="$pkgdir" install || return 1
	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
}

md5sums="faf261d4cc717bf4c979557dc7bf5f52  multipath-tools-0.5.0.tar.bz2
d364a5ef62c23da92d81baf90e7b6192  multipath-tools.conf
52dcde0446669e9d19813b28f3dd622b  multipath-tools.confd
e2032d8042fcc4b015b1dc1cc66cabe5  multipath-tools.initd
12f2c6235caa2cc0cbe97606ae379fff  sys-types.patch
9e7673f58a2b43798877396c4d9004fc  daddr_t.patch"
sha256sums="f13cf1eb84e94e83b2019e68f7965526903c13e94246db43965d181668a0a6f9  multipath-tools-0.5.0.tar.bz2
e5df29fc6cf01789db179e20aaac2705878975eb826157bd9f824a3f86a8dcd5  multipath-tools.conf
b13587b0865ea8c39f51e2177e4fbc0ada237408a5807fab836ff4b5ebcb3e37  multipath-tools.confd
bb7846f6c2bfdfb4ee50fe1965271909a9864b2b913d4892bb406d66f794ce9a  multipath-tools.initd
d7bd2b5e3de194a151aaf15de4a3b136a218d064b78539027e7f2fa4613072fb  sys-types.patch
cb6877ba73f7e8ed6efded8af902ecb16ee5be901149b3f771b5c6ccdb3fe452  daddr_t.patch"
sha512sums="dfad21c45d0f69e39041d30d203a582c8ee8329bf390c51cde10155b3de379e7ad8fead2ac4beb268a924fd7e7dc8e1cf538ea3c70d41479fd8786fa30ba22a9  multipath-tools-0.5.0.tar.bz2
e81462b22c0cbc92ea935d7544b9f9a0c4ccbcf13f3bc03dadf6de96407c9cf49964c9bbf02f12a134e1255c66421c6fde39d54b15eef975e8df81bdc88b2213  multipath-tools.conf
303c62b7506b207ba2266310e7a701d76151e6f1544b44faf666dfabdc59c5aeb98544d380988e18b4a7b8235e4000380f025c4dd6c95d45a7b8b51bbf39dce5  multipath-tools.confd
1ca0a8be7ddd0d57b810ab4905bc35d6b89b924ef528a7ee77dad162b86b990e0b86ef714f63857def4a61e30bfabe7a3980f624d63b80108408dd876a7c468c  multipath-tools.initd
bee0b1d18c0359a2c43719bd2cf7bc80ce073aa27e1315c9a9b9efa805474359df1b796dc832b0162a686b11b0d1aeb2c85b5bb2b36892dd472b53694c939cd4  sys-types.patch
526707621ca2747b07192824e1269a17c81ffb7c19606d45388bb80ae7da027f68c25edd53a690d1485d00fc4ce6dab646e097d53a33394860f6c9d5b072e463  daddr_t.patch"