Date: Fri, 03 Apr 2026 06:58:29 +0000 From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 145735c80fd3 - main - security/py-iam-expand: New port: Python package to expand and deobfuscate IAM policies Message-ID: <69cf6515.228bf.54487ab3@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=145735c80fd379d28ce3d81b4924250f7a9bdcc3 commit 145735c80fd379d28ce3d81b4924250f7a9bdcc3 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-04-03 05:22:51 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-04-03 05:22:51 +0000 security/py-iam-expand: New port: Python package to expand and deobfuscate IAM policies --- security/Makefile | 1 + security/py-iam-expand/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ security/py-iam-expand/distinfo | 3 +++ security/py-iam-expand/pkg-descr | 3 +++ 4 files changed, 46 insertions(+) diff --git a/security/Makefile b/security/Makefile index 8c74a5733cc0..60a652f885d5 100644 --- a/security/Makefile +++ b/security/Makefile @@ -969,6 +969,7 @@ SUBDIR += py-hkdf SUBDIR += py-htpasswd SUBDIR += py-httpx-auth + SUBDIR += py-iam-expand SUBDIR += py-iamdata SUBDIR += py-iris-check-module SUBDIR += py-iris-client diff --git a/security/py-iam-expand/Makefile b/security/py-iam-expand/Makefile new file mode 100644 index 000000000000..eb0bf2605b34 --- /dev/null +++ b/security/py-iam-expand/Makefile @@ -0,0 +1,39 @@ +PORTNAME= iam-expand +DISTVERSION= 0.3.0 +CATEGORIES= security python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= py_iam_expand-${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python package to expand and deobfuscate IAM policies +WWW= https://github.com/prowler-cloud/py-iam-expand + +LICENSE= APACHE20 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} +# ${PYTHON_PKGNAMEPREFIX}installer>0:devel/py-installer@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}iamdata>0:security/py-iamdata@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 + +NO_ARCH= yes + +do-install: + @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + @cd ${INSTALL_WRKSRC} && ${SETENVI} ${WRK_ENV} ${MAKE_ENV} \ + ${PYTHON_CMD} -m installer --destdir ${STAGEDIR} --prefix ${PREFIX} \ + ${BUILD_WRKSRC}/dist/py_iam_expand-${DISTVERSION}*.whl + @${PYTHON_CMD} -B ${PORTSDIR}/Mk/Scripts/strip_RECORD.py \ + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/py_iam_expand-${DISTVERSION}*.dist-info/RECORD >> ${_PYTHONPKGLIST} + @${REINPLACE_CMD} \ + -e '/\.pyc$$/d' \ + -e 's|^|${PYTHONPREFIX_SITELIBDIR}/|' \ + -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../etc/|etc/|' \ + -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../bin/|bin/|' \ + -e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../share/|share/|' \ + ${_PYTHONPKGLIST} + @cd ${STAGEDIR}${PREFIX} && ${FIND} lib -name '*.pyc' >> ${_PYTHONPKGLIST} + +.include <bsd.port.mk> diff --git a/security/py-iam-expand/distinfo b/security/py-iam-expand/distinfo new file mode 100644 index 000000000000..7fc1b6a70f28 --- /dev/null +++ b/security/py-iam-expand/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1775081779 +SHA256 (py_iam_expand-0.3.0.tar.gz) = 4ccfe25f40ba0633a152c4f86b49cde8972ee3d4b6009b017a4310cc4b9e64c7 +SIZE (py_iam_expand-0.3.0.tar.gz) = 10234 diff --git a/security/py-iam-expand/pkg-descr b/security/py-iam-expand/pkg-descr new file mode 100644 index 000000000000..fa93f4d48f66 --- /dev/null +++ b/security/py-iam-expand/pkg-descr @@ -0,0 +1,3 @@ +Python package to expand and deobfuscate IAM policies. + +This library helps expand and deobfuscate AWS IAM policy actions and resources.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69cf6515.228bf.54487ab3>
