diff options
Diffstat (limited to 'main/awall/APKBUILD')
-rw-r--r-- | main/awall/APKBUILD | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/main/awall/APKBUILD b/main/awall/APKBUILD index 0be03124fd..9dcce06f12 100644 --- a/main/awall/APKBUILD +++ b/main/awall/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> # Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> pkgname=awall -pkgver=1.5.1 +pkgver=1.6.0 pkgrel=0 pkgdesc="Alpine Wall" url="https://git.alpinelinux.org/cgit/awall/" @@ -11,9 +11,10 @@ license="GPL-2.0" replaces="awall-nat" depends="bind-tools ip6tables ipset iptables lua$_luaver lua$_luaver-alt-getopt lua$_luaver-cjson lua$_luaver-pc lua$_luaver-posix lua$_luaver-stringy xtables-addons" -subpackages=$pkgname-masquerade +subpackages="$pkgname-masquerade $pkgname-policies" triggers="$pkgname.trigger=/usr/share/awall" source="http://dev.alpinelinux.org/archive/awall/awall-$pkgver.tar.xz + setup-firewall " builddir=$srcdir/awall-$pkgver @@ -35,7 +36,6 @@ package() { masquerade() { depends=awall - cd "$builddir" for file in lua/$_luaver/awall/modules/masquerade.lua awall/mandatory/masquerade.json; do local path=usr/share/$file install -d "$subpkgdir/$(dirname $path)" @@ -43,4 +43,13 @@ masquerade() { done } -sha512sums="562c113ff7f6e9615a66723e3fb097daf5c875dbc65b176405e9ba40e9d2321db0f4c095889ae6c015b297a6100218b2713f849ca305f4db4837ae7153a47a64 awall-1.5.1.tar.xz" +policies() { + depends=awall + local dir=usr/share/awall/optional + install -d "$subpkgdir"/$dir + mv "$pkgdir"/$dir/*.json "$subpkgdir"/$dir + install -D "$srcdir"/setup-firewall "$subpkgdir"/usr/sbin/setup-firewall +} + +sha512sums="a131cf4f6cb8b17a007c05b27d43396dd702e52bb94bbfd348b86514fb374e277f1d30e706d41b79cc454ab0921fc12acb72af5e5500af91709b3254dc60587c awall-1.6.0.tar.xz +0ec166d5e57f1f3eb9be40074f794c6f603b29888fd39d6e56256d3ba853745c768e37a516c8bc6c9a062eeb7652b4de1d7ef7ef63f75cf24d725459c76395de setup-firewall" |