# Maintainer: Gabor Pali pkgname=iptables pkgver=1.8.10 pkgrel=0 # base: 3 pkgdesc="Linux kernel firewall, NAT and packet mangling tools" url="https://www.netfilter.org/projects/iptables/index.html" arch="all" license="GPL-2.0-or-later" makedepends="libnftnl-dev bison flex autoconf automake" source="https://www.netfilter.org/projects/iptables/files/iptables-$pkgver.tar.xz use-sh-iptables-apply.patch iptables.initd iptables.confd ip6tables.confd " build() { ./configure \ --build="$CBUILD" \ --host="$CHOST" \ --prefix=/usr \ --sbindir=/sbin \ --sysconfdir=/etc \ --mandir=/tmp \ --without-kernel \ --without-pkgconfig \ --enable-libipq \ --enable-shared # do not use rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make } package() { make install DESTDIR="$pkgdir" rm -rf "$pkgdir"/tmp \ "$pkgdir"/usr/bin \ "$pkgdir"/usr/include \ "$pkgdir"/sbin/ebtables* \ "$pkgdir"/sbin/arptables* \ "$pkgdir"/usr/lib/pkgconfig mkdir -p "$pkgdir"/usr/lib \ "$pkgdir"/var/lib/iptables install -D -m755 "$srcdir"/iptables.initd "$pkgdir"/etc/init.d/iptables install -D -m644 "$srcdir"/iptables.confd "$pkgdir"/etc/conf.d/iptables install -D -m755 "$srcdir"/iptables.initd "$pkgdir"/etc/init.d/ip6tables install -D -m644 "$srcdir"/ip6tables.confd "$pkgdir"/etc/conf.d/ip6tables } sha512sums=" 71e6ed2260859157d61981a4fe5039dc9e8d7da885a626a4b5dae8164c509a9d9f874286b9468bb6a462d6e259d4d32d5967777ecefdd8a293011ae80c00f153 iptables-1.8.10.tar.xz ac78898c2acbe66ed8d32a06f41ff08cde7c22c3df6dfec6bc89a912d2cef2bde730de19d25a5407886d567cb0972a0b7bde7e6b18a34c4511495b4dad3b90ad use-sh-iptables-apply.patch e82fcf10e9fffba37b7e4a11bc901b57d60214f5de4865c61df4add04057b9cb2c1d159b2af809b22e017197f2717b330f05a34a7e97589f48de65606060b1db iptables.initd 85bb1660c2452fdede5ae0a483489a3648a8b327ea658839a1ad8c6405f6526bdf842a62d4df3f6e3cbbb9ad59137d37b39266cee21e252814191964d4c50f44 iptables.confd 1783557fea7350ab43b050e632ccd62eb490f1f2b3ad48e7e3fd53cc66c1a9b93c8df4dd692aca3a0d17658f53eb8b668e60055b113fa3091319f81294a1783b ip6tables.confd "