aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ufw/APKBUILD
blob: 695c430de913eb71bf96e914525e03da97b12ba7 (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
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>

pkgname=ufw
pkgver=0.33
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"

	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
}

md5sums="3747b453d76709e5a99da209fc0bb5f5  ufw-0.33.tar.gz
7bf1a3dee43b294bda8f2025e04164ce  ufw.initd"