From 10c4957d899f23432ebc6765b16cdeaa586a2873 Mon Sep 17 00:00:00 2001 From: Lauri Tirkkonen Date: Thu, 20 Jan 2022 19:52:59 +0200 Subject: [PATCH] New package: acme-client-1.3.0 portable acme-client existed previously with a different upstream, which was unmaintained - switch to one that is maintained. --- srcpkgs/acme-client/files/acme-client.conf | 31 ++++++++++++++++++++++ srcpkgs/acme-client/template | 21 +++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 srcpkgs/acme-client/files/acme-client.conf create mode 100644 srcpkgs/acme-client/template diff --git a/srcpkgs/acme-client/files/acme-client.conf b/srcpkgs/acme-client/files/acme-client.conf new file mode 100644 index 000000000000..31dd96f00886 --- /dev/null +++ b/srcpkgs/acme-client/files/acme-client.conf @@ -0,0 +1,31 @@ +# +# $OpenBSD: acme-client.conf,v 1.4 2020/09/17 09:13:06 florian Exp $ +# +authority letsencrypt { + api url "https://acme-v02.api.letsencrypt.org/directory" + account key "/etc/acme/letsencrypt-privkey.pem" +} + +authority letsencrypt-staging { + api url "https://acme-staging-v02.api.letsencrypt.org/directory" + account key "/etc/acme/letsencrypt-staging-privkey.pem" +} + +authority buypass { + api url "https://api.buypass.com/acme/directory" + account key "/etc/acme/buypass-privkey.pem" + contact "mailto:me@example.com" +} + +authority buypass-test { + api url "https://api.test4.buypass.no/acme/directory" + account key "/etc/acme/buypass-test-privkey.pem" + contact "mailto:me@example.com" +} + +domain example.com { + alternative names { secure.example.com } + domain key "/etc/ssl/private/example.com.key" + domain full chain certificate "/etc/ssl/example.com.fullchain.pem" + sign with letsencrypt +} diff --git a/srcpkgs/acme-client/template b/srcpkgs/acme-client/template new file mode 100644 index 000000000000..761e6e2ed87c --- /dev/null +++ b/srcpkgs/acme-client/template @@ -0,0 +1,21 @@ +# Template file for 'acme-client' +pkgname=acme-client +version=1.3.0 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config sed" +makedepends="openssl-devel" +short_desc="Portable version of OpenBSD's acme-client" +maintainer="Lauri Tirkkonen " +license="GPL-2.0-only" +homepage="https://git.sr.ht/~graywolf/acme-client-portable/" +distfiles="https://data.wolfsden.cz/sources/acme-client-${version}.tar.gz" +checksum=ac8796652393fa73f32dfda60ed3a437fc260867df1b81fa3c241bd95c5bc719 + +pre_install() { + sed -i 's,/etc/examples/,/usr/share/examples/acme-client/,g' usr.sbin/acme-client/acme-client.conf.5 +} + +post_install() { + vsconf ${FILESDIR}/acme-client.conf +}