From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MKlhH+sDUWHzWQEAgWs5BA (envelope-from ) for ; Mon, 27 Sep 2021 01:36:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wKn4GusDUWGhHQAAB5/wlQ (envelope-from ) for ; Sun, 26 Sep 2021 23:36:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 21F79B1BA for ; Mon, 27 Sep 2021 01:36:11 +0200 (CEST) Received: from localhost ([::1]:44498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUdgo-0004SR-AI for larch@yhetil.org; Sun, 26 Sep 2021 19:36:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUdgg-0004SB-FP for guix-patches@gnu.org; Sun, 26 Sep 2021 19:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUdgg-0004vc-6F for guix-patches@gnu.org; Sun, 26 Sep 2021 19:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUdgf-0006m5-Vy for guix-patches@gnu.org; Sun, 26 Sep 2021 19:36:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50793] [PATCH v3 2/2] gnu: Add cloudflare-cli Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Sep 2021 23:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50793 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50793@debbugs.gnu.org Cc: Stephen Paul Weber , iskarian@mgsn.dev Received: via spool by 50793-submit@debbugs.gnu.org id=B50793.163269932325991 (code B ref 50793); Sun, 26 Sep 2021 23:36:01 +0000 Received: (at 50793) by debbugs.gnu.org; 26 Sep 2021 23:35:23 +0000 Received: from localhost ([127.0.0.1]:38994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUdg3-0006l7-85 for submit@debbugs.gnu.org; Sun, 26 Sep 2021 19:35:23 -0400 Received: from singpolyma.net ([192.99.233.116]:55359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUdg0-0006ku-VF for 50793@debbugs.gnu.org; Sun, 26 Sep 2021 19:35:21 -0400 Received: by singpolyma.net (Postfix, from userid 1000) id BE5E6486168C; Sun, 26 Sep 2021 23:35:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1632699320; bh=9elv09fvN+FnXaxyacwCu6FmQGb0qLz0kBgNiSKQD4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b5Re4QTVc113jma/oL9zpr13WLeHd+JkTb5tGps6eiQcMwm6uaNieFZcbnyqJopwk A21KfPox8FFZjze6TyJgvylUksyNof16/Dvy2R7m/rwJ86KmXNIorJAO5vqip/1HXy 11e1Op9/C+dpxZd/eKBHaYXB849kBM42nPL0deZs= From: Stephen Paul Weber Date: Sun, 26 Sep 2021 18:35:13 -0500 Message-Id: <20210926233513.3710-2-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210926233513.3710-1-singpolyma@singpolyma.net> References: <20210926233513.3710-1-singpolyma@singpolyma.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632699371; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BqRt3aqUGac6/R8M7WO8KPcocWf3VgkZ516TMPkm16w=; b=E7Zpsxg5oIA74lr0Llxh3jKwmOxrKvGEsE8P68ZPwQcK3jM0+lbsGSQgPW5xPAuegmp+8w WxrVFGfwB4FVaKWhqWAe3VgQ62KjTpa89oRa70eicXjfP12d9lvN2Ofytxnk5y9jjEZTR1 r2kEXS+0eezNJEsX9omDyASb8Tpwpwz02cOJhfR79cqKeVo8VBAvuBkc/cLFfzJY4Y4N4d fDYq49BzmGpPbvsx26IX7wiXtcy9yd93Az+FzqU0fA2w87tUOwyIH4X+oBSIGTcwEkykUV 4FbZeyf3JtU2WSPxHTulsj45jXVH2SGJfkoHQxwl1fVzoLxUiEFuPkHXvIlSnQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632699371; a=rsa-sha256; cv=none; b=jUyAZx+v1C235g58zJYUHw1SBFAsdjvQG7vXR/GysvIlSJNdqnTT0V+kYwlyFpprb4SNzp HmABYeakVMit8KM7rTyB2ATDdeVkAda00+N0VNC1UuvplvwxrWb/LHY+utOq5aABQOHdtb MHWl0Cbi41vzyPEKrDko1A1d2z33MJpicZvzOtLrr7Yjd2N2lmLcZvnG/MDgswuqjL9Nli A0BJemJaBQU9YHbOWaUMWMK3H47YAcTEx8u0NjzokZ/dEJblj5wbIh4xnJIW8E/CIoL2yN 9QXYpR5FsKdHbpYISf+q/reQvctxw1qJ+Pf6SVNjFy0FrCz23aOLBMtqAQLcJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=b5Re4QTV; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=b5Re4QTV; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 21F79B1BA X-Spam-Score: 3.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: NBh64T/aCDwS * gnu/packages/dns.scm (cloudflare-cli): New variable. --- gnu/packages/dns.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 45e250138e..3b0da466f5 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -42,6 +42,7 @@ #:use-module (gnu packages bash) #:use-module (gnu packages certs) #:use-module (gnu packages check) + #:use-module (gnu packages curl) #:use-module (gnu packages databases) #:use-module (gnu packages documentation) #:use-module (gnu packages compression) @@ -69,6 +70,7 @@ #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages ragel) + #:use-module (gnu packages serialization) #:use-module (gnu packages shells) #:use-module (gnu packages sphinx) #:use-module (gnu packages swig) @@ -82,11 +84,62 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix utils) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (guix build-system trivial)) +(define-public cloudflare-cli + (let ((commit "2d986d3ec1b0e3158c4bd40e8918947cb74aa392") + (revision "1")) + (package + (name "cloudflare-cli") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/earlchew/cloudflare-cli") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0f86g6n86kwykl3jnhqjrdfy8ybkp03ghr3dlr70q2552qw4axw2")))) + (build-system copy-build-system) + (arguments + `(#:install-plan '(("cloudflare-cli" "bin/") ("cloudflare-cli.sh" "bin/")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'find-jsonsh + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "cloudflare-cli.sh" + (("\\$\\{0%/\\*\\}/jsonsh") + (string-append (assoc-ref inputs "json.sh") "/bin/JSON.sh"))) + #t)) + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (wrap-program (string-append (assoc-ref outputs "out") "/bin/cloudflare-cli") + `("PATH" ":" prefix + (,(string-join + (map (lambda (in) (string-append (assoc-ref inputs in) "/bin")) + '("grep" "curl")) + ":")))) + #t))))) + (inputs + `(("bash-minimal" ,bash-minimal) + ("curl" ,curl) + ("grep" ,grep) + ("json.sh" ,json.sh))) + (synopsis + "CLI to edit Cloudflare DNS records") + (description + "This command line tool to update Cloudfare DNS records is useful for tasks +such as updating dynamic DNS records or updating DNS records for the ACME DNS-01 +protocol.") + (home-page "https://github.com/earlchew/cloudflare-cli") + (license license:expat)))) + (define-public ldns (package (name "ldns") -- 2.20.1