diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-11-01 11:05:26 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-11-01 11:05:40 +0000 |
commit | c4fdd261576494d39f4a8ec5eba83f4c9783adc9 (patch) | |
tree | c866d32b33660a3146564c860f3f6d1ac6246d8c /main/multipath-tools/APKBUILD | |
parent | 0d8cb20c55849b5054bba180a9db7e1a6978ecce (diff) | |
download | aports-c4fdd261576494d39f4a8ec5eba83f4c9783adc9.tar.bz2 aports-c4fdd261576494d39f4a8ec5eba83f4c9783adc9.tar.xz |
testing/multipath-tools: move to main
Diffstat (limited to 'main/multipath-tools/APKBUILD')
-rw-r--r-- | main/multipath-tools/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/multipath-tools/APKBUILD b/main/multipath-tools/APKBUILD new file mode 100644 index 0000000000..621351ca4e --- /dev/null +++ b/main/multipath-tools/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Leonardo Arena <rnalrd@gmail.com> +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname="multipath-tools" +pkgver=0.4.8 +pkgrel=6 +pkgdesc="Device Mapper Multipathing Driver" +url="http://christophe.varoqui.free.fr/" +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.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" + +_builddir="$srcdir/$pkgname-$pkgver" + +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="3563b863b408d07c46929b6e8c2c248c multipath-tools-0.4.8.tar.bz2 +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" |