Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (040c2c6a8541d87358deecf1e44eb67df6275981)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (040c2c6a8541d87358deecf1e44eb67df6275981)
  • Date: Thu, 28 Jul 2022 15:01:54 +0000

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 4 ++++
security/uacme/BUILD | 3 +++
security/uacme/CONFIGURE | 11 +++++++++++
security/uacme/DEPENDS | 16 ++++++++++++++++
security/uacme/DETAILS | 20 ++++++++++++++++++++
security/uacme/HISTORY | 3 +++
security/uacme/PRE_BUILD | 8 ++++++++
security/uacme/libressl.patch | 31 +++++++++++++++++++++++++++++++
8 files changed, 96 insertions(+)

New commits:
commit 040c2c6a8541d87358deecf1e44eb67df6275981
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

uacme: new spell, ACMEv2 client written in plain C with minimal
dependencies

commit c8b7f7a6ac8836a32e637dda821cc8a33fa9789f
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

acme-client: => 1.3.0

commit 4c5e63b832d1fce70e2e2ce98a37a1d3438381b1
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

Revert "libressl: => 1.3.0"

This reverts commit 82a85fa420595da8bd21b13216067346f63c711e.

diff --git a/ChangeLog b/ChangeLog
index 40b8391..fc26104 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2022-07-28 Vlad Glagolev <stealth AT sourcemage.org>
+ * security/uacme: new spell, ACMEv2 client written in plain C with
+ minimal dependencies
+
2022-07-23 Pavel Vinogradov <public AT sourcemage.org>
* MESON_FUNCTIONS: modified default muon options to make it run at
least,
fixed meson_install by correcting variable scopes
diff --git a/security/uacme/BUILD b/security/uacme/BUILD
new file mode 100755
index 0000000..051b65f
--- /dev/null
+++ b/security/uacme/BUILD
@@ -0,0 +1,3 @@
+OPTS="${UACME_OPTS} ${OPTS}" &&
+
+default_build
diff --git a/security/uacme/CONFIGURE b/security/uacme/CONFIGURE
new file mode 100755
index 0000000..309461c
--- /dev/null
+++ b/security/uacme/CONFIGURE
@@ -0,0 +1,11 @@
+config_query_list UACME_SSL "Which SSL library would you like to use?" \
+ openssl \
+ libressl \
+ gnutls \
+ mbedtls &&
+
+if [[ $UACME_SSL != libressl ]]; then
+ config_query_option UACME_OPTS "Enable ualpn?" y \
+ "--with-ualpn" \
+ "--without-ualpn"
+fi
diff --git a/security/uacme/DEPENDS b/security/uacme/DEPENDS
new file mode 100755
index 0000000..9ce3a9a
--- /dev/null
+++ b/security/uacme/DEPENDS
@@ -0,0 +1,16 @@
+depends pkgconfig &&
+depends curl &&
+
+case $UACME_SSL in
+ openssl|libressl)
+ depends $UACME_SSL "--with-openssl"
+ ;;
+ gnutls|mbedtls)
+ depends $UACME_SSL "--with-${UACME_SSL}"
+ ;;
+esac &&
+
+optional_depends asciidoc \
+ "--enable-docs" \
+ "--disable-docs" \
+ "to build and install documentation"
diff --git a/security/uacme/DETAILS b/security/uacme/DETAILS
new file mode 100755
index 0000000..da18195
--- /dev/null
+++ b/security/uacme/DETAILS
@@ -0,0 +1,20 @@
+ SPELL=uacme
+ VERSION=1.7.2
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+
SOURCE_URL[0]=https://github.com/ndilieto/${SPELL}/archive/v${VERSION}.tar.gz
+
SOURCE_HASH=sha512:0323be4d4b17e15c66842b4f8f72dec1051dc370f521736cd1b111df99b182e547e699f93bd4a24238983982d9daaa9b9495a830c82369a29cdc1294525ef7f8
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ DOC_DIRS=""
+ WEB_SITE=https://github.com/ndilieto/uacme
+ LICENSE[0]=GPL
+ ENTERED=20220728
+ SHORT="ACMEv2 client written in plain C with minimal dependencies"
+cat << EOF
+uacme is a lightweight client for the RFC8555 ACMEv2 protocol, written in
plain
+C with minimal dependencies (libcurl and one of GnuTLS, OpenSSL or mbedTLS).
+
+The ACMEv2 protocol allows a Certificate Authority (Let's Encrypt is a
popular
+one) and an applicant to automate the process of verification and certificate
+issuance. The protocol also provides facilities for other certificate
+management functions, such as certificate revocation.
+EOF
diff --git a/security/uacme/HISTORY b/security/uacme/HISTORY
new file mode 100644
index 0000000..c5628ab
--- /dev/null
+++ b/security/uacme/HISTORY
@@ -0,0 +1,3 @@
+2022-07-28 Vlad Glagolev <stealth AT sourcemage.org>
+ * DEPENDS, DETAILS, {PRE_,}BUILD, CONFIGURE, libressl.patch: created
+ spell, version 1.7.2
diff --git a/security/uacme/PRE_BUILD b/security/uacme/PRE_BUILD
new file mode 100755
index 0000000..d5ee3ec
--- /dev/null
+++ b/security/uacme/PRE_BUILD
@@ -0,0 +1,8 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+patch -p1 < "${SPELL_DIRECTORY}/libressl.patch" &&
+
+echo "${VERSION}" > .tarball-version &&
+
+autoreconf -fi
diff --git a/security/uacme/libressl.patch b/security/uacme/libressl.patch
new file mode 100644
index 0000000..4e73c86
--- /dev/null
+++ b/security/uacme/libressl.patch
@@ -0,0 +1,31 @@
+From 63a70a9c2490fec43b63b00275296730b8b8293d Mon Sep 17 00:00:00 2001
+From: Nicola Di Lieto <nicola.dilieto AT gmail.com>
+Date: Thu, 28 Jul 2022 08:08:58 +0200
+Subject: [PATCH] Compatibility wth LibreSSL
+
+fix
https://github.com/ndilieto/uacme/commit/32546c7caa1626bbef860cf81e53d10e29fca5cb#commitcomment-79601040
+---
+ crypto.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/crypto.c b/crypto.c
+index de9e93b..5adcfa9 100644
+--- a/crypto.c
++++ b/crypto.c
+@@ -2349,7 +2349,7 @@ char *csr_gen(char * const *names, bool status_req,
privkey_t key)
+ warnx("csr_gen: -m, --must-staple is not supported by LibreSSL "
+ "- consider recompiling with OpenSSL");
+ goto out;
+-#endif
++#else
+ ext = X509V3_EXT_conf_nid(NULL, NULL, NID_tlsfeature,
+ "status_request");
+ if (!ext) {
+@@ -2357,6 +2357,7 @@ char *csr_gen(char * const *names, bool status_req,
privkey_t key)
+ goto out;
+ }
+ sk_X509_EXTENSION_push(exts, ext);
++#endif
+ }
+ if (!X509_REQ_add_extensions(crq, exts)) {
+ openssl_error("csr_gen");



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (040c2c6a8541d87358deecf1e44eb67df6275981), Vlad Glagolev, 07/28/2022

Archive powered by MHonArc 2.6.24.

Top of Page