smlinux/base/iptables/iptables.SMBuild

34 lines
948 B
Text
Executable file

app=iptables
version=1.4.20
build=1sml
homepage="https://www.netfilter.org/projects/iptables/index.html"
download="https://www.netfilter.org/projects/iptables/files/iptables-$version.tar.bz2"
desc="IP packet filter administration tool"
requires="libpcap libnfnetlink libnetfilter_conntrack"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/iptables-1.4.14-musl-fixes.patch
./configure \
--prefix="" \
--sbindir=/bin
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
3f0b13052486f3b43a53989559417938a77ee4039c3ef606b286cba4708e118c9e4ebbd5e6304878e7d7ebb7adca8b660d6e40d2772567f1c78d19af459db270 iptables-1.4.20.tar.lz
bc1cb36957d5afb80b770fe15f951de3074e2b1b28015372fb6f121fd551dd0e86c76c1819022dc468d11750b3969db40ef2dc9651c654c9f99212c0f2746985 iptables-1.4.14-musl-fixes.patch
"