Skip to contentSkip to conversation

package/uacme: new package

PATCH New Nicola Di Lieto 2 participants 2 messages May 1, 2019 – Oct 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/uacme: new package

---
 DEVELOPERS               |  3 +++
 package/Config.in        |  1 +
 package/uacme/Config.in  | 14 ++++++++++++++
 package/uacme/uacme.hash |  3 +++
 package/uacme/uacme.mk   | 30 ++++++++++++++++++++++++++++++
 5 files changed, 51 insertions(+)
 create mode 100644 package/uacme/Config.in
 create mode 100644 package/uacme/uacme.hash
 create mode 100644 package/uacme/uacme.mk
DEVELOPERS +3 -0
index 6ccb0af..4ac1826 100644
@@ -1651,6 +1651,9 @@ N:	Naumann Andreas <[email protected]>
 F:	package/evemu/
 F:	package/libevdev/
 
+N:	Nicola Di Lieto <[email protected]>
+F:	package/uacme/
+
 N:	Nicolas Cavallari <[email protected]>
 F:	package/libgit2/
 
package/Config.in +1 -0
index f592e74..da30283 100644
@@ -2054,6 +2054,7 @@ endif
 	source "package/transmission/Config.in"
 	source "package/tunctl/Config.in"
 	source "package/tvheadend/Config.in"
+	source "package/uacme/Config.in"
 	source "package/udpcast/Config.in"
 	source "package/uftp/Config.in"
 	source "package/uhttpd/Config.in"
package/uacme/Config.in new file +14 -0
new file mode 100644
index 0000000..96247f9
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_UACME
+	bool "uacme"
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_MBEDTLS if !BR2_PACKAGE_GNUTLS
+	select BR2_PACKAGE_LIBCURL
+	help
+	  uacme is a client for the ACMEv2 protocol described in
+	  RFC8555, written in plain C code with minimal dependencies
+	  (libcurl and GnuTLS or mbedTLS). The ACMEv2 protocol allows
+	  a Certificate Authority (https://letsencrypt.org is a
+	  popular one) and an applicant to automate the process of
+	  verification and certificate issuance.
+
+	  https://github.com/ndilieto/uacme
package/uacme/uacme.hash new file +3 -0
new file mode 100644
index 0000000..829333a
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256	31cd4e50b7ff6450ec31cbf19ab50d2f72b4137769e689e4f9f9fd31842198d0	uacme-1.0.7.tar.gz
+sha256	8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903	COPYING
package/uacme/uacme.mk new file +30 -0
new file mode 100644
index 0000000..ab40fbe
@@ -0,0 +1,30 @@
+################################################################################
+#
+# uacme
+#
+################################################################################
+
+UACME_VERSION = 1.0.7
+# Released versions are on branch upstream/latest, tagged as upstream/X.Y.Z
+# Do not use vX.Y.Z tags from master, as they do not include .tarball-version
+UACME_SITE = $(call github,ndilieto,uacme,upstream/$(UACME_VERSION))
+UACME_LICENSE = GPL-3.0+
+UACME_LICENSE_FILES = COPYING
+
+UACME_CONF_OPTS = --disable-maintainer-mode --disable-debug
+
+ifeq ($(BR2_PACKAGE_MBEDTLS),y)
+UACME_CONF_OPTS += --with-mbedtls
+UACME_DEPENDENCIES += mbedtls
+else
+UACME_CONF_OPTS += --without-mbedtls
+endif
+
+ifeq ($(BR2_PACKAGE_GNUTLS),y)
+UACME_CONF_OPTS += --with-gnutls=
+UACME_DEPENDENCIES += gnutls
+else
+UACME_CONF_OPTS += --without-gnutls
+endif
+
+$(eval $(autotools-package))
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/1 package/uacme: new package

Hello Nicola,

Thanks for your contribution, and sorry for the very slow answer.

Quoted 1 line · On Wed, 1 May 2019 16:12:34 +0200 Nicola Di Lieto <[email protected]>…

+UACME_VERSION = 1.0.7

I updated to the latest version 1.0.19

package/uacme/uacme.mk line 12

Quoted 5 lines
package/uacme/uacme.mk new file +5 -0
+# Released versions are on branch upstream/latest, tagged as upstream/X.Y.Z
+# Do not use vX.Y.Z tags from master, as they do not include .tarball-version
+UACME_SITE = $(call github,ndilieto,uacme,upstream/$(UACME_VERSION))
+UACME_LICENSE = GPL-3.0+
+UACME_LICENSE_FILES = COPYING

You forgot:

UACME_DEPENDENCIES = libcurl

Review

Quoted 2 lines
(quoted diff) +2 -0
+
+UACME_CONF_OPTS = --disable-maintainer-mode --disable-debug

I dropped these, we typically leave the default.

package/uacme/uacme.mk line 24

Quoted 10 lines
package/uacme/uacme.mk new file +10 -0
+
+ifeq ($(BR2_PACKAGE_MBEDTLS),y)
+UACME_CONF_OPTS += --with-mbedtls
+UACME_DEPENDENCIES += mbedtls
+else
+UACME_CONF_OPTS += --without-mbedtls
+endif
+
+ifeq ($(BR2_PACKAGE_GNUTLS),y)
+UACME_CONF_OPTS += --with-gnutls=

The = at the end of the line here was not needed.

package/uacme/uacme.mk line 30

Quoted 6 lines
package/uacme/uacme.mk new file +6 -0
+UACME_DEPENDENCIES += gnutls
+else
+UACME_CONF_OPTS += --without-gnutls
+endif
+
+$(eval $(autotools-package))

Applied with those changes. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com