From patchwork Sat May 10 08:20:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Draidi X-Patchwork-Id: 42501 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 37FD527BC4B; Sat, 10 May 2025 09:22:23 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 85B0827BC49 for ; Sat, 10 May 2025 09:22:22 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uDfTA-0002UJ-9n; Sat, 10 May 2025 04:22:04 -0400 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 1uDfT8-0002Tv-8p for guix-patches@gnu.org; Sat, 10 May 2025 04:22:02 -0400 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 1uDfT7-00032H-Tu for guix-patches@gnu.org; Sat, 10 May 2025 04:22:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=+PcbfIlZCGVxFcBA8tYekGyL3y6qhMKpUgEKAz0ZESA=; b=tv/TseGZSOMac02GjUcyrYHy2NWgs7bEOh7nz0zPBVaHhrQaXygZP0x8leBy8xKzprcVzAa2l42Jz0322/ycly5FPlJgfjTZKdYKAt+sOGZGeHMED4c0mQ8LWfvcVbuPEEpxhOzu2mSbYYMeDdrX0nwx2Bs0FbmzznOyUXkyFAdKE4iPEw7IhOb75nLU1dhYAvKcTypzbDXQMwoKA8A6ORzSY4/zmijUpHCSFSoKYV69EPg3EOrv4iOV0+Abk8Pwbe+ogDwvzoMGs3RvtwX+6BnrAgOy4+1koXWXQJpRyXEtt3NuKSJsPYEUyFii8Kt+zTsouuSJXmWZaGuBl/ZtrA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uDfT7-0001IN-PI for guix-patches@gnu.org; Sat, 10 May 2025 04:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78347] [PATCH 1/2] gnu: Add pps-tools. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 May 2025 08:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78347 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78347@debbugs.gnu.org Cc: Ahmad Draidi Received: via spool by 78347-submit@debbugs.gnu.org id=B78347.17468652924888 (code B ref 78347); Sat, 10 May 2025 08:22:01 +0000 Received: (at 78347) by debbugs.gnu.org; 10 May 2025 08:21:32 +0000 Received: from localhost ([127.0.0.1]:43542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uDfSd-0001Gm-SW for submit@debbugs.gnu.org; Sat, 10 May 2025 04:21:32 -0400 Received: from rivercloud.ext.redscript.org ([181.214.58.244]:38750) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uDfSZ-0001GN-5D for 78347@debbugs.gnu.org; Sat, 10 May 2025 04:21:30 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail2-ed25519-2024; t=1746865280; 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=+PcbfIlZCGVxFcBA8tYekGyL3y6qhMKpUgEKAz0ZESA=; b=mZImZPIyigf4PoVC6vzyjhpfKFfTW672mkUybfMMH6Agg+caRR+Wc3HlprTaeXA0XXDDHE MlSmXEYlYS7ZuNDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail2-rsa-2024; t=1746865280; 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=+PcbfIlZCGVxFcBA8tYekGyL3y6qhMKpUgEKAz0ZESA=; b=vFAxxq2hO7B37UfWd91B2YMj0eS+bJwnVktxWl1hya7WtZK4+98mYIe0t+twhQfhahgTqn bJ0Nl5CCVUZr/a3K6jYG41JqhtUzKtQ9ZuPIvxTPDTuWWm4/sFFLNu65UF2BoEzZMC0z26 fLBxzFnSsHBhNf+/sc60d4lzvAW3FuU= Received: by rivercloud.ext.redscript.org (OpenSMTPD) with ESMTPSA id 0b677111 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 10 May 2025 08:21:19 +0000 (UTC) Date: Sat, 10 May 2025 12:20:23 +0400 Message-ID: <47c7242bb230aac863cf0b739e59a6fcd6a7813d.1746863945.git.a.r.draidi@redscript.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 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: Ahmad Draidi X-ACL-Warn: , Ahmad Draidi via Guix-patches X-Patchwork-Original-From: Ahmad Draidi via Guix-patches via From: Ahmad Draidi 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 * gnu/packages/time.scm (pps-tools): New variable. Change-Id: I06a10988acbf4dcd684721e1bee6a2d0c6f2dac6 --- gnu/packages/time.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm index 56053da5010..2a09efb1fc2 100644 --- a/gnu/packages/time.scm +++ b/gnu/packages/time.scm @@ -118,6 +118,46 @@ (define-public time to a file.") (license gpl3+))) +(define-public pps-tools + ;; Last tagged release was in 2021 + (let ((commit "e5083fe1481a34373dee2acfabb63001ee9c40e0") + (revision "1")) + (package + (name "pps-tools") + (version (git-version "1.0.3" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/redlab-i/pps-tools") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1q3yvkwgqzafpx940cgqjn0harziv9gix1k3r3ymidmip0i5z1cp")))) + (arguments + (list + #:tests? #f ;There is no test suite. + #:make-flags + #~(list "CC=gcc" + (string-append "DESTDIR=" %output)) + #:phases + #~(modify-phases %standard-phases + ;; No configure script + (delete 'configure) + (add-after 'unpack 'patch-makefile + (lambda _ + (substitute* "Makefile" + (("/usr/") + "/"))))))) + (build-system gnu-build-system) + (home-page "https://github.com/redlab-i/pps-tools") + (synopsis "User-space tools and headers for LinuxPPS") + (description + "This package includes the necessary headers for using +@url{http://linuxpps.org/, LinuxPPS} PPSAPI kernel interface in user-space +applications, and several support tools.") + (license gpl2+)))) + (define-public python-pytimeparse (package (name "python-pytimeparse") From patchwork Sat May 10 08:20:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad Draidi X-Patchwork-Id: 42500 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 E480C27BC4B; Sat, 10 May 2025 09:22:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 B887327BC49 for ; Sat, 10 May 2025 09:22:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uDfTB-0002Ug-LD; Sat, 10 May 2025 04:22:05 -0400 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 1uDfT8-0002U2-No for guix-patches@gnu.org; Sat, 10 May 2025 04:22:02 -0400 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 1uDfT8-00032P-FQ for guix-patches@gnu.org; Sat, 10 May 2025 04:22:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=cwjEJI7/HOHKG0/jmtenrswgNerZmlCyf+aQMROjHF4=; b=hKWA5qarhadYW63VxSegCWZ67c20hT5QZhAESf8XKvcehjxJqBUQIsRjfJpHs4KVETSO65XCE5tzyItn9YhGMsqy+NM1WAxVv77vV+BXxd15m9xAlCLUsYrnm14GZiPyHt/qN30xD7VTPYlE8i3lwwpNMJhweGBOLTn26t/MYK6RtOODRw35Eafy32/aJYRE3gKhFi6nlTxrLs6P9swjWk1f+oLsiHKMonD728qfMK3ZNe5Qds0Gv1nBrGy4SOJSzm66LQV3xWtnASPgYav2S1p7P18RFBRSQVFe23n3aNZYRG1ZIuTvJZTHgEXyKV+wvXXWgiS3ol7NKMwfMesubQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uDfT8-0001IV-8h for guix-patches@gnu.org; Sat, 10 May 2025 04:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78347] [PATCH 2/2] gnu: Add ntpsec. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 May 2025 08:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78347 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78347@debbugs.gnu.org Cc: Ahmad Draidi Received: via spool by 78347-submit@debbugs.gnu.org id=B78347.17468652964904 (code B ref 78347); Sat, 10 May 2025 08:22:02 +0000 Received: (at 78347) by debbugs.gnu.org; 10 May 2025 08:21:36 +0000 Received: from localhost ([127.0.0.1]:43545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uDfSh-0001H1-8n for submit@debbugs.gnu.org; Sat, 10 May 2025 04:21:35 -0400 Received: from rivercloud.ext.redscript.org ([181.214.58.244]:38750) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uDfSe-0001GN-Ih for 78347@debbugs.gnu.org; Sat, 10 May 2025 04:21:33 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail2-ed25519-2024; t=1746865292; 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=cwjEJI7/HOHKG0/jmtenrswgNerZmlCyf+aQMROjHF4=; b=HBU8p2AiVQmrYtBLJGF+wyx3+mxNvy9tArYuHpxCyUAxfyDJCVFWhEuK26OaRWr3FCAtmu dYa51qaAC3eoipBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail2-rsa-2024; t=1746865292; 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=cwjEJI7/HOHKG0/jmtenrswgNerZmlCyf+aQMROjHF4=; b=vCSpnl8FX/59yNyqrz6GjN/S/02jtOlmJlMnK/X9T8CMA4BFH2ffbcOQtact0KL+q9Uw3d z1ULppnjVHvj5KdnW5La0SZ4mBPpgSDOcnoIOmvg/hY5DKTkSjyM3LglRFq0tbQJYjyyMi Gpr0Y0R/LoAcsHR4aCDk7mnOFzHM0Y4= Received: by rivercloud.ext.redscript.org (OpenSMTPD) with ESMTPSA id 93f8e4d8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 10 May 2025 08:21:31 +0000 (UTC) Date: Sat, 10 May 2025 12:20:24 +0400 Message-ID: <50a3e5b6b679f957eba3fd74d52b54c6289406cd.1746863945.git.a.r.draidi@redscript.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 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: Ahmad Draidi X-ACL-Warn: , Ahmad Draidi via Guix-patches X-Patchwork-Original-From: Ahmad Draidi via Guix-patches via From: Ahmad Draidi 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 * gnu/packages/ntp.scm: Add use-modules (gnu packages gps), (gnu packages m4), (gnu packages python), (gnu packages python-xyz), (gnu packages time), (guix build-system waf). (ntpsec): New variable. Change-Id: I34704665c338475f146fd1b61979b9e3dd8f23f4 --- gnu/packages/ntp.scm | 93 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm index 0b01f339d59..089814b6ab2 100644 --- a/gnu/packages/ntp.scm +++ b/gnu/packages/ntp.scm @@ -32,14 +32,20 @@ (define-module (gnu packages ntp) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bison) + #:use-module (gnu packages gps) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) + #:use-module (gnu packages m4) #:use-module (gnu packages nettle) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) #:use-module (gnu packages ruby) + #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (guix build-system gnu) + #:use-module (guix build-system waf) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) @@ -187,6 +193,93 @@ (define-public ntp "A non-copyleft free licence from the University of Delaware")) (home-page "https://www.ntp.org"))) +(define-public ntpsec + (package + (name "ntpsec") + (version "1.2.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/NTPsec/ntpsec.git") + (commit (string-append "NTPsec_" + (string-replace-substring version "." "_"))))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1m23mzsj3iq36d14ncj0w74hy152blv61nxd8w4xcs52vsh48mps")))) + (native-inputs (list bison + m4 + pkg-config + pps-tools + python-waf + ruby-asciidoctor)) + (inputs (cons* gpsd openssl + ;; Build with POSIX capabilities and syscall filtering + ;; support on GNU/Linux, for extra security features. + (if (target-linux?) + (list libcap libseccomp) + '()))) + (arguments + (list + #:configure-flags + #~(list "--refclock=all" + "--enable-manpage" + "--disable-doc" + #$@(if (target-linux?) + '("--enable-seccomp") + '()) + "--enable-mssntp") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'disable-network-test + (lambda _ + (substitute* "tests/wscript" + (("\"libntp/decodenetnum.c\",") + "")) + (substitute* "tests/common/tests_main.c" + (("RUN_TEST_GROUP\\(decodenetnum\\);") + "")))) + ;; Tests fail without this. PYTHONPATH is ignored, unfortunately. + (add-before 'build 'symlink-python-gps + (lambda* (#:key inputs #:allow-other-keys) + (mkdir-p "build/main/tests/pylib") + (let ((python-version #$(version-major+minor (package-version + python)))) + (symlink (string-append (assoc-ref inputs "gpsd") + "/lib/python" python-version + "/site-packages/gps") + "build/main/tests/pylib/gps"))))))) + (build-system waf-build-system) + (synopsis "Real time clock synchronization system and utilities") + (description + "@acronym{NTP, Network Time Protocol}, the protocol, is used to keep +computer clocks accurate by synchronizing them over the Internet or a +local network, or by following an accurate hardware receiver that interprets +GPS, DCF-77, or similar time signals. + +NTPsec is a hardened and improved implementation derived from the original +@url{https://www.ntp.org, NTP project}. NTPsec supports +@acronym{NTS, Network Time Security} which provides cryptographically +authenticated time. + +This package contains the NTP daemon and utility programs. An NTP daemon +needs to be running on each host that is to have its clock accuracy controlled +by NTP. The same NTP daemon is also used to provide NTP service to other hosts.") + ;; All licenses are in file://LICENSES/ + (license (list l:bsd-2 + l:bsd-3 + l:bsd-4 + l:isc + l:expat + l:asl2.0 + l:cc-by4.0 + (l:non-copyleft "file://LICENSES/Beerware.txt" + "See LICENSES/Beerware.txt in the distribution.") + (l:x11-style + "https://www.eecis.udel.edu/~mills/ntp/html/copyright.html" + "A non-copyleft free licence from the University of Delaware"))) + (home-page "https://www.ntpsec.org"))) + (define-public openntpd (package (name "openntpd")