aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-04-19 08:09:07 +0000
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-04-19 08:17:40 +0000
commit8bd9b41c9af706ecbaba6cee1aae40a19e2c7924 (patch)
tree8249c278fac39726201295c4f28a847ccfe88a06 /testing
parentfd40924398a3ee62a7643029791d942bf803e1c0 (diff)
downloadaports-8bd9b41c9af706ecbaba6cee1aae40a19e2c7924.tar.bz2
aports-8bd9b41c9af706ecbaba6cee1aae40a19e2c7924.tar.xz
testing/awall: package added
Diffstat (limited to 'testing')
-rw-r--r--testing/awall/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/awall/APKBUILD b/testing/awall/APKBUILD
new file mode 100644
index 0000000000..31a522ba91
--- /dev/null
+++ b/testing/awall/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+pkgname=awall
+pkgver=0.1.0
+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/mandatory
+ install -d "$bindir"
+ install -d "$poldir"
+ install -d "$dir/modules"
+ install -d "$pkgdir/etc/awall"
+ install -d "$pkgdir/var/run/awall"
+ install awall-cli "$bindir/awall"
+ install -m 644 json/services.json "$poldir"
+ install -m 644 awall/*.lua "$dir"
+ install -m 644 awall/modules/filter.lua "$dir/modules"
+}
+
+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="032edeb7e909137f4deee36f009bd68e awall-0.1.0.tar.bz2"