blob: c36df06542a5f35fc997457d3cd8e171a013c8bf (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shorewall6
pkgver=4.5.21
pkgrel=0
pkgdesc="Files for the IPV6 Shorewall Firewall"
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://www1.shorewall.net/pub/shorewall/${pkgver%.*}/shorewall-$pkgver/$pkgname-$pkgver.tar.bz2
shorewall6.initd
"
_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
rm -f "$pkgdir"/etc/init.d/shorewall6 || return 1
install -m755 "$srcdir"/shorewall6.initd "$pkgdir"/etc/init.d/shorewall6
}
md5sums="aaa1d6e1adb00acace63993ab6be6d37 shorewall6-4.5.21.tar.bz2
41c4981e5230a2abeeec749f7f5bf727 shorewall6.initd"
sha256sums="2c23a00a2ac441bcaa7c7b6b188079931f98b0444bbba137a400e81bedcd28dc shorewall6-4.5.21.tar.bz2
f4de42b7a47cd5f4e5a86af84d80579c49f5c0e817c20e2f3919ef0f4af015ea shorewall6.initd"
sha512sums="f95dd9cbf44378af0ce9b25f95fd1fd8e277fa38955bebd94490369bb891785744e401c62c182236a047ab55f70f571f8a4617d743ba7333a71810dda91e81f4 shorewall6-4.5.21.tar.bz2
3d4787cf5af0f32c1b033f89e3a1b390382b64fb70a492ff4dfe78499ceff8ec9c85dccf394edfb67ed512f85d954bba46bfe3e1ea762921bb0d65705f7c3695 shorewall6.initd"
|