summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2025-07-04 18:38:03 +0200
committerEmanuel Haupt <ehaupt@FreeBSD.org>2025-07-04 18:38:10 +0200
commit90d95157180f89dd2b87514fb7e53757bea63988 (patch)
tree583a4f7ee404956426a3a032749ad832e158a6b3
parenttextproc/harper: Update to 0.47.0 (diff)
security/py-pwntools: Disable generic CLI shortcuts
Use --only-use-pwn-command to prevent installing 'main', 'version', 'errno', etc., reducing $PATH clutter and namespace pollution. Upstream plans to remove most generic scripts in 5.0.0, which should further reduce spurious entitlement claims on the system PATH, unlike the reporter’s ex-wife. Upstream issue: https://github.com/Gallopsled/pwntools/issues/2589 PR: 287992 Reported by: milios@ccsys.com
-rw-r--r--security/py-pwntools/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/security/py-pwntools/Makefile b/security/py-pwntools/Makefile
index 6451f8ce529e..f68819a83a7b 100644
--- a/security/py-pwntools/Makefile
+++ b/security/py-pwntools/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pwntools
-PORTVERSION= 4.14.1
+DISTVERSION= 4.14.1
+PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,7 +14,6 @@ LICENSE_COMB= multi
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}capstone>=3.0.5rc2:devel/py-capstone@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}colored-traceback>0:devel/py-colored-traceback@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}python-dateutil>0:devel/py-python-dateutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}intervaltree>=3.0:devel/py-intervaltree@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mako>=1.0.0:textproc/py-mako@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
@@ -24,6 +24,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}capstone>=3.0.5rc2:devel/py-capstone@${PY_FL
${PYTHON_PKGNAMEPREFIX}pygments>=2.9:textproc/py-pygments@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyserial>=2.7:comms/py-pyserial@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pysocks>0:net/py-pysocks@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}python-dateutil>0:devel/py-python-dateutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ropgadget>0:security/py-ropgadget@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rpyc>0:devel/py-RPyC@${PY_FLAVOR} \
@@ -35,4 +36,6 @@ USES= cpe python
CPE_VENDOR= pwntools_project
USE_PYTHON= autoplist concurrent distutils
+PYDISTUTILS_INSTALLARGS+= --only-use-pwn-command
+
.include <bsd.port.mk>