git: cee3cb9c7e93 - main - security/py-mkpasswd: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Jul 2024 08:41:27 UTC
The branch main has been updated by meta: URL: https://cgit.FreeBSD.org/ports/commit/?id=cee3cb9c7e932c3151cd44f00585e7c9f848fd6c commit cee3cb9c7e932c3151cd44f00585e7c9f848fd6c Author: Ricardo Branco <rbranco@suse.de> AuthorDate: 2024-06-02 10:34:11 +0000 Commit: Koichiro Iwao <meta@FreeBSD.org> CommitDate: 2024-07-04 08:40:48 +0000 security/py-mkpasswd: Add new port PR: 279465 --- security/Makefile | 1 + security/py-mkpasswd/Makefile | 34 ++++++++++++++++++++++++++++++++++ security/py-mkpasswd/distinfo | 3 +++ security/py-mkpasswd/pkg-descr | 1 + 4 files changed, 39 insertions(+) diff --git a/security/Makefile b/security/Makefile index 8ad23ac8b1ae..8c4f4dde9118 100644 --- a/security/Makefile +++ b/security/Makefile @@ -970,6 +970,7 @@ SUBDIR += py-liboqs-python SUBDIR += py-m2crypto SUBDIR += py-maec + SUBDIR += py-makepasswd SUBDIR += py-merkletools SUBDIR += py-mixbox SUBDIR += py-mnemonic diff --git a/security/py-mkpasswd/Makefile b/security/py-mkpasswd/Makefile new file mode 100644 index 000000000000..b55a6be3fbdb --- /dev/null +++ b/security/py-mkpasswd/Makefile @@ -0,0 +1,34 @@ +PORTNAME= mkpasswd +DISTVERSIONPREFIX= v +PORTVERSION= 2.1 +CATEGORIES= security python + +MAINTAINER= rbranco@suse.de +COMMENT= Overfeatured front end to crypt(3) + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= ricardobranco777 +GH_PROJECT= mkpasswd + +USES= python +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}argon2-cffi>=21.1:security/py-argon2-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}passlib>=1.7.4:security/py-passlib@${PY_FLAVOR} + +NO_ARCH= yes + +PLIST_FILES= bin/mkpasswd + +# Fix she-bang +post-patch: + ${REINPLACE_CMD} -e '1s|^#!.*|#!${PYTHON_CMD}|' ${WRKSRC}/mkpasswd + +do-build: + true + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/mkpasswd ${STAGEDIR}${PREFIX}/bin/mkpasswd + +.include <bsd.port.mk> diff --git a/security/py-mkpasswd/distinfo b/security/py-mkpasswd/distinfo new file mode 100644 index 000000000000..9392202c0aca --- /dev/null +++ b/security/py-mkpasswd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1717322434 +SHA256 (ricardobranco777-mkpasswd-v2.1_GH0.tar.gz) = 895ea5be46d9fe0d740cf953799b9f386f945f15ab6c992607734f5ca32e23eb +SIZE (ricardobranco777-mkpasswd-v2.1_GH0.tar.gz) = 4053 diff --git a/security/py-mkpasswd/pkg-descr b/security/py-mkpasswd/pkg-descr new file mode 100644 index 000000000000..235eda474791 --- /dev/null +++ b/security/py-mkpasswd/pkg-descr @@ -0,0 +1 @@ +mkpasswd encrypts the given password with the crypt(3) libc function, using the given salt.