From 7fca2157cceacb723a8d803174e2c6e914186db4 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 24 Jan 2014 10:23:46 +0000 Subject: main/ipfw: new aport --- main/ipfw/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 main/ipfw/APKBUILD (limited to 'main/ipfw/APKBUILD') diff --git a/main/ipfw/APKBUILD b/main/ipfw/APKBUILD new file mode 100644 index 0000000000..f5e084d11e --- /dev/null +++ b/main/ipfw/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: William Pitcock +# Maintainer: William Pitcock +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" +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" +sha256sums="7dc80437b137e629f8ef3a7889b24ffbd1c27274e9cce15fd1f3b2c8620c6d64 20130607-ipfw3.tgz" +sha512sums="6c4c2c7d4795094b9ff72212394e7dee44e5f9e09e97021b5ac9c3fad6de5a32b1d608ae9572da17f62cb37d076d89ab26859c61255d03d6bce22ca527f2c8ec 20130607-ipfw3.tgz" -- cgit v1.2.3