Mirror of GNU Guix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
6.5 KiB

gnu packages: Clean up synopses and descriptions. * gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm, gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/databases.scm, gnu/packages/enchant.scm, gnu/packages/firmware.scm, gnu/packages/fonts.scm, gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm, gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm, gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm, gnu/packages/haskell.scm, gnu/packages/language.scm, gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm, gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm, gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm, gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm, gnu/packages/perl.scm, gnu/packages/pretty-print.scm, gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm, gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm, gnu/packages/unrtf.scm, gnu/packages/version-control.scm, gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm: Fix typos. Trim long lines. Add missing periods in the end of sentences. Use double spaces between sentences. Remove trailing whitespaces.
7 years ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2014 John Darrington <jmd@gnu.org>
  3. ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
  4. ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
  5. ;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
  6. ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
  7. ;;;
  8. ;;; This file is part of GNU Guix.
  9. ;;;
  10. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  11. ;;; under the terms of the GNU General Public License as published by
  12. ;;; the Free Software Foundation; either version 3 of the License, or (at
  13. ;;; your option) any later version.
  14. ;;;
  15. ;;; GNU Guix is distributed in the hope that it will be useful, but
  16. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  17. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. ;;; GNU General Public License for more details.
  19. ;;;
  20. ;;; You should have received a copy of the GNU General Public License
  21. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  22. (define-module (gnu packages ntp)
  23. #:use-module (gnu packages)
  24. #:use-module (gnu packages base)
  25. #:use-module (gnu packages linux)
  26. #:use-module (gnu packages autotools)
  27. #:use-module (gnu packages pkg-config)
  28. #:use-module (gnu packages tls)
  29. #:use-module (gnu packages libevent)
  30. #:use-module ((guix licenses) #:prefix l:)
  31. #:use-module (guix packages)
  32. #:use-module (guix utils)
  33. #:use-module (guix download)
  34. #:use-module (guix git-download)
  35. #:use-module (guix build-system gnu)
  36. #:use-module (srfi srfi-1))
  37. (define-public ntp
  38. (package
  39. (name "ntp")
  40. (version "4.2.8p10")
  41. (source
  42. (origin
  43. (method url-fetch)
  44. (uri (list (string-append
  45. "http://archive.ntp.org/ntp4/ntp-"
  46. (version-major+minor version)
  47. "/ntp-" version ".tar.gz")
  48. (string-append
  49. "https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-"
  50. (version-major+minor version)
  51. "/ntp-" version ".tar.gz")))
  52. (sha256
  53. (base32
  54. "17xrk7gxrl3hgg0i73n8qm53knyh01lf0f3l1zx9x6r1cip3dlnx"))
  55. (modules '((guix build utils)))
  56. (snippet
  57. '(begin
  58. ;; Remove the bundled copy of libevent, but we must keep
  59. ;; sntp/libevent/build-aux since configure.ac contains
  60. ;; AC_CONFIG_AUX_DIR([sntp/libevent/build-aux])
  61. (rename-file "sntp/libevent/build-aux"
  62. "sntp/libevent:build-aux")
  63. (delete-file-recursively "sntp/libevent")
  64. (mkdir "sntp/libevent")
  65. (rename-file "sntp/libevent:build-aux"
  66. "sntp/libevent/build-aux")
  67. #t))))
  68. (native-inputs `(("which" ,which)
  69. ("pkg-config" ,pkg-config)))
  70. (inputs
  71. `(("openssl" ,openssl)
  72. ("libevent" ,libevent)
  73. ;; Build with POSIX capabilities support on GNU/Linux. This allows 'ntpd'
  74. ;; to run as non-root (when invoked with '-u'.)
  75. ,@(if (string-suffix? "-linux"
  76. (or (%current-target-system) (%current-system)))
  77. `(("libcap" ,libcap))
  78. '())))
  79. (arguments
  80. `(#:phases
  81. (modify-phases %standard-phases
  82. (add-after 'unpack 'disable-network-test
  83. (lambda _
  84. (substitute* "tests/libntp/Makefile.in"
  85. (("test-decodenetnum\\$\\(EXEEXT\\) ") ""))
  86. #t)))))
  87. (build-system gnu-build-system)
  88. (synopsis "Real time clock synchronization system")
  89. (description "NTP is a system designed to synchronize the clocks of
  90. computers over a network.")
  91. (license (l:x11-style
  92. "http://www.eecis.udel.edu/~mills/ntp/html/copyright.html"
  93. "A non-copyleft free licence from the University of Delaware"))
  94. (home-page "http://www.ntp.org")))
  95. (define-public openntpd
  96. (package
  97. (name "openntpd")
  98. (version "6.1p1")
  99. (source (origin
  100. (method url-fetch)
  101. ;; XXX Use mirror://openbsd
  102. (uri (string-append
  103. "http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-"
  104. version ".tar.gz"))
  105. (sha256
  106. (base32
  107. "1ykx9ga76k5m54h7k5x4ds2clxsyfniss5vmf88pxnrip5bx6if8"))))
  108. (build-system gnu-build-system)
  109. (home-page "http://www.openntpd.org/")
  110. (synopsis "NTP client and server by the OpenBSD Project")
  111. (description "OpenNTPD is the OpenBSD Project's implementation of a client
  112. and server for the Network Time Protocol. Its design goals include being
  113. secure, easy to configure, and accurate enough for most purposes, so it's more
  114. minimalist than ntpd.")
  115. ;; A few of the source files are under bsd-3.
  116. (license (list l:isc l:bsd-3))))
  117. (define-public tlsdate
  118. (package
  119. (name "tlsdate")
  120. (version "0.0.13")
  121. (home-page "https://github.com/ioerror/tlsdate")
  122. (source (origin
  123. (method git-fetch)
  124. (uri (git-reference
  125. (commit (string-append "tlsdate-" version))
  126. (url home-page)))
  127. (sha256
  128. (base32
  129. "0w3v63qmbhpqlxjsvf4k3zp90k6mdzi8cdpgshan9iphy1f44xgl"))
  130. (file-name (string-append name "-" version "-checkout"))))
  131. (build-system gnu-build-system)
  132. (arguments
  133. '(#:phases (modify-phases %standard-phases
  134. (add-after 'unpack 'autogen
  135. (lambda _
  136. ;; The ancestor of 'SOURCE_DATE_EPOCH'; it contains the
  137. ;; date that is recorded in binaries. It must be a
  138. ;; "recent date" since it is used to detect bogus dates
  139. ;; received from servers.
  140. (setenv "COMPILE_DATE" (number->string 1450563040))
  141. (zero? (system* "sh" "autogen.sh")))))))
  142. (inputs `(("openssl" ,openssl)
  143. ("libevent" ,libevent)))
  144. (native-inputs `(("pkg-config" ,pkg-config)
  145. ("autoconf" ,autoconf)
  146. ("automake" ,automake)
  147. ("libtool" ,libtool)))
  148. (synopsis "Extract remote time from TLS handshakes")
  149. (description
  150. "@command{tlsdate} sets the local clock by securely connecting with TLS
  151. to remote servers and extracting the remote time out of the secure handshake.
  152. Unlike ntpdate, @command{tlsdate} uses TCP, for instance connecting to a
  153. remote HTTPS or TLS enabled service, and provides some protection against
  154. adversaries that try to feed you malicious time information.")
  155. (license l:bsd-3)))