# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=httpry
pkgver=0.1.8
pkgrel=0
pkgdesc="A packet sniffer designed for HTTP traffic"
# Sources at https://github.com/jbittel/httpry/
url="http://dumpsterventures.com/jason/httpry/"
arch="all"
license="GPL2"
makedepends="libpcap-dev"
subpackages="$pkgname-doc"
source="http://dumpsterventures.com/jason/httpry/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	install -m755 -D "$builddir"/$pkgname \
		"$pkgdir"/usr/sbin/$pkgname  || return 1
	install -m644 -D "$builddir"/$pkgname.1 \
		"$pkgdir"/usr/share/man/man1/$pkgname.1  || return 1
}

md5sums="212a03b32c3e3668f5890f8779a86ded  httpry-0.1.8.tar.gz"
sha256sums="ef53454f895f68005f7b9ab634d1b433c4df839eacea9109e4ee48d4296fb613  httpry-0.1.8.tar.gz"
sha512sums="28d9fc37229e8b47711227762134e5b6e81bde0a44947f2e527771da2d042ba7e7c38b1ec205808a9e444e1235c91932ba16df4a31cc3d739c6474b25e149636  httpry-0.1.8.tar.gz"