summaryrefslogtreecommitdiffstats
path: root/main/ipfw/APKBUILD
blob: 7b148ccc4747a8bdacad189d088caceffd4f9b24 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=ipfw
_realver=20130607
pkgver=3.0_git${_realver}
pkgrel=0
pkgdesc="BSD ipfw firewall and dummynet suite (linux-grsec modules)"
url="http://info.iet.unipi.it/~luigi/dummynet/"
arch="all"
license="BSD"
depends=""
makedepends=""
install=
source="http://info.iet.unipi.it/~luigi/doc/${_realver}-${pkgname}3.tgz
	no-sysctl.patch
	type-correctness.patch"
subpackages=""

_builddir="$srcdir/ipfw3-2012"
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"
	make ipfw
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir/usr/sbin"
	install -D -m755 ipfw/ipfw "$pkgdir/usr/sbin/ipfw"
}

md5sums="004e65e6d545a89c4dcc3e741e287444  20130607-ipfw3.tgz
77b842449998afdbce62cedca529f7f0  no-sysctl.patch
a5fd21099c3733d52164189e30abf5ce  type-correctness.patch"
sha256sums="7dc80437b137e629f8ef3a7889b24ffbd1c27274e9cce15fd1f3b2c8620c6d64  20130607-ipfw3.tgz
b7f3b61af1a6dd88dc01662ef524da886d1f2c4684bdfe023cb6ffe2e9da63de  no-sysctl.patch
ed1e32908b748c0fed5e3eaf5d07cd7df7b67e01fe051796d1b0ca290455009d  type-correctness.patch"
sha512sums="6c4c2c7d4795094b9ff72212394e7dee44e5f9e09e97021b5ac9c3fad6de5a32b1d608ae9572da17f62cb37d076d89ab26859c61255d03d6bce22ca527f2c8ec  20130607-ipfw3.tgz
e32f7bcff5b36b0405f678d3144472f8d7c76321a66a71b4515e266c35dc99378a358fd8f92eab748988e9c94fccb03f61a86acfa43b1a550a14c79a9f059715  no-sysctl.patch
653d9cc30cedf012cfda8835750b05123e208e61aad5692c6b1714708fbfdc5d04f89e2b7c7a99819cdb607703bdad4507a613bbca6e16f3a439877a320a5b16  type-correctness.patch"