aboutsummaryrefslogtreecommitdiffstats
path: root/main/shorewall6/APKBUILD
blob: 72ca8c926ab922a90d3d6351b88117d25a042705 (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
48
49
50
51
52
53
54
55
56
57
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shorewall6
pkgver=4.6.4.3

_ver=$pkgver
case $pkgver in
*.*.*.*) _ver=${pkgver%.*};;
esac

pkgrel=0
pkgdesc="Files for the IPV6 Shorewall Firewall"
url="http://www.shorewall.net/"
arch="noarch"
license="GPL-2"
depends="shorewall-core perl ip6tables iproute2"
# coreutils for install -T
makedepends="coreutils bash"
replaces=""
subpackages="$pkgname-doc"
source="http://www1.shorewall.net/pub/shorewall/${_ver%.*}/shorewall-$_ver/$pkgname-$pkgver.tar.bz2
	shorewall6.initd
	shorewallrc.alpine
	"

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

build() {
	cd "$_builddir"
	./configure || return 1
}

package() {
	cd "$_builddir"
	DESTDIR="$pkgdir" ./install.sh shorewallrc.alpine || return 1
	install -Dm755 "$srcdir"/shorewall6.initd \
		"$pkgdir"/etc/init.d/shorewall6
}

md5sums="f038e4cbce511a7ee482421beaf7c2ef  shorewall6-4.6.4.3.tar.bz2
685f7d32ff6ce1251658365e7d7076ee  shorewall6.initd
422c5d36fcee177acba58756b0fec7e2  shorewallrc.alpine"
sha256sums="a776fdace8b4cd8f79b888245bfe30db8da5f66282d9478ec926254b6561b7b3  shorewall6-4.6.4.3.tar.bz2
a0c9a30cebee098e05d38626d6124398947d4b6cac15d278b1d383bfcc29bcda  shorewall6.initd
99f588523594b5a8062b2f43ab9f59daf91f12634b178f30dd7cb61786bd8220  shorewallrc.alpine"
sha512sums="90c8da7b4d0e2bd91db40990a4f9053354246076d62c58a241f9c669215cefea3ff149a2b306588e6b2e5da185f7b68a632a28904017c82f3fec11adeb0028bb  shorewall6-4.6.4.3.tar.bz2
ef7c3fb6080cd8f49ad8fef5221cf9e43701aa5838e30ddba73bc2fe1499bb2487a45d020c6b26bde36366cc9fb87a321955a6b5bfe8f844060f462e2d1bac2b  shorewall6.initd
c076ae42e7b404cecf521fdc32f92ba3a6b77d61579726abde2f00b6b6282e55b0b334b9fe5e43a6e4ae56361cce3214d9a38099f9f8714f03ae4fb888c744b7  shorewallrc.alpine"