openbsd-ports/net/arp-scan/Makefile
2012-05-14 14:59:58 +00:00

50 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2012/05/14 14:59:58 espie Exp $
COMMENT = ARP scanning and fingerprinting tool
DISTNAME = arp-scan-1.8
REVISION = 1
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-20120508.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
USE_GROFF = Yes
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
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; \
cd ..; \
tar cjf $$f oui-iab; \
scp $$f naiad:mirrors/
.include <bsd.port.mk>