# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=iptstate
pkgver=2.2.5
pkgrel=0
pkgdesc="top-like interface to netfilter connection-tracking table"
url="http://www.phildev.net/iptstate/"
arch="all"
license="custom"
depends=""
depends_dev="ncurses-dev libnetfilter_conntrack-dev libnfnetlink-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"
_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	make
}

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
}

md5sums="5abe47e473bee256adaf8a48b1141a90  iptstate-2.2.5.tar.bz2"