summaryrefslogtreecommitdiffstats
path: root/main/libvirt/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-05 11:00:35 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-05 11:04:02 +0100
commit5949f936379d49aee62e08ed7a81b6c61a984a1b (patch)
treee7de3694da073865c974a4ea724b19dc27bddba8 /main/libvirt/APKBUILD
parent58c9ae525a1d2de4edfc273a4f0ae34448daf3c6 (diff)
downloadaports-5949f936379d49aee62e08ed7a81b6c61a984a1b.tar.bz2
aports-5949f936379d49aee62e08ed7a81b6c61a984a1b.tar.xz
main/libvirt: add support for SNAT/publicaddr
Patches sent upstream: http://www.mail-archive.com/libvir-list@redhat.com/msg67516.html
Diffstat (limited to 'main/libvirt/APKBUILD')
-rw-r--r--main/libvirt/APKBUILD21
1 files changed, 14 insertions, 7 deletions
diff --git a/main/libvirt/APKBUILD b/main/libvirt/APKBUILD
index 623141fd1..8fb430c2f 100644
--- a/main/libvirt/APKBUILD
+++ b/main/libvirt/APKBUILD
@@ -4,7 +4,7 @@ vmajor="1.0.0"
vminor=""
pkgver="${vmajor}"
_ver="${pkgver/_rc/-rc}"
-pkgrel=1
+pkgrel=2
pkgdesc="A virtualization API for several hypervisor and container systems"
url="http://libvirt.org/"
arch="all"
@@ -23,17 +23,22 @@ source="http://libvirt.org/sources/$pkgname-$pkgver.tar.gz
libvirt.initd
uclibc-physmem.patch
libvirt-1.0.0-remove-uclibc-mkostemp-redefine.patch
+ 0001-util-refactor-iptables-command-construction-into-mul.patch
+ 0001-net-support-set-public-ip-for-forward-mode-nat.patch
"
_builddir="$srcdir"/$pkgname-$vmajor
prepare() {
cd "$_builddir"
- for patch in $(ls ../*.patch)
- do
- msg "Applying patch $patch"
- patch -p1 < ../$patch || return 1
- done
+ for patch in $source; do
+ case $patch in
+ *.patch)
+ msg "Applying patch $patch"
+ patch -p1 -i "$srcdir"/$patch || return 1
+ ;;
+ esac
+ done
}
build() {
@@ -129,4 +134,6 @@ md5sums="7c8b006de7338e30866bb56738803b21 libvirt-1.0.0.tar.gz
1c84a7baeafe0a7f4e9d7ae5180311b7 libvirt.confd
d897df38c7e7fa1a297aa551108633c9 libvirt.initd
df9cbfaf8a6e520a4822914a300add4d uclibc-physmem.patch
-e992133db641b20cb43dda704518984d libvirt-1.0.0-remove-uclibc-mkostemp-redefine.patch"
+e992133db641b20cb43dda704518984d libvirt-1.0.0-remove-uclibc-mkostemp-redefine.patch
+671eb364f071e67f58ab2c01ec357567 0001-util-refactor-iptables-command-construction-into-mul.patch
+20ef9eab94e9a52aa401ddbcb066aeb2 0001-net-support-set-public-ip-for-forward-mode-nat.patch"