git: e93a2dfbf9c2 - main - security/py-pass-audit: Update version 1.1=>1.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 04 Dec 2023 22:13:57 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=e93a2dfbf9c2a8890263b83ae8e46d8ec381f6f3 commit e93a2dfbf9c2a8890263b83ae8e46d8ec381f6f3 Author: Tobias Rehbein <tobias.rehbein@web.de> AuthorDate: 2023-12-04 21:45:59 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-12-04 22:13:41 +0000 security/py-pass-audit: Update version 1.1=>1.2 Added: * Check for duplicate / re-used passwords * Add option to limit checks to specific filename Changed: * Simplify the audit process * Use setup.py to manage the full installation and deprecate the Makefile Fixed: * Terminate the GnuPG commandline as it could potentially be a security issue. * Multiple minor fixes: #20, 21, #25 Changelog: https://github.com/roddhjav/pass-audit/blob/master/CHANGELOG.md PR: 275534 Approved by: submitter is maintainer --- security/py-pass-audit/Makefile | 15 +-------------- security/py-pass-audit/distinfo | 6 +++--- security/py-pass-audit/files/patch-setup.py | 16 ++++++++++++++++ security/py-pass-audit/pkg-plist | 24 ++++++++++++------------ 4 files changed, 32 insertions(+), 29 deletions(-) diff --git a/security/py-pass-audit/Makefile b/security/py-pass-audit/Makefile index 0e01162b931e..dd965877f59d 100644 --- a/security/py-pass-audit/Makefile +++ b/security/py-pass-audit/Makefile @@ -1,5 +1,5 @@ PORTNAME= pass-audit -PORTVERSION= 1.1 +PORTVERSION= 1.2 CATEGORIES= security MASTER_SITES= https://github.com/roddhjav/${PORTNAME}/releases/download/v${PORTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -28,17 +28,4 @@ SHEBANG_FILES= ${WRKSRC}/pass_audit/__main__.py post-patch: @${REINPLACE_CMD} -e 's:\<python3\>:${PYTHON_CMD}:g' ${WRKSRC}/audit.bash -pre-install: - ${INSTALL_MAN} ${WRKSRC}/pass-audit.1 \ - ${STAGEDIR}${MANPREFIX}/man/man1/pass-audit.1 - @${MKDIR} ${STAGEDIR}${LOCALBASE}/libexec/password-store/extensions - ${INSTALL_SCRIPT} ${WRKSRC}/audit.bash \ - ${STAGEDIR}${LOCALBASE}/libexec/password-store/extensions/audit.bash - @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d - ${INSTALL_DATA} ${WRKSRC}/completion/pass-audit.bash \ - ${STAGEDIR}${PREFIX}/etc/bash_completion.d/pass-audit - @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions - ${INSTALL_DATA} ${WRKSRC}/completion/pass-audit.zsh \ - ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_pass-audit - .include <bsd.port.mk> diff --git a/security/py-pass-audit/distinfo b/security/py-pass-audit/distinfo index df9ec012a8cd..3542896b0328 100644 --- a/security/py-pass-audit/distinfo +++ b/security/py-pass-audit/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1594742249 -SHA256 (pass-audit-1.1.tar.gz) = 05eb4fea76d3cc8585e82ebbc6323c981037bb92f2381adb861169941981d935 -SIZE (pass-audit-1.1.tar.gz) = 56326 +TIMESTAMP = 1701718283 +SHA256 (pass-audit-1.2.tar.gz) = 570d93841346d94190bf93239783068db668f2f3228c982f746a9fa351e084af +SIZE (pass-audit-1.2.tar.gz) = 56581 diff --git a/security/py-pass-audit/files/patch-setup.py b/security/py-pass-audit/files/patch-setup.py new file mode 100644 index 000000000000..fa83e997b80e --- /dev/null +++ b/security/py-pass-audit/files/patch-setup.py @@ -0,0 +1,16 @@ +--- setup.py.orig 2023-12-04 19:45:19 UTC ++++ setup.py +@@ -10,9 +10,12 @@ base = '/usr' + + share = Path(sys.prefix, 'share') + base = '/usr' +-if os.uname().sysname == 'Darwin': ++if os.uname().sysname == 'Darwin' or os.uname().sysname == 'FreeBSD': + base = '/usr/local' ++ + lib = Path(base, 'lib', 'password-store', 'extensions') ++if os.uname().sysname == 'FreeBSD': ++ lib = Path(base, 'libexec', 'password-store', 'extensions') + + if '--user' in sys.argv: + if 'PASSWORD_STORE_EXTENSIONS_DIR' in os.environ: diff --git a/security/py-pass-audit/pkg-plist b/security/py-pass-audit/pkg-plist index ac7334c5d4e2..be67d807bd98 100644 --- a/security/py-pass-audit/pkg-plist +++ b/security/py-pass-audit/pkg-plist @@ -1,19 +1,19 @@ %%PYTHON_SITELIBDIR%%/pass_audit/__init__.py %%PYTHON_SITELIBDIR%%/pass_audit/__main__.py -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/__main__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/__main__.cpython-%%PYTHON_SUFFIX%%.pyc -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/audit.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/audit.cpython-%%PYTHON_SUFFIX%%.pyc -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/msg.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/msg.cpython-%%PYTHON_SUFFIX%%.pyc -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/passwordstore.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc -%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/passwordstore.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/__main__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/__main__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/audit%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/audit%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/msg%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/msg%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/passwordstore%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/pass_audit/__pycache__/passwordstore%%PYTHON_EXT_SUFFIX%%.pyc %%PYTHON_SITELIBDIR%%/pass_audit/audit.py %%PYTHON_SITELIBDIR%%/pass_audit/msg.py %%PYTHON_SITELIBDIR%%/pass_audit/passwordstore.py libexec/password-store/extensions/audit.bash -etc/bash_completion.d/pass-audit +share/bash-completion/completions/pass-audit +share/man/man1/pass-audit.1.gz share/zsh/site-functions/_pass-audit -man/man1/pass-audit.1.gz