From nobody Mon Dec 4 22:13:57 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SkdH96d79z52tjX; Mon, 4 Dec 2023 22:13:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SkdH95ny0z4PHb; Mon, 4 Dec 2023 22:13:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701728037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6tm6r8StnrVMyhypOmnUmpfqWgxj17pYzrRM/XkTQp8=; b=h4dwHE4m6hzGeMLm55/vdpoCvHV6hMeLx+r81MJ4BhbJbrSXAp2yU2pm81BL31Hnf4eKCa jw8ymF6rTjufnW2VRCW0CppeL71NsI7fKxsNMdtVSXlPQqphk6q2MnPF/i7+9bBQH8YSpd kc8NPBCc31O9Yhows2/WumtQYzGbnQMGXuTloNzYDxrqnJT/DDRyEJAPYoKk9To/Z+W3Da DsS0/nZ+02PjMmTYiDujcCD4GHlylnBW6Li2hs2zcOojb3U7Myr6xSKwyTvHZPRES5vgIR JpCtmnOxOIAfyNHyxyhGdCTcjl+E9u6gcU5HAo/corOXv8k30YBwsICzeMPK/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701728037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6tm6r8StnrVMyhypOmnUmpfqWgxj17pYzrRM/XkTQp8=; b=THEUcv8lxwRBHTzClsYHoqDq5VKS+dnPqniCBdfsqmU68Adjz2/KYl+UK0UbXl5291/F/k DXj/DmSRZer+AewgEgTIoJoIOC9h7JU1csSUwKm+S8OdzCrYuwkK/EGF8DGr87iI4DCfNI 4bSKhs6ZTyokveoeFIuvC//vfTe4qx7FG5J5gmf23cu8WsRZRpjOcKk1rpZSj06btPvR1o aysnWR64uRy2T5f7g6+2HwwotB/+c036nzz2KHJ8EmiJjhJVEb8quUyvFEUEvw1qJnzWIc EhWoMYVMlbuYptweeS+hzI8HoCXZtqUhd3Pn6ZGH6UosxDdXlfjkyg/czxasDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701728037; a=rsa-sha256; cv=none; b=DFVakGAH6pMSVo2pi1Olahi8C8LSEjCQu5cJbWRRXIHZuJmDVJ9UoOATEKnfqDOzOwehHy 5NKlUFz/P49B40d+sTkuJ3Y06dzuJg+umAGgHwDbyBFo4Qrk5bhVegbgnESSjRdryC2WUN g3UohplbcYxCtfjxtvjF7+59fUManeBIS85JW92tge5fPyNLKUxN1/5Caq0OjmFYbsmbrA jJZoAazUtcVoiJtRpPpHJAukEZI8U8krAUO8mj4kICfhjBDiL2CDvukT3I3TCUZMw8CIJa SOJx/8P68CcRaP9DrUMdWvBOwerboNl1ZJuAzSEmIECfC5398h0J+G54s0fCQg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SkdH94s5MzkWy; Mon, 4 Dec 2023 22:13:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B4MDvp5079423; Mon, 4 Dec 2023 22:13:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B4MDvnZ079420; Mon, 4 Dec 2023 22:13:57 GMT (envelope-from git) Date: Mon, 4 Dec 2023 22:13:57 GMT Message-Id: <202312042213.3B4MDvnZ079420@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: e93a2dfbf9c2 - main - security/py-pass-audit: Update version 1.1=>1.2 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e93a2dfbf9c2a8890263b83ae8e46d8ec381f6f3 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=e93a2dfbf9c2a8890263b83ae8e46d8ec381f6f3 commit e93a2dfbf9c2a8890263b83ae8e46d8ec381f6f3 Author: Tobias Rehbein AuthorDate: 2023-12-04 21:45:59 +0000 Commit: Muhammad Moinur Rahman 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:\:${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 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