aboutsummaryrefslogtreecommitdiffstats
path: root/main/shorewall-shell/APKBUILD
blob: c2e1eefa1ca05e57f96c560be753c3f3fefd3bb8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shorewall-shell
_v=4.2.11
pkgver=4.2.11
pkgrel=3
pkgdesc="Shoreline Firewall shell-based compiler."
url="http://www.shorewall.net/"
arch="noarch"
license="GPL-2"
depends="shorewall-common"
#subpackages="$pkgname-doc"
source="http://www.shorewall.net/pub/shorewall/${_v%.*}/shorewall-$_v/$pkgname-$pkgver.tar.bz2
	shorewall-policyrouting.patch
	shorewall-shell-ipset.patch
	shorewall-shell-providers-gateway-none.patch
	shorewall-shell-rp_filter.patch
	"

_builddir="$srcdir"/$pkgname-$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() {
	cd "$srcdir"/$pkgname-$pkgver
	PREFIX="$pkgdir" ./install.sh || return 1
}

md5sums="518a7f389a6f606c109acb7dfbe18372  shorewall-shell-4.2.11.tar.bz2
64c01bc4f57203fb877bb334994eac38  shorewall-policyrouting.patch
79745ea284a08cb167b9a356ee0bff3b  shorewall-shell-ipset.patch
66b7249c5c56d104f62676c175e222d3  shorewall-shell-providers-gateway-none.patch
d5eadb6be45aa41f80669452baa853a6  shorewall-shell-rp_filter.patch"