summaryrefslogtreecommitdiffstats
path: root/testing/multipath-tools/APKBUILD
blob: 471d9de2c51f90101f16a8cdf7e9d4e2eb4049ea (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
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname="multipath-tools"
pkgver=0.4.8
pkgrel=2
pkgdesc="Device Mapper Multipathing Driver"
url="http://christophe.varoqui.free.fr/"
license="GPL"
depends=
makedepends="lvm2-dev libaio-dev readline-dev"
install=
subpackages="$pkgname-doc"
source="http://christophe.varoqui.free.fr/$pkgname/$pkgname-$pkgver.tar.bz2
	Makefile.patch"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	patch Makefile < ../Makefile.patch || return 1
	find . -name Makefile -exec sed -i -e 's/glibc/uclibc/g' {} \;

	make -j1 \
		prefix="/usr" \
		sysconfdir="/etc" \
		mandir="/usr/share/man" \
		infodir="/usr/share/info" || return 1
	make DESTDIR="$pkgdir" install
}

md5sums="3563b863b408d07c46929b6e8c2c248c  multipath-tools-0.4.8.tar.bz2
92318268d20a9622cdb9909d153c4ccd  Makefile.patch"