12d98dbb7c
Brad Davis points out that sendmail won't exist if the system was built with WITHOUT_MAIL which causes configure to fail; use the new --with-sendmail configure option to hardwire sendmail to /usr/sbin/sendmail. Changes since 3.1: - Change update-ethercodes to not clobber ethercodes.dat on failure. - Add a configure option to specify the path to sendmail. PR: 260420 Reported by: Brad Davis
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
# Created by: Brian Somers <brian@FreeBSD.org>
|
|
|
|
PORTNAME= arpwatch
|
|
PORTVERSION= 3.2
|
|
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
|
|
CONFIGURE_ARGS= --with-sendmail=/usr/sbin/sendmail
|
|
|
|
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>
|