2013-03-11 07:35:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2013/03/11 11:35:45 espie Exp $
|
2001-05-06 00:59:54 -04:00
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT= monitor arp & rarp requests
|
1998-03-25 15:13:23 -05:00
|
|
|
|
2010-07-12 18:07:37 -04:00
|
|
|
DISTNAME= arpwatch-2.1a15
|
2012-06-04 07:04:27 -04:00
|
|
|
# oui-iab file generated by "make listing" in ports/net/arp-scan
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2013-03-03 16:28:15 -05:00
|
|
|
oui-iab-20130303.tar.bz2:0
|
|
|
|
REVISION= 4
|
1998-03-25 15:13:23 -05:00
|
|
|
CATEGORIES= net
|
2002-10-27 20:38:44 -05:00
|
|
|
|
2004-06-19 17:37:38 -04:00
|
|
|
MASTER_SITES= ftp://ftp.ee.lbl.gov/
|
2011-03-14 16:42:11 -04:00
|
|
|
MASTER_SITES0= http://spacehopper.org/mirrors/
|
1998-03-25 15:13:23 -05:00
|
|
|
|
2001-06-01 19:36:31 -04:00
|
|
|
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
|
1998-03-25 15:13:23 -05:00
|
|
|
|
2000-04-21 10:50:23 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2011-03-14 16:42:11 -04:00
|
|
|
|
2004-12-15 19:31:20 -05:00
|
|
|
WANTLIB= c pcap
|
2000-02-12 01:29:49 -05:00
|
|
|
|
2001-06-01 19:36:31 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS= --quiet
|
|
|
|
MAKE_FLAGS+= ARPDIR=/var/arpwatch
|
1998-03-25 15:13:23 -05:00
|
|
|
|
2011-03-14 16:42:11 -04:00
|
|
|
USE_GROFF= Yes
|
2013-03-11 07:35:43 -04:00
|
|
|
NO_TEST= Yes
|
2002-10-27 20:38:44 -05:00
|
|
|
|
2001-06-01 19:36:31 -04:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/arpwatch
|
|
|
|
|
2011-03-14 16:42:11 -04:00
|
|
|
pre-configure:
|
2012-06-04 07:04:27 -04:00
|
|
|
cd ${WRKSRC}; chmod u+w ${WRKSRC}/ethercodes.dat; \
|
|
|
|
./massagevendor < ../oui-iab/oui.txt > ethercodes.dat
|
2011-03-14 16:42:11 -04:00
|
|
|
|
2001-06-01 19:36:31 -04:00
|
|
|
do-install:
|
2012-06-04 07:04:27 -04:00
|
|
|
@perl -pi -e 's,awk -f ,awk -f ${EXAMPLESDIR}/', ${WRKSRC}/massagevendor
|
2001-06-01 19:36:31 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/arpwatch ${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/arpsnmp ${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/arpwatch.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/arpsnmp.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
2011-03-14 16:42:11 -04:00
|
|
|
@for i in ethercodes.dat *.awk; do \
|
2001-06-01 19:36:31 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$i ${EXAMPLESDIR}; \
|
1998-03-25 15:13:23 -05:00
|
|
|
done
|
2004-10-08 06:04:26 -04:00
|
|
|
@${INSTALL_DATA} /dev/null ${EXAMPLESDIR}/arp.dat
|
2001-06-01 19:36:31 -04:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/arp2ethers ${EXAMPLESDIR}
|
2011-03-14 16:42:11 -04:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/massagevendor ${EXAMPLESDIR}
|
1998-03-25 15:13:23 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|