diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-05-01 11:55:35 +0000 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-05-01 11:55:35 +0000 |
commit | 20313a4d0e4cbe767df8408e32046c642ea59465 (patch) | |
tree | 64e6e49d6e4bde4992cd965ede355f3a1efaa1b2 /main/awall/APKBUILD | |
parent | 422469ae0f7ff261d41adc5c7efcfc7b3c0d9f7a (diff) | |
download | aports-20313a4d0e4cbe767df8408e32046c642ea59465.tar.bz2 aports-20313a4d0e4cbe767df8408e32046c642ea59465.tar.xz |
testing/awall: moved to main with dependencies (ipset, lua-signal, lua-sleep)
Diffstat (limited to 'main/awall/APKBUILD')
-rw-r--r-- | main/awall/APKBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/main/awall/APKBUILD b/main/awall/APKBUILD new file mode 100644 index 0000000000..df7d371f70 --- /dev/null +++ b/main/awall/APKBUILD @@ -0,0 +1,58 @@ +# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +pkgname=awall +pkgver=0.1.1 +pkgrel=0 +pkgdesc="Alpine Wall" +url=http://git.alpinelinux.org/cgit/kunkku/awall/ +arch=noarch +license=GPL-2 +depends="bind-tools ip6tables ipset iptables lua lua-alt-getopt lua-filesystem lua-json4 lua-pc lua-signal lua-sleep lua-stringy" +subpackages=$pkgname-nat +source="${url}snapshot/awall-${pkgver}.tar.bz2" + +_builddir=$srcdir/awall-${pkgver} +_luadir=usr/share/lua/5.1 + +prepare() { + : +} + +build() { + : +} + +package() { + cd "$_builddir" + local dir=$pkgdir/$_luadir/awall + local bindir=$pkgdir/usr/sbin + local poldir=$pkgdir/usr/share/awall + + install -d "$poldir/mandatory" + install -d "$poldir/optional" + install -d "$poldir/sample" + + install -d "$bindir" + install -d "$dir/modules" + install -d "$pkgdir/etc/awall" + install -d "$pkgdir/var/run/awall" + + install awall-cli "$bindir/awall" + install -m 644 awall/*.lua "$dir" + install -m 644 awall/modules/filter.lua "$dir/modules" + + install -m 644 json/services.json "$poldir/mandatory" + install -m 644 sample-policy.json "$poldir/sample" +} + +nat() { + depends=awall + cd "$_builddir" + local moddir=$subpkgdir/$_luadir/awall/modules + local poldir=$subpkgdir/usr/share/awall/mandatory + install -d "$moddir" "$poldir" + install -m 644 json/masquerade.json "$poldir" + install -m 644 awall/modules/nat.lua "$moddir" +} + +md5sums="de2ae6f4b2825b523873ca82bd1f7c48 awall-0.1.1.tar.bz2" |