mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: ntp: Update to 4.2.8.
* gnu/packages/ntp.scm (ntp): Update to 4.2.8. Add openssl to inputs. Add pkg-config to native-inputs. Change source URI to archive.ntp.org.
This commit is contained in:
parent
f948656c17
commit
e933ad3dad
1 changed files with 20 additions and 14 deletions
|
@ -1,5 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright 2014 John Darrington <jmd@gnu.org>
|
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
|
||||||
|
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -20,8 +21,11 @@ (define-module (gnu packages ntp)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages which)
|
#:use-module (gnu packages which)
|
||||||
#:use-module (gnu packages linux)
|
#:use-module (gnu packages linux)
|
||||||
#:use-module (guix licenses)
|
#:use-module (gnu packages pkg-config)
|
||||||
|
#:use-module (gnu packages openssl)
|
||||||
|
#:use-module ((guix licenses) #:prefix l:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix utils)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (srfi srfi-1))
|
#:use-module (srfi srfi-1))
|
||||||
|
@ -29,29 +33,31 @@ (define-module (gnu packages ntp)
|
||||||
(define-public ntp
|
(define-public ntp
|
||||||
(package
|
(package
|
||||||
(name "ntp")
|
(name "ntp")
|
||||||
(version "4.2.6p5")
|
(version "4.2.8")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-"
|
"http://archive.ntp.org/ntp4/ntp-"
|
||||||
(string-join (take (string-split version #\.) 2) ".")
|
(version-major+minor version)
|
||||||
"/ntp-" version ".tar.gz"))
|
"/ntp-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"077r69a41hasl8zf5c44km7cqgfhrkaj6a4jnr75j7nkz5qq7ayn"))))
|
"1vnqa1542d01xmlkw8f3rq57y360b2j7yxkkg9b11955nvw0v4if"))))
|
||||||
(native-inputs `(("which" ,which)))
|
(native-inputs `(("which" ,which)
|
||||||
|
("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
;; Build with POSIX capabilities support on GNU/Linux. This allows 'ntpd'
|
`(("openssl" ,openssl)
|
||||||
;; to run as non-root (when invoked with '-u'.)
|
;; Build with POSIX capabilities support on GNU/Linux. This allows 'ntpd'
|
||||||
(if (string-suffix? "-linux"
|
;; to run as non-root (when invoked with '-u'.)
|
||||||
(or (%current-target-system) (%current-system)))
|
,@(if (string-suffix? "-linux"
|
||||||
`(("libcap" ,libcap))
|
(or (%current-target-system) (%current-system)))
|
||||||
'()))
|
`(("libcap" ,libcap))
|
||||||
|
'())))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(synopsis "Real time clock synchonization system")
|
(synopsis "Real time clock synchonization system")
|
||||||
(description "NTP is a system designed to synchronize the clocks of
|
(description "NTP is a system designed to synchronize the clocks of
|
||||||
computers over a network.")
|
computers over a network.")
|
||||||
(license (x11-style
|
(license (l:x11-style
|
||||||
"http://www.eecis.udel.edu/~mills/ntp/html/copyright.html"
|
"http://www.eecis.udel.edu/~mills/ntp/html/copyright.html"
|
||||||
"A non-copyleft free licence from the University of Delaware"))
|
"A non-copyleft free licence from the University of Delaware"))
|
||||||
(home-page "http://www.ntp.org")))
|
(home-page "http://www.ntp.org")))
|
||||||
|
|
Loading…
Reference in a new issue