summaryrefslogtreecommitdiffstats
path: root/testing/shorewall-core/APKBUILD
blob: 77607fab9acaa9c661b9f29929d7572d2cf0f877 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shorewall-core
pkgver=4.5.20
pkgrel=0
pkgdesc="Core libraries for Shorewall"
url="http://www.shorewall.net/"
arch="noarch"
license="GPL-2"
depends=""
# coreutils for install -T
makedepends="coreutils bash"
replaces=""
subpackages=""
source="http://www1.shorewall.net/pub/shorewall/${pkgver%.*}/shorewall-$pkgver/shorewall-core-$pkgver.tar.bz2
	"

_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
}

build() {
	cd "$_builddir"
	./configure MANDIR=/usr/share/man SBINDIR=/usr/sbin || return 1
}

package() {
	cd "$_builddir"
	DESTDIR="$pkgdir" ./install.sh || return 1
}

md5sums="7c9f115f5559f33396e736f9235311b3  shorewall-core-4.5.20.tar.bz2"
sha256sums="7a3f6502d35a4fccbfaab0181c4c4a62b2aa5d2512f9b2679305e7d541149f47  shorewall-core-4.5.20.tar.bz2"
sha512sums="bf1c7a87eae6f338fd70457865fcec3b2afb6af394cc263a932465d83d03b2cd3c421149250d67143a8930c263e69854a622cb31a27da3e534e0e4520a20b22d  shorewall-core-4.5.20.tar.bz2"