security/py-mkpasswd: Add new port

PR:		279465
This commit is contained in:
Ricardo Branco 2024-06-02 12:34:11 +02:00 committed by Koichiro Iwao
parent 521fedd411
commit cee3cb9c7e
4 changed files with 39 additions and 0 deletions

View file

@ -970,6 +970,7 @@
SUBDIR += py-liboqs-python SUBDIR += py-liboqs-python
SUBDIR += py-m2crypto SUBDIR += py-m2crypto
SUBDIR += py-maec SUBDIR += py-maec
SUBDIR += py-makepasswd
SUBDIR += py-merkletools SUBDIR += py-merkletools
SUBDIR += py-mixbox SUBDIR += py-mixbox
SUBDIR += py-mnemonic SUBDIR += py-mnemonic

View file

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

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1717322434
SHA256 (ricardobranco777-mkpasswd-v2.1_GH0.tar.gz) = 895ea5be46d9fe0d740cf953799b9f386f945f15ab6c992607734f5ca32e23eb
SIZE (ricardobranco777-mkpasswd-v2.1_GH0.tar.gz) = 4053

View file

@ -0,0 +1 @@
mkpasswd encrypts the given password with the crypt(3) libc function, using the given salt.