aboutsummaryrefslogblamecommitdiffstats
path: root/community/iptstate/APKBUILD
blob: fec940093e50529006580988ac07c18b3c85f4c2 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                           

                                                                   
                                       

             
                                                                                   


                                                                                               

                                   

                      





                                     








                                                                              
                                                                                                                                                                     
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=iptstate
pkgver=2.2.6
pkgrel=1
pkgdesc="Top-like interface to netfilter connection-tracking table"
url="https://www.phildev.net/iptstate/"
arch="all"
license="MIT"
makedepends="ncurses-dev libnetfilter_conntrack-dev libnfnetlink-dev linux-headers"
subpackages="$pkgname-doc"
source="https://github.com/jaymzh/iptstate/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	./iptstate --help > /dev/null
}

package() {
	cd "$builddir"
	install -D -m755 $pkgname "$pkgdir"/usr/sbin/$pkgname
	install -D -m444 $pkgname.8 "$pkgdir"/usr/share/man/man8/$pkgname.8
	install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="411b357aced384c52caac17b23f3c6bd631ff34d41b6000b90ff6dfc3cf20e36e46416d3691ac699b06f16d6042a42681b42a5d3594ce287aa6cf3b3b637c999  iptstate-2.2.6.tar.bz2"