freebsd-ports/net-mgmt/arpwatch/Makefile
Craig Leres 4bdc3493c2 net-mgmt/arpwatch: Update to 3.1. Remove ETHERCODES option and add
some pkg-message explaining how to use the new update-ethercodes
script. Remove obsolete patches. Changes since 3.0:

- Fix the FreeBSD rc.d script to handle interface names with . in
  them. Reported by Daniel Duerr.

- Add python 2 compatibility to massagevendor (for pfsense <= 2.4.4).

- Stop distributing ethercodes.dat and add update-ethercodes.sh to
  download and generate it.
2020-04-06 01:00:11 +00:00

60 lines
1.4 KiB
Makefile

# Created by: Brian Somers <brian@FreeBSD.org>
# $FreeBSD$
PORTNAME= arpwatch
PORTVERSION= 3.1
CATEGORIES= net-mgmt
MASTER_SITES= https://ee.lbl.gov/downloads/arpwatch/ \
LOCAL/leres/arpwatch
MAINTAINER= leres@FreeBSD.org
COMMENT= Monitor arp & rarp requests
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${LOCALBASE}/include/pcap.h:net/libpcap
RUN_DEPENDS= ${LOCALBASE}/include/pcap.h:net/libpcap
USES= python:run
GNU_CONFIGURE= yes
SUB_FILES= pkg-message
OPTIONS_DEFINE= DEBUG ZEROPAD
OPTIONS_DEFAULT=ZEROPAD
OPTIONS_SUB= yes
ZEROPAD_DESC= zero pad displayed ethernet addresses by default
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --disable-optimization
.endif
.if ${PORT_OPTIONS:MZEROPAD}
CONFIGURE_ARGS+= --enable-zeropad
.endif
.ifdef ARPDIR
MAKE_ARGS= ARPDIR=${ARPDIR}
.endif
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/arpwatch
.for F in d.awk duplicates.awk euppertolower.awk e.awk p.awk
${INSTALL_DATA} ${WRKSRC}/${F} ${STAGEDIR}${PREFIX}/arpwatch
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${STAGEDIR}${PREFIX}/arpwatch
${INSTALL_SCRIPT} ${WRKSRC}/massagevendor.py \
${STAGEDIR}${PREFIX}/arpwatch/massagevendor
${INSTALL_SCRIPT} ${WRKSRC}/update-ethercodes.sh \
${STAGEDIR}${PREFIX}/arpwatch/update-ethercodes
post-configure:
${REINPLACE_CMD} -e "/^LIBS *=/s,-lpcap,${LOCALBASE}/lib/libpcap.so.1," \
${WRKSRC}/Makefile
.include <bsd.port.mk>