if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.13 2021/02/23 19:39:39 sthen Exp $
|
|
|
|
COMMENT = Pwntools CTF framework and exploit development library
|
|
|
|
MODPY_EGG_VERSION = 4.3.1
|
|
DISTNAME = pwntools-${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES = security
|
|
|
|
HOMEPAGE = https://pwntools.com
|
|
|
|
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
# 'Mostly MIT, some GPL/BSD, see LICENSE-pwntools.txt'
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = lang/python
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
RUN_DEPENDS = devel/capstone/python${MODPY_FLAVOR} \
|
|
devel/py-dateutil${MODPY_FLAVOR} \
|
|
devel/py-elftools${MODPY_FLAVOR} \
|
|
devel/py-intervaltree${MODPY_FLAVOR} \
|
|
devel/py-serial${MODPY_FLAVOR} \
|
|
devel/py-sortedcontainers${MODPY_FLAVOR} \
|
|
devel/py-unicorn${MODPY_FLAVOR}<=1.0.2 \
|
|
net/py-socks${MODPY_FLAVOR} \
|
|
security/ROPgadget \
|
|
security/py-paramiko${MODPY_FLAVOR} \
|
|
sysutils/py-packaging${MODPY_FLAVOR} \
|
|
sysutils/py-psutil${MODPY_FLAVOR} \
|
|
textproc/py-pygments${MODPY_FLAVOR} \
|
|
www/py-mako${MODPY_FLAVOR} \
|
|
www/py-requests${MODPY_FLAVOR}
|
|
|
|
# Remove code to check for and apply updates
|
|
post-extract:
|
|
rm ${WRKSRC}/pwnlib/update.py
|
|
|
|
# ???
|
|
post-install:
|
|
rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/requirements.txt
|
|
|
|
.include <bsd.port.mk>
|