Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # $OpenBSD: Makefile,v 1.18 2016/09/01 15:13:49 dcoppa Exp $
  2. COMMENT = Python classes providing access to network packets
  3. MODPY_EGG_VERSION = 0.9.15
  4. DISTNAME = impacket-${MODPY_EGG_VERSION}
  5. PKGNAME = py-${DISTNAME}
  6. REVISION = 0
  7. EPOCH = 0
  8. CATEGORIES = net security
  9. HOMEPAGE = https://www.coresecurity.com/corelabs-research/open-source-tools/impacket
  10. # Apache modified
  11. PERMIT_PACKAGE_CDROM = Yes
  12. MODPY_PI = Yes
  13. MODULES = lang/python
  14. MODPY_ADJ_FILES = impacket/ese.py \
  15. impacket/examples/logger.py \
  16. impacket/examples/ntlmrelayx/clients/httprelayclient.py \
  17. impacket/examples/ntlmrelayx/clients/ldaprelayclient.py \
  18. impacket/examples/ntlmrelayx/clients/mssqlrelayclient.py \
  19. impacket/examples/ntlmrelayx/clients/smbrelayclient.py \
  20. impacket/examples/ntlmrelayx/servers/httprelayserver.py \
  21. impacket/examples/ntlmrelayx/servers/smbrelayserver.py \
  22. impacket/examples/ntlmrelayx/utils/config.py \
  23. impacket/examples/ntlmrelayx/utils/targetsutils.py \
  24. impacket/tds.py
  25. # one example also uses python-tkinter, but it's pretty heavy and
  26. # not required for normal use.
  27. RUN_DEPENDS = devel/py-asn1>=0.1.7 \
  28. net/py-pcapy \
  29. security/py-crypto>=2.6 \
  30. security/py-openssl
  31. NO_TEST = Yes
  32. pre-configure:
  33. ${SUBST_CMD} ${WRKSRC}/examples/goldenPac.py \
  34. ${WRKSRC}/examples/nmapAnswerMachine.py \
  35. ${WRKSRC}/examples/raiseChild.py
  36. post-install:
  37. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-impacket
  38. mv ${PREFIX}/bin/*.py ${PREFIX}/share/examples/py-impacket/
  39. mv ${PREFIX}/share/doc/impacket ${PREFIX}/share/doc/py-impacket
  40. # Fix permissions
  41. chmod 0444 ${PREFIX}/share/doc/py-impacket/*
  42. # Add missing shebangs
  43. .for s in loopchain nmapAnswerMachine os_ident uncrc32
  44. perl -pi -e 'print "#!${MODPY_BIN}\n" if $$. == 1' \
  45. ${PREFIX}/share/examples/py-impacket/${s}.py
  46. .endfor
  47. .include <bsd.port.mk>