gnu: Move content of openssl module into tls module.
[jackhill/guix/guix.git] / gnu / packages / ntp.scm
CommitLineData
d99e12d2 1;;; GNU Guix --- Functional package management for GNU
53a427cf 2;;; Copyright © 2014 John Darrington <jmd@gnu.org>
b7921ba5 3;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
4ee69624 4;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
d99e12d2
JD
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages ntp)
22 #:use-module (gnu packages)
ce0614dd 23 #:use-module (gnu packages base)
52b321e9 24 #:use-module (gnu packages linux)
53a427cf 25 #:use-module (gnu packages pkg-config)
cc2b77df 26 #:use-module (gnu packages tls)
53a427cf 27 #:use-module ((guix licenses) #:prefix l:)
d99e12d2 28 #:use-module (guix packages)
53a427cf 29 #:use-module (guix utils)
d99e12d2
JD
30 #:use-module (guix download)
31 #:use-module (guix build-system gnu)
32 #:use-module (srfi srfi-1))
33
34(define-public ntp
35 (package
36 (name "ntp")
989a9fff 37 (version "4.2.8p2")
d99e12d2
JD
38 (source (origin
39 (method url-fetch)
40 (uri (string-append
53a427cf
MW
41 "http://archive.ntp.org/ntp4/ntp-"
42 (version-major+minor version)
d99e12d2
JD
43 "/ntp-" version ".tar.gz"))
44 (sha256
45 (base32
989a9fff 46 "0ccv9kh5asxpk7bjn73vwrqimbkbfl743bgx0km47bfajl7bqs8d"))))
53a427cf
MW
47 (native-inputs `(("which" ,which)
48 ("pkg-config" ,pkg-config)))
52b321e9 49 (inputs
53a427cf
MW
50 `(("openssl" ,openssl)
51 ;; Build with POSIX capabilities support on GNU/Linux. This allows 'ntpd'
52 ;; to run as non-root (when invoked with '-u'.)
53 ,@(if (string-suffix? "-linux"
54 (or (%current-target-system) (%current-system)))
55 `(("libcap" ,libcap))
56 '())))
d99e12d2
JD
57 (build-system gnu-build-system)
58 (synopsis "Real time clock synchonization system")
59 (description "NTP is a system designed to synchronize the clocks of
60computers over a network.")
53a427cf 61 (license (l:x11-style
d99e12d2
JD
62 "http://www.eecis.udel.edu/~mills/ntp/html/copyright.html"
63 "A non-copyleft free licence from the University of Delaware"))
64 (home-page "http://www.ntp.org")))
4ee69624
TUBK
65
66(define-public openntpd
67 (package
68 (name "openntpd")
69 (version "5.7p3")
70 (source (origin
71 (method url-fetch)
72 ;; XXX Use mirror://openbsd
73 (uri (string-append
74 "http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-"
75 version ".tar.gz"))
76 (sha256
77 (base32
78 "0filjmb3b8rc39bvhm8q2azzj10ljfgq41qih71pxv919j57qhag"))))
79 (build-system gnu-build-system)
80 (home-page "http://www.openntpd.org/")
81 (synopsis "NTP client and server by the OpenBSD Project")
82 (description "OpenNTPD is the OpenBSD Project's implementation of a client
83and server for the Network Time Protocol. Its design goals include being
84secure, easy to configure, and accurate enough for most purposes, so it's more
85minimalist than ntpd.")
86 ;; A few of the source files are under bsd-3.
87 (license (list l:isc l:bsd-3))))