gnu: ntp: Build with POSIX capabilities support on GNU/Linux.
* gnu/packages/ntp.scm (ntp)[inputs]: New field.
This commit is contained in:
		
							parent
							
								
									65fb4515f0
								
							
						
					
					
						commit
						52b321e908
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		|  | @ -19,6 +19,7 @@ | ||||||
| (define-module (gnu packages ntp) | (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 (guix licenses) |   #:use-module (guix licenses) | ||||||
|   #:use-module (guix packages) |   #:use-module (guix packages) | ||||||
|   #:use-module (guix download) |   #:use-module (guix download) | ||||||
|  | @ -39,11 +40,18 @@ | ||||||
| 	     (base32 | 	     (base32 | ||||||
| 	      "077r69a41hasl8zf5c44km7cqgfhrkaj6a4jnr75j7nkz5qq7ayn")))) | 	      "077r69a41hasl8zf5c44km7cqgfhrkaj6a4jnr75j7nkz5qq7ayn")))) | ||||||
|    (native-inputs `(("which" ,which))) |    (native-inputs `(("which" ,which))) | ||||||
|  |    (inputs | ||||||
|  |     ;; Build with POSIX capabilities support on GNU/Linux.  This allows 'ntpd' | ||||||
|  |     ;; to run as non-root (when invoked with '-u'.) | ||||||
|  |     (if (string-suffix? "-linux" | ||||||
|  |                         (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 (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"))) | ||||||
|  |  | ||||||
		Reference in a new issue