From patchwork Tue Oct 5 22:45:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 33632 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CC36227BBE3; Tue, 5 Oct 2021 23:46:50 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9562E27BBE1 for ; Tue, 5 Oct 2021 23:46:50 +0100 (BST) Received: from localhost ([::1]:43946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXtCz-0002LH-Jd for patchwork@mira.cbaines.net; Tue, 05 Oct 2021 18:46:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXtCE-00022g-LE for guix-patches@gnu.org; Tue, 05 Oct 2021 18:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXtCE-0007SF-Dd for guix-patches@gnu.org; Tue, 05 Oct 2021 18:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXtCE-0000sz-81 for guix-patches@gnu.org; Tue, 05 Oct 2021 18:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51046] [PATCH] gnu: Add rdate. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Oct 2021 22:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51046 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51046@debbugs.gnu.org X-Debbugs-Original-To: phodina via Guix-patches via Received: via spool by submit@debbugs.gnu.org id=B.16334739493383 (code B ref -1); Tue, 05 Oct 2021 22:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Oct 2021 22:45:49 +0000 Received: from localhost ([127.0.0.1]:42060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXtC1-0000sU-AL for submit@debbugs.gnu.org; Tue, 05 Oct 2021 18:45:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:46894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXtBw-0000sI-0G for submit@debbugs.gnu.org; Tue, 05 Oct 2021 18:45:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXtBv-0001u2-Fq for guix-patches@gnu.org; Tue, 05 Oct 2021 18:45:43 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:24921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXtBs-00076Z-J9 for guix-patches@gnu.org; Tue, 05 Oct 2021 18:45:42 -0400 Date: Tue, 05 Oct 2021 22:45:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1633473930; bh=DMGff/c3PEc58z9ySnEBucy5igQ29fYWjXJehWEEGG0=; h=Date:To:From:Reply-To:Subject:From; b=rvZyxlu6G8UxbAIWbr17P7P8NSDW4oSFyBI081MdMxLwPMMYmRbHHVzZGQRZw89h1 X9WCoVnnx7BGJ/VBE5ebIfq2VU4jWKSbZRz/4hY5UbMkDw3P1ecWs4ahrv6KVW2cCB ZN22Ufb/M3DRjVf770Gq0Avvs1ldgm3B49lDQE9I= Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.134; envelope-from=phodina@protonmail.com; helo=mail-40134.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches * gnu/packages/time.scm (rdate): New variable. --- 2.32.0 diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index df4b8ac6f5..351c990ce1 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -470,6 +470,30 @@ datetime type.") (define-public python2-aniso8601 (package-with-python2 python-aniso8601)) +(define-public rdate + (let ((commit "91d84610e3695e90a884e2953908e95a856a9b74") + (revision "1")) + (package + (name "rdate") + (version (git-version "1.4" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/njh/rdate") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "002ryjq8gj1ml5la4v6dr3bh1zw5kxwy65rpziq8d2ccccarhv59")))) + (build-system gnu-build-system) + (native-inputs `(("autoconf" ,autoconf) + ("automake" ,automake))) + (synopsis "Get date and time based on RFC 868") + (description "@code{rdate} connects to an RFC 868 time server over a TCP/IP +network, printing the returned time and/or setting the system clock.") + (home-page "https://www.aelius.com/njh/rdate/") + (license license:gpl2)))) + (define-public datefudge (package (name "datefudge")