diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2011-07-05 19:40:43 +0200 |
---|---|---|
committer | Fabian Affolter <fabian@bernewireless.net> | 2011-07-05 19:40:43 +0200 |
commit | 7f9851115264bca9bce3926ddb29e533a23929dd (patch) | |
tree | b0426fc489e4dad582f34b25d6f93354a65f5c0f /main/multipath-tools/APKBUILD | |
parent | 5dac3f219058736f6e19b7bec2b1cc2b1b300981 (diff) | |
parent | 269fc1049583d36e07153215fe535f88947ea98b (diff) | |
download | aports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.bz2 aports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.xz |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'main/multipath-tools/APKBUILD')
-rw-r--r-- | main/multipath-tools/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/multipath-tools/APKBUILD b/main/multipath-tools/APKBUILD new file mode 100644 index 0000000000..5355205dbe --- /dev/null +++ b/main/multipath-tools/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname="multipath-tools" +pkgver=0.4.9 +pkgrel=2 +pkgdesc="Device Mapper Multipathing Driver" +url="http://christophe.varoqui.free.fr/" +arch="all" +license="GPL" +depends= +makedepends="lvm2-dev libaio-dev readline-dev ncurses-dev udev-dev" +install= +subpackages="$pkgname-doc" +source="http://christophe.varoqui.free.fr/$pkgname/$pkgname-$pkgver.tar.bz2 + multipath-tools-0.4.9-build.patch + multipath-tools-0.4.8-kparted-ext-partitions.patch" + +_builddir="$srcdir" + +prepare() { + cd $_builddir + find . -name Makefile -exec sed -i -e 's/glibc/uclibc/g' {} \; + for i in ../*.patch + do + msg "Applying $i" + patch -p1 < $i || return 1 + done +} + +build() { + cd $_builddir + make -j1 prefix="/usr" \ + sysconfdir="/etc" \ + mandir="/usr/share/man" \ + infodir="/usr/share/info" || return 1 +} + +package() { + cd $_builddir + make DESTDIR="$pkgdir" install + install -D -m644 ../$pkgname.conf $pkgdir/etc/multipath.conf + install -D -m755 ../$pkgname.initd $pkgdir/etc/init.d/multipathd +} + +md5sums="a6d4b48afc28f1f50f5ee4b1b06d2765 multipath-tools-0.4.9.tar.bz2 +751a7e079fef26cced73e2fc31ad7f11 multipath-tools-0.4.9-build.patch +68ea053e02e9f5c4883b24b3f9bb2bf1 multipath-tools-0.4.8-kparted-ext-partitions.patch" |