summaryrefslogtreecommitdiffstats
path: root/main/shorewall-common/APKBUILD
blob: 57eb97f5214481a48ad2253e256b3de715622f45 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shorewall-common
pkgver=4.2.11
pkgrel=3
pkgdesc="Shoreline Firewall is an iptables-based firewall for Linux."
url="http://www.shorewall.net/"
arch="noarch"
license="GPL-2"
depends="iptables iproute2"
subpackages="$pkgname-doc"
source="http://www1.shorewall.net/pub/shorewall/4.2/shorewall-$pkgver/shorewall-common-$pkgver.tar.bz2
	shorewall-common-ipset.patch
	shorewall-iptables-deprecated.patch
	shorewall.initd
	"

_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() {
	return 0
}

package() {
	cd "$_builddir"
	PREFIX="${pkgdir}" ./install.sh || return 1
	install -Dm755 "$srcdir"/shorewall.initd "$pkgdir"/etc/init.d/shorewall
}
md5sums="4da98c58a00f1cf1d8c31bdb5db40e96  shorewall-common-4.2.11.tar.bz2
3b120e6e040bd7d8fc85cf30dfeb32a0  shorewall-common-ipset.patch
575c645d8b880f29e483b9a4933ac59d  shorewall-iptables-deprecated.patch
4b55b9b0484c880b0b9562bd4ded1d0a  shorewall.initd"