# Contributor: Kaarle Ritvanen # Maintainer: Kaarle Ritvanen pkgname=awall pkgver=0.2.10 pkgrel=0 pkgdesc="Alpine Wall" url=http://git.alpinelinux.org/cgit/kunkku/awall/ arch=noarch license=GPL-2 replaces="awall-nat" depends="bind-tools ip6tables ipset iptables lua lua-alt-getopt lua-filesystem lua-json4 lua-pc lua-signal lua-sleep lua-stringy xtables-addons" subpackages=$pkgname-masquerade source="${url}snapshot/awall-${pkgver}.tar.bz2" _builddir=$srcdir/awall-${pkgver} prepare() { : } build() { : } package() { cd "$_builddir" make "ROOT_DIR=$pkgdir" install } masquerade() { depends=awall cd "$_builddir" for file in lua/5.1/awall/modules/masquerade.lua awall/mandatory/masquerade.json; do local path=usr/share/$file install -d "$subpkgdir/$(dirname $path)" mv "$pkgdir/$path" "$subpkgdir/$path" done } md5sums="480934633355a324d24ad542577bb95f awall-0.2.10.tar.bz2"