aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-03-26 19:57:33 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-04-05 00:18:52 +0200
commitd7fc32809816972c92fec9d18c889522ad23caf0 (patch)
treed582c209732dd0f899459d7b43f0572162883d08
parent7ed29986213dcd1403e649403c4a9478c80b2cbb (diff)
downloadaports-d7fc32809816972c92fec9d18c889522ad23caf0.tar.bz2
aports-d7fc32809816972c92fec9d18c889522ad23caf0.tar.xz
main/iptables: upgrade to 1.6.1
-rw-r--r--main/iptables/APKBUILD38
1 files changed, 11 insertions, 27 deletions
diff --git a/main/iptables/APKBUILD b/main/iptables/APKBUILD
index 4fd5168674..32a3ccff71 100644
--- a/main/iptables/APKBUILD
+++ b/main/iptables/APKBUILD
@@ -1,39 +1,33 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iptables
-pkgver=1.6.0
+pkgver=1.6.1
pkgrel=0
pkgdesc="Linux kernel firewall, NAT and packet mangling tools"
url="http://www.netfilter.org/projects/iptables/index.html"
arch="all"
license="GPL2+"
+depends_dev="linux-headers"
+makedepends="$depends_dev libnftnl-dev bison flex autoconf automake"
+subpackages="ip6tables $pkgname-doc $pkgname-dev"
source="http://ftp.netfilter.org/pub/iptables/iptables-$pkgver.tar.bz2
iptables-1.6.0-musl-fixes.patch
-
iptables.initd
iptables.confd
ip6tables.confd
"
+builddir="$srcdir/$pkgname-$pkgver"
-depends_dev="linux-headers"
-makedepends="$depends_dev libnftnl-dev bison flex autoconf automake"
-subpackages="ip6tables $pkgname-doc $pkgname-dev"
-
-_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
- local i
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare || return 1
+
+ cd "$builddir"
sed -i -e '/if_packet/i#define __aligned_u64 __u64 __attribute__((aligned(8)))' \
extensions/libxt_pkttype.c || return 1
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
./configure \
--build=$CBUILD \
@@ -53,7 +47,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make -j1 install DESTDIR="$pkgdir" || return 1
mkdir -p "$pkgdir"/usr/include/libiptc \
@@ -86,17 +80,7 @@ ip6tables() {
install -m644 "$startdir"/ip6tables.confd "$subpkgdir"/etc/conf.d/ip6tables
}
-md5sums="27ba3451cb622467fc9267a176f19a31 iptables-1.6.0.tar.bz2
-92fcad4dc7b3e34d5bf944f53e34563b iptables-1.6.0-musl-fixes.patch
-2e8175456a98221c0be9b758d064ee09 iptables.initd
-c91286c54f8fe0de6ed8950f375cb7a5 iptables.confd
-d3f37ebc2cd3fbfc326c3a8df5a79e11 ip6tables.confd"
-sha256sums="4bb72a0a0b18b5a9e79e87631ddc4084528e5df236bc7624472dcaa8480f1c60 iptables-1.6.0.tar.bz2
-0b7c73ebbb1f207ff6a1d36cb460b654eda7993eda9053fd469a493cae310d80 iptables-1.6.0-musl-fixes.patch
-f297f985ad35fe45800f0c1c7aaf348c3fa920b97be2020c76983ab54e384ba0 iptables.initd
-421acbcd310f9c51e20e22e59af9452b1ba5d0db33e8960eba0095271060c3db iptables.confd
-31ef5d759c64afd0ecbcb56b3982ed2bdb5ed9c8553c628c13d4a3b5687118a3 ip6tables.confd"
-sha512sums="60360910db76e3265fb7b6456a55b91708263bde9c4e5b9cadf3832d2e2a9db3e6cb60c82e278ea0672618bd5c9566c374e00d19d35a2e8f330116c3ab6aaf51 iptables-1.6.0.tar.bz2
+sha512sums="12280db6e6ef8e68da2537e9da59fc601790fd02b1ba38a37c90dbb56272018329dccb8be995f96ecd5d94fafa6043204f3e8f8ee96531685d9e3c55359d2ee8 iptables-1.6.1.tar.bz2
e79344cab67c4fa0449dfeef6d1504bcd41d16d595010a18a7d9e75eba46021617d31fbb79c62894fd35898ec643b542a6111b06d405c79ffff41a3078327b62 iptables-1.6.0-musl-fixes.patch
059b3bd8dd7dec60060ec5eb1e639fe8203207629f3a7dd4fdbe5ebca3f7e9b80df5592ebb27542e31830fd15a53cffac5772567053c104dfccf9b78613a31a1 iptables.initd
cb7fecd5cab2c78bd3f215a41f39ec11c37eb360efbe83982378a0e647e0aa9dc0b7ec915a5b5081aa2f7747464787e69404aa15ba15a063c32cb8fb7dd13d1e iptables.confd