aboutsummaryrefslogtreecommitdiffstats
path: root/main/multipath-tools/APKBUILD
blob: 2902e62137bbfff5774efed4444a678f37da2db5 (plain) (blame)
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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=multipath-tools
pkgver=0.8.5
pkgrel=0
pkgdesc="Device Mapper Multipathing Driver"
url="http://christophe.varoqui.free.fr"
arch="all"
license="LGPL-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=multipath-tools/.git;a=snapshot;h=$pkgver;sf=tgz
	multipath-tools.conf
	multipath.initd
	multipathd.initd
	0001-Disable-Werror-and-O2.patch
	"
options="!check"

prepare() {
	# Rename unpacked directory with hash in the name to something sane...
	mv "$srcdir"/multipath-tools-$pkgver-* "$builddir"

	default_prepare
}

build() {
	make -j1 prefix="/usr" \
		sysconfdir="/etc" \
		mandir="/usr/share/man" \
		infodir="/usr/share/info"
}

package() {
	make -j1 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
	install -D -m644 README.md \
		"$pkgdir"/usr/share/doc/$pkgname/README.md
	install -D -m644 README.alua \
		"$pkgdir"/usr/share/doc/$pkgname/README.alua
}

sha512sums="f62a09107ccb18ffab97139fe2dba3dc22450836d8669c4381a8bce4072672a027a3a1e687f33e374429bffa49b3ba4a54d1e52294044d7bc1f82ed5d5aaf760  multipath-tools-0.8.5.tar.gz
e81462b22c0cbc92ea935d7544b9f9a0c4ccbcf13f3bc03dadf6de96407c9cf49964c9bbf02f12a134e1255c66421c6fde39d54b15eef975e8df81bdc88b2213  multipath-tools.conf
97deeee57daee787d807da0a4dbf50baae047ddcda30925f7000ec822b5a17a3dc55196c3e032c8ffbc2caeac690ce5ca485b0a7c99f15e66bddaa000439112a  multipath.initd
2f913fed199f12f048eb042b5bb1a326f6f09cfe63d572ac269461d96ebf25b251576de22be7ba9ab631ded7af6fd47dac38fda3b29d00640c806181eb37447c  multipathd.initd
6dacba3833ab0f0bb6b8ba4d1a1fd8e7745b01ea22661f16fb654882c9b68db4b4cd6642ecbd77e37d913903eade9baf5185d4d6d454ccd00d5c0f16b3bba0d2  0001-Disable-Werror-and-O2.patch"