;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 John Darrington ;;; Copyright © 2014, 2015 Mark H Weaver ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer ;;; Copyright © 2015, 2018 Ludovic Courtès ;;; Copyright © 2016, 2017, 2018, 2022 Efraim Flashner ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice ;;; Copyright © 2019 Maxim Cournoyer ;;; Copyright © 2021 Marius Bakke ;;; Copyright © 2021 Brice Waegeneire ;;; Copyright © 2022 Petr Hodina ;;; Copyright © 2024 Artyom V. Poptsov ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'nix/libstore/sqlite.cc')
0 files changed, 0 insertions, 0 deletions
ublic ntp (package (name "ntp") (version "4.2.8p17") (source (origin (method url-fetch) (uri (list (string-append "https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-" (version-major+minor version) "/ntp-" version ".tar.gz") (string-append "http://archive.ntp.org/ntp4/ntp-" (version-major+minor version) "/ntp-" version ".tar.gz"))) (sha256 (base32 "0rm8sf4qwcip49wgpgcp2dpwspsm0ad5xkkxy26mnv56wrrd4g8h")) (modules '((guix build utils))) (snippet '(begin ;; Remove the bundled copy of libevent, but we must keep ;; sntp/libevent/build-aux since configure.ac contains ;; AC_CONFIG_AUX_DIR([sntp/libevent/build-aux]) (rename-file "sntp/libevent/build-aux" "sntp/libevent:build-aux") (delete-file-recursively "sntp/libevent") (mkdir "sntp/libevent") (rename-file "sntp/libevent:build-aux" "sntp/libevent/build-aux"))))) (native-inputs (list which pkg-config)) (inputs (cons* openssl-1.1 libevent ;; Build with POSIX capabilities support on GNU/Linux. This allows ;; 'ntpd' to run as non-root (when invoked with '-u'.) (if (target-linux?) (list libcap) '()))) (arguments (list ;; Pass "--with-yielding-select=yes" so that 'configure' knows whether ;; 'select' yields when using pthreads in a cross-compilation context. #:configure-flags #~(list "--with-yielding-select=yes") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'disable-network-test (lambda _ (substitute* "tests/libntp/Makefile.in" (("test-decodenetnum\\$\\(EXEEXT\\) ") ""))))))) (build-system gnu-build-system) (synopsis "Real time clock synchronization system") (description "NTP is a system designed to synchronize the clocks of computers over a network.") (license (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.ntp.org"))) (define-public openntpd (package (name "openntpd") (version "6.8p1") (source (origin (method url-fetch) (uri (string-append "mirror://openbsd/OpenNTPD/openntpd-" version ".tar.gz")) (sha256 (base32 "0ijsylc7a4jlpxsqa0jq1w1c7333id8pcakzl7a5749ria1xp0l5")))) (build-system gnu-build-system) (arguments `(#:configure-flags (let* ((libressl (assoc-ref %build-inputs "libressl")) (libressl-version ,(package-version (car (assoc-ref (package-inputs this-package) "libressl"))))) (list "--with-privsep-user=ntpd" "--localstatedir=/var" (string-append "--with-cacert=" libressl "/share/libressl-" libressl-version "/cert.pem"))) #:phases (modify-phases %standard-phases (add-after 'unpack 'modify-install-locations (lambda _ ;; Don't try to create /var/run or /var/db (substitute* "src/Makefile.in" (("DESTDIR\\)\\$\\(localstatedir") "TMPDIR")) #t))))) (inputs (list libressl)) ; enable TLS time constraints. See ntpd.conf(5). (home-page "https://www.openntpd.org/") (synopsis "NTP client and server by the OpenBSD Project") (description "OpenNTPD is the OpenBSD Project's implementation of a client and server for the Network Time Protocol. Its design goals include being secure, easy to configure, and accurate enough for most purposes, so it's more minimalist than ntpd.") (properties '((release-monitoring-url . "https://cdn.openbsd.org/pub/OpenBSD/OpenNTPD"))) ;; A few of the source files are under bsd-3. (license (list l:isc l:bsd-3))))