aboutsummaryrefslogblamecommitdiffstats
path: root/testing/ufw/APKBUILD
blob: 07069a66665d4e1697a3eaa0ca7f097eaa62a401 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                 


                                                             
           
           
        



                                                              
                                    
              





                                                                                                         


                                                     

                                                                                         
                                                       

 
                                                          
                                            



                                                                                                                                                             
# Contributor: Danilo Falcão <danilo@falcao.org>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Maintainer:

pkgname=ufw
pkgver=0.35
pkgrel=1
pkgdesc='Uncomplicated CLI tool managing a netfilter firewall'
url='https://launchpad.net/ufw'
arch='noarch'
license='GPL'
depends="iptables ip6tables python2"
makedepends=''
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 || return 1
}

md5sums="b7cd2dd4e4e98e46df125fee06edff92  ufw-0.35.tar.gz
7bf1a3dee43b294bda8f2025e04164ce  ufw.initd"
sha256sums="662f865bc83bf8aa1a40a6fe578bc2ce796ff60a1be2c1103def7db1b91f8509  ufw-0.35.tar.gz
fe2a2b85c22b86fdefb28b9114f8cdca1f49d3fc1745b508addc873dccbd6e5e  ufw.initd"
sha512sums="b36c82559910634505648f717d19eb5a0cb1ce739a804359087e74c966869d0375c4ed5811954b32d2b5b51866f6ae1bec62a4a464f226b2eecc56b096f303fc  ufw-0.35.tar.gz
cd7165270b3eb38472f9fc8aec15b0c578c0a88f8e5d6bf285fdb62b32958826182f60fda897a60f551e360c0efa1091a8d442f8ba87e7080cfa63cc7b2cdca7  ufw.initd"