summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-07-06 20:33:44 -0700
committerMichael Forney <mforney@mforney.org>2017-07-06 20:33:44 -0700
commit4760608beb1515d48e97179303cfc96c8da0c024 (patch)
treec4bf4142c9db43d3e9c7ef34a4901078d9516a96 /pkg
parentf3d2078189a0cc016fffa5c10c9ed094808ddff8 (diff)
Add acme-client 0.1.16
Diffstat (limited to 'pkg')
-rw-r--r--pkg/acme-client/gen.rc29
-rw-r--r--pkg/acme-client/patch/0001-Remove-__-BEGIN-END-_DECLS-and-add-sys-types-include.patch62
-rw-r--r--pkg/acme-client/rev1
m---------pkg/acme-client/src0
-rw-r--r--pkg/gen.rc1
5 files changed, 93 insertions, 0 deletions
diff --git a/pkg/acme-client/gen.rc b/pkg/acme-client/gen.rc
new file mode 100644
index 00000000..b5ab9549
--- /dev/null
+++ b/pkg/acme-client/gen.rc
@@ -0,0 +1,29 @@
+cflags\
+ -D _GNU_SOURCE\
+ -isystem pkg/openbsd/include\
+ -isystem '$builddir'/pkg/libressl/include
+
+exe acme-client -d pkg/libressl/headers\
+ acctproc.c\
+ base64.c\
+ certproc.c\
+ chngproc.c\
+ dbg.c\
+ dnsproc.c\
+ fileproc.c\
+ http.c\
+ jsmn.c\
+ json.c\
+ keyproc.c\
+ main.c\
+ netproc.c\
+ revokeproc.c\
+ rsa.c\
+ sandbox-pledge.c\
+ util.c\
+ util-pledge.c\
+ '$builddir'/pkg/libressl/libtls.a.d
+file bin/acme-client '$outdir'/acme-client 755
+man 1 acme-client.1
+
+fetch git
diff --git a/pkg/acme-client/patch/0001-Remove-__-BEGIN-END-_DECLS-and-add-sys-types-include.patch b/pkg/acme-client/patch/0001-Remove-__-BEGIN-END-_DECLS-and-add-sys-types-include.patch
new file mode 100644
index 00000000..f46efb4c
--- /dev/null
+++ b/pkg/acme-client/patch/0001-Remove-__-BEGIN-END-_DECLS-and-add-sys-types-include.patch
@@ -0,0 +1,62 @@
+From e25b260070a79b63f8f6be0cfcfcd1bd48f5e75c Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Thu, 6 Jul 2017 20:32:01 -0700
+Subject: [PATCH] Remove __{BEGIN,END}_DECLS and add sys/types include
+
+---
+ extern.h | 6 ++----
+ http.h | 4 ----
+ 2 files changed, 2 insertions(+), 8 deletions(-)
+
+diff --git a/extern.h b/extern.h
+index cb7664e..3d43c05 100644
+--- a/extern.h
++++ b/extern.h
+@@ -17,6 +17,8 @@
+ #ifndef EXTERN_H
+ #define EXTERN_H
+
++#include <sys/types.h>
++
+ #ifndef PATH_VAR_EMPTY
+ #define PATH_VAR_EMPTY "/var/empty"
+ #endif
+@@ -173,8 +175,6 @@ struct capaths {
+
+ struct jsmnn;
+
+-__BEGIN_DECLS
+-
+ /*
+ * Start with our components.
+ * These are all isolated and talk to each other using sockets.
+@@ -267,6 +267,4 @@ int verbose;
+ */
+ enum comp proccomp;
+
+-__END_DECLS
+-
+ #endif /* ! EXTERN_H */
+diff --git a/http.h b/http.h
+index ba88107..af196db 100644
+--- a/http.h
++++ b/http.h
+@@ -62,8 +62,6 @@ struct httpget {
+ size_t bodypartsz; /* size of bodypart */
+ };
+
+-__BEGIN_DECLS
+-
+ /* Configuration functions. */
+ struct httpcfg *http_init(void);
+ void http_uninit(struct httpcfg *);
+@@ -96,6 +94,4 @@ int http_head_status(const struct http *,
+ struct httphead *http_head_get(const char *,
+ struct httphead *, size_t);
+
+-__END_DECLS
+-
+ #endif /* HTTP_H */
+--
+2.13.2
+
diff --git a/pkg/acme-client/rev b/pkg/acme-client/rev
new file mode 100644
index 00000000..d00491fd
--- /dev/null
+++ b/pkg/acme-client/rev
@@ -0,0 +1 @@
+1
diff --git a/pkg/acme-client/src b/pkg/acme-client/src
new file mode 160000
+Subproject e72cef38d7765d285c5477207d3179afc0b6641
diff --git a/pkg/gen.rc b/pkg/gen.rc
index da970598..f898dca0 100644
--- a/pkg/gen.rc
+++ b/pkg/gen.rc
@@ -1,3 +1,4 @@
+subgen acme-client
subgen adobe-source-fonts
subgen alsa-lib
subgen alsa-utils