makedepends=(libmnl libnftnl)

description="The principal firewall tool for Linux."
url="http://www.iptables.org/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=iptables
version=1.8.11
release=4

great_os_version=1.0-RC1

source=(https://www.netfilter.org/projects/iptables/files/$name-$version.tar.xz
        https://repo.great-os.org/files/great-os-${great_os_version}.tar.xz)

build() {
  cd $name-$version

  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --localstatedir=/var \
              --with-pkgconfigdir=/usr/lib/pkgconfig \
              --enable-libipq \
              --enable-devel

  make
  make DESTDIR=$PKG SHELL=/usr/bin/bash install

  # service
  cd ../great-os-${great_os_version}
  make DESTDIR=$PKG SHELL=/usr/bin/bash install-$name
}
