blob: 7e5a7a8973199533e39231d2f0c82246b5d632a6 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shorewall6
pkgver=4.5.21.4
_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
"
_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="35a5bea7f99b0f3b6a651825f51ae796 shorewall6-4.5.21.4.tar.bz2
685f7d32ff6ce1251658365e7d7076ee shorewall6.initd"
sha256sums="32c76e983c3f5c559a9de29cecfa9e918ed3f242d7bd4c1d49c4dfe5fff49a5f shorewall6-4.5.21.4.tar.bz2
a0c9a30cebee098e05d38626d6124398947d4b6cac15d278b1d383bfcc29bcda shorewall6.initd"
sha512sums="4935752e77826bbee0cf241a9f6800f9437f1fb5fc9cb1201a4abb8f93c7a323c41afe7019771e8730568771b2a71087a0cdc8e7caf13b894a7c3eac136f3cfd shorewall6-4.5.21.4.tar.bz2
ef7c3fb6080cd8f49ad8fef5221cf9e43701aa5838e30ddba73bc2fe1499bb2487a45d020c6b26bde36366cc9fb87a321955a6b5bfe8f844060f462e2d1bac2b shorewall6.initd"
|