openbsd-ports/net/arp-scan/Makefile
2012-06-04 11:01:48 +00:00

52 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2012/06/04 11:01:48 sthen Exp $
COMMENT = ARP scanning and fingerprinting tool
DISTNAME = arp-scan-1.8
REVISION = 4
CATEGORIES = net
HOMEPAGE = http://www.nta-monitor.com/tools/arp-scan/
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
MASTER_SITES = ${HOMEPAGE}download/
MASTER_SITES0 = http://spacehopper.org/mirrors/
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
oui-iab-20120604.tar.bz2:0
# GPLv3+
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
WANTLIB = c pcap
CONFIGURE_STYLE = gnu
BUILD_DEPENDS += www/p5-libwww
pre-configure:
cd ${WRKSRC} && \
./get-iab -f ieee-iab.txt -u file://${WRKDIR}/oui-iab/iab.txt && \
./get-oui -f ieee-oui.txt -u file://${WRKDIR}/oui-iab/oui.txt
post-install:
cd ${PREFIX}/share/arp-scan; mv mac-vendor.txt mac-vendor.txt.dist
# maintainer convenience target
# update both arp-scan and arpwatch if regen'ing
listing:
t=`mktemp -d /tmp/oui-iab.XXXXXXXXXX`; \
f=oui-iab-`date +%Y%m%d`.tar.bz2; \
cd $$t; \
mkdir oui-iab; \
cd oui-iab; \
ftp http://standards.ieee.org/develop/regauth/iab/iab.txt; \
ftp http://standards.ieee.org/develop/regauth/oui/oui.txt; \
perl -pi -e 's/Oracle Corporation/Sun Microsystems, Inc./' \
{iab,oui}.txt; \
cd ..; \
tar cjf $$f oui-iab; \
scp $$f naiad:mirrors/
.include <bsd.port.mk>