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 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.