* [bug#47840] [PATCH] gnu: Add desec-certbot-hook.
@ 2021-04-17 11:46 Raghav Gururajan via Guix-patches via
2021-04-17 23:32 ` [bug#47840] [PATCH v2] " Raghav Gururajan via Guix-patches via
2021-06-23 16:59 ` bug#47840: (no subject) Raghav Gururajan via Guix-patches via
0 siblings, 2 replies; 3+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-04-17 11:46 UTC (permalink / raw)
To: 47840; +Cc: Raghav Gururajan
* gnu/packages/tls.scm (desec-certbot-hook): New variable.
---
gnu/packages/tls.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 25493cc7ca..e7e50d7f53 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -42,6 +42,7 @@
#:use-module (guix build-system perl)
#:use-module (guix build-system python)
#:use-module (guix build-system cmake)
+ #:use-module (guix build-system copy)
#:use-module (guix build-system trivial)
#:use-module (gnu packages compression)
#:use-module (gnu packages)
@@ -70,6 +71,37 @@
#:use-module (gnu packages base)
#:use-module (srfi srfi-1))
+(define-public desec-certbot-hook
+ (let ((commit "68da7abc0793602fd336962a7e2348b57c5d6fd6")
+ (revision "21"))
+ (package
+ (name "desec-certbot-hook")
+ (version
+ (git-version "0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/desec-io/desec-certbot-hook")
+ (commit commit)))
+ (file-name
+ (git-file-name name version))
+ (sha256
+ (base32 "0qjqk6i85b1y7fgzcx74r4gn2i4dkjza34hkzp6kyn9hrb8f2gv2"))))
+ (build-system copy-build-system)
+ (arguments
+ `(#:install-plan
+ '(("." "etc/desec" #:include ("hook.sh")))))
+ (synopsis "deSEC's certbot DNS challenge automatization")
+ (description "Use deSEC to obtain certificates with certbot DNS ownership
+verification. With the help of this hook script, you can obtain your Let's
+Encrypt certificate using certbot with authorization provided by the DNS
+challenge mechanism, that is, you will not need a running web server or any port
+forwarding to your local machine.")
+ (home-page "https://desec.io")
+ (license license:expat))))
+
(define-public libtasn1
(package
(name "libtasn1")
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#47840] [PATCH v2] gnu: Add desec-certbot-hook.
2021-04-17 11:46 [bug#47840] [PATCH] gnu: Add desec-certbot-hook Raghav Gururajan via Guix-patches via
@ 2021-04-17 23:32 ` Raghav Gururajan via Guix-patches via
2021-06-23 16:59 ` bug#47840: (no subject) Raghav Gururajan via Guix-patches via
1 sibling, 0 replies; 3+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-04-17 23:32 UTC (permalink / raw)
To: 47840; +Cc: Raghav Gururajan
* gnu/packages/tls.scm (desec-certbot-hook): New variable.
---
gnu/packages/tls.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 25493cc7ca..40e003d024 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -42,6 +42,7 @@
#:use-module (guix build-system perl)
#:use-module (guix build-system python)
#:use-module (guix build-system cmake)
+ #:use-module (guix build-system copy)
#:use-module (guix build-system trivial)
#:use-module (gnu packages compression)
#:use-module (gnu packages)
@@ -70,6 +71,55 @@
#:use-module (gnu packages base)
#:use-module (srfi srfi-1))
+(define-public desec-certbot-hook
+ (let ((commit "68da7abc0793602fd336962a7e2348b57c5d6fd6")
+ (revision "21"))
+ (package
+ (name "desec-certbot-hook")
+ (version
+ (git-version "0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/desec-io/desec-certbot-hook")
+ (commit commit)))
+ (file-name
+ (git-file-name name version))
+ (sha256
+ (base32 "0qjqk6i85b1y7fgzcx74r4gn2i4dkjza34hkzp6kyn9hrb8f2gv2"))))
+ (build-system copy-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-script
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "hook.sh"
+ ;; The hook-script look for '.dedynauth' file in $PWD.
+ ;; But users cannot create or edit files in store.
+ ;; So we patch the hook-script to look for '.dedynauth' file,
+ ;; in /etc/desec.
+ (("\\$\\(pwd\\)")
+ "/etc/desec")
+ ;; Make absolute references to curl program,
+ ;; so that users don't have to install it separately.
+ (("curl")
+ (string-append (assoc-ref inputs "curl")
+ "/bin/curl"))))))
+ #:install-plan
+ '(("." "etc/desec" #:include ("hook.sh")))))
+ (inputs
+ `(("curl" ,curl)))
+ (synopsis "deSEC's certbot DNS challenge automatization")
+ (description "Use deSEC to obtain certificates with certbot DNS ownership
+verification. With the help of this hook script, you can obtain your Let's
+Encrypt certificate using certbot with authorization provided by the DNS
+challenge mechanism, that is, you will not need a running web server or any port
+forwarding to your local machine.")
+ (home-page "https://desec.io")
+ (license license:expat))))
+
(define-public libtasn1
(package
(name "libtasn1")
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#47840: (no subject)
2021-04-17 11:46 [bug#47840] [PATCH] gnu: Add desec-certbot-hook Raghav Gururajan via Guix-patches via
2021-04-17 23:32 ` [bug#47840] [PATCH v2] " Raghav Gururajan via Guix-patches via
@ 2021-06-23 16:59 ` Raghav Gururajan via Guix-patches via
1 sibling, 0 replies; 3+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-06-23 16:59 UTC (permalink / raw)
To: 47840-done
[-- Attachment #1.1: Type: text/plain, Size: 37 bytes --]
Pushed as 620669fd17..acfa55a581.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-23 17:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-17 11:46 [bug#47840] [PATCH] gnu: Add desec-certbot-hook Raghav Gururajan via Guix-patches via
2021-04-17 23:32 ` [bug#47840] [PATCH v2] " Raghav Gururajan via Guix-patches via
2021-06-23 16:59 ` bug#47840: (no subject) Raghav Gururajan via Guix-patches via
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).