APKBUILD 1.27 KB
Newer Older
Leonardo Arena's avatar
Leonardo Arena committed
1
2
3
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname="multipath-tools"
4
pkgver=0.4.9
5
pkgrel=2
Leonardo Arena's avatar
Leonardo Arena committed
6
7
pkgdesc="Device Mapper Multipathing Driver"
url="http://christophe.varoqui.free.fr/"
Natanael Copa's avatar
Natanael Copa committed
8
arch="x86 x86_64"
Leonardo Arena's avatar
Leonardo Arena committed
9
license="GPL"
10
depends=
11
makedepends="lvm2-dev libaio-dev readline-dev ncurses-dev udev-dev"
Leonardo Arena's avatar
Leonardo Arena committed
12
13
14
install=
subpackages="$pkgname-doc"
source="http://christophe.varoqui.free.fr/$pkgname/$pkgname-$pkgver.tar.bz2
15
	multipath-tools-0.4.9-build.patch
16
	multipath-tools-0.4.8-kparted-ext-partitions.patch"
Leonardo Arena's avatar
Leonardo Arena committed
17

18
_builddir="$srcdir"
Leonardo Arena's avatar
Leonardo Arena committed
19

20
21
prepare() {
	cd $_builddir
Leonardo Arena's avatar
Leonardo Arena committed
22
	find . -name Makefile -exec sed -i -e 's/glibc/uclibc/g' {} \;
23
24
25
26
27
28
	for i in ../*.patch
	do
		msg "Applying $i"
		patch -p1 < $i || return 1
	done
}
Leonardo Arena's avatar
Leonardo Arena committed
29

30
31
32
build() {
	cd $_builddir
	make -j1 prefix="/usr" \
33
34
35
		sysconfdir="/etc" \
		mandir="/usr/share/man" \
		infodir="/usr/share/info" || return 1
36
37
38
39
}

package() {
	cd $_builddir
Leonardo Arena's avatar
Leonardo Arena committed
40
	make DESTDIR="$pkgdir" install
41
42
	install -D -m644 ../$pkgname.conf $pkgdir/etc/multipath.conf
	install -D -m755 ../$pkgname.initd $pkgdir/etc/init.d/multipathd
Leonardo Arena's avatar
Leonardo Arena committed
43
44
}

45
46
md5sums="a6d4b48afc28f1f50f5ee4b1b06d2765  multipath-tools-0.4.9.tar.bz2
751a7e079fef26cced73e2fc31ad7f11  multipath-tools-0.4.9-build.patch
47
68ea053e02e9f5c4883b24b3f9bb2bf1  multipath-tools-0.4.8-kparted-ext-partitions.patch"