sthen 35e103f806 update the HOMEPAGE, this could do with a bump to a newer version sometime
to gain py3 support (needs a new port ldapdomaindump which has a forced dep
on py-ldap3 of exactly version 2.5.1 because of a bug in 2.5.2; we have 2.6)
2019-11-10 15:58:51 +00:00

62 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.23 2019/11/10 15:58:51 sthen Exp $
FIX_EXTRACT_PERMISSIONS = Yes
COMMENT = Python classes providing access to network packets
MODPY_EGG_VERSION = 0.9.15
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
# Apache modified
PERMIT_PACKAGE = Yes
MODPY_PI = Yes
MODULES = lang/python
MODPY_ADJ_FILES = impacket/ese.py \
impacket/examples/logger.py \
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 \
impacket/tds.py
# one example also uses python-tkinter, but it's pretty heavy and
# not required for normal use.
RUN_DEPENDS = devel/py-asn1>=0.1.7 \
net/py-pcapy \
security/py-cryptodome \
security/py-openssl
NO_TEST = Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/examples/goldenPac.py \
${WRKSRC}/examples/nmapAnswerMachine.py \
${WRKSRC}/examples/raiseChild.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-impacket
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>