# Template file for 'arpwatch'
pkgname=arpwatch
version=3.9
revision=1
build_style=gnu-configure
configure_args="--with-sendmail=/usr/bin/sendmail"
makedepends="libpcap-devel"
short_desc="Ethernet/FDDI station activity monitor"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="BSD-3-Clause-LBNL"
homepage="https://ee.lbl.gov/"
distfiles="https://ee.lbl.gov/downloads/arpwatch/arpwatch-${version}.tar.gz"
checksum=832d20a5a508d9694a84a17e2627de3b3aa8b42b19ebdd97e264c511168f6eb4

pre_configure() {
	vsed -i '/@HAVE_FREEBSD_TRUE@/d' Makefile.in
}

pre_install() {
	install -d -m 0755 $DESTDIR/usr/{bin,share/man/man8}
	sed -n '1,27p' arpwatch.c > LICENSE && vlicense LICENSE
}
