openbsd-ports/security/bsd-airtools/Makefile
jsyn 913143065f Import of bsd-airtools-0.2:
--
bsd-airtools provides a complete toolset for wireless 802.11b auditing.
Namely, it contains a curses-based AP detection application, dstumbler,
that is similar to netstumbler.  It can be used to detect wireless
access points and connected nodes, view signal to noise graphs, and
interactively scroll through scanned APs and view statistics for each.
It also contains a BSD-based WEP cracking application, called dweputils.
Finally, this package includes several tools to allow testing and
analysis of all 14 of the prism2 chipset's debug modes.

WWW: http://www.dachb0den.com/projects/bsd-airtools.html

MAINTAINER=	Jason Peel <jsyn@openbsd.org>

portions looked over by pval@ and brad@
2002-06-08 05:50:50 +00:00

80 lines
2.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2002/06/08 05:50:50 jsyn Exp $
COMMENT= "wireless auditing suite"
DISTNAME= bsd-airtools-v0.2
PKGNAME= bsd-airtools-0.2
CATEGORIES= security net
NEED_VERSION= 1.531
EXTRACT_SUFX= .tgz
HOMEPAGE= http://www.dachb0den.com/projects/bsd-airtools.html
MAINTAINER= Jason Peel <jsyn@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.dachb0den.com/projects/bsd-airtools/ \
ftp://ftp.dachb0den.com/pub/projects/bsd-airtools/
WRKDIST= ${WRKDIR}/bsd-airtools
HEADERFIX_FILES= dstumbler/dstumbler.h dweputils/dwepcrack/dwepcrack.h \
dweputils/dwepdump/dwepdump.c prism2ctl/prism2ctl.c
post-extract:
.for i in ${HEADERFIX_FILES}
@perl -pi -e 's#\<bat\/common\.h\>#\<dev\/ic\/if_wi_ieee\.h\>#' \
${WRKDIST}/$i
.endfor
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}"
do-configure:
cd ${WRKDIST}/dstumbler; env ${MAKE_FLAGS} ./configure
BUILD_DIRS= dstumbler dweputils/dwepdump prism2ctl prism2dump \
dweputils/dwepcrack dweputils/dwepkeygen
do-build:
.for i in ${BUILD_DIRS}
cd ${WRKDIST}/$i; make ${MAKE_FLAGS}
.endfor
NO_REGRESS= Yes
DOCS= ${PREFIX}/share/doc/bsd-airtools
INSTALL_700= dstumbler/dstumbler dweputils/dwepdump/dwepdump \
prism2ctl/prism2ctl prism2dump/prism2dump
INSTALL_755= dweputils/dwepcrack/dwepcrack \
dweputils/dwepkeygen/dwepkeygen
do-install:
.for i in ${INSTALL_700}
${INSTALL_PROGRAM} -m 700 ${WRKDIST}/$i ${PREFIX}/sbin
.endfor
.for i in ${INSTALL_755}
${INSTALL_PROGRAM} -m 755 ${WRKDIST}/$i ${PREFIX}/sbin
.endfor
${INSTALL_DATA_DIR} ${DOCS}
${INSTALL_DATA} ${WRKSRC}/dstumbler/README ${DOCS}/README.dstumbler
${INSTALL_DATA} ${WRKSRC}/dstumbler/OVERVIEW ${DOCS}/OVERVIEW.dstumbler
${INSTALL_DATA} ${WRKSRC}/dweputils/dwepcrack/README \
${DOCS}/README.dwepcrack
${INSTALL_DATA} ${WRKSRC}/dweputils/dwepdump/README \
${DOCS}/README.dwepdump
${INSTALL_DATA} ${WRKSRC}/dweputils/dwepkeygen/README \
${DOCS}/README.dwepkeygen
${INSTALL_DATA} ${WRKSRC}/prism2ctl/README \
${DOCS}/README.prism2ctl
${INSTALL_DATA} ${WRKSRC}/prism2dump/README \
${DOCS}/README.prism2dump
.include <bsd.port.mk>