aboutsummaryrefslogtreecommitdiffstats
path: root/main/awall/APKBUILD
blob: 6b6ae2f90e4bb7fd4fa333af9e331cb9b76b2aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=awall
pkgver=1.0.0
pkgrel=0
pkgdesc="Alpine Wall"
url="http://git.alpinelinux.org/cgit/awall/"
arch="noarch"
license="GPL2"
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=http://dev.alpinelinux.org/archive/awall/awall-$pkgver.tar.xz

_builddir=$srcdir/awall-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	return 0
}

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="d3d36a6df7e6b11d1454fa14180ff5ff  awall-1.0.0.tar.xz"
sha256sums="f5334cc27533bc457d2e0287ce7df44719f5ea0d856e52c9a1e5044e5e30012a  awall-1.0.0.tar.xz"
sha512sums="7b6780bdc849abb931a737c1d8b95c2906a833c380dfa29c5eda3ed5470035cf8fa37e36214b6e0b4f322000fa97164288a4c8835f35ddfa57b253d7ecdbcff1  awall-1.0.0.tar.xz"