Makefile 850 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # $OpenBSD: Makefile,v 1.4 2017/02/26 20:13:05 sthen Exp $
  2. COMMENT= passive OS fingerprinting tool
  3. V= 3.09b
  4. DISTNAME= p0f-$V
  5. PKGNAME= p0f3-$V
  6. EXTRACT_SUFX= .tgz
  7. CATEGORIES= security net
  8. HOMEPAGE= http://lcamtuf.coredump.cx/p0f.shtml
  9. # LGPLv2.1
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB += c pcap
  12. MASTER_SITES= http://lcamtuf.coredump.cx/p0f3/releases/
  13. MAKE_FLAGS= CC="${CC}"
  14. BUILD_DEPENDS= shells/bash
  15. NO_TEST= Yes
  16. post-extract:
  17. perl -pi -e 's,^#!/bin/bash,#!${LOCALBASE}/bin/bash,' ${WRKSRC}/build.sh
  18. perl -pi -e 's,^/etc/,${SYSCONFDIR}/,g' ${WRKSRC}/config.h
  19. do-install:
  20. ${INSTALL_PROGRAM} ${WRKSRC}/p0f ${PREFIX}/sbin/p0f3
  21. ${INSTALL_DATA_DIR} ${PREFIX}/share/{examples,doc}/p0f3
  22. ${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/p0f3/
  23. ${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/share/examples/p0f3/p0f3.fp
  24. .include <bsd.port.mk>