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

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

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://www.shorewall.net/pub/shorewall/${_ver%.*}/shorewall-$_ver/shorewall-core-$pkgver.tar.bz2
	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
}

md5sums="b42a1422f071707bd1b1080ed98c8d1a  shorewall-core-4.6.8.1.tar.bz2
422c5d36fcee177acba58756b0fec7e2  shorewallrc.alpine"
sha256sums="9c7fcd4c3cf11ca9aa1f430e05acc4fed40946cbb34b204d6257ca83802d945c  shorewall-core-4.6.8.1.tar.bz2
99f588523594b5a8062b2f43ab9f59daf91f12634b178f30dd7cb61786bd8220  shorewallrc.alpine"
sha512sums="7539fcabce57ecfa7d354220801705b6ab5d55e8d499c93f2c69bcc882039b7e98f25a6abacbfcd672c61dcf9791ad05b26cc8d4f7e4ee1ebc9e38287a2af46e  shorewall-core-4.6.8.1.tar.bz2
c076ae42e7b404cecf521fdc32f92ba3a6b77d61579726abde2f00b6b6282e55b0b334b9fe5e43a6e4ae56361cce3214d9a38099f9f8714f03ae4fb888c744b7  shorewallrc.alpine"