jasper d9c3bf0f6d - update to pwntools-4.1.2
- relax the unicorn dependency in setup.py for now as it requires 1.0.2rc3 which we don't have just yet.
  this effectively unfixes upstream #1115 (Fix gadget caching for ROP objects with multiple ELFs) for us
    for the time being; which i think is a fair trade-off to allow us to update pwntools

    based on an earlier diff by gonzalo@
2020-06-13 09:24:29 +00:00

47 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2020/06/13 09:24:29 jasper Exp $
COMMENT = Pwntools CTF framework and exploit development library
MODPY_EGG_VERSION = 4.1.2
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_VERSION = ${MODPY_DEFAULT_VERSION_3}
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} \
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,robots}.txt
.include <bsd.port.mk>