From patchwork Thu Mar 7 19:43:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juliana Sims X-Patchwork-Id: 61470 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 8B94327BBE9; Thu, 7 Mar 2024 19:47:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BB14327BBE2 for ; Thu, 7 Mar 2024 19:47:44 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riJiJ-0000SO-5f; Thu, 07 Mar 2024 14:47:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riJiE-0000Rz-O3 for guix-patches@gnu.org; Thu, 07 Mar 2024 14:47:33 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1riJiE-0004jC-Fx for guix-patches@gnu.org; Thu, 07 Mar 2024 14:47:30 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1riJik-0003rx-1I for guix-patches@gnu.org; Thu, 07 Mar 2024 14:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51046] [PATCH v2] gnu: Add rdate. Resent-From: Juliana Sims Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Mar 2024 19:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51046 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51046@debbugs.gnu.org Cc: phodina@protonmail.com, Juliana Sims Received: via spool by 51046-submit@debbugs.gnu.org id=B51046.170984083714796 (code B ref 51046); Thu, 07 Mar 2024 19:48:01 +0000 Received: (at 51046) by debbugs.gnu.org; 7 Mar 2024 19:47:17 +0000 Received: from localhost ([127.0.0.1]:55007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riJi0-0003qa-LN for submit@debbugs.gnu.org; Thu, 07 Mar 2024 14:47:17 -0500 Received: from out-182.mta0.migadu.com ([91.218.175.182]:60082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1riJhw-0003qG-JT for 51046@debbugs.gnu.org; Thu, 07 Mar 2024 14:47:15 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=incana.org; s=key1; t=1709840764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=13GwvJdefOI5kC3iarMuydgeMHntlDHJFrfYtFhB4bQ=; b=WGe+BJSz+HK05LCsZsDDny33fCpf96BNEaXWxqq16HeJaxjB5dkhR0U+cunxTQ3IgGewKN /BX4RiIcKFyR9KtRS8FO8goGRhjboCIJ52OvuoIajR4ZxttpR19Fsaf2V1FfotMvaPwtko ANCC9FamwiywWxU7/aGRPZgor0AFQXHo6zoRRdrU1jXL1K6jjOy19JxkMo2aE67qCG5iVi QYoTXQNOwHjPYH4RVpDcRYTawT4rL8fdMwST7tuyOVC7BkYbeVnrtlZoVdb4YcdQuWU+B8 1lYKltJ+LUCpx0WRuwJUMafmrwVOplV4pS+5QNqwPeUnRNgDHU3BGzH4WSSZOQ== Date: Thu, 7 Mar 2024 14:43:06 -0500 Message-ID: <268a9188fbcd506422f8d606045d133d89e27db6.1709840586.git.juli@incana.org> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT 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: , Reply-to: Juliana Sims X-ACL-Warn: , Juliana Sims via Guix-patches X-Patchwork-Original-From: Juliana Sims via Guix-patches via From: Juliana Sims Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello! It's been quite some time since this patch was submitted, and it still works! It needed two small changes -- adding the autotools module and using a different license symbol format -- so I've gone ahead and made those changes. I also took the liberty of updating the inputs to the new format. There are no semantic changes to the patch itself. Thanks again for submitting this! Juli * gnu/packages/time.scm (rdate): New variable. Change-Id: I12217c62fe17a93bdb5364f807804eea7fc57a23 --- gnu/packages/time.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) base-commit: 7f2f1bcddae64c48f793cde15c21617fa706c157 diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index b0d800da949..14b02352d6f 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -40,6 +40,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages time) + #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages check) #:use-module (gnu packages compression) @@ -549,6 +550,30 @@ (define-public python-aniso8601 "This package contains a library for parsing ISO 8601 datetime strings.") (license bsd-3))) +(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 (list autoconf 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 gpl2)))) + (define-public datefudge (package (name "datefudge")