diff options
Diffstat (limited to 'testing/ufw/APKBUILD')
-rw-r--r-- | testing/ufw/APKBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/ufw/APKBUILD b/testing/ufw/APKBUILD new file mode 100644 index 0000000000..02cd77ec93 --- /dev/null +++ b/testing/ufw/APKBUILD @@ -0,0 +1,28 @@ +# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> + +pkgname=ufw +pkgver=0.31.1 +pkgrel=0 +pkgdesc='Uncomplicated CLI tool managing a netfilter firewall' +url='https://launchpad.net/ufw' +arch='noarch' +license='GPL' +depends='iptables python' +makedepends='ip6tables' +subpackages="$pkgname-doc" +source="http://launchpad.net/$pkgname/$(echo $pkgver|cut -c1-4)/$pkgver/+download/$pkgname-$pkgver.tar.gz + $pkgname.initd" + +package() { + cd "$srcdir"/$pkgname-$pkgver + + sed -e 's|/lib|/usr/lib|' -i setup.py || return 1 + python setup.py install --root="$pkgdir" || return 1 # move /lib to /usr/lib + + install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1 + chmod 644 "$pkgdir"/etc/ufw/*.rules "$pkgdir"/usr/lib/ufw/*.rules || return 1 + sed -i '7s/YES/NO/' "$pkgdir"/etc/default/ufw || return 1 #TODO: ipv6 support +} + +md5sums="74b49d4d06e26359a55bf4ff576833a7 ufw-0.31.1.tar.gz +7bf1a3dee43b294bda8f2025e04164ce ufw.initd" |