# Template file for 'arpwatch'
pkgname=arpwatch
version=3.8
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=c763409f3534b8b3f119173cd92a4b9d42378b6c666cc00b255cc036d318b29c

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
}
