62 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.23 2019/11/10 15:58:51 sthen Exp $
2019-11-10 15:10:03 +00:00
FIX_EXTRACT_PERMISSIONS = Yes
COMMENT = Python classes providing access to network packets
2016-09-01 12:21:05 +00:00
MODPY_EGG_VERSION = 0.9.15
2014-09-29 08:11:31 +00:00
DISTNAME = impacket-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 3
EPOCH = 0
CATEGORIES = net security
HOMEPAGE = https://www.secureauth.com/labs/open-source-tools/impacket
2014-09-29 08:11:31 +00:00
# Apache modified
PERMIT_PACKAGE = Yes
2015-04-02 14:21:12 +00:00
MODPY_PI = Yes
MODULES = lang/python
2014-09-29 08:11:31 +00:00
MODPY_ADJ_FILES = impacket/ese.py \
2015-06-04 08:03:49 +00:00
impacket/examples/logger.py \
2016-09-01 12:21:05 +00:00
impacket/examples/ntlmrelayx/clients/httprelayclient.py \
impacket/examples/ntlmrelayx/clients/ldaprelayclient.py \
impacket/examples/ntlmrelayx/clients/mssqlrelayclient.py \
impacket/examples/ntlmrelayx/clients/smbrelayclient.py \
impacket/examples/ntlmrelayx/servers/httprelayserver.py \
impacket/examples/ntlmrelayx/servers/smbrelayserver.py \
impacket/examples/ntlmrelayx/utils/config.py \
impacket/examples/ntlmrelayx/utils/targetsutils.py \
2014-09-29 08:11:31 +00:00
impacket/tds.py
# one example also uses python-tkinter, but it's pretty heavy and
# not required for normal use.
2015-06-04 08:03:49 +00:00
RUN_DEPENDS = devel/py-asn1>=0.1.7 \
net/py-pcapy \
2018-05-12 21:01:05 +00:00
security/py-cryptodome \
2014-09-29 08:11:31 +00:00
security/py-openssl
2013-03-11 11:35:43 +00:00
NO_TEST = Yes
2014-09-29 08:11:31 +00:00
pre-configure:
2016-01-11 09:28:16 +00:00
${SUBST_CMD} ${WRKSRC}/examples/goldenPac.py \
${WRKSRC}/examples/nmapAnswerMachine.py \
${WRKSRC}/examples/raiseChild.py
2014-09-29 08:11:31 +00:00
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-impacket
2014-09-29 08:11:31 +00:00
mv ${PREFIX}/bin/*.py ${PREFIX}/share/examples/py-impacket/
mv ${PREFIX}/share/doc/impacket ${PREFIX}/share/doc/py-impacket
# Fix permissions
chmod 0444 ${PREFIX}/share/doc/py-impacket/*
# Add missing shebangs
.for s in loopchain nmapAnswerMachine os_ident uncrc32
perl -pi -e 'print "#!${MODPY_BIN}\n" if $$. == 1' \
${PREFIX}/share/examples/py-impacket/${s}.py
.endfor
.include <bsd.port.mk>