diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-23 16:09:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-23 16:09:38 +0000 |
commit | a3b37e16fd90c75a484db83358b80139b7e0f565 (patch) | |
tree | a717cc41c273c754aaf4f8c314649c93defd710a /testing/iproute2/APKBUILD | |
parent | c10851d3261a20fb22c256dd1eb8079b6e6891d3 (diff) | |
download | aports-a3b37e16fd90c75a484db83358b80139b7e0f565.tar.bz2 aports-a3b37e16fd90c75a484db83358b80139b7e0f565.tar.xz |
testing/iproute2: test of xfrm mark patch
I had to rebase the patch
Diffstat (limited to 'testing/iproute2/APKBUILD')
-rw-r--r-- | testing/iproute2/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/iproute2/APKBUILD b/testing/iproute2/APKBUILD new file mode 100644 index 0000000000..1ef20dde09 --- /dev/null +++ b/testing/iproute2/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=iproute2 +pkgver=2.6.31 +_realver=2.6.31 +pkgrel=0 +pkgdesc="IP Routing Utilities" +url="http://www.linux-foundation.org/en/Net:Iproute2" +license="GPL2" +depends= +install="$pkgname.post-install $pkgname.post-deinstall" +makedepends="bison flex bash" +subpackages="$pkgname-doc" +source="http://devresources.linux-foundation.org/dev/iproute2/download/$pkgname-$_realver.tar.bz2 + 0001-xfrm-mark.patch" + +prepare() { + cd "$srcdir"/$pkgname-$_realver + + patch -p1 -i "$srcdir"/0001-xfrm-mark.patch || return 1 + sed -i '/^TARGETS=/s: arpd : :' misc/Makefile + sed -i 's:/usr/local:/usr:' tc/m_ipt.c include/iptables.h || return 1 + sed -i 's:=/share:=/usr/share:' Makefile || return 1 +} + +build() { + cd "$srcdir"/$pkgname-$_realver + ./configure || return 1 + make CCOPTS="-D_GNU_SOURCE $CFLAGS" LIBDIR=/lib || return 1 +} + +package() { + cd "$srcdir"/$pkgname-$_realver + make -j1 DESTDIR="$pkgdir" install +} + +md5sums="230f35282a95451622f3e8394f9cd80a iproute2-2.6.31.tar.bz2 +f32fc320c0b5640d3f4d511d7c763f46 0001-xfrm-mark.patch" |