aboutsummaryrefslogtreecommitdiffstats
path: root/main/multipath-tools/APKBUILD
blob: 21020923ef69b35da1c57909f0ad32b7a4f3afec (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=multipath-tools
pkgver=0.8.3
pkgrel=4
pkgdesc="Device Mapper Multipathing Driver"
url="http://christophe.varoqui.free.fr"
arch="all"
license="GPL-2.0-only"
depends="eudev device-mapper"
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.initd
	multipathd.initd
	"
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 -m755 "$srcdir"/multipathd.initd \
		"$pkgdir"/etc/init.d/multipathd
	install -D -m755 "$srcdir"/multipath.initd \
		"$pkgdir"/etc/init.d/multipath
}

sha512sums="d9fdc2763f5a1efa15ee07c5d863008c9694623935f62a0e0b56f941df4e0d0ca3f86056fefc9b5ca828b47782127e3d55f2f925b1ed957e02b675bef36f4cae  multipath-tools-0.8.3.tar.gz
e81462b22c0cbc92ea935d7544b9f9a0c4ccbcf13f3bc03dadf6de96407c9cf49964c9bbf02f12a134e1255c66421c6fde39d54b15eef975e8df81bdc88b2213  multipath-tools.conf
97deeee57daee787d807da0a4dbf50baae047ddcda30925f7000ec822b5a17a3dc55196c3e032c8ffbc2caeac690ce5ca485b0a7c99f15e66bddaa000439112a  multipath.initd
2f913fed199f12f048eb042b5bb1a326f6f09cfe63d572ac269461d96ebf25b251576de22be7ba9ab631ded7af6fd47dac38fda3b29d00640c806181eb37447c  multipathd.initd"