aboutsummaryrefslogtreecommitdiffstats
path: root/main/shorewall/APKBUILD
blob: 18989f8f0a179d1bab3e349dc1ff1db0eaf80646 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shorewall
pkgver=4.6.5.5

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

pkgrel=0
pkgdesc="An iptables front end for firewall configuration"
url="http://www.shorewall.net/"
arch="noarch"
license="GPL-2"
depends="shorewall-core perl iptables iproute2"
# coreutils for install -T
makedepends="coreutils bash"
replaces=""
subpackages="$pkgname-doc"
source="http://www.shorewall.net/pub/shorewall/${_ver%.*}/shorewall-$_ver/$pkgname-$pkgver.tar.bz2
	shorewall.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"/shorewall.initd "$pkgdir"/etc/init.d/shorewall
}

md5sums="361be8cf6d07c851d740843a593186d0  shorewall-4.6.5.5.tar.bz2
ac54901de1e876a18d1938df1512ce0d  shorewall.initd
422c5d36fcee177acba58756b0fec7e2  shorewallrc.alpine"
sha256sums="9cd25256168223d663b2390884964c05ff95289686ed3ebccf3bcbaa93a3c031  shorewall-4.6.5.5.tar.bz2
8a69643e09f71044b4f733263ea7120c4f6147a9d6d9b814b43e94ea64791a0f  shorewall.initd
99f588523594b5a8062b2f43ab9f59daf91f12634b178f30dd7cb61786bd8220  shorewallrc.alpine"
sha512sums="308b8c58e5932c1e3242bfe33875e899991b7f2b4eb670f2045c8455ce73f83773f8c90fe1f945263d769a9d006b4ad155911a0ed861e6f42dcc3ac8931315cd  shorewall-4.6.5.5.tar.bz2
c4c3a1137740fd1098680e4b362d707378a263aeeda19a846ba3007614b1b5021ee4a492a5439066b433ce1c27c5a5069a4497ac08d36959a6e1a48cb44422f4  shorewall.initd
c076ae42e7b404cecf521fdc32f92ba3a6b77d61579726abde2f00b6b6282e55b0b334b9fe5e43a6e4ae56361cce3214d9a38099f9f8714f03ae4fb888c744b7  shorewallrc.alpine"