aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-05-03 12:48:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-03 12:54:53 +0000
commit7f2aa0c444feb727e6b94760ea7ef522806b5737 (patch)
treebbb878af5ada0f747823d683c1b8fcf9a42bd40d /unmaintained
parent24888d7657f736add06c15c6998af58c212e98b9 (diff)
downloadaports-7f2aa0c444feb727e6b94760ea7ef522806b5737.tar.bz2
aports-7f2aa0c444feb727e6b94760ea7ef522806b5737.tar.xz
testing/acme-client: move to unmaintained
Diffstat (limited to 'unmaintained')
-rw-r--r--unmaintained/acme-client/APKBUILD38
-rw-r--r--unmaintained/acme-client/default-ca.patch12
-rw-r--r--unmaintained/acme-client/license_update.patch11
3 files changed, 61 insertions, 0 deletions
diff --git a/unmaintained/acme-client/APKBUILD b/unmaintained/acme-client/APKBUILD
new file mode 100644
index 0000000000..202c1abff6
--- /dev/null
+++ b/unmaintained/acme-client/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=acme-client
+pkgver=0.1.16
+_ver=${pkgver//./_}
+pkgrel=6
+pkgdesc="An ACME client for Let's Encrypt written in C"
+url="https://github.com/kristapsdz/acme-client-portable"
+arch="all"
+license="ISC"
+options="!check" # no test suite
+depends="ca-certificates"
+makedepends="bsd-compat-headers libressl-dev" # FIXME: support openssl 1.1
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/kristapsdz/acme-client-portable/archive/VERSION_$_ver.tar.gz
+ default-ca.patch
+ license_update.patch
+ "
+builddir="$srcdir/acme-client-portable-VERSION_$_ver"
+
+build() {
+ cd "$builddir"
+ make PREFIX=/usr
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR=$pkgdir \
+ PREFIX=/usr \
+ MAN1DIR=/usr/share/man/man1 \
+ install
+ install -d "$pkgdir"/var/www/acme "$pkgdir"/etc/ssl/acme
+ install -dm0700 "$pkgdir"/etc/ssl/acme/private "$pkgdir"/etc/acme
+}
+
+sha512sums="0b8dc0e0e2b4dda518f951fac3a1cce72c962abd6a15fb0e39d548ee24637b25d9f90312e6da0817e22adab7d0e5a4ddd86f65ae50c109cb2241481471c6bd80 acme-client-0.1.16.tar.gz
+ff416bad782a60675e0c42c8f611902403f3bdb3daf4e006434cf07837d4c7998e90eef0701f789672495f7cde2d158953f9365055e834619c2ccf52328598ed default-ca.patch
+07ba2de537bd20b11817c1ca695faa784065e141ab9503cad9f8f2f01ef5bb3e2a9f290cde9e3fd1df6408b5ba41158d164f2356fb81eb273e2d6f3b7ace2d5a license_update.patch"
diff --git a/unmaintained/acme-client/default-ca.patch b/unmaintained/acme-client/default-ca.patch
new file mode 100644
index 0000000000..fb23385a76
--- /dev/null
+++ b/unmaintained/acme-client/default-ca.patch
@@ -0,0 +1,12 @@
+diff --git a/config.h b/config.h
+index 31f9653..e2a493f 100644
+--- a/config.h
++++ b/config.h
+@@ -6,6 +6,7 @@
+ # define NOBODY_USER "nobody"
+ #endif
+
++#define DEFAULT_CA_FILE "/etc/ssl/certs/ca-certificates.crt"
+ /*
+ * You can define this if your system has its /var/empty elsewhere.
+ */
diff --git a/unmaintained/acme-client/license_update.patch b/unmaintained/acme-client/license_update.patch
new file mode 100644
index 0000000000..e18e09da83
--- /dev/null
+++ b/unmaintained/acme-client/license_update.patch
@@ -0,0 +1,11 @@
+--- a/main.c
++++ b/main.c
+@@ -33,7 +33,7 @@
+ #include "extern.h"
+
+ #define AGREEMENT "https://letsencrypt.org" \
+- "/documents/LE-SA-v1.1.1-August-1-2016.pdf"
++ "/documents/LE-SA-v1.2-November-15-2017.pdf"
+ #define SSL_DIR "/etc/ssl/acme"
+ #define SSL_PRIV_DIR "/etc/ssl/acme/private"
+ #define ETC_DIR "/etc/acme"