summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Darrington <jmd@gnu.org>2014-10-18 17:09:45 +0200
committerJohn Darrington <jmd@gnu.org>2014-10-19 10:03:34 +0200
commitd99e12d24750bff2bcf437906f281afdd844a72b (patch)
tree41e4216d166318436930c74d61ebcd8ddd35d316
parent23459fa59b3e96baa07da1ae4c78af70c255ac20 (diff)
gnu: Add ntp
* gnu/packages/ntp.scm: New file. * gnu-system.am (gnu/packages/ntp.scm): Add it.
-rw-r--r--gnu-system.am1
-rw-r--r--gnu/packages/ntp.scm49
2 files changed, 50 insertions, 0 deletions
diff --git a/gnu-system.am b/gnu-system.am
index 52c834318ba..c808c168b26 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -182,6 +182,7 @@ GNU_SYSTEM_MODULES = \
182 gnu/packages/nettle.scm \ 182 gnu/packages/nettle.scm \
183 gnu/packages/node.scm \ 183 gnu/packages/node.scm \
184 gnu/packages/noweb.scm \ 184 gnu/packages/noweb.scm \
185 gnu/packages/ntp.scm \
185 gnu/packages/nvi.scm \ 186 gnu/packages/nvi.scm \
186 gnu/packages/ocaml.scm \ 187 gnu/packages/ocaml.scm \
187 gnu/packages/ocrad.scm \ 188 gnu/packages/ocrad.scm \
diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm
new file mode 100644
index 00000000000..75f8f900a34
--- /dev/null
+++ b/gnu/packages/ntp.scm
@@ -0,0 +1,49 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright 2014 John Darrington <jmd@gnu.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages ntp)
20 #:use-module (gnu packages)
21 #:use-module (gnu packages which)
22 #:use-module (guix licenses)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu)
26 #:use-module (srfi srfi-1))
27
28(define-public ntp
29 (package
30 (name "ntp")
31 (version "4.2.6p5")
32 (source (origin
33 (method url-fetch)
34 (uri (string-append
35 "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-"
36 (string-join (take (string-split version #\.) 2) ".")
37 "/ntp-" version ".tar.gz"))
38 (sha256
39 (base32
40 "077r69a41hasl8zf5c44km7cqgfhrkaj6a4jnr75j7nkz5qq7ayn"))))
41 (native-inputs `(("which" ,which)))
42 (build-system gnu-build-system)
43 (synopsis "Real time clock synchonization system")
44 (description "NTP is a system designed to synchronize the clocks of
45computers over a network.")
46 (license (x11-style
47 "http://www.eecis.udel.edu/~mills/ntp/html/copyright.html"
48 "A non-copyleft free licence from the University of Delaware"))
49 (home-page "http://www.ntp.org")))