From nobody Mon Jan 30 13:04:48 2023 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 4P57gh6ly4z3cYGL; Mon, 30 Jan 2023 13:04:48 +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 4P57gh5Tn9z4Lcy; Mon, 30 Jan 2023 13:04:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675083888; 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=l6WAI3/NwCfufbPKdGFHMLdm7dWQSk85mIemCJJvKIE=; b=gQdBoBbxNNYE7daLsuPOd9X0B+yu9NINEgpi5dcK59/MPSEfjpP9KfAYG3QReYvFJdZV26 cDsiGBCIX3GqNGwlnLWQ6qi7SfcwBKgxbAPvghuJmkD7zVQaPQ81GB9OJsmQTc9ibvKC2g 0EKKg6pZpwDHmOhWqXfuadksOajllkl+W4uRr9M4BN6RDePajxob3VERIfHVJGhJkAybWs W21idBY7903pGhmHh0ig5uVZnrVZMsoeNPWwFs08jXToIpOO5s/dLIUzL+4OQd34xDVhQu KX3Dh/VsSoPn/Q0KDyV9/asi73k6/Ip8Ndy3BrZitJOQu5vQeqOIupoOVyGAyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675083888; 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=l6WAI3/NwCfufbPKdGFHMLdm7dWQSk85mIemCJJvKIE=; b=QvPZMrplSbFoJksmlvBCSBHPoI9PB3FC7IcK9XjcyYQe2xQsqtbKG8+xxmqA3kcLMdrU8Z 6z9uTj0mVeMNlRAKC44l6uqzw0A6CN+jOVDKFGl/hpOkJJ5PklqpTJkVchZH4aJIredd0S wLJIhA4dMWBwADzuyphef1gRy5WOCBnPnVKNouac2RmzKggkNV4KZwL7+NqlZC/Hb+/tuL B0RBekLnOhMHhcu+cgRqte9Kkq/qx9iBooBokUrqBLoVKn4K04rgut1q00Da5kcS87KHUZ uTWTOUsjAgmFHQGkdLIYfzwf6MU+mG5O2urhKnCK94KjbeAX2fZfsWlx/efEbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675083888; a=rsa-sha256; cv=none; b=CxjeDUHmcY7rMnUjY6nsdYTSTzwurEyAxmBVSjzsjkDy/JnmXjKgBatlnSkSYCFP4L1RhN gDI5ZMzSbWAYoBZ/BwmZrg+86bCBqXt78qGC1fU768YiAwkxBTVSdFzzg6/FZ7yIAXkGgE W/jR8wau9YdGxY9ctMSNz5bxMryUPYSJw2Y0VS+fIa4z0aSXE2QoBj5akd9CvaK1JliOhZ 4DMX/npufeOqkFQUcEHGki/wiu54sVmF1sBx+Yfmg4PxmyZGB/OU6eK6X5XUIHIg5vSfAO 2A+bcWNjZiwYJ1LPS4lmzSYSj4PL33FPoLsEMKL2SHszWatbJShyqMYmreun+g== 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 4P57gh4Q9lz18Rk; Mon, 30 Jan 2023 13:04:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30UD4mT0051304; Mon, 30 Jan 2023 13:04:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30UD4mjf051303; Mon, 30 Jan 2023 13:04:48 GMT (envelope-from git) Date: Mon, 30 Jan 2023 13:04:48 GMT Message-Id: <202301301304.30UD4mjf051303@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 0421e03a23be - main - security/py-pem: Add py-pem 21.2.0 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: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0421e03a23be9fbec212738a717eb208c7532d02 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=0421e03a23be9fbec212738a717eb208c7532d02 commit 0421e03a23be9fbec212738a717eb208c7532d02 Author: Po-Chuan Hsieh AuthorDate: 2023-01-30 12:21:12 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-01-30 12:58:48 +0000 security/py-pem: Add py-pem 21.2.0 pem is an MIT-licensed Python module for parsing and splitting of PEM files, i.e. Base64-encoded DER keys and certificates. It runs on Python 3.7+, has no dependencies, and does not attempt to interpret the certificate data in any way. It's born from the need to load keys, certificates, trust chains, and DH parameters from various certificate deployments: some servers (like Apache) expect them to be a separate file, others (like nginx) expect them concatenated to the server certificate and finally some (like HAProxy) expect key, certificate, and chain to be in one file. Additionally to the vanilla parsing code, pem also contains helpers for Twisted that save a lot of boilerplate code. --- security/Makefile | 1 + security/py-pem/Makefile | 19 +++++++++++++++++++ security/py-pem/distinfo | 3 +++ security/py-pem/pkg-descr | 14 ++++++++++++++ 4 files changed, 37 insertions(+) diff --git a/security/Makefile b/security/Makefile index 45202cb32f74..cda53cb58d72 100644 --- a/security/Makefile +++ b/security/Makefile @@ -935,6 +935,7 @@ SUBDIR += py-pass-git-helper SUBDIR += py-passlib SUBDIR += py-pbkdf2 + SUBDIR += py-pem SUBDIR += py-pgpdump SUBDIR += py-pgpy SUBDIR += py-plaso diff --git a/security/py-pem/Makefile b/security/py-pem/Makefile new file mode 100644 index 000000000000..83ccb8025800 --- /dev/null +++ b/security/py-pem/Makefile @@ -0,0 +1,19 @@ +PORTNAME= pem +PORTVERSION= 21.2.0 +CATEGORIES= security python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Easy PEM file parsing in Python +WWW= https://github.com/hynek/pem + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/security/py-pem/distinfo b/security/py-pem/distinfo new file mode 100644 index 000000000000..d7685ecdd6d0 --- /dev/null +++ b/security/py-pem/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1674588064 +SHA256 (pem-21.2.0.tar.gz) = c491833b092662626fd58a87375d450637d4ee94996ad9bbbd42593428e93e5a +SIZE (pem-21.2.0.tar.gz) = 35546 diff --git a/security/py-pem/pkg-descr b/security/py-pem/pkg-descr new file mode 100644 index 000000000000..c2907038fe7d --- /dev/null +++ b/security/py-pem/pkg-descr @@ -0,0 +1,14 @@ +pem is an MIT-licensed Python module for parsing and splitting of PEM files, +i.e. Base64-encoded DER keys and certificates. + +It runs on Python 3.7+, has no dependencies, and does not attempt to interpret +the certificate data in any way. + +It's born from the need to load keys, certificates, trust chains, and DH +parameters from various certificate deployments: some servers (like Apache) +expect them to be a separate file, others (like nginx) expect them concatenated +to the server certificate and finally some (like HAProxy) expect key, +certificate, and chain to be in one file. + +Additionally to the vanilla parsing code, pem also contains helpers for Twisted +that save a lot of boilerplate code.