From debbugs-submit-bounces@debbugs.gnu.org Sat May 10 04:07:16 2025 Received: (at submit) by debbugs.gnu.org; 10 May 2025 08:07:16 +0000 Received: from localhost ([127.0.0.1]:43446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uDfEq-0000Og-7T for submit@debbugs.gnu.org; Sat, 10 May 2025 04:07:16 -0400 Received: from lists.gnu.org ([2001:470:142::17]:51936) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uDfEm-0000OP-FJ for submit@debbugs.gnu.org; Sat, 10 May 2025 04:07:14 -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 1uDfEg-0005DO-BK for guix-patches@gnu.org; Sat, 10 May 2025 04:07:06 -0400 Received: from rivercloud.ext.redscript.org ([181.214.58.244]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uDfEd-0001GA-Hy for guix-patches@gnu.org; Sat, 10 May 2025 04:07:06 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail2-ed25519-2024; t=1746864419; 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; bh=KN53pj4bQlBYRa91hcXmZlNMpbq2oqtBlHn3Z5zpiFE=; b=l2Xpx2LrnTUo7dumqSfSPrhIeL5HfvNRduZL5ikSqZ7hOCeAzNLAcNoTC+r5VV1ZSCayTR QA6uxzE9aUQwalCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail2-rsa-2024; t=1746864419; 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; bh=KN53pj4bQlBYRa91hcXmZlNMpbq2oqtBlHn3Z5zpiFE=; b=GUrG/HwtogHl6rP0SB+UZI2/DqYBlREYOP4tlHZt6vion6BtDrzawiE/l50BGPayCJzzgU KDqQBvAm9A8652AhJfq0D3MEjws4E13HJR6IHm04EbWEwplwqcSGtZIOz5er3q5yL727Xe EjtViRUp6CkYv2FipAMlt9Ez5GlIH6I= Received: by rivercloud.ext.redscript.org (OpenSMTPD) with ESMTPSA id e2c852fa (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 10 May 2025 08:06:59 +0000 (UTC) From: Ahmad Draidi To: guix-patches@gnu.org Subject: [PATCH 0/2] Add NTPsec and pps-tools Date: Sat, 10 May 2025 12:04:56 +0400 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=181.214.58.244; envelope-from=a.r.draidi@redscript.org; helo=rivercloud.ext.redscript.org 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: Ahmad Draidi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Greetings, NTPsec is a hardened version of the NTP daemon. Debian currently uses it as the default NTP daemon. It's mostly compatible with the original NTP daemon. I'll try to prepare patches to use it by default with ntp-service-type in Guix, once I get the time. Thanks, Ahmad Ahmad Draidi (2): gnu: Add pps-tools. gnu: Add ntpsec. gnu/packages/ntp.scm | 93 +++++++++++++++++++++++++++++++++++++++++++ gnu/packages/time.scm | 40 +++++++++++++++++++ 2 files changed, 133 insertions(+) base-commit: 0ae79a787f81e680e3983813c684a7d82dc213f3 -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Sat May 10 04:21:32 2025 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) From: Ahmad Draidi To: 78347@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add pps-tools. 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 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78347 Cc: Ahmad Draidi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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") -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Sat May 10 04:21:35 2025 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) From: Ahmad Draidi To: 78347@debbugs.gnu.org Subject: [PATCH 2/2] gnu: Add ntpsec. 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 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78347 Cc: Ahmad Draidi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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") -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Mon May 12 04:54:32 2025 Received: (at 78347-done) by debbugs.gnu.org; 12 May 2025 08:54:33 +0000 Received: from localhost ([127.0.0.1]:50046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uEOvg-0003tH-K8 for submit@debbugs.gnu.org; Mon, 12 May 2025 04:54:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44218) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uEOvd-0003ss-Kd for 78347-done@debbugs.gnu.org; Mon, 12 May 2025 04:54:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uEOvX-00031g-Un; Mon, 12 May 2025 04:54:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=WebTNFIkYFIbvVdoAF27birtfmTE7JxQJBvaxzLbpbo=; b=q8jNA6F401jGFN+bxP0u r+rv1RFhNK3nkCdin8HzBUJwzu5Te4GFmk2iLHEGNM4qDfUQ19PIqQT8PPVtJ6JZiNjwt0hzXfwAU skMursSqloyeIhPBrOc6DW7vwqQMRVSknKZENLtwzNShvKc9jUuq3/aIzZHav35dMDSH2WEc27pv+ imTmriv8ari6vKEKvZSJ/a+OXOgf53Uhhs0DeJZ/0fjn5jJcCQwbMR9rPQLGwmvVWNW0ANKWGxZbN W+vJx8KsgqkQzqRUHdA4pESJKajJzrVFOJs2q1ra5xmAV2iFqJlUj9LHsu+wLv7K3JGwYxiBYpis0 zMzTAKlyQaiLlg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ahmad Draidi Subject: Re: [bug#78347] [PATCH 0/2] Add NTPsec and pps-tools In-Reply-To: (Ahmad Draidi's message of "Sat, 10 May 2025 12:04:56 +0400") References: Date: Mon, 12 May 2025 10:00:44 +0200 Message-ID: <87cyce5kcz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78347-done Cc: 78347-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, Ahmad Draidi writes: > gnu: Add pps-tools. > gnu: Add ntpsec. Applied, thanks! Ludo=E2=80=99. From unknown Sun Jun 15 08:40:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 09 Jun 2025 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator