APKBUILD 1.09 KB
Newer Older
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dhcpdump
pkgver=1.8
pkgrel=0
pkgdesc="utility to analyze sniffed DHCP packets"
url="http://www.mavetju.org/unix/general.php"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev libpcap-dev perl"
install=""
subpackages="$pkgname-doc"
source="http://www.mavetju.org/download/dhcpdump-$pkgver.tar.gz"

_builddir="$srcdir"/dhcpdump-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	install -D dhcpdump "$pkgdir"/usr/bin/dhcpdump || return 1
	install -D dhcpdump.8 "$pkgdir"/usr/share/man/man8/dhcpdump.8 \
		|| return 1
}

md5sums="099c786997c424f196414f9575f1fb90  dhcpdump-1.8.tar.gz"
sha256sums="6d5eb9418162fb738bc56e4c1682ce7f7392dd96e568cc996e44c28de7f77190  dhcpdump-1.8.tar.gz"
sha512sums="52cd63d581a3c530c2f5baa66808d5b0241853651c720bd513b769b8301b4dff9c87243787014aea98a5b3ebed86ec317b58d262bf5031015141a4da50fb76e6  dhcpdump-1.8.tar.gz"