diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-06-21 13:23:52 +0000 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-06-21 13:24:18 +0000 |
commit | 24866b94daf588f93425cf9470439cbca8cde332 (patch) | |
tree | 30f16533bc4f48381533bc9fb539ba045fa588f5 /main/awall | |
parent | 75034beb428570382859d4fa529e59f2ff563c64 (diff) | |
download | aports-24866b94daf588f93425cf9470439cbca8cde332.tar.bz2 aports-24866b94daf588f93425cf9470439cbca8cde332.tar.xz |
main/awall: upgrade to 0.1.4
Diffstat (limited to 'main/awall')
-rw-r--r-- | main/awall/APKBUILD | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/main/awall/APKBUILD b/main/awall/APKBUILD index 3a417baa3b..97f9f596a8 100644 --- a/main/awall/APKBUILD +++ b/main/awall/APKBUILD @@ -1,14 +1,14 @@ # Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> # Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> pkgname=awall -pkgver=0.1.3 +pkgver=0.1.4 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 +subpackages="$pkgname-masquerade $pkgname-nat" source="${url}snapshot/awall-${pkgver}.tar.bz2" _builddir=$srcdir/awall-${pkgver} @@ -29,11 +29,19 @@ package() { nat() { depends=awall cd "$_builddir" - for file in lua/5.1/awall/modules/nat.lua awall/mandatory/masquerade.json; do + local path=usr/share/lua/5.1/awall/modules + install -d "$subpkgdir/$path" + mv "$pkgdir/$path/nat.lua" "$subpkgdir/$path" +} + +masquerade() { + depends=awall-nat + 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="cdfab898e949139817ea66d14a3e2016 awall-0.1.3.tar.bz2" +md5sums="e6dfe36bf09ed6c0dcaccfd8a2e12ae6 awall-0.1.4.tar.bz2" |