Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # $OpenBSD: Makefile,v 1.15 2015/12/03 21:24:31 sthen Exp $
  2. COMMENT= wireless auditing suite
  3. DISTNAME= bsd-airtools-v0.2
  4. PKGNAME= bsd-airtools-0.2
  5. REVISION = 7
  6. CATEGORIES= security net
  7. EXTRACT_SUFX= .tgz
  8. # BSD
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB= c crypto curses pcap
  11. MASTER_SITES= https://spacehopper.org/mirrors/
  12. WRKDIST= ${WRKDIR}/bsd-airtools
  13. HEADERFIX_FILES= dstumbler/dstumbler.h dweputils/dwepcrack/dwepcrack.h \
  14. dweputils/dwepdump/dwepdump.c prism2ctl/prism2ctl.c
  15. post-extract:
  16. .for i in ${HEADERFIX_FILES}
  17. @perl -pi -e 's#\<bat\/common\.h\>#\<dev\/ic\/if_wi_ieee\.h\>#' \
  18. ${WRKDIST}/$i
  19. .endfor
  20. MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}"
  21. do-configure:
  22. cd ${WRKDIST}/dstumbler; env ${MAKE_FLAGS} ./configure
  23. BUILD_DIRS= dstumbler dweputils/dwepdump prism2ctl prism2dump \
  24. dweputils/dwepcrack dweputils/dwepkeygen
  25. do-build:
  26. .for i in ${BUILD_DIRS}
  27. cd ${WRKDIST}/$i; make ${MAKE_FLAGS}
  28. .endfor
  29. NO_TEST= Yes
  30. DOCS= ${PREFIX}/share/doc/bsd-airtools
  31. BINARIES= dstumbler/dstumbler dweputils/dwepdump/dwepdump \
  32. prism2ctl/prism2ctl prism2dump/prism2dump \
  33. dweputils/dwepcrack/dwepcrack \
  34. dweputils/dwepkeygen/dwepkeygen
  35. do-install:
  36. .for i in ${BINARIES}
  37. ${INSTALL_PROGRAM} -m 755 ${WRKDIST}/$i ${PREFIX}/sbin
  38. .endfor
  39. ${INSTALL_DATA_DIR} ${DOCS}
  40. ${INSTALL_DATA} ${WRKSRC}/dstumbler/README ${DOCS}/README.dstumbler
  41. ${INSTALL_DATA} ${WRKSRC}/dstumbler/OVERVIEW ${DOCS}/OVERVIEW.dstumbler
  42. ${INSTALL_DATA} ${WRKSRC}/dweputils/dwepcrack/README \
  43. ${DOCS}/README.dwepcrack
  44. ${INSTALL_DATA} ${WRKSRC}/dweputils/dwepdump/README \
  45. ${DOCS}/README.dwepdump
  46. ${INSTALL_DATA} ${WRKSRC}/dweputils/dwepkeygen/README \
  47. ${DOCS}/README.dwepkeygen
  48. ${INSTALL_DATA} ${WRKSRC}/prism2ctl/README \
  49. ${DOCS}/README.prism2ctl
  50. ${INSTALL_DATA} ${WRKSRC}/prism2dump/README \
  51. ${DOCS}/README.prism2dump
  52. .include <bsd.port.mk>