pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

acme-client: Introduce config file from OpenBSD tree



Module Name:	pkgsrc-wip
Committed By:	Ryo ONODERA <ryoon%NetBSD.org@localhost>
Pushed By:	ryoon
Date:		Fri Jun 22 08:52:54 2018 +0900
Changeset:	5a439dfd9ba7751b7e663f07dc9c35b7ac96a000

Modified Files:
	acme-client/Makefile
	acme-client/PLIST
Added Files:
	acme-client/files/acme-client.conf.in

Log Message:
acme-client: Introduce config file from OpenBSD tree

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5a439dfd9ba7751b7e663f07dc9c35b7ac96a000

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 acme-client/Makefile                  | 12 ++++++++++++
 acme-client/PLIST                     |  1 +
 acme-client/files/acme-client.conf.in | 20 ++++++++++++++++++++
 3 files changed, 33 insertions(+)

diffs:
diff --git a/acme-client/Makefile b/acme-client/Makefile
index 5d0e33c752..673b236427 100644
--- a/acme-client/Makefile
+++ b/acme-client/Makefile
@@ -21,8 +21,20 @@ SUBST_FILES.paths=	${WRKSRC}/acme-client.1
 SUBST_FILES.paths+=	${WRKSRC}/config.h
 SUBST_FILES.paths+=	${WRKSRC}/http.c
 SUBST_FILES.paths+=	${WRKSRC}/main.c
+SUBST_FILES.paths+=	${WRKDIR}/acme-client.conf
 SUBST_SED.paths=	-e 's|/etc/ssl|${PKG_SYSCONFDIR}/ssl|g'
 SUBST_SED.paths+=	-e 's|/etc/acme|${PKG_SYSCONFDIR}/acme|g'
 
+EGDIR=			share/examples/acme-client
+INSTALLATION_DIRS+=	${EGDIR}
+
+CONF_FILES+=	${EGDIR}/acme-client.conf ${PKG_SYSCONFDIR}/acme-client.conf
+
+post-extract:
+	${CP} ${FILESDIR}/acme-client.conf.in ${WRKDIR}/acme-client.conf
+
+post-install:
+	${INSTALL_DATA} ${WRKDIR}/acme-client.conf ${DESTDIR}${PREFIX}/${EGDIR}
+
 .include "../../security/libressl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/acme-client/PLIST b/acme-client/PLIST
index 64e4eec9b4..9cd59b12b8 100644
--- a/acme-client/PLIST
+++ b/acme-client/PLIST
@@ -1,3 +1,4 @@
 @comment $NetBSD$
 bin/acme-client
 man/man1/acme-client.1
+share/examples/acme-client/acme-client.conf
diff --git a/acme-client/files/acme-client.conf.in b/acme-client/files/acme-client.conf.in
new file mode 100644
index 0000000000..1fdd4a52b4
--- /dev/null
+++ b/acme-client/files/acme-client.conf.in
@@ -0,0 +1,20 @@
+#
+# $OpenBSD: acme-client.conf,v 1.7 2018/04/13 08:24:38 ajacoutot Exp $
+#
+authority letsencrypt {
+	api url "https://acme-v01.api.letsencrypt.org/directory";
+	account key "/etc/acme/letsencrypt-privkey.pem"
+}
+
+authority letsencrypt-staging {
+	api url "https://acme-staging.api.letsencrypt.org/directory";
+	account key "/etc/acme/letsencrypt-staging-privkey.pem"
+}
+
+#domain example.com {
+#	alternative names { secure.example.com }
+#	domain key "/etc/ssl/private/example.com.key"
+#	domain certificate "/etc/ssl/example.com.crt"
+#	domain full chain certificate "/etc/ssl/example.com.fullchain.pem"
+#	sign with letsencrypt
+#}


Home | Main Index | Thread Index | Old Index