From nobody Thu Jul 04 08:41:27 2024
X-Original-To: dev-commits-ports-all@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 4WF99N02xMz596h2;
Thu, 04 Jul 2024 08:41:28 +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 "R11" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 4WF99M6Xlvz3xbL;
Thu, 4 Jul 2024 08:41:27 +0000 (UTC)
(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1720082487;
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=aw/qqntSg747M4nyNVdmlVs5zRA1CxQZ8Nf4H+lkxJk=;
b=TE31PWShqwTGU7KJ/F4bBZc+Se8lJUT44u2ElpfXuO6oBAYhVRIuOrT0bbOwz8sxd6PzBP
dWBrRqIRnAKfFjtK7U4QkfBsY8qkLa9QZPC6nceYiadC8hHGcaslDGJYq4v1JlO3RzkxtH
CE21nBkIZtXMNYi5n3nCyh1Im9dq9d/Yu8BT7SvG9pUQG/E34qAwhiGGZzyc0VXL+NUv4L
f8Yv+QPvGkuJJ7XLjJl6gF0FrZyzP4b4z94zTdQYhhehp26M9VrkliS7jYSrJknsXCmqxH
9WSdXaPJ+Ryghaa6LpPpTB9E9bhWmgl8uPB0HWAzQPBAOAsBRDbMZOMq9evd4A==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720082487; a=rsa-sha256; cv=none;
b=QTKDXHlZjiLoZsCcNCW6Sbb3Yk6NlZTzDuIuX8uVoV9sz139Xy3K88hxnuV4CMU/bo8DoW
1qlXrJXWE0qybp4x5uolfhNu0FLiQlI0tbHtCivwz/PsBkoUcf5qKvYgJtvj6pO4jjT5Km
v6uDmBmp9yiMAkHnds4iBXIn9zPzQxMbZxGkFswmUTuuC9KNvAKmQ0m4jpxu0r0hy9UIFR
+S317H2UGk/BtbXfpG+jqsJxMqo0dcbRbko++T1wQ97XdY5ajkhmfB4E8ZFuj57Bcuq4vS
7VXqfPFJZsnRNn4kio/NOtkz5nuBMUHsOTFRmgnY5HQMA1ANpEstxE176Mf9MQ==
ARC-Authentication-Results: i=1;
mx1.freebsd.org;
none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
s=dkim; t=1720082487;
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=aw/qqntSg747M4nyNVdmlVs5zRA1CxQZ8Nf4H+lkxJk=;
b=LwUUaJArV36Vx1tsCCwBSE/3bVdCndWdGzh5xCgVf1G0ICbac52fQPFVku9Pr9+R1ysICN
wnN2BSLAeoTYvNhvPmgKNK9TTqGpPsxsV02OOMQ7vHi075f20XCgxkBbTPVdhQdfdhm/bA
TWL4m0WnAGh5/uVbqt3IXa3U6S0ln2JAAF8u7NDe95ucqKFNbhD2/qJ94h+WZmUiljyX2y
SVk3mI+ovMwidUeRwxj+3V+S3PEAnjj4tx16dVlhaL1MEAQrFfah/rOx6ZKDBh5b89AVfE
tfUDxfnpa1O6yqsQWb/Pz/qvnllAJCgq/c7rdnd2x9pTXLDHX6zjIALxW7ck+w==
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 4WF99M67yyz16G5;
Thu, 4 Jul 2024 08:41:27 +0000 (UTC)
(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4648fRtt001352;
Thu, 4 Jul 2024 08:41:27 GMT
(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4648fRb2001349;
Thu, 4 Jul 2024 08:41:27 GMT
(envelope-from git)
Date: Thu, 4 Jul 2024 08:41:27 GMT
Message-Id: <202407040841.4648fRb2001349@gitrepo.freebsd.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org,
dev-commits-ports-main@FreeBSD.org
From: Koichiro Iwao
Subject: git: cee3cb9c7e93 - main - security/py-mkpasswd: Add new
port
List-Id: Commit messages for all branches of the ports repository
List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all
List-Help:
List-Post:
List-Subscribe:
List-Unsubscribe:
X-BeenThere: dev-commits-ports-all@freebsd.org
Sender: owner-dev-commits-ports-all@FreeBSD.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: meta
X-Git-Repository: ports
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: cee3cb9c7e932c3151cd44f00585e7c9f848fd6c
Auto-Submitted: auto-generated
The branch main has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cee3cb9c7e932c3151cd44f00585e7c9f848fd6c
commit cee3cb9c7e932c3151cd44f00585e7c9f848fd6c
Author: Ricardo Branco
AuthorDate: 2024-06-02 10:34:11 +0000
Commit: Koichiro Iwao
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
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.