dcoppa 9fb3614f1d Revert previous: 0.9.14 is broken.
I'll open an issue on upstream's github.
2016-01-12 10:22:32 +00:00

50 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2016/01/12 10:22:32 dcoppa Exp $
COMMENT = Python classes providing access to network packets
MODPY_EGG_VERSION = 0.9.13
DISTNAME = impacket-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
EPOCH = 0
CATEGORIES = net security
HOMEPAGE = http://corelabs.coresecurity.com/index.php?module=Wiki&action=view&type=tool&name=Impacket
# Apache modified
PERMIT_PACKAGE_CDROM = Yes
MODPY_PI = Yes
MODULES = lang/python
MODPY_ADJ_FILES = impacket/ese.py \
impacket/examples/logger.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-crypto>=2.6 \
security/py-openssl
NO_TEST = Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/examples/goldenPac.py \
${WRKSRC}/examples/nmapAnswerMachine.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>