Skip to content

Instantly share code, notes, and snippets.

@prologic
Created March 8, 2015 12:31
Show Gist options
  • Save prologic/8704113df67ed82a1cdc to your computer and use it in GitHub Desktop.
Save prologic/8704113df67ed82a1cdc to your computer and use it in GitHub Desktop.
created by github.com/tr3buchet/gister
name=iptables
version=1.4.21
release=1
source=(
ftp://ftp.netfilter.org/pub/iptables/$name-$version.tar.bz2
0001-fix-static-link.patch
0002-iptables-ip-6-tables-save.c-remove-dlfcn.h-include.patch
)
build () {
cd $name-$version
for i in $SRC/*.patch; do
patch -p1 < $i
done
./configure \
--prefix=/usr \
--mandir=/usr/man \
--enable-static
make
install -D -m 755 iptables/xtables-multi $PKG/usr/sbin/xtables-multi
ln -sf xtables-multi $PKG/usr/sbin/iptables
ln -sf xtables-multi $PKG/usr/sbin/iptables-save
ln -sf xtables-multi $PKG/usr/sbin/iptables-restore
ln -sf xtables-multi $PKG/usr/sbin/ip6tables
ln -sf xtables-multi $PKG/usr/sbin/ip6tables-save
ln -sf xtables-multi $PKG/usr/sbin/ip6tables-restore
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment