From 6e839b4ac894c261d71d19b776d5506132e03e87 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Wed, 27 Oct 2010 14:54:44 +0000 Subject: testing/multipath-tools: APKBUILD fixed and various patches added --- testing/multipath-tools/APKBUILD | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'testing/multipath-tools/APKBUILD') diff --git a/testing/multipath-tools/APKBUILD b/testing/multipath-tools/APKBUILD index bb6227f937d..7a059784c25 100644 --- a/testing/multipath-tools/APKBUILD +++ b/testing/multipath-tools/APKBUILD @@ -2,30 +2,48 @@ # Maintainer: Leonardo Arena pkgname="multipath-tools" pkgver=0.4.8 -pkgrel=3 +pkgrel=4 pkgdesc="Device Mapper Multipathing Driver" url="http://christophe.varoqui.free.fr/" license="GPL" depends= -makedepends="lvm2-dev libaio-dev readline-dev ncurses-dev" +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 - Makefile.patch" + multipath-tools-0.4.8-udev-scsi_id-changes.patch + multipath-tools-0.4.8-socket-cve-2009-0115.patch + multipath-tools-0.4.8-r1-kpartx.patch + multipath-tools-0.4.8-kparted-ext-partitions.patch" -build() { - cd "$srcdir/$pkgname-$pkgver" +_builddir="$srcdir/$pkgname-$pkgver" - patch Makefile < ../Makefile.patch || return 1 +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 +} - make -j1 \ - prefix="/usr" \ +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 ../../multipath.conf $pkgdir/etc/multipath.conf } md5sums="3563b863b408d07c46929b6e8c2c248c multipath-tools-0.4.8.tar.bz2 -92318268d20a9622cdb9909d153c4ccd Makefile.patch" +b39a63e65de16cf086618de6916bd98f multipath-tools-0.4.8-udev-scsi_id-changes.patch +2070c01a98d01833b9eee771fce3a22c multipath-tools-0.4.8-socket-cve-2009-0115.patch +0febb1f512681b8de8c2f0287e260efd multipath-tools-0.4.8-r1-kpartx.patch +68ea053e02e9f5c4883b24b3f9bb2bf1 multipath-tools-0.4.8-kparted-ext-partitions.patch" -- cgit v1.2.3