Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
74d21291 | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org> |
35dfcdd7 | 3 | ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr> |
233e7676 | 4 | ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org> |
75fd35b6 | 5 | ;;; Copyright © 2014, 2015, 2016, 2017 Mark H Weaver <mhw@netris.org> |
31aa4379 | 6 | ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch> |
e1e27737 | 7 | ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> |
e77fe950 | 8 | ;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il> |
1348185a | 9 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
cd7caa3e | 10 | ;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
7994250f | 11 | ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com> |
96e9f097 | 12 | ;;; Copyright © 2016 Raymond Nicholson <rain1@openmailbox.org> |
dc9bdb1e | 13 | ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org> |
d17ae8c0 | 14 | ;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
81b98756 | 15 | ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> |
9b0942c1 | 16 | ;;; Copyright © 2016 David Craven <david@craven.ch> |
594d740d | 17 | ;;; Copyright © 2016 John Darrington <jmd@gnu.org> |
f8f44dd7 | 18 | ;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com> |
411264c2 | 19 | ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org> |
440a3143 | 20 | ;;; Copyright © 2016 Carlos Sánchez de La Lama <csanchezdll@gmail.com> |
fd7000fe | 21 | ;;; Copyright © 2016, 2017 ng0 <ng0@no-reply.pragmatique.xyz> |
6d3e08d4 | 22 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
01be4f93 | 23 | ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.com> |
189d8422 | 24 | ;;; Copyright © 2017 Gábor Boskovits <boskovits@gmail.com> |
c7adafa7 | 25 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
1113386b | 26 | ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org> |
1eacffb9 | 27 | ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com> |
3116c8b5 | 28 | ;;; Copyright © 2017 nee <nee-git@hidamari.blue> |
a73e7dd3 | 29 | ;;; Copyright © 2017 Dave Love <fx@gnu.org> |
fd76c904 | 30 | ;;; |
233e7676 | 31 | ;;; This file is part of GNU Guix. |
fd76c904 | 32 | ;;; |
233e7676 | 33 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
fd76c904 LC |
34 | ;;; under the terms of the GNU General Public License as published by |
35 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
36 | ;;; your option) any later version. | |
37 | ;;; | |
233e7676 | 38 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
fd76c904 LC |
39 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
40 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
41 | ;;; GNU General Public License for more details. | |
42 | ;;; | |
43 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 44 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
fd76c904 | 45 | |
1ffa7090 | 46 | (define-module (gnu packages linux) |
59a43334 | 47 | #:use-module (gnu packages) |
0c60cc53 | 48 | #:use-module (gnu packages acl) |
75750abb DC |
49 | #:use-module (gnu packages admin) |
50 | #:use-module (gnu packages algebra) | |
51 | #:use-module (gnu packages attr) | |
52 | #:use-module (gnu packages autotools) | |
1eacffb9 | 53 | #:use-module (gnu packages backup) |
75750abb | 54 | #:use-module (gnu packages base) |
c7adafa7 | 55 | #:use-module (gnu packages bash) |
75750abb DC |
56 | #:use-module (gnu packages bison) |
57 | #:use-module (gnu packages calendar) | |
58 | #:use-module (gnu packages check) | |
e385e957 | 59 | #:use-module (gnu packages crypto) |
f61e0e79 | 60 | #:use-module (gnu packages compression) |
75750abb | 61 | #:use-module (gnu packages databases) |
b3ed50e6 | 62 | #:use-module (gnu packages datastructures) |
75750abb DC |
63 | #:use-module (gnu packages docbook) |
64 | #:use-module (gnu packages documentation) | |
65 | #:use-module (gnu packages elf) | |
1ffa7090 | 66 | #:use-module (gnu packages flex) |
afc9d8ec | 67 | #:use-module (gnu packages file) |
75750abb DC |
68 | #:use-module (gnu packages freedesktop) |
69 | #:use-module (gnu packages gcc) | |
70 | #:use-module (gnu packages gettext) | |
71 | #:use-module (gnu packages glib) | |
e385e957 | 72 | #:use-module (gnu packages gnuzilla) |
d7d42d6b | 73 | #:use-module (gnu packages gperf) |
75750abb | 74 | #:use-module (gnu packages gtk) |
1d484507 | 75 | #:use-module (gnu packages libunwind) |
1ffa7090 | 76 | #:use-module (gnu packages libusb) |
01be4f93 | 77 | #:use-module (gnu packages man) |
75750abb | 78 | #:use-module (gnu packages maths) |
dfe93c9a | 79 | #:use-module (gnu packages multiprecision) |
1ffa7090 | 80 | #:use-module (gnu packages ncurses) |
c7adafa7 | 81 | #:use-module (gnu packages networking) |
f8f44dd7 | 82 | #:use-module (gnu packages ninja) |
1ffa7090 | 83 | #:use-module (gnu packages perl) |
75750abb | 84 | #:use-module (gnu packages pciutils) |
1ffa7090 | 85 | #:use-module (gnu packages pkg-config) |
0d74462a | 86 | #:use-module (gnu packages popt) |
75750abb | 87 | #:use-module (gnu packages pulseaudio) |
7c0dbe78 | 88 | #:use-module (gnu packages python) |
75750abb DC |
89 | #:use-module (gnu packages readline) |
90 | #:use-module (gnu packages rrdtool) | |
62b28c0e | 91 | #:use-module (gnu packages samba) |
b1fb4b23 | 92 | #:use-module (gnu packages slang) |
b3ed50e6 | 93 | #:use-module (gnu packages storage) |
f57d2639 | 94 | #:use-module (gnu packages texinfo) |
75343704 | 95 | #:use-module (gnu packages tls) |
b3ed50e6 | 96 | #:use-module (gnu packages valgrind) |
7d2511bc | 97 | #:use-module (gnu packages video) |
7f412f33 | 98 | #:use-module (gnu packages web) |
7d2511bc | 99 | #:use-module (gnu packages xiph) |
75750abb | 100 | #:use-module (gnu packages xml) |
58c4f11e TGR |
101 | #:use-module (gnu packages xdisorg) |
102 | #:use-module (gnu packages xorg) | |
a73e7dd3 DL |
103 | #:use-module (gnu packages groff) |
104 | #:use-module (gnu packages selinux) | |
3eb7c000 | 105 | #:use-module (gnu packages swig) |
220193ad | 106 | #:use-module (guix build-system cmake) |
75750abb | 107 | #:use-module (guix build-system gnu) |
e102f940 | 108 | #:use-module (guix build-system python) |
a94546ec | 109 | #:use-module (guix build-system trivial) |
75750abb | 110 | #:use-module (guix download) |
6d31c175 | 111 | #:use-module (guix git-download) |
75750abb DC |
112 | #:use-module ((guix licenses) #:prefix license:) |
113 | #:use-module (guix packages) | |
114 | #:use-module (guix utils) | |
adddd5ba | 115 | #:use-module (srfi srfi-1) |
17db0706 | 116 | #:use-module (srfi srfi-2) |
a94546ec LC |
117 | #:use-module (srfi srfi-26) |
118 | #:use-module (ice-9 match)) | |
fd76c904 | 119 | |
aaf4cb20 LC |
120 | (define-public (system->linux-architecture arch) |
121 | "Return the Linux architecture name for ARCH, a Guix system name such as | |
6d7ef2aa | 122 | \"x86_64-linux\" or a target triplet such as \"arm-linux-gnueabihf\"." |
618cea69 NK |
123 | (let ((arch (car (string-split arch #\-)))) |
124 | (cond ((string=? arch "i686") "i386") | |
125 | ((string-prefix? "mips" arch) "mips") | |
aaf4cb20 | 126 | ((string-prefix? "arm" arch) "arm") |
503275e9 | 127 | ((string-prefix? "aarch64" arch) "arm64") |
605fec78 | 128 | ((string-prefix? "alpha" arch) "alpha") |
c89e2107 | 129 | ((string-prefix? "powerpc" arch) "powerpc") ;including "powerpc64le" |
618cea69 NK |
130 | (else arch)))) |
131 | ||
440a3143 CSLL |
132 | (define-public (system->defconfig system) |
133 | "Some systems (notably powerpc-linux) require a special target for kernel | |
134 | defconfig. Return the appropiate make target if applicable, otherwise return | |
135 | \"defconfig\"." | |
136 | (cond ((string-prefix? "powerpc-" system) "pmac32_defconfig") | |
c89e2107 | 137 | ((string-prefix? "powerpc64le-" system) "ppc64_defconfig") |
440a3143 CSLL |
138 | (else "defconfig"))) |
139 | ||
6023cc74 LC |
140 | (define (linux-libre-urls version) |
141 | "Return a list of URLs for Linux-Libre VERSION." | |
142 | (list (string-append | |
143 | "http://linux-libre.fsfla.org/pub/linux-libre/releases/" | |
144 | version "-gnu/linux-libre-" version "-gnu.tar.xz") | |
145 | ||
146 | ;; XXX: Work around <http://bugs.gnu.org/14851>. | |
147 | (string-append | |
148 | "ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-" | |
149 | version "-gnu.tar.xz") | |
150 | ||
151 | ;; Maybe this URL will become valid eventually. | |
152 | (string-append | |
153 | "mirror://gnu/linux-libre/" version "-gnu/linux-libre-" | |
154 | version "-gnu.tar.xz"))) | |
155 | ||
80fe5c60 | 156 | (define-public linux-libre-headers |
b450d2b4 DC |
157 | (package |
158 | (name "linux-libre-headers") | |
e77fe950 | 159 | (version "4.4.47") |
b450d2b4 DC |
160 | (source (origin |
161 | (method url-fetch) | |
162 | (uri (linux-libre-urls version)) | |
163 | (sha256 | |
164 | (base32 | |
e77fe950 | 165 | "00zdq7swhvzbbnnhzizq6m34q5k4fycpcp215bmkbxh1ic76v7bs")))) |
b450d2b4 DC |
166 | (build-system gnu-build-system) |
167 | (native-inputs `(("perl" ,perl))) | |
168 | (arguments | |
169 | `(#:modules ((guix build gnu-build-system) | |
170 | (guix build utils) | |
171 | (srfi srfi-1)) | |
172 | #:phases | |
173 | (modify-phases %standard-phases | |
174 | (delete 'configure) | |
175 | (replace 'build | |
176 | (lambda _ | |
177 | (let ((arch ,(system->linux-architecture | |
178 | (or (%current-target-system) | |
440a3143 CSLL |
179 | (%current-system)))) |
180 | (defconfig ,(system->defconfig | |
181 | (or (%current-target-system) | |
182 | (%current-system))))) | |
b450d2b4 | 183 | (setenv "ARCH" arch) |
618cea69 | 184 | (format #t "`ARCH' set to `~a'~%" (getenv "ARCH")) |
440a3143 | 185 | (and (zero? (system* "make" defconfig)) |
618cea69 | 186 | (zero? (system* "make" "mrproper" "headers_check")))))) |
b450d2b4 DC |
187 | (replace 'install |
188 | (lambda* (#:key outputs #:allow-other-keys) | |
80fe5c60 LC |
189 | (let ((out (assoc-ref outputs "out"))) |
190 | (and (zero? (system* "make" | |
191 | (string-append "INSTALL_HDR_PATH=" out) | |
192 | "headers_install")) | |
b15389e1 LC |
193 | (begin |
194 | (mkdir (string-append out "/include/config")) | |
195 | (call-with-output-file | |
196 | (string-append out | |
197 | "/include/config/kernel.release") | |
198 | (lambda (p) | |
199 | (format p "~a-default~%" ,version))) | |
200 | ||
201 | ;; Remove the '.install' and '..install.cmd' files; the | |
202 | ;; latter contains store paths, which pulls in bootstrap | |
203 | ;; binaries in the build environment, and prevents bit | |
204 | ;; reproducibility for the bootstrap binaries. | |
205 | (for-each delete-file (find-files out "\\.install")) | |
206 | ||
207 | #t)))))) | |
b15389e1 | 208 | #:allowed-references () |
80fe5c60 | 209 | #:tests? #f)) |
6fd52309 | 210 | (home-page "https://www.gnu.org/software/linux-libre/") |
80fe5c60 LC |
211 | (synopsis "GNU Linux-Libre kernel headers") |
212 | (description "Headers of the Linux-Libre kernel.") | |
b450d2b4 | 213 | (license license:gpl2))) |
80fe5c60 | 214 | |
ac47a7c2 LC |
215 | (define %boot-logo-patch |
216 | ;; Linux-Libre boot logo featuring Freedo and a gnu. | |
217 | (origin | |
218 | (method url-fetch) | |
219 | (uri (string-append "http://www.fsfla.org/svn/fsfla/software/linux-libre/" | |
74dde9e9 | 220 | "lemote/gnewsense/branches/3.16/100gnu+freedo.patch")) |
ac47a7c2 LC |
221 | (sha256 |
222 | (base32 | |
223 | "1hk9swxxc80bmn2zd2qr5ccrjrk28xkypwhl4z0qx4hbivj7qm06")))) | |
224 | ||
c258807a | 225 | (define* (kernel-config arch #:key variant) |
a94546ec | 226 | "Return the absolute file name of the Linux-Libre build configuration file |
c258807a | 227 | for ARCH and optionally VARIANT, or #f if there is no such configuration." |
7994250f | 228 | (let* ((name (string-append (if variant (string-append variant "-") "") |
25847b32 | 229 | (if (string=? "i386" arch) "i686" arch) ".conf")) |
7994250f AK |
230 | (file (string-append "linux-libre/" name))) |
231 | (search-auxiliary-file file))) | |
a94546ec | 232 | |
90c18c32 | 233 | (define %default-extra-linux-options |
50dbc036 | 234 | `(;; https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00039.html |
b9f7895d DC |
235 | ("CONFIG_DEVPTS_MULTIPLE_INSTANCES" . #t) |
236 | ;; Modules required for initrd: | |
237 | ("CONFIG_NET_9P" . m) | |
238 | ("CONFIG_NET_9P_VIRTIO" . m) | |
239 | ("CONFIG_VIRTIO_BLK" . m) | |
240 | ("CONFIG_VIRTIO_NET" . m) | |
241 | ("CONFIG_VIRTIO_PCI" . m) | |
242 | ("CONFIG_VIRTIO_BALLOON" . m) | |
243 | ("CONFIG_VIRTIO_MMIO" . m) | |
244 | ("CONFIG_FUSE_FS" . m) | |
245 | ("CONFIG_CIFS" . m) | |
246 | ("CONFIG_9P_FS" . m))) | |
90c18c32 DC |
247 | |
248 | (define (config->string options) | |
249 | (string-join (map (match-lambda | |
250 | ((option . 'm) | |
251 | (string-append option "=m")) | |
252 | ((option . #t) | |
253 | (string-append option "=y")) | |
254 | ((option . #f) | |
255 | (string-append option "=n"))) | |
256 | options) | |
257 | "\n")) | |
258 | ||
3129b9c2 | 259 | (define* (make-linux-libre version hash supported-systems |
c258807a DC |
260 | #:key |
261 | ;; A function that takes an arch and a variant. | |
262 | ;; See kernel-config for an example. | |
a6d01325 | 263 | (extra-version #f) |
c258807a | 264 | (configuration-file #f) |
90c18c32 | 265 | (defconfig "defconfig") |
64de7d1c MW |
266 | (extra-options %default-extra-linux-options) |
267 | (patches (list %boot-logo-patch))) | |
614d1738 | 268 | (package |
a6d01325 DC |
269 | (name (if extra-version |
270 | (string-append "linux-libre-" extra-version) | |
271 | "linux-libre")) | |
c258807a | 272 | (version version) |
614d1738 DC |
273 | (source (origin |
274 | (method url-fetch) | |
275 | (uri (linux-libre-urls version)) | |
c258807a | 276 | (sha256 (base32 hash)) |
64de7d1c | 277 | (patches patches))) |
3129b9c2 | 278 | (supported-systems supported-systems) |
614d1738 | 279 | (build-system gnu-build-system) |
614d1738 DC |
280 | (native-inputs |
281 | `(("perl" ,perl) | |
282 | ("bc" ,bc) | |
283 | ("openssl" ,openssl) | |
78edcccc | 284 | ("kmod" ,kmod) |
64b5e413 LC |
285 | ,@(match (and configuration-file |
286 | (configuration-file | |
287 | (system->linux-architecture | |
288 | (or (%current-target-system) (%current-system))) | |
289 | #:variant (version-major+minor version))) | |
290 | (#f ;no config for this platform | |
291 | '()) | |
292 | ((? string? config) | |
293 | `(("kconfig" ,config)))))) | |
614d1738 DC |
294 | (arguments |
295 | `(#:modules ((guix build gnu-build-system) | |
296 | (guix build utils) | |
297 | (srfi srfi-1) | |
298 | (ice-9 match)) | |
299 | #:phases | |
300 | (modify-phases %standard-phases | |
9416459b | 301 | (replace 'configure |
4b42703e | 302 | (lambda* (#:key inputs native-inputs target #:allow-other-keys) |
96e9f097 RN |
303 | ;; Avoid introducing timestamps |
304 | (setenv "KCONFIG_NOTIMESTAMP" "1") | |
305 | (setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH")) | |
306 | ||
4b42703e | 307 | ;; Set ARCH and CROSS_COMPILE |
6d7ef2aa DC |
308 | (let ((arch ,(system->linux-architecture |
309 | (or (%current-target-system) | |
310 | (%current-system))))) | |
4b42703e DC |
311 | (setenv "ARCH" arch) |
312 | (format #t "`ARCH' set to `~a'~%" (getenv "ARCH")) | |
6d7ef2aa | 313 | |
4b42703e DC |
314 | (when target |
315 | (setenv "CROSS_COMPILE" (string-append target "-")) | |
316 | (format #t "`CROSS_COMPILE' set to `~a'~%" | |
317 | (getenv "CROSS_COMPILE")))) | |
beacfcab | 318 | |
a6d01325 DC |
319 | (setenv "EXTRA_VERSION" ,extra-version) |
320 | ||
a94546ec | 321 | (let ((build (assoc-ref %standard-phases 'build)) |
65416733 | 322 | (config (assoc-ref (or native-inputs inputs) "kconfig"))) |
1650dd8a | 323 | |
e4e9c0a0 DC |
324 | ;; Use a custom kernel configuration file or a default |
325 | ;; configuration file. | |
1650dd8a LC |
326 | (if config |
327 | (begin | |
328 | (copy-file config ".config") | |
329 | (chmod ".config" #o666)) | |
c258807a | 330 | (system* "make" ,defconfig)) |
a94546ec LC |
331 | |
332 | ;; Appending works even when the option wasn't in the | |
333 | ;; file. The last one prevails if duplicated. | |
90c18c32 DC |
334 | (let ((port (open-file ".config" "a")) |
335 | (extra-configuration ,(config->string extra-options))) | |
336 | (display extra-configuration port) | |
a94546ec LC |
337 | (close-port port)) |
338 | ||
9416459b | 339 | (zero? (system* "make" "oldconfig"))))) |
614d1738 | 340 | (replace 'install |
4b42703e | 341 | (lambda* (#:key inputs native-inputs outputs #:allow-other-keys) |
beacfcab LC |
342 | (let* ((out (assoc-ref outputs "out")) |
343 | (moddir (string-append out "/lib/modules")) | |
e4e9c0a0 DC |
344 | (dtbdir (string-append out "/lib/dtbs")) |
345 | (kmod (assoc-ref (or native-inputs inputs) "kmod"))) | |
346 | ;; Install kernel image, kernel configuration and link map. | |
347 | (for-each (lambda (file) (install-file file out)) | |
fd900d68 | 348 | (find-files "." "^(\\.config|bzImage|zImage|Image|vmlinuz|System\\.map)$")) |
e4e9c0a0 DC |
349 | ;; Install device tree files |
350 | (for-each (lambda (file) (install-file file dtbdir)) | |
351 | (find-files "." "\\.dtb$")) | |
352 | ;; Install kernel modules | |
beacfcab | 353 | (mkdir-p moddir) |
beacfcab | 354 | (zero? (system* "make" |
78edcccc | 355 | (string-append "DEPMOD=" kmod "/bin/depmod") |
beacfcab LC |
356 | (string-append "MODULE_DIR=" moddir) |
357 | (string-append "INSTALL_PATH=" out) | |
358 | (string-append "INSTALL_MOD_PATH=" out) | |
cda3d81e | 359 | "INSTALL_MOD_STRIP=1" |
beacfcab | 360 | "modules_install")))))) |
beacfcab | 361 | #:tests? #f)) |
6fd52309 | 362 | (home-page "https://www.gnu.org/software/linux-libre//") |
f50d2669 | 363 | (synopsis "100% free redistribution of a cleaned Linux kernel") |
a22dc0c4 | 364 | (description |
79c311b8 LC |
365 | "GNU Linux-Libre is a free (as in freedom) variant of the Linux kernel. |
366 | It has been modified to remove all non-free binary blobs.") | |
614d1738 | 367 | (license license:gpl2))) |
beacfcab | 368 | |
3129b9c2 DC |
369 | (define %intel-compatible-systems '("x86_64-linux" "i686-linux")) |
370 | ||
0f3142e7 MW |
371 | (define %linux-libre-version "4.13.11") |
372 | (define %linux-libre-hash "1x2q80s27qcp3skjhqb36xhhcnrjgsq49g7l1ggc3rb3f9cshm59") | |
76e62ef7 | 373 | |
c258807a | 374 | (define-public linux-libre |
76e62ef7 MW |
375 | (make-linux-libre %linux-libre-version |
376 | %linux-libre-hash | |
3129b9c2 | 377 | %intel-compatible-systems |
daca2ec4 | 378 | #:configuration-file kernel-config)) |
c258807a | 379 | |
52d901da | 380 | (define-public linux-libre-4.9 |
336b8d42 MW |
381 | (make-linux-libre "4.9.60" |
382 | "1qfwbw32hvw7a7ly63g39r4wjnpln5zlrrx42asavc5z9dry4pxj" | |
52d901da | 383 | %intel-compatible-systems |
c2ab0f89 | 384 | #:configuration-file kernel-config)) |
52d901da | 385 | |
75b314a6 | 386 | (define-public linux-libre-4.4 |
15d44dfe MW |
387 | (make-linux-libre "4.4.96" |
388 | "0xjg810l8v37fhp04m1ldqb94m3gh4gmns7hhf3118ifkhmkr9rq" | |
3129b9c2 | 389 | %intel-compatible-systems |
d22a843f | 390 | #:configuration-file kernel-config)) |
75b314a6 | 391 | |
adddd5ba | 392 | (define-public linux-libre-4.1 |
a8401c4e MW |
393 | (make-linux-libre "4.1.45" |
394 | "1ifpyyq86x0imjdfb9vm7m8dbnkw82a7bqczx166zrssc1fc677l" | |
3129b9c2 | 395 | %intel-compatible-systems |
a8401c4e | 396 | #:configuration-file kernel-config)) |
adddd5ba | 397 | |
cde7c23f DC |
398 | (define-public linux-libre-arm-generic |
399 | (make-linux-libre %linux-libre-version | |
400 | %linux-libre-hash | |
401 | '("armhf-linux") | |
402 | #:defconfig "multi_v7_defconfig" | |
daca2ec4 | 403 | #:extra-version "arm-generic")) |
cde7c23f | 404 | |
f6948189 MO |
405 | (define-public linux-libre-arm-omap2plus |
406 | (make-linux-libre %linux-libre-version | |
407 | %linux-libre-hash | |
408 | '("armhf-linux") | |
409 | #:defconfig "omap2plus_defconfig" | |
410 | #:extra-version "arm-omap2plus")) | |
411 | ||
97121c2a | 412 | \f |
c84d0eca LC |
413 | ;;; |
414 | ;;; Pluggable authentication modules (PAM). | |
415 | ;;; | |
416 | ||
fd76c904 LC |
417 | (define-public linux-pam |
418 | (package | |
419 | (name "linux-pam") | |
7483230f | 420 | (version "1.3.0") |
fd76c904 LC |
421 | (source |
422 | (origin | |
423 | (method url-fetch) | |
7483230f DC |
424 | (uri (string-append |
425 | "http://www.linux-pam.org/library/" | |
426 | "Linux-PAM-" version ".tar.bz2")) | |
fd76c904 LC |
427 | (sha256 |
428 | (base32 | |
411264c2 RS |
429 | "1fyi04d5nsh8ivd0rn2y0z83ylgc0licz7kifbb6xxi2ylgfs6i4")) |
430 | (patches (search-patches "linux-pam-no-setfsuid.patch")))) | |
431 | ||
fd76c904 | 432 | (build-system gnu-build-system) |
c4c4cc05 | 433 | (native-inputs |
fd76c904 LC |
434 | `(("flex" ,flex) |
435 | ||
436 | ;; TODO: optional dependencies | |
437 | ;; ("libxcrypt" ,libxcrypt) | |
438 | ;; ("cracklib" ,cracklib) | |
439 | )) | |
440 | (arguments | |
ed8111ea | 441 | `(;; Most users, such as `shadow', expect the headers to be under |
c134056a LC |
442 | ;; `security'. |
443 | #:configure-flags (list (string-append "--includedir=" | |
444 | (assoc-ref %outputs "out") | |
ed8111ea LC |
445 | "/include/security") |
446 | ||
447 | ;; XXX: <rpc/rpc.h> is missing from glibc when | |
448 | ;; cross-compiling, so we have to disable NIS | |
449 | ;; support altogether. | |
450 | ,@(if (%current-target-system) | |
451 | '("--disable-nis") | |
452 | '())) | |
c134056a LC |
453 | |
454 | ;; XXX: Tests won't run in chroot, presumably because /etc/pam.d | |
455 | ;; isn't available. | |
456 | #:tests? #f)) | |
fd76c904 LC |
457 | (home-page "http://www.linux-pam.org/") |
458 | (synopsis "Pluggable authentication modules for Linux") | |
459 | (description | |
460 | "A *Free* project to implement OSF's RFC 86.0. | |
461 | Pluggable authentication modules are small shared object files that can | |
462 | be used through the PAM API to perform tasks, like authenticating a user | |
e881752c | 463 | at login. Local and dynamic reconfiguration are its key features.") |
3ac73271 | 464 | (license license:bsd-3))) |
686f14e8 | 465 | |
4c93ce42 EF |
466 | (define-public linux-pam-1.2 |
467 | (package | |
468 | (inherit linux-pam) | |
4c93ce42 EF |
469 | (version "1.2.1") |
470 | (source | |
471 | (origin | |
472 | (method url-fetch) | |
473 | (uri (string-append | |
474 | "http://www.linux-pam.org/library/" | |
475 | "Linux-PAM-" version ".tar.bz2")) | |
476 | (sha256 | |
477 | (base32 | |
411264c2 RS |
478 | "1n9lnf9gjs72kbj1g354v1xhi2j27aqaah15vykh7cnkq08i4arl")) |
479 | (patches (search-patches "linux-pam-no-setfsuid.patch")))))) | |
4c93ce42 | 480 | |
53142109 | 481 | |
c84d0eca LC |
482 | ;;; |
483 | ;;; Miscellaneous. | |
484 | ;;; | |
485 | ||
686f14e8 LC |
486 | (define-public psmisc |
487 | (package | |
488 | (name "psmisc") | |
aa9c221f | 489 | (version "22.21") |
686f14e8 LC |
490 | (source |
491 | (origin | |
492 | (method url-fetch) | |
493 | (uri (string-append "mirror://sourceforge/psmisc/psmisc/psmisc-" | |
494 | version ".tar.gz")) | |
495 | (sha256 | |
496 | (base32 | |
aa9c221f | 497 | "0nhlm1vrrwn4a845p6y4nnnb4liq70n74zbdd5dq844jc6nkqclp")))) |
686f14e8 LC |
498 | (build-system gnu-build-system) |
499 | (inputs `(("ncurses" ,ncurses))) | |
aa9c221f | 500 | (home-page "https://gitlab.com/psmisc/psmisc") |
686f14e8 | 501 | (synopsis |
8f65585b | 502 | "Small utilities that use the proc file system") |
686f14e8 LC |
503 | (description |
504 | "This PSmisc package is a set of some small useful utilities that | |
8f65585b | 505 | use the proc file system. We're not about changing the world, but |
686f14e8 | 506 | providing the system administrator with some help in common tasks.") |
3ac73271 | 507 | (license license:gpl2+))) |
02b80c3f NK |
508 | |
509 | (define-public util-linux | |
510 | (package | |
511 | (name "util-linux") | |
66d4cd79 | 512 | (version "2.30.1") |
5a6a3ba4 LC |
513 | (source (origin |
514 | (method url-fetch) | |
515 | (uri (string-append "mirror://kernel.org/linux/utils/" | |
9f533d60 LC |
516 | name "/v" (version-major+minor version) "/" |
517 | name "-" version ".tar.xz")) | |
5a6a3ba4 LC |
518 | (sha256 |
519 | (base32 | |
66d4cd79 | 520 | "0hdq2fz405a89fyha4bgwg0rx8b65inxq17w8fg8qhmcj4x3dr0v")) |
fc1adab1 | 521 | (patches (search-patches "util-linux-tests.patch")) |
9d77da2a LC |
522 | (modules '((guix build utils))) |
523 | (snippet | |
ec2da92c LC |
524 | ;; We take the 'logger' program from GNU Inetutils and 'kill' |
525 | ;; from GNU Coreutils. | |
8338c241 MW |
526 | '(begin |
527 | (substitute* "configure" | |
528 | (("build_logger=yes") "build_logger=no") | |
529 | (("build_kill=yes") "build_kill=no")) | |
530 | #t)))) | |
02b80c3f | 531 | (build-system gnu-build-system) |
dd581e9a TGR |
532 | (outputs '("out" |
533 | "static")) ; >2 MiB of static .a libraries | |
02b80c3f | 534 | (arguments |
29ec55ee | 535 | `(#:configure-flags (list "--disable-use-tty-group" |
d9804e50 | 536 | "--enable-fs-paths-default=/run/current-system/profile/sbin" |
29ec55ee LC |
537 | ;; Install completions where our |
538 | ;; bash-completion package expects them. | |
539 | (string-append "--with-bashcompletiondir=" | |
540 | (assoc-ref %outputs "out") | |
541 | "/etc/bash_completion.d")) | |
1b9cf4ad | 542 | #:phases (modify-phases %standard-phases |
7e512497 LC |
543 | (add-before |
544 | 'build 'set-umount-file-name | |
545 | (lambda* (#:key outputs #:allow-other-keys) | |
546 | ;; Tell 'eject' the right file name of 'umount'. | |
547 | (let ((out (assoc-ref outputs "out"))) | |
548 | (substitute* "sys-utils/eject.c" | |
549 | (("\"/bin/umount\"") | |
550 | (string-append "\"" out "/bin/umount\""))) | |
551 | #t))) | |
1b9cf4ad LC |
552 | (add-before |
553 | 'check 'pre-check | |
554 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
555 | (let ((out (assoc-ref outputs "out")) | |
556 | (net (assoc-ref inputs "net-base"))) | |
557 | ;; Change the test to refer to the right file. | |
558 | (substitute* "tests/ts/misc/mcookie" | |
559 | (("/etc/services") | |
560 | (string-append net "/etc/services"))) | |
dd581e9a TGR |
561 | #t))) |
562 | (add-after | |
563 | 'install 'move-static-libraries | |
564 | (lambda* (#:key outputs #:allow-other-keys) | |
565 | (let ((out (assoc-ref outputs "out")) | |
566 | (static (assoc-ref outputs "static"))) | |
567 | (mkdir-p (string-append static "/lib")) | |
568 | (with-directory-excursion out | |
569 | (for-each (lambda (file) | |
570 | (rename-file file | |
571 | (string-append static "/" | |
572 | file))) | |
573 | (find-files "lib" "\\.a$"))) | |
1b9cf4ad | 574 | #t)))))) |
f61e0e79 | 575 | (inputs `(("zlib" ,zlib) |
ba4aca3a LC |
576 | ("ncurses" ,ncurses) |
577 | ||
578 | ;; XXX: This is so that the 'pre-check' phase can find it. | |
579 | ,@(if (%current-target-system) | |
580 | `(("net-base" ,net-base)) | |
581 | '()))) | |
c4c4cc05 | 582 | (native-inputs |
9f533d60 LC |
583 | `(("perl" ,perl) |
584 | ("net-base" ,net-base))) ;for tests | |
02b80c3f | 585 | (home-page "https://www.kernel.org/pub/linux/utils/util-linux/") |
35ec07c7 | 586 | (synopsis "Collection of utilities for the Linux kernel") |
437d7286 | 587 | (description "Util-linux is a diverse collection of Linux kernel |
8f65585b | 588 | utilities. It provides dmesg and includes tools for working with file systems, |
437d7286 | 589 | block devices, UUIDs, TTYs, and many other tools.") |
fe8ccfcc | 590 | |
02b80c3f | 591 | ;; Note that util-linux doesn't use the same license for all the |
fe8ccfcc | 592 | ;; code. GPLv2+ is the default license for a code without an |
02b80c3f | 593 | ;; explicitly defined license. |
3ac73271 LC |
594 | (license (list license:gpl3+ license:gpl2+ license:gpl2 license:lgpl2.0+ |
595 | license:bsd-4 license:public-domain)))) | |
5d5c4278 | 596 | |
3116c8b5 | 597 | (define-public ddate |
598 | (package | |
599 | (name "ddate") | |
600 | (version "0.2.2") | |
601 | (source (origin | |
602 | (method url-fetch) | |
603 | (uri (string-append "https://github.com/bo0ts/ddate/archive/v" | |
604 | version ".tar.gz")) | |
605 | (file-name (string-append name "-" version ".tar.gz")) | |
606 | (sha256 | |
607 | (base32 "1bbqqq8mswj4bp9083gxjaky5ysfznax4cynsqwmy125z053yg6m")))) | |
608 | (build-system cmake-build-system) | |
609 | (arguments '(#:tests? #f)) | |
610 | (home-page "https://github.com/bo0ts/ddate") | |
611 | (synopsis "PERPETUAL DATE CONVERTER FROM GREGORIAN TO POEE CALENDAR") | |
612 | (description | |
613 | "ddate displays the Discordian date and holidays of a given date. | |
614 | The Discordian calendar was made popular by the \"Illuminatus!\" trilogy | |
615 | by Robert Shea and Robert Anton Wilson.") | |
616 | (license license:public-domain))) | |
617 | ||
e47e3eff LC |
618 | (define-public procps |
619 | (package | |
620 | (name "procps") | |
74a3c4bb | 621 | (version "3.3.12") |
e47e3eff | 622 | (source (origin |
0cc22848 SB |
623 | (method url-fetch) |
624 | (uri (string-append "mirror://sourceforge/procps-ng/Production/" | |
625 | "procps-ng-" version ".tar.xz")) | |
626 | (sha256 | |
627 | (base32 | |
74a3c4bb | 628 | "1m57w6jmry84njd5sgk5afycbglql0al80grx027kwqqcfw5mmkf")))) |
e47e3eff | 629 | (build-system gnu-build-system) |
e47e3eff | 630 | (arguments |
80393eed LC |
631 | '(#:modules ((guix build utils) |
632 | (guix build gnu-build-system) | |
633 | (srfi srfi-1) | |
634 | (srfi srfi-26)) | |
0cc22848 SB |
635 | #:phases |
636 | (modify-phases %standard-phases | |
241826b5 LC |
637 | (add-before 'check 'disable-strtod-test |
638 | (lambda _ | |
639 | ;; Disable the 'strtod' test, which fails on 32-bit systems. | |
640 | ;; This is what upstream does: | |
641 | ;; <https://gitlab.com/procps-ng/procps/commit/100afbc1491be388f1429021ff65d969f4b1e08f>. | |
642 | (substitute* "Makefile" | |
643 | (("^(TESTS|check_PROGRAMS) = .*$" all) | |
644 | (string-append "# " all "\n"))) | |
645 | #t)) | |
0cc22848 SB |
646 | (add-after |
647 | 'install 'post-install | |
648 | ;; Remove commands and man pages redudant with | |
649 | ;; Coreutils. | |
650 | (lambda* (#:key outputs #:allow-other-keys) | |
651 | (let* ((out (assoc-ref outputs "out")) | |
652 | (dup (append-map (cut find-files out <>) | |
653 | '("^kill" "^uptime")))) | |
654 | (for-each delete-file dup) | |
655 | #t)))))) | |
656 | (inputs `(("ncurses" ,ncurses))) | |
657 | (home-page "https://gitlab.com/procps-ng/procps/") | |
35ec07c7 | 658 | (synopsis "Utilities that give information about processes") |
e47e3eff | 659 | (description |
35b9e423 | 660 | "Procps is the package that has a bunch of small useful utilities |
e47e3eff LC |
661 | that give information about processes using the Linux /proc file system. |
662 | The package includes the programs ps, top, vmstat, w, kill, free, | |
663 | slabtop, and skill.") | |
3ac73271 | 664 | (license license:gpl2))) |
e47e3eff | 665 | |
5d5c4278 NK |
666 | (define-public usbutils |
667 | (package | |
668 | (name "usbutils") | |
e8a463e6 | 669 | (version "008") |
5d5c4278 NK |
670 | (source |
671 | (origin | |
672 | (method url-fetch) | |
673 | (uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/" | |
674 | "usbutils-" version ".tar.xz")) | |
675 | (sha256 | |
676 | (base32 | |
e8a463e6 | 677 | "132clk14j4nm8crln2jymdbbc2vhzar2j2hnxyh05m79pbq1lx24")))) |
5d5c4278 NK |
678 | (build-system gnu-build-system) |
679 | (inputs | |
e8a463e6 | 680 | `(("libusb" ,libusb) |
4e859e92 | 681 | ("eudev" ,eudev))) |
c4c4cc05 JD |
682 | (native-inputs |
683 | `(("pkg-config" ,pkg-config))) | |
5d5c4278 NK |
684 | (home-page "http://www.linux-usb.org/") |
685 | (synopsis | |
686 | "Tools for working with USB devices, such as lsusb") | |
687 | (description | |
688 | "Tools for working with USB devices, such as lsusb.") | |
3ac73271 | 689 | (license license:gpl2+))) |
0750452a LC |
690 | |
691 | (define-public e2fsprogs | |
692 | (package | |
693 | (name "e2fsprogs") | |
29591fc4 | 694 | (version "1.43.6") |
0750452a LC |
695 | (source (origin |
696 | (method url-fetch) | |
7409c8d4 MW |
697 | (uri (string-append |
698 | "mirror://kernel.org/linux/kernel/people/tytso/" | |
699 | name "/v" version "/" | |
700 | name "-" version ".tar.xz")) | |
0750452a LC |
701 | (sha256 |
702 | (base32 | |
29591fc4 | 703 | "00ilv65dzcgiap435j89xk86shf7rrav3wsik7cahy789qijdcn9")))) |
0750452a | 704 | (build-system gnu-build-system) |
c4c4cc05 | 705 | (inputs `(("util-linux" ,util-linux))) |
f57d2639 | 706 | (native-inputs `(("pkg-config" ,pkg-config) |
75f796bb MB |
707 | ("texinfo" ,texinfo) ;for the libext2fs Info manual |
708 | ||
709 | ;; For tests. | |
710 | ("perl" ,perl) | |
711 | ("procps" ,procps))) | |
0750452a | 712 | (arguments |
b047a86b | 713 | '(;; util-linux is the preferred source for some of the libraries and |
c44ed26c | 714 | ;; commands, so disable them (see, e.g., |
a124bbd2 | 715 | ;; <http://git.buildroot.net/buildroot/commit/?id=e1ffc2f791b33633>.) |
b047a86b MB |
716 | #:configure-flags (list "--disable-libblkid" |
717 | "--disable-libuuid" "--disable-uuidd" | |
718 | "--disable-fsck" | |
7c594a2c | 719 | |
b047a86b MB |
720 | ;; Use symlinks instead of hard links for |
721 | ;; 'fsck.extN' etc. This makes the resulting nar | |
722 | ;; smaller and is preserved across copies. | |
723 | "--enable-symlink-install" | |
74d21291 | 724 | |
b047a86b MB |
725 | (string-append "LDFLAGS=-Wl,-rpath=" |
726 | (assoc-ref %outputs "out") | |
727 | "/lib") | |
7c594a2c | 728 | |
b047a86b MB |
729 | ;; Install libext2fs et al. |
730 | "--enable-elf-shlibs") | |
ddfc2fd8 | 731 | |
55acb372 MB |
732 | #:phases |
733 | (modify-phases %standard-phases | |
734 | (add-before 'configure 'patch-shells | |
735 | (lambda _ | |
736 | (substitute* "configure" | |
737 | (("/bin/sh (.*)parse-types.sh" _ dir) | |
738 | (string-append (which "sh") " " dir | |
739 | "parse-types.sh"))) | |
b047a86b MB |
740 | (substitute* "MCONFIG.in" |
741 | (("INSTALL_SYMLINK = /bin/sh") | |
742 | "INSTALL_SYMLINK = sh")) | |
55acb372 MB |
743 | (substitute* (find-files "." "^Makefile.in$") |
744 | (("#!/bin/sh") | |
745 | (string-append "#!" (which "sh")))) | |
746 | #t)) | |
747 | (add-after 'install 'install-libs | |
748 | (lambda* (#:key outputs #:allow-other-keys) | |
749 | (let* ((out (assoc-ref outputs "out")) | |
750 | (lib (string-append out "/lib"))) | |
751 | (and (zero? (system* "make" "install-libs")) | |
752 | ||
753 | ;; Make the .a writable so that 'strip' works. | |
754 | ;; Failing to do that, due to debug symbols, we | |
755 | ;; retain a reference to the final | |
756 | ;; linux-libre-headers, which refer to the | |
757 | ;; bootstrap binaries. | |
758 | (let ((archives (find-files lib "\\.a$"))) | |
759 | (for-each (lambda (file) | |
760 | (chmod file #o666)) | |
761 | archives) | |
75f796bb | 762 | #t)))))))) |
0750452a | 763 | (home-page "http://e2fsprogs.sourceforge.net/") |
35ec07c7 | 764 | (synopsis "Creating and checking ext2/ext3/ext4 file systems") |
0750452a LC |
765 | (description |
766 | "This package provides tools for manipulating ext2/ext3/ext4 file systems.") | |
3ac73271 LC |
767 | (license (list license:gpl2 ;programs |
768 | license:lgpl2.0 ;libext2fs | |
769 | license:x11)))) ;libuuid | |
d8482ad0 | 770 | |
e48977e7 LC |
771 | (define e2fsprogs/static |
772 | (static-package | |
773 | (package (inherit e2fsprogs) | |
774 | (arguments | |
775 | ;; Do not build shared libraries. | |
776 | (substitute-keyword-arguments (package-arguments e2fsprogs) | |
777 | ((#:configure-flags _) | |
778 | '(list "--disable-blkid")) | |
779 | ((#:make-flags _) | |
780 | '(list))))))) | |
781 | ||
e102f940 LC |
782 | (define-public e2fsck/static |
783 | (package | |
784 | (name "e2fsck-static") | |
0997771a | 785 | (version (package-version e2fsprogs)) |
e102f940 LC |
786 | (build-system trivial-build-system) |
787 | (source #f) | |
313880c7 DC |
788 | (inputs |
789 | `(("e2fsprogs" ,e2fsprogs/static))) | |
e102f940 LC |
790 | (arguments |
791 | `(#:modules ((guix build utils)) | |
792 | #:builder | |
793 | (begin | |
794 | (use-modules (guix build utils) | |
795 | (ice-9 ftw) | |
796 | (srfi srfi-26)) | |
797 | ||
313880c7 DC |
798 | (let ((e2fsck (string-append (assoc-ref %build-inputs "e2fsprogs") |
799 | "/sbin/e2fsck")) | |
e102f940 LC |
800 | (bin (string-append (assoc-ref %outputs "out") "/sbin"))) |
801 | (mkdir-p bin) | |
802 | (with-directory-excursion bin | |
313880c7 DC |
803 | (copy-file e2fsck "e2fsck") |
804 | (remove-store-references "e2fsck") | |
805 | (chmod "e2fsck" #o555)))))) | |
0997771a | 806 | (home-page (package-home-page e2fsprogs)) |
313880c7 DC |
807 | (synopsis "Statically-linked e2fsck command from e2fsprogs") |
808 | (description "This package provides statically-linked e2fsck command taken | |
809 | from the e2fsprogs package. It is meant to be used in initrds.") | |
0997771a | 810 | (license (package-license e2fsprogs)))) |
e102f940 | 811 | |
7c0a9104 LC |
812 | (define-public extundelete |
813 | (package | |
814 | (name "extundelete") | |
815 | (version "0.2.4") | |
816 | (source (origin | |
817 | (method url-fetch) | |
818 | (uri (string-append "mirror://sourceforge/extundelete/" | |
de67e922 LF |
819 | "extundelete/" version "/extundelete-" |
820 | version ".tar.bz2")) | |
7c0a9104 LC |
821 | (sha256 |
822 | (base32 | |
823 | "1x0r7ylxlp9lbj3d7sqf6j2a222dwy2nfpff05jd6mkh4ihxvyd1")))) | |
824 | (build-system gnu-build-system) | |
825 | (inputs `(("e2fsprogs" ,e2fsprogs))) | |
826 | (home-page "http://extundelete.sourceforge.net/") | |
827 | (synopsis "Recover deleted files from ext2/3/4 partitions") | |
828 | (description | |
829 | "Extundelete is a set of tools that can recover deleted files from an | |
830 | ext3 or ext4 partition.") | |
3ac73271 | 831 | (license license:gpl2))) |
7c0a9104 | 832 | |
1c975f60 LC |
833 | (define-public zerofree |
834 | (package | |
835 | (name "zerofree") | |
30ac4cc7 TGR |
836 | (version "1.1.0") |
837 | (home-page "https://frippery.org/uml/") | |
1c975f60 LC |
838 | (source (origin |
839 | (method url-fetch) | |
840 | (uri (string-append home-page name "-" version | |
841 | ".tgz")) | |
842 | (sha256 | |
843 | (base32 | |
30ac4cc7 | 844 | "059g29x5r1xj6wcj4xj85l8w6qrxyl86yqbybjqqz6nxz4falxzf")))) |
1c975f60 LC |
845 | (build-system gnu-build-system) |
846 | (arguments | |
0f08917d TGR |
847 | '(#:phases |
848 | (modify-phases %standard-phases | |
849 | (delete 'configure) ; no configure script | |
850 | (replace 'install | |
851 | ;; The Makefile lacks an ‘install’ target. | |
852 | (lambda* (#:key outputs #:allow-other-keys) | |
853 | (let* ((out (assoc-ref outputs "out")) | |
854 | (bin (string-append out "/bin"))) | |
7a068459 TGR |
855 | (chmod "zerofree" #o555) |
856 | (install-file "zerofree" bin) | |
0f08917d TGR |
857 | #t)))) |
858 | #:tests? #f)) ; no tests | |
1c975f60 LC |
859 | (inputs `(("libext2fs" ,e2fsprogs))) |
860 | (synopsis "Zero non-allocated regions in ext2/ext3/ext4 file systems") | |
861 | (description | |
4de4a1cf TGR |
862 | "Zerofree finds the unallocated blocks with non-zero value content in an |
863 | ext2, ext3, or ext4 file system and fills them with zeroes (or another value). | |
864 | This is a simple way to make disk images more compressible. | |
865 | Zerofree requires the file system to be unmounted or mounted read-only.") | |
3ac73271 | 866 | (license license:gpl2))) |
1c975f60 | 867 | |
d8482ad0 LC |
868 | (define-public strace |
869 | (package | |
870 | (name "strace") | |
273027da | 871 | (version "4.19") |
d8482ad0 LC |
872 | (source (origin |
873 | (method url-fetch) | |
de67e922 LF |
874 | (uri (string-append "mirror://sourceforge/strace/strace/" version |
875 | "/strace-" version ".tar.xz")) | |
d8482ad0 LC |
876 | (sha256 |
877 | (base32 | |
273027da | 878 | "10bjh2mrkvx41fk60b2iqv5b5k4r7a3qdsx04iyg904jqb3fp4vw")))) |
d8482ad0 | 879 | (build-system gnu-build-system) |
6983b8a8 MB |
880 | (arguments |
881 | '(#:phases | |
882 | (modify-phases %standard-phases | |
883 | (add-after 'unpack 'patch-/bin/sh | |
884 | (lambda _ | |
885 | (substitute* "strace.c" | |
886 | (("/bin/sh") (which "sh"))) | |
887 | #t))))) | |
c4c4cc05 | 888 | (native-inputs `(("perl" ,perl))) |
6983b8a8 | 889 | (home-page "https://strace.io/") |
d8482ad0 LC |
890 | (synopsis "System call tracer for Linux") |
891 | (description | |
892 | "strace is a system call tracer, i.e. a debugging tool which prints out a | |
893 | trace of all the system calls made by a another process/program.") | |
3ac73271 | 894 | (license license:bsd-3))) |
ba04571a | 895 | |
e1e27737 TUBK |
896 | (define-public ltrace |
897 | (package | |
898 | (name "ltrace") | |
899 | (version "0.7.3") | |
900 | (source (origin | |
901 | (method url-fetch) | |
902 | (uri (string-append "http://www.ltrace.org/ltrace_" version | |
903 | ".orig.tar.bz2")) | |
904 | (sha256 | |
905 | (base32 | |
906 | "00wmbdghqbz6x95m1mcdd3wd46l6hgcr4wggdp049dbifh3qqvqf")))) | |
907 | (build-system gnu-build-system) | |
908 | (inputs `(("libelf" ,libelf))) | |
909 | (arguments | |
910 | ;; Compilation uses -Werror by default, but it fails. | |
911 | '(#:configure-flags '("--disable-werror"))) | |
912 | (home-page "http://www.ltrace.org/") | |
913 | (synopsis "Library call tracer for Linux") | |
914 | (description | |
915 | "ltrace intercepts and records dynamic library calls which are called by | |
916 | an executed process and the signals received by that process. It can also | |
917 | intercept and print the system calls executed by the program.") | |
3ac73271 | 918 | (license license:gpl2+))) |
e1e27737 | 919 | |
ba04571a LC |
920 | (define-public alsa-lib |
921 | (package | |
922 | (name "alsa-lib") | |
910416c8 | 923 | (version "1.1.4.1") |
ba04571a LC |
924 | (source (origin |
925 | (method url-fetch) | |
926 | (uri (string-append | |
927 | "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-" | |
928 | version ".tar.bz2")) | |
929 | (sha256 | |
930 | (base32 | |
910416c8 | 931 | "0xjvi381105gldhv0z872a0x58sghznyx19j45lw5iyi2h68gfwi")))) |
ba04571a | 932 | (build-system gnu-build-system) |
5f3070a5 | 933 | (home-page "https://www.alsa-project.org/") |
ba04571a LC |
934 | (synopsis "The Advanced Linux Sound Architecture libraries") |
935 | (description | |
936 | "The Advanced Linux Sound Architecture (ALSA) provides audio and | |
937 | MIDI functionality to the Linux-based operating system.") | |
3ac73271 | 938 | (license license:lgpl2.1+))) |
10afdf50 | 939 | |
17b293a0 LC |
940 | (define-public alsa-utils |
941 | (package | |
942 | (name "alsa-utils") | |
31baa864 | 943 | (version "1.1.4") |
17b293a0 LC |
944 | (source (origin |
945 | (method url-fetch) | |
992b527d EF |
946 | (uri (string-append "ftp://ftp.alsa-project.org/pub/utils/" |
947 | name "-" version ".tar.bz2")) | |
17b293a0 LC |
948 | (sha256 |
949 | (base32 | |
31baa864 | 950 | "17cxih9ibjp1193dyd79j50pyfa9dvrs6r9kpwrvzicjvr2110x7")))) |
17b293a0 LC |
951 | (build-system gnu-build-system) |
952 | (arguments | |
953 | ;; XXX: Disable man page creation until we have DocBook. | |
954 | '(#:configure-flags (list "--disable-xmlto" | |
f2817d43 LC |
955 | |
956 | ;; The udev rule is responsible for restoring | |
957 | ;; the volume. | |
17b293a0 LC |
958 | (string-append "--with-udev-rules-dir=" |
959 | (assoc-ref %outputs "out") | |
960 | "/lib/udev/rules.d")) | |
49165145 EF |
961 | #:phases |
962 | (modify-phases %standard-phases | |
963 | (add-before | |
964 | 'install 'pre-install | |
965 | (lambda _ | |
966 | ;; Don't try to mkdir /var/lib/alsa. | |
967 | (substitute* "Makefile" | |
968 | (("\\$\\(MKDIR_P\\) .*ASOUND_STATE_DIR.*") | |
457d154f EF |
969 | "true\n")) |
970 | #t))))) | |
17b293a0 LC |
971 | (inputs |
972 | `(("libsamplerate" ,libsamplerate) | |
973 | ("ncurses" ,ncurses) | |
974 | ("alsa-lib" ,alsa-lib) | |
975 | ("xmlto" ,xmlto) | |
b94a6ca0 | 976 | ("gettext" ,gettext-minimal))) |
17b293a0 LC |
977 | (home-page "http://www.alsa-project.org/") |
978 | (synopsis "Utilities for the Advanced Linux Sound Architecture (ALSA)") | |
979 | (description | |
980 | "The Advanced Linux Sound Architecture (ALSA) provides audio and | |
981 | MIDI functionality to the Linux-based operating system.") | |
982 | ||
983 | ;; This is mostly GPLv2+ but a few files such as 'alsactl.c' are | |
984 | ;; GPLv2-only. | |
3ac73271 | 985 | (license license:gpl2))) |
17b293a0 | 986 | |
7d2511bc | 987 | (define-public alsa-plugins |
988 | (package | |
989 | (name "alsa-plugins") | |
20d87dfb | 990 | (version "1.1.4") |
7d2511bc | 991 | (source (origin |
992 | (method url-fetch) | |
993 | (uri (string-append "ftp://ftp.alsa-project.org/pub/plugins/" | |
994 | name "-" version ".tar.bz2")) | |
995 | (sha256 | |
996 | (base32 | |
20d87dfb | 997 | "12hsvm6rpinjkg06pa9hzndkdrbfw6wk6yk00cm8y1gbv8xiq3ak")))) |
7d2511bc | 998 | (build-system gnu-build-system) |
999 | ;; TODO: Split libavcodec and speex if possible. It looks like they can not | |
1000 | ;; be split, there are references to both in files. | |
1001 | ;; TODO: Remove OSS related plugins, they add support to run native | |
1002 | ;; ALSA applications on OSS however we do not offer OSS and OSS is | |
1003 | ;; obsolete. | |
1004 | (outputs '("out" "pulseaudio")) | |
1005 | (arguments | |
1006 | `(#:phases | |
1007 | (modify-phases %standard-phases | |
1008 | (add-after 'install 'split | |
1009 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1010 | ;; Distribute the binaries to the various outputs. | |
1011 | (let* ((out (assoc-ref outputs "out")) | |
1012 | (pua (assoc-ref outputs "pulseaudio")) | |
1013 | (pualib (string-append pua "/lib/alsa-lib")) | |
1014 | (puaconf (string-append pua "/share/alsa/alsa.conf.d"))) | |
1015 | (mkdir-p puaconf) | |
1016 | (mkdir-p pualib) | |
1017 | (chdir (string-append out "/share")) | |
1018 | (for-each (lambda (file) | |
1019 | (rename-file file (string-append puaconf "/" (basename file)))) | |
1020 | (find-files out "\\.(conf|example)")) | |
1021 | (for-each (lambda (file) | |
1022 | (rename-file file (string-append pualib "/" (basename file)))) | |
1023 | (find-files out ".*pulse\\.(la|so)")) | |
1024 | (chdir "..") | |
1025 | ;; We have moved the files to output pulsaudio, the | |
1026 | ;; directory is now empty. | |
1027 | (delete-file-recursively (string-append out "/share")) | |
1028 | #t)))))) | |
1029 | (inputs | |
1030 | `(("alsa-lib" ,alsa-lib) | |
1031 | ("speex" ,speex) ; libspeexdsp resampling plugin | |
1032 | ("libsamplerate" ,libsamplerate) ; libsamplerate resampling plugin | |
1033 | ("ffmpeg" ,ffmpeg) ; libavcodec resampling plugin, a52 plugin | |
1034 | ("pulseaudio" ,pulseaudio))) ; PulseAudio plugin | |
1035 | (native-inputs | |
1036 | `(("pkg-config" ,pkg-config))) | |
1037 | (home-page "http://www.alsa-project.org/") | |
1038 | (synopsis "Plugins for the Advanced Linux Sound Architecture (ALSA)") | |
1039 | (description | |
1040 | "The Advanced Linux Sound Architecture (ALSA) provides audio and | |
1041 | MIDI functionality to the Linux-based operating system. This package enhances ALSA | |
1042 | by providing additional plugins which include: upmixing, downmixing, jackd and | |
1043 | pulseaudio support for native alsa applications, format conversion (s16 to a52), and | |
1044 | external rate conversion.") | |
1045 | (license (list license:gpl2+ | |
1046 | ;; `rate/rate_samplerate.c': LGPL v2.1 or later. | |
1047 | license:lgpl2.1+)))) | |
1048 | ||
10afdf50 LC |
1049 | (define-public iptables |
1050 | (package | |
1051 | (name "iptables") | |
13223c8e | 1052 | (version "1.6.1") |
10afdf50 LC |
1053 | (source (origin |
1054 | (method url-fetch) | |
1055 | (uri (string-append | |
f11ae44f | 1056 | "mirror://netfilter.org/iptables/iptables-" |
10afdf50 LC |
1057 | version ".tar.bz2")) |
1058 | (sha256 | |
1059 | (base32 | |
13223c8e | 1060 | "1x8c9y340x79djsq54bc1674ryv59jfphrk4f88i7qbvbnyxghhg")))) |
10afdf50 | 1061 | (build-system gnu-build-system) |
13223c8e LF |
1062 | (native-inputs |
1063 | `(("pkg-config" ,pkg-config) | |
1064 | ("flex" ,flex) | |
1065 | ("bison" ,bison))) | |
1066 | (inputs | |
1067 | `(("libmnl" ,libmnl) | |
1068 | ("libnftnl" ,libnftnl))) | |
50c26d9e SB |
1069 | (arguments |
1070 | '(#:tests? #f ; no test suite | |
1071 | #:configure-flags ; add $libdir to the RUNPATH of executables | |
1072 | (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))) | |
13223c8e | 1073 | (home-page "https://www.netfilter.org/projects/iptables/index.html") |
10afdf50 LC |
1074 | (synopsis "Program to configure the Linux IP packet filtering rules") |
1075 | (description | |
1076 | "iptables is the userspace command line program used to configure the | |
35e4b3d5 | 1077 | Linux 2.4.x and later IPv4 packet filtering ruleset (firewall). It is targeted at |
10afdf50 LC |
1078 | system administrators. Since Network Address Translation is also configured |
1079 | from the packet filter ruleset, iptables is used for this, too. The iptables | |
1080 | package also includes ip6tables. ip6tables is used for configuring the IPv6 | |
1081 | packet filter.") | |
3ac73271 | 1082 | (license license:gpl2+))) |
90a0048f | 1083 | |
6876a6fe SB |
1084 | (define-public ebtables |
1085 | (package | |
1086 | (name "ebtables") | |
1087 | (version "2.0.10-4") | |
1088 | (source (origin | |
1089 | (method url-fetch) | |
1090 | (uri (string-append | |
1091 | "mirror://netfilter.org/ebtables/ebtables-v" | |
1092 | version ".tar.gz")) | |
1093 | (sha256 | |
1094 | (base32 | |
1095 | "0pa5ljlk970yfyhpf3iqwfpbc30j8mgn90fapw9cfz909x47nvyw")))) | |
1096 | (build-system gnu-build-system) | |
1097 | (arguments | |
1098 | '(#:tests? #f ; no test suite | |
1099 | #:make-flags | |
1100 | (let* ((out (assoc-ref %outputs "out")) | |
1101 | (bin (string-append out "/sbin")) | |
1102 | (lib (string-append out "/lib")) | |
1103 | (man (string-append out "/share/man")) | |
1104 | (iptables (assoc-ref %build-inputs "iptables")) | |
1105 | (ethertypes (string-append iptables "/etc/ethertypes"))) | |
1106 | (list (string-append "LIBDIR=" lib) | |
1107 | (string-append "MANDIR=" man) | |
1108 | (string-append "BINDIR=" bin) | |
1109 | (string-append "ETHERTYPESFILE=" ethertypes) | |
1110 | ;; With the default CFLAGS, it falis with: | |
1111 | ;; communication.c:259:58: error: variable ‘ret’ set but not | |
1112 | ;; used [-Werror=unused-but-set-variable] | |
1113 | "CFLAGS=-Wall")) | |
1114 | #:phases | |
1115 | (modify-phases %standard-phases | |
1116 | (replace 'configure | |
1117 | ;; no configure script | |
1118 | (lambda _ | |
1119 | (substitute* "Makefile" | |
1120 | ;; Remove user and group options from install commands, | |
1121 | ;; otherwise it fails with: invalid user 'root'. | |
1122 | (("-o root -g root") "") | |
1123 | ;; Remove 'ethertypes' from the install target. | |
1124 | (("install: .*") | |
1125 | "install: $(MANDIR)/man8/ebtables.8 exec scripts\n")) | |
1126 | #t))))) | |
1127 | (inputs | |
1128 | `(("perl" ,perl) | |
1129 | ("iptables" ,iptables))) | |
1130 | (synopsis "Ethernet bridge frame table administration") | |
1131 | (home-page "http://ebtables.netfilter.org/") | |
1132 | (description | |
1133 | "ebtables is an application program used to set up and maintain the | |
1134 | tables of rules (inside the Linux kernel) that inspect Ethernet frames. It is | |
1135 | analogous to the iptables application, but less complicated, due to the fact | |
1136 | that the Ethernet protocol is much simpler than the IP protocol.") | |
1137 | (license license:gpl2+))) | |
1138 | ||
90a0048f LC |
1139 | (define-public iproute |
1140 | (package | |
1141 | (name "iproute2") | |
ddcac559 | 1142 | (version "4.13.0") |
90a0048f | 1143 | (source (origin |
75cd4b05 AK |
1144 | (method url-fetch) |
1145 | (uri (string-append | |
1146 | "mirror://kernel.org/linux/utils/net/iproute2/iproute2-" | |
1147 | version ".tar.xz")) | |
1148 | (sha256 | |
1149 | (base32 | |
ddcac559 | 1150 | "0l2w84cwr54gaw3cbxijf614l76hx8mgcz57v81rwl68z3nq3yww")))) |
90a0048f LC |
1151 | (build-system gnu-build-system) |
1152 | (arguments | |
1153 | `(#:tests? #f ; no test suite | |
1154 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
1155 | (list "DESTDIR=" | |
e777d07d LF |
1156 | (string-append "BASH_COMPDIR=" out |
1157 | "/etc/bash_completion.d") | |
90a0048f | 1158 | (string-append "LIBDIR=" out "/lib") |
61f78e72 | 1159 | (string-append "HDRDIR=" out "/include") |
90a0048f LC |
1160 | (string-append "SBINDIR=" out "/sbin") |
1161 | (string-append "CONFDIR=" out "/etc") | |
1162 | (string-append "DOCDIR=" out "/share/doc/" | |
1163 | ,name "-" ,version) | |
1164 | (string-append "MANDIR=" out "/share/man"))) | |
b53e44fb AK |
1165 | #:phases (modify-phases %standard-phases |
1166 | (add-before 'install 'pre-install | |
1167 | (lambda _ | |
1168 | ;; Don't attempt to create /var/lib/arpd. | |
1169 | (substitute* "Makefile" | |
1170 | (("^.*ARPDDIR.*$") ""))))))) | |
90a0048f LC |
1171 | (inputs |
1172 | `(("iptables" ,iptables) | |
c4c4cc05 JD |
1173 | ("db4" ,bdb))) |
1174 | (native-inputs | |
1175 | `(("pkg-config" ,pkg-config) | |
90a0048f LC |
1176 | ("flex" ,flex) |
1177 | ("bison" ,bison))) | |
1178 | (home-page | |
d7f84eab | 1179 | "https://wiki.linuxfoundation.org/networking/iproute2") |
90a0048f | 1180 | (synopsis |
9e771e3b | 1181 | "Utilities for controlling TCP/IP networking and traffic in Linux") |
90a0048f | 1182 | (description |
35a4fefc TGR |
1183 | "Iproute2 is a collection of utilities for controlling TCP/IP networking |
1184 | and traffic with the Linux kernel. The most important of these are | |
1185 | @command{ip}, which configures IPv4 and IPv6, and @command{tc} for traffic | |
1186 | control. | |
90a0048f LC |
1187 | |
1188 | Most network configuration manuals still refer to ifconfig and route as the | |
1189 | primary network configuration tools, but ifconfig is known to behave | |
35a4fefc | 1190 | inadequately in modern network environments, and both should be deprecated.") |
3ac73271 | 1191 | (license license:gpl2+))) |
85e0dc6a | 1192 | |
6d31c175 LF |
1193 | ;; There are two packages for net-tools. The first, net-tools, is more recent |
1194 | ;; and probably safer to use with untrusted inputs (i.e. the internet). The | |
1195 | ;; second, net-tools-for-tests, is relatively old and buggy. It can be used in | |
1196 | ;; package test suites and should never be referred to by a built package. Use | |
1197 | ;; #:disallowed-references to enforce this. | |
1198 | ;; | |
1199 | ;; When we are able to rebuild many packages (i.e. core-updates), we can update | |
1200 | ;; net-tools-for-tests if appropriate. | |
1201 | ;; | |
1202 | ;; See <https://bugs.gnu.org/27811> for more information. | |
85e0dc6a LC |
1203 | (define-public net-tools |
1204 | ;; XXX: This package is basically unmaintained, but it provides a few | |
1205 | ;; commands not yet provided by Inetutils, such as 'route', so we have to | |
1206 | ;; live with it. | |
6d31c175 LF |
1207 | (let ((commit "479bb4a7e11a4084e2935c0a576388f92469225b") |
1208 | (revision "0")) | |
1209 | (package | |
1210 | (name "net-tools") | |
1211 | (version (string-append "1.60-" revision "." (string-take commit 7))) | |
1212 | (source (origin | |
631c9f74 LF |
1213 | (method url-fetch) |
1214 | (uri (string-append "https://sourceforge.net/code-snapshots/git/" | |
1215 | "n/ne/net-tools/code.git/net-tools-code-" | |
1216 | commit ".zip")) | |
1217 | (file-name (string-append name "-" version ".zip")) | |
6d31c175 LF |
1218 | (sha256 |
1219 | (base32 | |
631c9f74 | 1220 | "0hz9fda9d78spp774b6rr5xaxav7cm4h0qcpxf70rvdbrf6qx7vy")))) |
6d31c175 LF |
1221 | (home-page "http://net-tools.sourceforge.net/") |
1222 | (build-system gnu-build-system) | |
1223 | (arguments | |
1224 | '(#:modules ((guix build gnu-build-system) | |
1225 | (guix build utils) | |
1226 | (srfi srfi-1) | |
1227 | (srfi srfi-26)) | |
1228 | #:phases | |
1229 | (modify-phases %standard-phases | |
1230 | (replace 'configure | |
1231 | (lambda* (#:key outputs #:allow-other-keys) | |
1232 | (let ((out (assoc-ref outputs "out"))) | |
1233 | (mkdir-p (string-append out "/bin")) | |
1234 | (mkdir-p (string-append out "/sbin")) | |
1235 | ||
1236 | ;; Pretend we have everything... | |
1237 | (system "yes | make config") | |
1238 | ||
1239 | ;; ... except for the things we don't have. | |
1240 | ;; HAVE_AFDECnet requires libdnet, which we don't have. | |
1241 | ;; HAVE_HWSTRIP and HAVE_HWTR require kernel headers | |
1242 | ;; that have been removed. | |
1243 | ;; XXX SELINUX and AFBLUETOOTH are removed for now, but we should | |
1244 | ;; think about adding them later. | |
1245 | (substitute* '("config.make" "config.h") | |
1246 | (("^.*HAVE_(AFDECnet|HWSTRIP|HWTR|SELINUX|AFBLUETOOTH)[ =]1.*$") | |
1247 | ""))))) | |
1248 | (add-after 'install 'remove-redundant-commands | |
1249 | (lambda* (#:key outputs #:allow-other-keys) | |
1250 | ;; Remove commands and man pages redundant with Inetutils. | |
1251 | (let* ((out (assoc-ref outputs "out")) | |
1252 | (dup (append-map (cut find-files out <>) | |
1253 | '("^hostname" | |
1254 | "^(yp|nis|dns)?domainname")))) | |
1255 | (for-each delete-file dup) | |
1256 | #t)))) | |
1257 | ;; Binaries that depend on libnet-tools.a don't declare that | |
1258 | ;; dependency, making it parallel-unsafe. | |
1259 | #:parallel-build? #f | |
1260 | ||
1261 | #:tests? #f ; no test suite | |
1262 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
1263 | (list "CC=gcc" | |
1264 | (string-append "BASEDIR=" out) | |
1265 | (string-append "INSTALLNLSDIR=" out "/share/locale") | |
1266 | (string-append "mandir=/share/man"))))) | |
631c9f74 LF |
1267 | (native-inputs `(("gettext" ,gettext-minimal) |
1268 | ("unzip" ,unzip))) | |
6d31c175 LF |
1269 | (synopsis "Tools for controlling the network subsystem in Linux") |
1270 | (description | |
1271 | "This package includes the important tools for controlling the network | |
1272 | subsystem of the Linux kernel. This includes arp, ifconfig, netstat, rarp and | |
1273 | route. Additionally, this package contains utilities relating to particular | |
1274 | network hardware types (plipconfig, slattach) and advanced aspects of IP | |
1275 | configuration (iptunnel, ipmaddr).") | |
1276 | (license license:gpl2+)))) | |
1277 | ||
1278 | (define-public net-tools-for-tests | |
1279 | (hidden-package (package (inherit net-tools) | |
85e0dc6a | 1280 | (version "1.60") |
6d31c175 LF |
1281 | ;; Git depends on net-tools-for-tests via GnuTLS, so we can't use git-fetch |
1282 | ;; here. We should find a better workaround for this problem so that we can | |
1283 | ;; use the latest upstream source. | |
85e0dc6a LC |
1284 | (source (origin |
1285 | (method url-fetch) | |
6b55ee88 LC |
1286 | (uri (list (string-append |
1287 | "mirror://sourceforge/net-tools/net-tools-" | |
1288 | version ".tar.bz2") | |
1289 | (string-append | |
1290 | "http://distro.ibiblio.org/rootlinux/rootlinux-ports" | |
1291 | "/base/net-tools/net-tools-1.60.tar.bz2"))) | |
85e0dc6a LC |
1292 | (sha256 |
1293 | (base32 | |
177088a3 | 1294 | "0yvxrzk0mzmspr7sa34hm1anw6sif39gyn85w4c5ywfn8inxvr3s")) |
fc1adab1 | 1295 | (patches (search-patches "net-tools-bitrot.patch")))) |
85e0dc6a LC |
1296 | (build-system gnu-build-system) |
1297 | (arguments | |
c9e0a44e LC |
1298 | '(#:modules ((guix build gnu-build-system) |
1299 | (guix build utils) | |
1300 | (srfi srfi-1) | |
1301 | (srfi srfi-26)) | |
1302 | #:phases (alist-cons-after | |
cd143df0 | 1303 | 'unpack 'patch |
85e0dc6a LC |
1304 | (lambda* (#:key inputs #:allow-other-keys) |
1305 | (define (apply-patch file) | |
9a224ac2 | 1306 | (zero? (system* "patch" "-p1" "--force" |
85e0dc6a LC |
1307 | "--input" file))) |
1308 | ||
1309 | (let ((patch.gz (assoc-ref inputs "patch"))) | |
1310 | (format #t "applying Debian patch set '~a'...~%" | |
1311 | patch.gz) | |
1312 | (system (string-append "gunzip < " patch.gz " > the-patch")) | |
85e0dc6a LC |
1313 | (and (apply-patch "the-patch") |
1314 | (for-each apply-patch | |
1315 | (find-files "debian/patches" | |
1316 | "\\.patch"))))) | |
1317 | (alist-replace | |
1318 | 'configure | |
1319 | (lambda* (#:key outputs #:allow-other-keys) | |
1320 | (let ((out (assoc-ref outputs "out"))) | |
1321 | (mkdir-p (string-append out "/bin")) | |
1322 | (mkdir-p (string-append out "/sbin")) | |
1323 | ||
1324 | ;; Pretend we have everything... | |
1325 | (system "yes | make config") | |
1326 | ||
a153ff80 MW |
1327 | ;; ... except for the things we don't have. |
1328 | ;; HAVE_AFDECnet requires libdnet, which we don't have. | |
1329 | ;; HAVE_HWSTRIP and HAVE_HWTR require kernel headers | |
1330 | ;; that have been removed. | |
85e0dc6a | 1331 | (substitute* '("config.make" "config.h") |
a153ff80 | 1332 | (("^.*HAVE_(AFDECnet|HWSTRIP|HWTR)[ =]1.*$") "")))) |
c9e0a44e LC |
1333 | (alist-cons-after |
1334 | 'install 'remove-redundant-commands | |
1335 | (lambda* (#:key outputs #:allow-other-keys) | |
1336 | ;; Remove commands and man pages redundant with | |
1337 | ;; Inetutils. | |
1338 | (let* ((out (assoc-ref outputs "out")) | |
1339 | (dup (append-map (cut find-files out <>) | |
1340 | '("^hostname" | |
1341 | "^(yp|nis|dns)?domainname")))) | |
1342 | (for-each delete-file dup) | |
1343 | #t)) | |
1344 | %standard-phases))) | |
85e0dc6a LC |
1345 | |
1346 | ;; Binaries that depend on libnet-tools.a don't declare that | |
1347 | ;; dependency, making it parallel-unsafe. | |
1348 | #:parallel-build? #f | |
1349 | ||
1350 | #:tests? #f ; no test suite | |
0d55c356 MW |
1351 | #:make-flags (let ((out (assoc-ref %outputs "out"))) |
1352 | (list "CC=gcc" | |
1353 | (string-append "BASEDIR=" out) | |
1354 | (string-append "INSTALLNLSDIR=" out "/share/locale") | |
1355 | (string-append "mandir=/share/man"))))) | |
85e0dc6a | 1356 | |
631c9f74 LF |
1357 | ;; We added unzip to the net-tools package's native-inputs when |
1358 | ;; switching its source from a Git checkout to a zip archive. We | |
1359 | ;; need to specify the native-inputs here to keep unzip out of the | |
1360 | ;; build of net-tools-for-tests, so that we don't have to rebuild | |
1361 | ;; many packages on the master branch. We can make | |
1362 | ;; net-tools-for-tests inherit directly from net-tools in the next | |
1363 | ;; core-updates cycle. | |
1364 | (native-inputs `(("gettext" ,gettext-minimal))) | |
1365 | ||
85e0dc6a LC |
1366 | ;; Use the big Debian patch set (the thing does not even compile out of |
1367 | ;; the box.) | |
6d31c175 LF |
1368 | ;; XXX The patch is not actually applied, due to a bug in the 'patch' phase |
1369 | ;; above. However, this package variant is only used in GnuTLS's tests. It | |
1370 | ;; will be adjusted when convenient for the build farm. | |
1371 | ;; See <https://bugs.gnu.org/27811> for more information. | |
85e0dc6a LC |
1372 | (inputs `(("patch" ,(origin |
1373 | (method url-fetch) | |
1374 | (uri | |
1375 | "http://ftp.de.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz") | |
1376 | (sha256 | |
1377 | (base32 | |
6d31c175 | 1378 | "0p93lsqx23v5fv4hpbrydmfvw1ha2rgqpn2zqbs2jhxkzhjc030p"))))))))) |
f96dbf6b | 1379 | |
c762e82e LC |
1380 | (define-public libcap |
1381 | (package | |
1382 | (name "libcap") | |
68ea090b | 1383 | (version "2.25") |
c762e82e LC |
1384 | (source (origin |
1385 | (method url-fetch) | |
c762e82e | 1386 | (uri (string-append |
f6c2d05c LC |
1387 | "mirror://kernel.org/linux/libs/security/linux-privs/" |
1388 | "libcap2/libcap-" version ".tar.xz")) | |
c762e82e LC |
1389 | (sha256 |
1390 | (base32 | |
68ea090b | 1391 | "0qjiqc5pknaal57453nxcbz3mn1r4hkyywam41wfcglq3v2qlg39")))) |
c762e82e | 1392 | (build-system gnu-build-system) |
6d889daf SB |
1393 | (arguments '(#:phases |
1394 | (modify-phases %standard-phases | |
1395 | (replace 'configure | |
1396 | ;; Add $libdir to the RUNPATH of executables. | |
1397 | (lambda _ | |
1398 | (substitute* "Make.Rules" | |
1399 | (("LDFLAGS := #-g") | |
1400 | (string-append "LDFLAGS := -Wl,-rpath=" | |
1401 | %output "/lib")))))) | |
c762e82e LC |
1402 | #:tests? #f ; no 'check' target |
1403 | #:make-flags (list "lib=lib" | |
1404 | (string-append "prefix=" | |
1405 | (assoc-ref %outputs "out")) | |
1406 | "RAISE_SETFCAP=no"))) | |
1407 | (native-inputs `(("perl" ,perl))) | |
1408 | (inputs `(("attr" ,attr))) | |
1409 | (home-page "https://sites.google.com/site/fullycapable/") | |
1410 | (synopsis "Library for working with POSIX capabilities") | |
1411 | (description | |
35b9e423 | 1412 | "Libcap2 provides a programming interface to POSIX capabilities on |
c762e82e LC |
1413 | Linux-based operating systems.") |
1414 | ||
1415 | ;; License is BSD-3 or GPLv2, at the user's choice. | |
3ac73271 | 1416 | (license license:gpl2))) |
215b6431 LC |
1417 | |
1418 | (define-public bridge-utils | |
1419 | (package | |
1420 | (name "bridge-utils") | |
1421 | (version "1.5") | |
1422 | (source (origin | |
1423 | (method url-fetch) | |
de67e922 LF |
1424 | (uri (string-append "mirror://sourceforge/bridge/bridge/" |
1425 | "bridge-utils-" version ".tar.gz")) | |
215b6431 LC |
1426 | (sha256 |
1427 | (base32 | |
1428 | "12367cwqmi0yqphi6j8rkx97q8hw52yq2fx4k0xfclkcizxybya2")))) | |
1429 | (build-system gnu-build-system) | |
1430 | ||
1431 | ;; The tarball lacks all the generated files. | |
1432 | (native-inputs `(("autoconf" ,autoconf) | |
1433 | ("automake" ,automake))) | |
1434 | (arguments | |
dc1d3cde KK |
1435 | '(#:phases |
1436 | (modify-phases %standard-phases | |
1437 | (add-after 'unpack 'bootstrap | |
1438 | (lambda _ | |
1439 | ;; Fix "field ‘ip6’ has incomplete type" errors. | |
1440 | (substitute* "libbridge/libbridge.h" | |
1441 | (("#include <linux/if_bridge.h>") | |
1442 | "#include <linux/in6.h>\n#include <linux/if_bridge.h>")) | |
1443 | ||
1444 | ;; Ensure that the entire build fails if one of the | |
1445 | ;; sub-Makefiles fails. | |
1446 | (substitute* "Makefile.in" | |
1447 | (("\\$\\(MAKE\\) \\$\\(MFLAGS\\) -C \\$\\$x ;") | |
1448 | "$(MAKE) $(MFLAGS) -C $$x || exit 1;")) | |
1449 | ||
1450 | (zero? (system* "autoreconf" "-vf"))))) | |
215b6431 LC |
1451 | #:tests? #f)) ; no 'check' target |
1452 | ||
1453 | (home-page | |
1454 | "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge") | |
1455 | (synopsis "Manipulate Ethernet bridges") | |
1456 | (description | |
1457 | "Utilities for Linux's Ethernet bridging facilities. A bridge is a way | |
1458 | to connect two Ethernet segments together in a protocol independent way. | |
1459 | Packets are forwarded based on Ethernet address, rather than IP address (like | |
1460 | a router). Since forwarding is done at Layer 2, all protocols can go | |
1461 | transparently through a bridge.") | |
3ac73271 | 1462 | (license license:gpl2+))) |
3cc20675 LC |
1463 | |
1464 | (define-public libnl | |
1465 | (package | |
1466 | (name "libnl") | |
b84a8079 | 1467 | (version "3.4.0") |
3cc20675 LC |
1468 | (source (origin |
1469 | (method url-fetch) | |
1470 | (uri (string-append | |
a2265ea3 MB |
1471 | "https://github.com/thom311/libnl/releases/download/" |
1472 | "libnl" (string-join (string-split version #\.) "_") | |
1473 | "/libnl-" version ".tar.gz")) | |
3cc20675 LC |
1474 | (sha256 |
1475 | (base32 | |
b84a8079 | 1476 | "1gzm444rnsib64dddv0cwlpzy1q4bycjqhp1i5pxpikimqvpca5p")))) |
3cc20675 | 1477 | (build-system gnu-build-system) |
d80a47f2 DL |
1478 | (native-inputs |
1479 | `(("bison" ,bison) | |
1480 | ("flex" ,flex) | |
3eb7c000 DL |
1481 | ("pkg-config" ,pkg-config) |
1482 | ("swig" ,swig) | |
d80a47f2 DL |
1483 | ("libnl3-doc" |
1484 | ,(origin | |
1485 | (method url-fetch) | |
1486 | (uri (string-append | |
1487 | "https://github.com/thom311/libnl/releases/download/libnl" | |
1488 | (string-join (string-split version #\.) "_") | |
1489 | "/libnl-doc-" version ".tar.gz")) | |
1490 | (sha256 | |
b84a8079 | 1491 | (base32 "1m5cnzviv31gjnz6fz5rgyl6ah4dbp2akm49j9973sgwl36gs8jx")))))) |
3eb7c000 DL |
1492 | (inputs |
1493 | `(("python-2" ,python-2) | |
1494 | ("python-3" ,python-3))) | |
1495 | (outputs '("out" "doc" "python2" "python3")) | |
d80a47f2 | 1496 | (arguments |
3eb7c000 DL |
1497 | `(#:modules ((guix build gnu-build-system) |
1498 | (guix build utils) | |
1499 | (srfi srfi-1)) | |
1500 | #:phases | |
d80a47f2 | 1501 | (modify-phases %standard-phases |
3eb7c000 DL |
1502 | (add-after 'install 'install-python |
1503 | (lambda* (#:key outputs #:allow-other-keys) | |
1504 | (define (python-inst python) | |
1505 | (let ((ldflags (format #f "LDFLAGS=-Wl,-rpath=~a/lib" | |
1506 | (assoc-ref %outputs "out"))) | |
1507 | (pyout (assoc-ref %outputs python))) | |
1508 | (and | |
1509 | (zero? (system (format #f "~a ~a setup.py build" | |
1510 | ldflags python pyout))) | |
1511 | (zero? | |
1512 | (system (format #f "~a ~a setup.py install --prefix=~a" | |
1513 | ldflags python pyout))) | |
1514 | (zero? (system* python "setup.py" "clean"))))) | |
1515 | (with-directory-excursion "./python" | |
1516 | (every python-inst '("python2" "python3"))))) | |
d80a47f2 DL |
1517 | (add-after 'install 'install-doc |
1518 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1519 | (let ((dest (string-append (assoc-ref outputs "doc") | |
1520 | "/share/doc/libnl"))) | |
1521 | (mkdir-p dest) | |
1522 | (zero? (system* "tar" "xf" (assoc-ref inputs "libnl3-doc") | |
1523 | "--strip-components=1" "-C" dest)))))))) | |
3cc20675 LC |
1524 | (home-page "http://www.infradead.org/~tgr/libnl/") |
1525 | (synopsis "NetLink protocol library suite") | |
1526 | (description | |
1527 | "The libnl suite is a collection of libraries providing APIs to netlink | |
69b4ffcf | 1528 | protocol based Linux kernel interfaces. Netlink is an IPC mechanism primarily |
3cc20675 LC |
1529 | between the kernel and user space processes. It was designed to be a more |
1530 | flexible successor to ioctl to provide mainly networking related kernel | |
1531 | configuration and monitoring interfaces.") | |
1532 | ||
1533 | ;; Most files are LGPLv2.1-only, but some are GPLv2-only (like | |
1534 | ;; 'nl-addr-add.c'), so the result is GPLv2-only. | |
3ac73271 | 1535 | (license license:gpl2))) |
023fef7d | 1536 | |
65cd77db MW |
1537 | (define-public iw |
1538 | (package | |
1539 | (name "iw") | |
72f0c5ea | 1540 | (version "4.9") |
65cd77db MW |
1541 | (source (origin |
1542 | (method url-fetch) | |
1543 | (uri (string-append | |
2f9e312a | 1544 | "mirror://kernel.org/software/network/iw/iw-" |
65cd77db MW |
1545 | version ".tar.xz")) |
1546 | (sha256 | |
1547 | (base32 | |
72f0c5ea | 1548 | "1klpvv98bnx1zm6aqalnri2vd7w80scmdaxr2qnblb6mz82whk1j")))) |
65cd77db MW |
1549 | (build-system gnu-build-system) |
1550 | (native-inputs `(("pkg-config" ,pkg-config))) | |
1551 | (inputs `(("libnl" ,libnl))) | |
1552 | (arguments | |
1553 | `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
1554 | "CC=gcc") | |
dc1d3cde | 1555 | #:phases (modify-phases %standard-phases (delete 'configure)))) |
2f9e312a | 1556 | (home-page "https://wireless.wiki.kernel.org/") |
65cd77db MW |
1557 | (synopsis "Tool for configuring wireless devices") |
1558 | (description | |
1559 | "iw is a new nl80211 based CLI configuration utility for wireless | |
2f9e312a | 1560 | devices. It replaces @code{iwconfig}, which is deprecated.") |
3ac73271 | 1561 | (license license:isc))) |
65cd77db | 1562 | |
023fef7d LC |
1563 | (define-public powertop |
1564 | (package | |
1565 | (name "powertop") | |
a0604c21 | 1566 | (version "2.9") |
023fef7d LC |
1567 | (source |
1568 | (origin | |
1569 | (method url-fetch) | |
1570 | (uri (string-append | |
a0604c21 | 1571 | "https://01.org/sites/default/files/downloads/powertop/powertop-v" |
023fef7d LC |
1572 | version ".tar.gz")) |
1573 | (sha256 | |
1574 | (base32 | |
a0604c21 | 1575 | "0l4jjlf05li2mc6g8nrss3h435wjhmnqd8m7v3kha3x0x7cbfzxa")))) |
023fef7d | 1576 | (build-system gnu-build-system) |
4c48bf55 ML |
1577 | (arguments |
1578 | '(#:phases | |
1579 | (modify-phases %standard-phases | |
1580 | ;; TODO: Patch some hardcoded "wlan0" in calibrate/calibrate.cpp to | |
1581 | ;; allow calibrating the network interface in GuixSD. | |
1582 | (add-after 'unpack 'patch-absolute-file-names | |
1583 | (lambda* (#:key inputs #:allow-other-keys) | |
1584 | (let ((kmod (assoc-ref inputs "kmod"))) | |
1585 | (substitute* (find-files "src" "\\.cpp$") | |
1586 | ;; Give the right 'modprobe' file name so that essential | |
1587 | ;; modules such as msr.ko can be loaded. | |
1588 | (("/sbin/modprobe") (string-append kmod "/bin/modprobe")) | |
1589 | ;; These programs are only needed to calibrate, so using | |
1590 | ;; relative file names avoids adding extra inputs. When they | |
1591 | ;; are missing powertop gracefully handles it. | |
1592 | (("/usr/bin/hcitool") "hcitool") | |
1593 | (("/usr/bin/xset") "xset") | |
1594 | (("/usr/sbin/hciconfig") "hciconfig")) | |
1595 | #t)))))) | |
023fef7d | 1596 | (inputs |
4c48bf55 ML |
1597 | `(("kmod" ,kmod) |
1598 | ("libnl" ,libnl) | |
023fef7d | 1599 | ("ncurses" ,ncurses) |
4c48bf55 ML |
1600 | ("pciutils" ,pciutils) |
1601 | ("zlib" ,zlib))) | |
c4c4cc05 | 1602 | (native-inputs |
ebacb0de | 1603 | `(("pkg-config" ,pkg-config))) |
023fef7d LC |
1604 | (home-page "https://01.org/powertop/") |
1605 | (synopsis "Analyze power consumption on Intel-based laptops") | |
1606 | (description | |
1607 | "PowerTOP is a Linux tool to diagnose issues with power consumption and | |
1608 | power management. In addition to being a diagnostic tool, PowerTOP also has | |
1609 | an interactive mode where the user can experiment various power management | |
1610 | settings for cases where the operating system has not enabled these | |
1611 | settings.") | |
3ac73271 | 1612 | (license license:gpl2))) |
6869e5c9 LC |
1613 | |
1614 | (define-public aumix | |
1615 | (package | |
1616 | (name "aumix") | |
1617 | (version "2.9.1") | |
1618 | (source (origin | |
1619 | (method url-fetch) | |
1620 | (uri (string-append | |
1621 | "http://www.jpj.net/~trevor/aumix/releases/aumix-" | |
1622 | version ".tar.bz2")) | |
1623 | (sha256 | |
1624 | (base32 | |
1625 | "0a8fwyxnc5qdxff8sl2sfsbnvgh6pkij4yafiln0fxgg6bal7knj")))) | |
1626 | (build-system gnu-build-system) | |
1627 | (inputs `(("ncurses" ,ncurses))) | |
1628 | (home-page "http://www.jpj.net/~trevor/aumix.html") | |
1629 | (synopsis "Audio mixer for X and the console") | |
1630 | (description | |
1631 | "Aumix adjusts an audio mixer from X, the console, a terminal, | |
1632 | the command line or a script.") | |
3ac73271 | 1633 | (license license:gpl2+))) |
7c0dbe78 SHT |
1634 | |
1635 | (define-public iotop | |
1636 | (package | |
1637 | (name "iotop") | |
1638 | (version "0.6") | |
1639 | (source | |
1640 | (origin | |
1641 | (method url-fetch) | |
1642 | (uri (string-append "http://guichaz.free.fr/iotop/files/iotop-" | |
1643 | version ".tar.gz")) | |
1644 | (sha256 (base32 | |
1645 | "1kp8mqg2pbxq4xzpianypadfxcsyfgwcaqgqia6h9fsq6zyh4z0s")))) | |
1646 | (build-system python-build-system) | |
1647 | (arguments | |
35cebf01 | 1648 | ;; The setup.py script expects python-2. |
7c0dbe78 | 1649 | `(#:python ,python-2 |
35cebf01 | 1650 | ;; There are currently no checks in the package. |
7c0dbe78 SHT |
1651 | #:tests? #f)) |
1652 | (native-inputs `(("python" ,python-2))) | |
1653 | (home-page "http://guichaz.free.fr/iotop/") | |
1654 | (synopsis | |
1655 | "Displays the IO activity of running processes") | |
1656 | (description | |
1657 | "Iotop is a Python program with a top like user interface to show the | |
1658 | processes currently causing I/O.") | |
3ac73271 | 1659 | (license license:gpl2+))) |
e30835e2 LC |
1660 | |
1661 | (define-public fuse | |
1662 | (package | |
1663 | (name "fuse") | |
436c0558 | 1664 | (version "2.9.7") |
e30835e2 LC |
1665 | (source (origin |
1666 | (method url-fetch) | |
0e9bc883 LF |
1667 | (uri (string-append "https://github.com/libfuse/libfuse/releases/" |
1668 | "download/fuse-" version | |
1669 | "/fuse-" version ".tar.gz")) | |
e30835e2 LC |
1670 | (sha256 |
1671 | (base32 | |
436c0558 | 1672 | "0x486nri30f7cgy0acj87v9sjxsjrr0cymrvw4h3r0sgmp8k4943")) |
cd48a549 | 1673 | (patches (search-patches "fuse-overlapping-headers.patch")))) |
e30835e2 | 1674 | (build-system gnu-build-system) |
b148bd71 | 1675 | (inputs `(("util-linux" ,util-linux))) |
e30835e2 LC |
1676 | (arguments |
1677 | '(#:configure-flags (list (string-append "MOUNT_FUSE_PATH=" | |
1678 | (assoc-ref %outputs "out") | |
1679 | "/sbin") | |
1680 | (string-append "INIT_D_PATH=" | |
1681 | (assoc-ref %outputs "out") | |
1682 | "/etc/init.d") | |
9a4efac9 LC |
1683 | |
1684 | ;; The rule makes /dev/fuse 666. | |
e30835e2 LC |
1685 | (string-append "UDEV_RULES_PATH=" |
1686 | (assoc-ref %outputs "out") | |
9a4efac9 | 1687 | "/lib/udev/rules.d")) |
dc1d3cde KK |
1688 | #:phases |
1689 | (modify-phases %standard-phases | |
1690 | (add-before 'build 'set-file-names | |
1691 | (lambda* (#:key inputs #:allow-other-keys) | |
1692 | ;; libfuse calls out to mount(8) and umount(8). Make sure | |
1693 | ;; it refers to the right ones. | |
1694 | (substitute* '("lib/mount_util.c" "util/mount_util.c") | |
1695 | (("/bin/(u?)mount" _ maybe-u) | |
1696 | (string-append (assoc-ref inputs "util-linux") | |
1697 | "/bin/" maybe-u "mount"))) | |
1698 | (substitute* '("util/mount.fuse.c") | |
1699 | (("/bin/sh") | |
1700 | (which "sh"))) | |
1701 | ||
1702 | ;; This hack leads libfuse to search for 'fusermount' in | |
1703 | ;; $PATH, where it may find a setuid-root binary, instead of | |
1704 | ;; trying solely $out/sbin/fusermount and failing because | |
1705 | ;; it's not setuid. | |
1706 | (substitute* "lib/Makefile" | |
1707 | (("-DFUSERMOUNT_DIR=[[:graph:]]+") | |
1708 | "-DFUSERMOUNT_DIR=\\\"/var/empty\\\"")) | |
1709 | #t))))) | |
0e9bc883 | 1710 | (home-page "https://github.com/libfuse/libfuse") |
e30835e2 LC |
1711 | (synopsis "Support file systems implemented in user space") |
1712 | (description | |
1713 | "As a consequence of its monolithic design, file system code for Linux | |
1714 | normally goes into the kernel itself---which is not only a robustness issue, | |
1715 | but also an impediment to system extensibility. FUSE, for \"file systems in | |
1716 | user space\", is a kernel module and user-space library that tries to address | |
1717 | part of this problem by allowing users to run file system implementations as | |
1718 | user-space processes.") | |
3ac73271 LC |
1719 | (license (list license:lgpl2.1 ;library |
1720 | license:gpl2+)))) ;command-line utilities | |
220193ad LC |
1721 | |
1722 | (define-public unionfs-fuse | |
1723 | (package | |
1724 | (name "unionfs-fuse") | |
2f861edf | 1725 | (version "2.0") |
220193ad LC |
1726 | (source (origin |
1727 | (method url-fetch) | |
1728 | (uri (string-append | |
2f861edf EF |
1729 | "https://github.com/rpodgorny/unionfs-fuse/archive/v" |
1730 | version ".tar.gz")) | |
1731 | (file-name (string-append name "-" version ".tar.gz")) | |
220193ad LC |
1732 | (sha256 |
1733 | (base32 | |
2f861edf | 1734 | "0hsn8l1iblvx27bpd4dvnvnbh9ri3sv2f9xzpsnfz3379kb7skgj")))) |
220193ad | 1735 | (build-system cmake-build-system) |
094f4b53 EF |
1736 | (native-inputs |
1737 | `(("python" ,python) | |
1738 | ("python-pytest" ,python-pytest))) | |
220193ad | 1739 | (inputs `(("fuse" ,fuse))) |
094f4b53 EF |
1740 | (arguments |
1741 | '(#:phases | |
1742 | (modify-phases %standard-phases | |
1743 | (replace 'check | |
1744 | ;; Borrowed from the Makefile | |
1745 | (lambda _ (zero? (system* "python3" "-m" "pytest"))))))) | |
2f861edf | 1746 | (home-page "https://github.com/rpodgorny/unionfs-fuse") |
220193ad LC |
1747 | (synopsis "User-space union file system") |
1748 | (description | |
1749 | "UnionFS-FUSE is a flexible union file system implementation in user | |
1750 | space, using the FUSE library. Mounting a union file system allows you to | |
1751 | \"aggregate\" the contents of several directories into a single mount point. | |
1752 | UnionFS-FUSE additionally supports copy-on-write.") | |
3ac73271 | 1753 | (license license:bsd-3))) |
ed748588 | 1754 | |
0b7a0c20 LC |
1755 | (define fuse-static |
1756 | (package (inherit fuse) | |
1757 | (name "fuse-static") | |
1758 | (source (origin (inherit (package-source fuse)) | |
1759 | (modules '((guix build utils))) | |
1760 | (snippet | |
1761 | ;; Normally libfuse invokes mount(8) so that /etc/mtab is | |
1762 | ;; updated. Change calls to 'mtab_needs_update' to 0 so that | |
1763 | ;; it doesn't do that, allowing us to remove the dependency on | |
1764 | ;; util-linux (something that is useful in initrds.) | |
1765 | '(substitute* '("lib/mount_util.c" | |
1766 | "util/mount_util.c") | |
1767 | (("mtab_needs_update[[:blank:]]*\\([a-z_]+\\)") | |
1768 | "0") | |
1769 | (("/bin/") | |
1770 | ""))))))) | |
1771 | ||
ed748588 LC |
1772 | (define-public unionfs-fuse/static |
1773 | (package (inherit unionfs-fuse) | |
1774 | (synopsis "User-space union file system (statically linked)") | |
1775 | (name (string-append (package-name unionfs-fuse) "-static")) | |
1776 | (source (origin (inherit (package-source unionfs-fuse)) | |
1777 | (modules '((guix build utils))) | |
1778 | (snippet | |
1779 | ;; Add -ldl to the libraries, because libfuse.a needs that. | |
1780 | '(substitute* "src/CMakeLists.txt" | |
1781 | (("target_link_libraries(.*)\\)" _ libs) | |
1782 | (string-append "target_link_libraries" | |
1783 | libs " dl)")))))) | |
1784 | (arguments | |
1785 | '(#:tests? #f | |
1456cff1 | 1786 | #:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-static") |
dc1d3cde KK |
1787 | #:phases |
1788 | (modify-phases %standard-phases | |
1789 | (add-after 'install 'post-install | |
1790 | (lambda* (#:key outputs #:allow-other-keys) | |
1791 | (let* ((out (assoc-ref outputs "out")) | |
1792 | (exe (string-append out "/bin/unionfs"))) | |
1793 | ;; By default, 'unionfs' keeps references to | |
1794 | ;; $glibc/share/locale and similar stuff. Remove them. | |
1795 | (remove-store-references exe) | |
1796 | ||
1797 | ;; 'unionfsctl' has references to glibc as well. Since | |
1798 | ;; we don't need it, remove it. | |
1799 | (delete-file (string-append out "/bin/unionfsctl")) | |
1800 | #t)))))) | |
0b7a0c20 | 1801 | (inputs `(("fuse" ,fuse-static))))) |
67b66003 | 1802 | |
db288efa LC |
1803 | (define-public sshfs-fuse |
1804 | (package | |
1805 | (name "sshfs-fuse") | |
20f8d1dd | 1806 | (version "2.10") |
db288efa LC |
1807 | (source (origin |
1808 | (method url-fetch) | |
b58c1b2d | 1809 | (uri (string-append "https://github.com/libfuse/sshfs/releases/" |
f5c6edd6 TGR |
1810 | "download/sshfs-" version "/sshfs-" version |
1811 | ".tar.gz")) | |
db288efa LC |
1812 | (sha256 |
1813 | (base32 | |
20f8d1dd | 1814 | "00fir2iykdx11g8nv5gijg0zjrp2g3ldypnv0yi6lq3h5pg5v13h")))) |
db288efa LC |
1815 | (build-system gnu-build-system) |
1816 | (inputs | |
1817 | `(("fuse" ,fuse) | |
1818 | ("glib" ,glib))) | |
1819 | (native-inputs | |
1820 | `(("pkg-config" ,pkg-config))) | |
f5c6edd6 | 1821 | (home-page "https://github.com/libfuse/sshfs") |
db288efa LC |
1822 | (synopsis "Mount remote file systems over SSH") |
1823 | (description | |
1824 | "This is a file system client based on the SSH File Transfer Protocol. | |
1825 | Since most SSH servers already support this protocol it is very easy to set | |
1826 | up: on the server side there's nothing to do; on the client side mounting the | |
1827 | file system is as easy as logging into the server with an SSH client.") | |
3ac73271 | 1828 | (license license:gpl2+))) |
db288efa | 1829 | |
1eacffb9 RH |
1830 | (define-public archivemount |
1831 | (package | |
1832 | (name "archivemount") | |
1833 | (version "0.8.7") | |
1834 | (source | |
1835 | (origin | |
1836 | (method url-fetch) | |
1837 | (uri (string-append "http://www.cybernoia.de/software/archivemount/" | |
1838 | "archivemount-" version ".tar.gz")) | |
1839 | (sha256 | |
1840 | (base32 | |
1841 | "1diiw6pnlnrnikn6l5ld92dx59lhrxjlqms8885vwbynsjl5q127")))) | |
1842 | (build-system gnu-build-system) | |
1843 | (inputs `(("fuse", fuse) | |
1844 | ("libarchive", libarchive))) | |
1845 | (native-inputs `(("pkg-config", pkg-config))) | |
1846 | (home-page "http://www.cybernoia.de/software/archivemount") | |
1847 | (synopsis "Tool for mounting archive files with FUSE") | |
1848 | (description "archivemount is a FUSE-based file system for Unix variants, | |
1849 | including Linux. Its purpose is to mount archives (i.e. tar, tar.gz, etc.) to a | |
1850 | mount point where it can be read from or written to as with any other file | |
1851 | system. This makes accessing the contents of the archive, which may be | |
1852 | compressed, transparent to other programs, without decompressing them.") | |
1853 | (license license:lgpl2.0+))) | |
1854 | ||
67b66003 LC |
1855 | (define-public numactl |
1856 | (package | |
1857 | (name "numactl") | |
e35dff97 | 1858 | (version "2.0.11") |
67b66003 LC |
1859 | (source (origin |
1860 | (method url-fetch) | |
1861 | (uri (string-append | |
1862 | "ftp://oss.sgi.com/www/projects/libnuma/download/numactl-" | |
1863 | version | |
1864 | ".tar.gz")) | |
1865 | (sha256 | |
1866 | (base32 | |
e35dff97 | 1867 | "0qbqa9gac2vlahrngi553hws2mqgqdwv2lc69a3yx4gq6l90j325")))) |
67b66003 LC |
1868 | (build-system gnu-build-system) |
1869 | (arguments | |
e35dff97 | 1870 | '(;; There's a 'test' target, but it requires NUMA support in the kernel |
67b66003 LC |
1871 | ;; to run, which we can't assume to have. |
1872 | #:tests? #f)) | |
b0015064 | 1873 | |
35dfcdd7 AE |
1874 | ;; NUMA is apparently not supported on armhf, see |
1875 | ;; http://www.spinics.net/lists/linux-numa/msg01157.html | |
1876 | (supported-systems (delete "armhf-linux" %supported-systems)) | |
67b66003 LC |
1877 | (home-page "http://oss.sgi.com/projects/libnuma/") |
1878 | (synopsis "Tools for non-uniform memory access (NUMA) machines") | |
1879 | (description | |
1880 | "NUMA stands for Non-Uniform Memory Access, in other words a system whose | |
1881 | memory is not all in one place. The numactl program allows you to run your | |
1882 | application program on specific CPU's and memory nodes. It does this by | |
1883 | supplying a NUMA memory policy to the operating system before running your | |
1884 | program. | |
1885 | ||
1886 | The package contains other commands, such as numademo, numastat and memhog. | |
1887 | The numademo command provides a quick overview of NUMA performance on your | |
1888 | system.") | |
3ac73271 LC |
1889 | (license (list license:gpl2 ;programs |
1890 | license:lgpl2.1)))) ;library | |
b10e9ff6 | 1891 | |
103b7e79 | 1892 | (define-public kbd-neo |
1893 | (package | |
1894 | (name "kbd-neo") | |
1895 | (version "2486") | |
1896 | (source | |
1897 | (origin | |
1898 | (method url-fetch) | |
1899 | (uri (string-append "https://svn.neo-layout.org/!svn/bc/" | |
1900 | version "/linux/console/neo.map")) | |
1901 | (file-name (string-append name "-" version ".map")) | |
1902 | (sha256 | |
1903 | (base32 | |
1904 | "19mfrd31vzpsjiwc7pshxm0b0sz5dd17xrz6k079cy4im1vf0r4g")))) | |
1905 | (build-system trivial-build-system) | |
1906 | (arguments | |
1907 | `(#:modules ((guix build utils)) | |
1908 | #:builder (begin | |
1909 | (use-modules (guix build utils)) | |
1910 | (let ((out (string-append %output "/share/keymaps")) | |
1911 | (source (assoc-ref %build-inputs "source"))) | |
1912 | (mkdir-p out) | |
1913 | (copy-file source (string-append out "/neo.map")) | |
1914 | #t)))) | |
1915 | (home-page "https://neo-layout.org") | |
1916 | (synopsis "Neo2 console layout") | |
1917 | (description | |
1918 | "Kbd-neo provides the Neo2 keyboard layout for use with | |
1919 | @command{loadkeys(1)} from @code{kbd(4)}.") | |
1920 | ;; The file is located in an svn directory, the entire content of | |
1921 | ;; the directory is licensed as GPL3. | |
1922 | (license license:gpl3+))) | |
1923 | ||
b10e9ff6 LC |
1924 | (define-public kbd |
1925 | (package | |
1926 | (name "kbd") | |
8555a609 | 1927 | (version "2.0.4") |
b10e9ff6 LC |
1928 | (source (origin |
1929 | (method url-fetch) | |
1930 | (uri (string-append "mirror://kernel.org/linux/utils/kbd/kbd-" | |
710b4928 | 1931 | version ".tar.xz")) |
b10e9ff6 LC |
1932 | (sha256 |
1933 | (base32 | |
8555a609 | 1934 | "124swm93dm4ca0pifgkrand3r9gvj3019d4zkfxsj9djpvv0mnaz")) |
c8f60748 LC |
1935 | (modules '((guix build utils))) |
1936 | (snippet | |
f2cdcafb LC |
1937 | '(begin |
1938 | (substitute* "tests/Makefile.in" | |
1939 | ;; The '%: %.in' rule incorrectly uses @VERSION@. | |
1940 | (("@VERSION@") | |
1941 | "[@]VERSION[@]")) | |
1942 | (substitute* '("src/unicode_start" "src/unicode_stop") | |
1943 | ;; Assume the Coreutils are in $PATH. | |
1944 | (("/usr/bin/tty") | |
1945 | "tty")))))) | |
b10e9ff6 LC |
1946 | (build-system gnu-build-system) |
1947 | (arguments | |
5953d2b7 AK |
1948 | '(#:phases |
1949 | (modify-phases %standard-phases | |
1950 | (add-before 'build 'pre-build | |
1951 | (lambda* (#:key inputs #:allow-other-keys) | |
1952 | (let ((gzip (assoc-ref %build-inputs "gzip")) | |
1953 | (bzip2 (assoc-ref %build-inputs "bzip2"))) | |
1954 | (substitute* "src/libkeymap/findfile.c" | |
1955 | (("gzip") | |
1956 | (string-append gzip "/bin/gzip")) | |
1957 | (("bzip2") | |
1958 | (string-append bzip2 "/bin/bzip2")))))) | |
1959 | (add-after 'install 'post-install | |
1960 | (lambda* (#:key outputs #:allow-other-keys) | |
1961 | ;; Make sure these programs find their comrades. | |
1962 | (let* ((out (assoc-ref outputs "out")) | |
1963 | (bin (string-append out "/bin"))) | |
1964 | (for-each (lambda (prog) | |
1965 | (wrap-program (string-append bin "/" prog) | |
1966 | `("PATH" ":" prefix (,bin)))) | |
1967 | '("unicode_start" "unicode_stop")))))))) | |
b10e9ff6 | 1968 | (inputs `(("check" ,check) |
f61e0e79 LC |
1969 | ("gzip" ,gzip) |
1970 | ("bzip2" ,bzip2) | |
b10e9ff6 | 1971 | ("pam" ,linux-pam))) |
fd7000fe | 1972 | (native-search-paths |
1973 | (list (search-path-specification | |
1974 | (variable "LOADKEYS_KEYMAP_PATH") | |
674d4e13 TGR |
1975 | ;; Append ‘/**’ to recursively search all directories. One can then |
1976 | ;; run (for example) ‘loadkeys en-latin9’ instead of having to find | |
1977 | ;; and type ‘i386/colemak/en-latin9’ on a mislabelled keyboard. | |
1978 | (files (list "share/keymaps/**"))))) | |
b10e9ff6 | 1979 | (native-inputs `(("pkg-config" ,pkg-config))) |
0ed81d04 | 1980 | (home-page "http://kbd-project.org/") |
b10e9ff6 LC |
1981 | (synopsis "Linux keyboard utilities and keyboard maps") |
1982 | (description | |
1983 | "This package contains keytable files and keyboard utilities compatible | |
1984 | for systems using the Linux kernel. This includes commands such as | |
1985 | 'loadkeys', 'setfont', 'kbdinfo', and 'chvt'.") | |
3ac73271 | 1986 | (license license:gpl2+))) |
de0b620e LC |
1987 | |
1988 | (define-public inotify-tools | |
1989 | (package | |
1990 | (name "inotify-tools") | |
1991 | (version "3.13") | |
1992 | (source (origin | |
1993 | (method url-fetch) | |
1994 | (uri (string-append | |
1995 | "mirror://sourceforge/inotify-tools/inotify-tools/" | |
1996 | version "/inotify-tools-" version ".tar.gz")) | |
1997 | (sha256 | |
1998 | (base32 | |
1999 | "0icl4bx041axd5dvhg89kilfkysjj86hjakc7bk8n49cxjn4cha6")))) | |
2000 | (build-system gnu-build-system) | |
2001 | (home-page "http://inotify-tools.sourceforge.net/") | |
2002 | (synopsis "Monitor file accesses") | |
2003 | (description | |
2004 | "The inotify-tools packages provides a C library and command-line tools | |
2005 | to use Linux' inotify mechanism, which allows file accesses to be monitored.") | |
3ac73271 | 2006 | (license license:gpl2+))) |
e062d542 AE |
2007 | |
2008 | (define-public kmod | |
2009 | (package | |
2010 | (name "kmod") | |
b9375d89 | 2011 | (version "24") |
e062d542 AE |
2012 | (source (origin |
2013 | (method url-fetch) | |
2014 | (uri | |
2015 | (string-append "mirror://kernel.org/linux/utils/kernel/kmod/" | |
2016 | "kmod-" version ".tar.xz")) | |
2017 | (sha256 | |
2018 | (base32 | |
b9375d89 | 2019 | "15xkkkzvca9flvkm48gkh8y8f13vlm3sl7nz9ydc7b3jy4fqs2v1")) |
fc1adab1 | 2020 | (patches (search-patches "kmod-module-directory.patch")))) |
e062d542 AE |
2021 | (build-system gnu-build-system) |
2022 | (native-inputs | |
2023 | `(("pkg-config" ,pkg-config))) | |
2024 | (inputs | |
f61e0e79 LC |
2025 | `(("xz" ,xz) |
2026 | ("zlib" ,zlib))) | |
e062d542 AE |
2027 | (arguments |
2028 | `(#:tests? #f ; FIXME: Investigate test failures | |
4a8b4c25 LC |
2029 | #:configure-flags '("--with-xz" "--with-zlib") |
2030 | #:phases (alist-cons-after | |
2031 | 'install 'install-modprobe&co | |
2032 | (lambda* (#:key outputs #:allow-other-keys) | |
2033 | (let* ((out (assoc-ref outputs "out")) | |
2034 | (bin (string-append out "/bin"))) | |
2035 | (for-each (lambda (tool) | |
2036 | (symlink "kmod" | |
2037 | (string-append bin "/" tool))) | |
2038 | '("insmod" "rmmod" "lsmod" "modprobe" | |
2039 | "modinfo" "depmod")))) | |
2040 | %standard-phases))) | |
e062d542 AE |
2041 | (home-page "https://www.kernel.org/") |
2042 | (synopsis "Kernel module tools") | |
35b9e423 | 2043 | (description "Kmod is a set of tools to handle common tasks with Linux |
e062d542 AE |
2044 | kernel modules like insert, remove, list, check properties, resolve |
2045 | dependencies and aliases. | |
2046 | ||
2047 | These tools are designed on top of libkmod, a library that is shipped with | |
2048 | kmod. The aim is to be compatible with tools, configurations and indices | |
2049 | from the module-init-tools project.") | |
3ac73271 | 2050 | (license license:gpl2+))) ; library under lgpl2.1+ |
d7d42d6b | 2051 | |
7fa715e7 LC |
2052 | (define-public eudev |
2053 | ;; The post-systemd fork, maintained by Gentoo. | |
fe32c7f7 | 2054 | (package |
7fa715e7 | 2055 | (name "eudev") |
202342fd | 2056 | (version "3.2.2") |
7fa715e7 LC |
2057 | (source (origin |
2058 | (method url-fetch) | |
2059 | (uri (string-append | |
2060 | "http://dev.gentoo.org/~blueness/eudev/eudev-" | |
2061 | version ".tar.gz")) | |
2062 | (sha256 | |
2063 | (base32 | |
202342fd LC |
2064 | "0qqgbgpm5wdllk0s04pf80nwc8pr93xazwri1bylm1f15zn5ck1y")) |
2065 | (patches (search-patches "eudev-rules-directory.patch")))) | |
fe32c7f7 | 2066 | (build-system gnu-build-system) |
4e859e92 LC |
2067 | (arguments |
2068 | '(#:phases (modify-phases %standard-phases | |
2069 | (add-after 'install 'build-hwdb | |
2070 | (lambda* (#:key outputs #:allow-other-keys) | |
2071 | ;; Build OUT/etc/udev/hwdb.bin. This allows 'lsusb' and | |
2072 | ;; similar tools to display product names. | |
2073 | (let ((out (assoc-ref outputs "out"))) | |
2074 | (zero? (system* (string-append out "/bin/udevadm") | |
2075 | "hwdb" "--update")))))))) | |
fe32c7f7 MW |
2076 | (native-inputs |
2077 | `(("pkg-config" ,pkg-config) | |
e75230c1 SB |
2078 | ("perl" ,perl) |
2079 | ("gperf" ,gperf))) | |
fe32c7f7 | 2080 | (inputs |
255f7308 LC |
2081 | ;; When linked against libblkid, eudev can populate /dev/disk/by-label |
2082 | ;; and similar; it also installs the '60-persistent-storage.rules' file, | |
2083 | ;; which contains the rules to do that. | |
2084 | `(("util-linux" ,util-linux) ;for blkid | |
2085 | ("kmod" ,kmod))) | |
e1921a38 | 2086 | (home-page "https://wiki.gentoo.org/wiki/Project:Eudev") |
fe32c7f7 MW |
2087 | (synopsis "Userspace device management") |
2088 | (description "Udev is a daemon which dynamically creates and removes | |
2089 | device nodes from /dev/, handles hotplug events and loads drivers at boot | |
2090 | time.") | |
3ac73271 | 2091 | (license license:gpl2+))) |
7fa715e7 | 2092 | |
e5d861f3 | 2093 | (define-public eudev-with-hwdb |
4e859e92 | 2094 | (deprecated-package "eudev-with-hwdb" eudev)) |
e5d861f3 | 2095 | |
66269d47 LC |
2096 | (define-public lvm2 |
2097 | (package | |
2098 | (name "lvm2") | |
832fe93d | 2099 | (version "2.02.174") |
66269d47 LC |
2100 | (source (origin |
2101 | (method url-fetch) | |
2102 | (uri (string-append "ftp://sources.redhat.com/pub/lvm2/releases/LVM2." | |
2103 | version ".tgz")) | |
2104 | (sha256 | |
2105 | (base32 | |
832fe93d | 2106 | "12qa2yfxnbjdx7kgxqqaglni50b46l5cp1rwjb24mccc830cwvpv")) |
66269d47 LC |
2107 | (modules '((guix build utils))) |
2108 | (snippet | |
2109 | '(begin | |
2110 | (use-modules (guix build utils)) | |
2111 | ||
2112 | ;; Honor sysconfdir. | |
2113 | (substitute* "make.tmpl.in" | |
2114 | (("confdir = .*$") | |
2115 | "confdir = @sysconfdir@\n") | |
2116 | (("DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@") | |
01f94cca LC |
2117 | "DEFAULT_SYS_DIR = @sysconfdir@")))) |
2118 | (patches (search-patches "lvm2-static-link.patch")))) | |
66269d47 LC |
2119 | (build-system gnu-build-system) |
2120 | (native-inputs | |
2121 | `(("pkg-config" ,pkg-config) | |
2122 | ("procps" ,procps))) ;tests use 'pgrep' | |
2123 | (inputs | |
8fcaf8b1 | 2124 | `(("udev" ,eudev))) |
66269d47 | 2125 | (arguments |
3afbc6b3 LF |
2126 | '(#:phases |
2127 | (modify-phases %standard-phases | |
2128 | (add-after 'configure 'set-makefile-shell | |
2129 | (lambda _ | |
2130 | ;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as | |
2131 | ;; expected. | |
2132 | (setenv "SHELL" (which "sh")) | |
66269d47 | 2133 | |
3afbc6b3 LF |
2134 | ;; Replace /bin/sh with the right file name. |
2135 | (patch-makefile-SHELL "make.tmpl") | |
7ca97fae LF |
2136 | #t)) |
2137 | (add-before 'strip 'make-objects-writable | |
2138 | (lambda* (#:key outputs #:allow-other-keys) | |
2139 | ;; Make compiled objects writable so they can be stripped. | |
2140 | (let ((out (assoc-ref outputs "out"))) | |
2141 | (for-each (lambda (file) | |
2142 | (chmod file #o755)) | |
2143 | (append | |
2144 | (find-files (string-append out "/lib")) | |
2145 | (find-files (string-append out "/sbin")))) | |
2146 | #t)))) | |
66269d47 LC |
2147 | |
2148 | #:configure-flags (list (string-append "--sysconfdir=" | |
2149 | (assoc-ref %outputs "out") | |
2150 | "/etc/lvm") | |
2151 | "--enable-udev_sync" | |
f2817d43 LC |
2152 | "--enable-udev_rules" |
2153 | ||
2154 | ;; Make sure programs such as 'dmsetup' can | |
2155 | ;; find libdevmapper.so. | |
2156 | (string-append "LDFLAGS=-Wl,-rpath=" | |
2157 | (assoc-ref %outputs "out") | |
2158 | "/lib")) | |
66269d47 LC |
2159 | |
2160 | ;; The tests use 'mknod', which requires root access. | |
2161 | #:tests? #f)) | |
62ec02bf | 2162 | (home-page "https://sourceware.org/lvm2/") |
66269d47 LC |
2163 | (synopsis "Logical volume management for Linux") |
2164 | (description | |
2165 | "LVM2 is the logical volume management tool set for Linux-based systems. | |
2166 | This package includes the user-space libraries and tools, including the device | |
2167 | mapper. Kernel components are part of Linux-libre.") | |
2168 | ||
2169 | ;; Libraries (liblvm2, libdevmapper) are LGPLv2.1. | |
2170 | ;; Command-line tools are GPLv2. | |
3ac73271 | 2171 | (license (list license:gpl2 license:lgpl2.1)))) |
66269d47 | 2172 | |
01f94cca LC |
2173 | (define-public lvm2-static |
2174 | (package | |
2175 | (inherit lvm2) | |
2176 | (name "lvm2-static") | |
2177 | ||
2178 | ;; Propagate udev because libdevmapper.a depends on libudev. | |
2179 | (inputs (alist-delete "udev" (package-inputs lvm2))) | |
2180 | (propagated-inputs `(("udev" ,eudev))) | |
2181 | ||
2182 | (arguments | |
2183 | (substitute-keyword-arguments (package-arguments lvm2) | |
2184 | ((#:configure-flags flags '()) | |
2185 | ;; LVM2 doesn't use Libtool, hence the custom option. | |
2186 | `(cons "--enable-static_link" ,flags)))) | |
2187 | (synopsis "Logical volume management for Linux (statically linked)"))) | |
2188 | ||
000f7559 DT |
2189 | (define-public wireless-tools |
2190 | (package | |
2191 | (name "wireless-tools") | |
2192 | (version "30.pre9") | |
2193 | (source (origin | |
2194 | (method url-fetch) | |
2195 | (uri (string-append "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools." | |
2196 | version ".tar.gz")) | |
2197 | (sha256 | |
2198 | (base32 | |
ec01f22d | 2199 | "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb")) |
ec01f22d | 2200 | (snippet |
c2099a4c MW |
2201 | '(begin |
2202 | ;; Remove the older header files that are not free software. | |
2203 | (for-each (lambda (n) | |
2204 | (delete-file (format #f "wireless.~a.h" n))) | |
2205 | '(10 11 12 13 14 15 16 17 18 19 20)) | |
2206 | #t)))) | |
000f7559 DT |
2207 | (build-system gnu-build-system) |
2208 | (arguments | |
c2099a4c MW |
2209 | `(#:make-flags |
2210 | (list (string-append "PREFIX=" %output) | |
2211 | (string-append "INSTALL_MAN=" %output "/share/man") | |
2212 | (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib") | |
2213 | "BUILD_STATIC=") | |
2214 | #:phases (modify-phases %standard-phases | |
2215 | (delete 'configure)) | |
000f7559 DT |
2216 | #:tests? #f)) |
2217 | (synopsis "Tools for manipulating Linux Wireless Extensions") | |
fb9b7ce2 LC |
2218 | (description "Wireless Tools are used to manipulate the now-deprecated |
2219 | Linux Wireless Extensions; consider using 'iw' instead. The Wireless | |
2220 | Extension was an interface allowing you to set Wireless LAN specific | |
2221 | parameters and get the specific stats. It is deprecated in favor the nl80211 | |
2222 | interface.") | |
000f7559 | 2223 | (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html") |
c2099a4c MW |
2224 | ;; wireless.21.h and wireless.22.h are distributed under lgpl2.1+, the |
2225 | ;; other files are distributed under gpl2. | |
3ac73271 | 2226 | (license (list license:gpl2 license:lgpl2.1+)))) |
30016044 | 2227 | |
cc205dac LC |
2228 | (define-public crda |
2229 | (package | |
2230 | (name "crda") | |
2231 | (version "3.18") | |
2232 | (source (origin | |
2233 | (method url-fetch) | |
2234 | (uri (string-append "mirror://kernel.org/software/network/crda/" | |
2235 | "crda-" version ".tar.xz")) | |
2236 | (sha256 | |
2237 | (base32 | |
2238 | "1gydiqgb08d9gbx4l6gv98zg3pljc984m50hmn3ysxcbkxkvkz23")) | |
fc1adab1 | 2239 | (patches (search-patches "crda-optional-gcrypt.patch")))) |
cc205dac LC |
2240 | (build-system gnu-build-system) |
2241 | (arguments | |
2242 | '(#:phases (modify-phases %standard-phases | |
2243 | (delete 'configure) | |
2244 | (add-before | |
2245 | 'build 'no-werror-no-ldconfig | |
2246 | (lambda _ | |
2247 | (substitute* "Makefile" | |
2248 | (("-Werror") "") | |
2249 | (("ldconfig") "true")) | |
2250 | #t)) | |
2251 | (add-before | |
2252 | 'build 'set-regulator-db-file-name | |
2253 | (lambda* (#:key inputs #:allow-other-keys) | |
2254 | ;; Tell CRDA where to find our database. | |
2255 | (let ((regdb (assoc-ref inputs "wireless-regdb"))) | |
2256 | (substitute* "crda.c" | |
2257 | (("\"/lib/crda/regulatory.bin\"") | |
2258 | (string-append "\"" regdb | |
2259 | "/lib/crda/regulatory.bin\""))) | |
2260 | #t)))) | |
2261 | #:test-target "verify" | |
2262 | #:make-flags (let ((out (assoc-ref %outputs "out")) | |
2263 | (regdb (assoc-ref %build-inputs "wireless-regdb"))) | |
2264 | (list "CC=gcc" "V=1" | |
2265 | ||
2266 | ;; Disable signature-checking on 'regulatory.bin'. | |
2267 | ;; The reason is that this simplifies maintenance | |
2268 | ;; on our side (no need to manage a distro key | |
2269 | ;; pair), and we can guarantee integrity of | |
2270 | ;; 'regulatory.bin' by other means anyway, such as | |
2271 | ;; 'guix gc --verify'. See | |
2272 | ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb> | |
2273 | ;; for a discssion. | |
2274 | "USE_OPENSSL=0" | |
2275 | ||
2276 | (string-append "PREFIX=" out) | |
2277 | (string-append "SBINDIR=" out "/sbin/") | |
2278 | (string-append "UDEV_RULE_DIR=" | |
2279 | out "/lib/udev/rules.d") | |
2280 | (string-append "LDFLAGS=-Wl,-rpath=" | |
2281 | out "/lib -L.") | |
2282 | (string-append "REG_BIN=" regdb | |
2283 | "/lib/crda/regulatory.bin"))))) | |
2284 | (native-inputs `(("pkg-config" ,pkg-config) | |
2285 | ("python" ,python-2) | |
2286 | ("wireless-regdb" ,wireless-regdb))) | |
2287 | (inputs `(("libnl" ,libnl))) | |
2288 | (home-page | |
2289 | "https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA") | |
2290 | (synopsis "Central regulatory domain agent (CRDA) for WiFi") | |
2291 | (description | |
2292 | "The Central Regulatory Domain Agent (CRDA) acts as the udev helper for | |
2293 | communication between the kernel Linux and user space for regulatory | |
2294 | compliance.") | |
3ac73271 | 2295 | (license license:copyleft-next))) |
cc205dac | 2296 | |
c80b4a3e LC |
2297 | (define-public wireless-regdb |
2298 | (package | |
2299 | (name "wireless-regdb") | |
a70782d3 | 2300 | (version "2017.03.07") |
c80b4a3e LC |
2301 | (source (origin |
2302 | (method url-fetch) | |
2303 | (uri (string-append | |
2304 | "mirror://kernel.org/software/network/wireless-regdb/" | |
2305 | "wireless-regdb-" version ".tar.xz")) | |
2306 | (sha256 | |
2307 | (base32 | |
a70782d3 | 2308 | "1f9mcp78sdd4sci6v32vxfcl1rfjpv205jisz1p93kkfnaisy7ip")) |
5568151f LC |
2309 | |
2310 | ;; We're building 'regulatory.bin' by ourselves. | |
2311 | (snippet '(delete-file "regulatory.bin")))) | |
c80b4a3e LC |
2312 | (build-system gnu-build-system) |
2313 | (arguments | |
2314 | '(#:phases (modify-phases %standard-phases | |
2315 | (delete 'configure)) | |
5568151f LC |
2316 | |
2317 | ;; The 'all' target of the makefile depends on $(REGDB_CHANGED), which | |
2318 | ;; is computed and can be equal to 'maintainer-clean'; when that | |
2319 | ;; happens, we can end up deleting the 'regulatory.bin' file that we | |
2320 | ;; just built. Thus, build things sequentially. | |
2321 | #:parallel-build? #f | |
2322 | ||
c80b4a3e LC |
2323 | #:tests? #f ;no tests |
2324 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
2325 | (list (string-append "PREFIX=" out) | |
2326 | (string-append "LSB_ID=GuixSD") | |
2327 | (string-append "DISTRO_PUBKEY=/dev/null") | |
2328 | (string-append "DISTRO_PRIVKEY=/dev/null") | |
2329 | (string-append "REGDB_PUBKEY=/dev/null") | |
2330 | ||
2331 | ;; Leave that empty so that db2bin.py doesn't try | |
2332 | ;; to sign 'regulatory.bin'. This allows us to | |
2333 | ;; avoid managing a key pair for the whole distro. | |
2334 | (string-append "REGDB_PRIVKEY="))))) | |
2335 | (native-inputs `(("python" ,python-2))) | |
2336 | (home-page | |
2337 | "https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb") | |
2338 | (synopsis "Wireless regulatory database") | |
2339 | (description | |
2340 | "This package contains the wireless regulatory database Central | |
2341 | Regulatory Database Agent (CRDA) daemon. The database contains information on | |
2342 | country-specific regulations for the wireless spectrum.") | |
3ac73271 | 2343 | (license license:isc))) |
c80b4a3e | 2344 | |
30016044 MW |
2345 | (define-public lm-sensors |
2346 | (package | |
2347 | (name "lm-sensors") | |
171091a8 | 2348 | (version "3.4.0") |
30016044 MW |
2349 | (source (origin |
2350 | (method url-fetch) | |
ee6a5d0e | 2351 | (uri (list (string-append |
171091a8 AE |
2352 | "https://github.com/groeck/lm-sensors/archive/V" |
2353 | (string-join (string-split version #\.) "-") | |
2354 | ".tar.gz"))) | |
bc4a2b85 | 2355 | (file-name (string-append name "-" version ".tar.gz")) |
30016044 MW |
2356 | (sha256 |
2357 | (base32 | |
171091a8 | 2358 | "0knb09s9lvx0wzfsaizx3xq58q6kllqf7nkbwvir0wkgn31c2d73")) |
fc1adab1 | 2359 | (patches (search-patches "lm-sensors-hwmon-attrs.patch")))) |
30016044 MW |
2360 | (build-system gnu-build-system) |
2361 | (inputs `(("rrdtool" ,rrdtool) | |
2362 | ("perl" ,perl) | |
2363 | ("kmod" ,kmod) | |
2364 | ("gnuplot" ,gnuplot))) | |
2365 | (native-inputs `(("pkg-config" ,pkg-config) | |
2366 | ("flex" ,flex) | |
2367 | ("bison" ,bison) | |
2368 | ("which" ,which))) | |
8ddf20b2 DL |
2369 | (outputs '("lib" ;avoid perl in closure |
2370 | "out")) | |
30016044 MW |
2371 | (arguments |
2372 | `(#:tests? #f ; no 'check' target | |
2373 | #:make-flags (list (string-append "PREFIX=" %output) | |
8ddf20b2 DL |
2374 | (string-append "ETCDIR=" (assoc-ref %outputs "lib") "/etc") |
2375 | (string-append "INCLUDEDIR=" | |
2376 | (assoc-ref %outputs "lib") "/include") | |
2377 | (string-append "MANDIR=" %output "/share/man") | |
2378 | (string-append "LIBDIR=" (assoc-ref %outputs "lib") "/lib")) | |
30016044 | 2379 | #:phases |
dc1d3cde KK |
2380 | (modify-phases %standard-phases |
2381 | (delete 'configure) | |
2382 | (add-before 'build 'patch-exec-paths | |
2383 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2384 | (substitute* "prog/detect/sensors-detect" | |
2385 | (("`uname") | |
2386 | (string-append "`" (assoc-ref inputs "coreutils") | |
2387 | "/bin/uname")) | |
2388 | (("(`|\")modprobe" all open-quote) | |
2389 | (string-append open-quote | |
2390 | (assoc-ref inputs "kmod") | |
2391 | "/bin/modprobe"))) | |
2392 | (substitute* '("prog/pwm/pwmconfig" | |
2393 | "prog/pwm/fancontrol") | |
2394 | (("gnuplot") | |
2395 | (string-append (assoc-ref inputs "gnuplot") | |
2396 | "/bin/gnuplot")) | |
2397 | (("cat ") | |
2398 | (string-append (assoc-ref inputs "coreutils") | |
2399 | "/bin/cat ")) | |
2400 | (("egrep ") | |
2401 | (string-append (assoc-ref inputs "grep") | |
2402 | "/bin/egrep ")) | |
2403 | (("sed -e") | |
2404 | (string-append (assoc-ref inputs "sed") | |
2405 | "/bin/sed -e")) | |
2406 | (("cut -d") | |
2407 | (string-append (assoc-ref inputs "coreutils") | |
2408 | "/bin/cut -d")) | |
2409 | (("sleep ") | |
2410 | (string-append (assoc-ref inputs "coreutils") | |
2411 | "/bin/sleep ")) | |
2412 | (("readlink -f") | |
2413 | (string-append (assoc-ref inputs "coreutils") | |
2414 | "/bin/readlink -f"))) | |
2415 | #t))))) | |
3a04d5d4 | 2416 | (home-page "http://jdelvare.nerim.net/devel.html#lmsensors") |
30016044 MW |
2417 | (synopsis "Utilities to read temperature/voltage/fan sensors") |
2418 | (description | |
35b9e423 | 2419 | "Lm-sensors is a hardware health monitoring package for Linux. It allows |
30016044 MW |
2420 | you to access information from temperature, voltage, and fan speed sensors. |
2421 | It works with most newer systems.") | |
3ac73271 | 2422 | (license license:gpl2+))) |
b087d413 | 2423 | |
f5b2a53d RW |
2424 | (define-public i2c-tools |
2425 | (package | |
2426 | (name "i2c-tools") | |
2427 | (version "3.1.1") | |
2428 | (source (origin | |
2429 | (method url-fetch) | |
2430 | (uri (string-append | |
f32274a7 | 2431 | "http://jdelvare.nerim.net/mirror/i2c-tools/i2c-tools-" |
f5b2a53d RW |
2432 | version ".tar.bz2")) |
2433 | (sha256 | |
2434 | (base32 | |
2435 | "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l")))) | |
2436 | (build-system gnu-build-system) | |
2437 | (arguments | |
2438 | `(#:tests? #f ; no 'check' target | |
2439 | #:make-flags (list (string-append "prefix=" %output) | |
2440 | "CC=gcc") | |
2441 | ;; no configure script | |
dc1d3cde | 2442 | #:phases (modify-phases %standard-phases (delete 'configure)))) |
bccf27cb RW |
2443 | (inputs |
2444 | `(("perl" ,perl))) | |
f32274a7 | 2445 | (home-page "http://jdelvare.nerim.net/devel.html#i2ctools") |
f5b2a53d RW |
2446 | (synopsis "I2C tools for Linux") |
2447 | (description | |
2448 | "The i2c-tools package contains a heterogeneous set of I2C tools for | |
2449 | Linux: a bus probing tool, a chip dumper, register-level SMBus access helpers, | |
2450 | EEPROM decoding scripts, EEPROM programming tools, and a python module for | |
2451 | SMBus access.") | |
3ac73271 | 2452 | (license license:gpl2+))) |
f5b2a53d | 2453 | |
b087d413 MW |
2454 | (define-public xsensors |
2455 | (package | |
2456 | (name "xsensors") | |
2457 | (version "0.70") | |
2458 | (source (origin | |
2459 | (method url-fetch) | |
2460 | (uri (string-append | |
2461 | "http://www.linuxhardware.org/xsensors/xsensors-" | |
2462 | version ".tar.gz")) | |
2463 | (sha256 | |
2464 | (base32 | |
2465 | "1siplsfgvcxamyqf44h71jx6jdfmvhfm7mh0y1q8ps4zs6pj2zwh")))) | |
2466 | (build-system gnu-build-system) | |
8ddf20b2 | 2467 | (inputs `(("lm-sensors" ,lm-sensors "lib") |
b087d413 MW |
2468 | ("gtk" ,gtk+-2))) |
2469 | (native-inputs `(("pkg-config" ,pkg-config))) | |
2470 | (arguments | |
dc1d3cde KK |
2471 | `(#:phases |
2472 | (modify-phases %standard-phases | |
2473 | (add-before 'configure 'enable-deprecated | |
2474 | (lambda _ | |
2475 | (substitute* "src/Makefile.in" | |
2476 | (("-DGDK_DISABLE_DEPRECATED") "") | |
2477 | (("-DGTK_DISABLE_DEPRECATED") "")) | |
2478 | #t)) | |
2479 | (add-before 'configure 'remove-Werror | |
2480 | (lambda _ | |
2481 | (substitute* '("configure" "src/Makefile.in") | |
2482 | (("-Werror") "")) | |
2483 | #t))))) | |
b087d413 MW |
2484 | (home-page "http://www.linuxhardware.org/xsensors/") |
2485 | (synopsis "Hardware health information viewer") | |
2486 | (description | |
35b9e423 | 2487 | "Xsensors reads data from the libsensors library regarding hardware |
b087d413 MW |
2488 | health such as temperature, voltage and fan speed and displays the information |
2489 | in a digital read-out.") | |
3ac73271 | 2490 | (license license:gpl2+))) |
b62fe07f LC |
2491 | |
2492 | (define-public perf | |
2493 | (package | |
2494 | (name "perf") | |
2495 | (version (package-version linux-libre)) | |
2496 | (source (package-source linux-libre)) | |
2497 | (build-system gnu-build-system) | |
2498 | (arguments | |
dc1d3cde KK |
2499 | '(#:phases |
2500 | (modify-phases %standard-phases | |
2501 | (replace 'configure | |
2502 | (lambda* (#:key inputs #:allow-other-keys) | |
2503 | (setenv "SHELL_PATH" (which "bash")) | |
2504 | (chdir "tools/perf") | |
2505 | #t))) | |
65dabe4e | 2506 | #:make-flags (list (string-append "prefix=" |
b62fe07f | 2507 | (assoc-ref %outputs "out")) |
2af29d23 LC |
2508 | "WERROR=0" |
2509 | ||
2510 | ;; By default, 'config/Makefile' uses lib64 on | |
2511 | ;; x86_64. Work around that. | |
2512 | "lib=lib") | |
b62fe07f LC |
2513 | #:tests? #f)) ;no tests |
2514 | (native-inputs | |
2515 | `(("pkg-config" ,pkg-config) | |
2516 | ("bison" ,bison) | |
2517 | ("flex" ,flex) | |
2518 | ||
2519 | ;; There are build scripts written in these languages. | |
2520 | ("perl" ,perl) | |
2521 | ("python" ,python-2))) | |
2522 | (inputs | |
b1fb4b23 | 2523 | `(("slang" ,slang) ;for the interactive TUI |
b62fe07f | 2524 | ;; ("newt" ,newt) |
6c030d10 | 2525 | ("python" ,python-2) ;'perf' links against libpython |
b62fe07f | 2526 | ("elfutils" ,elfutils) |
b25d3bd9 | 2527 | ("libiberty" ,libiberty) ;used alongside BDF for symbol demangling |
1d484507 LC |
2528 | ("libunwind" ,libunwind) ;better stack walking |
2529 | ("numactl" ,numactl) ;for 'perf bench numa mem' | |
b62fe07f | 2530 | |
d7ece67a LC |
2531 | ;; Documentation. |
2532 | ("libxml2" ,libxml2) ;for $XML_CATALOG_FILES | |
d7ece67a LC |
2533 | ("docbook-xsl" ,docbook-xsl) |
2534 | ("xmlto" ,xmlto) | |
2535 | ("asciidoc" ,asciidoc))) | |
b62fe07f LC |
2536 | (home-page "https://perf.wiki.kernel.org/") |
2537 | (synopsis "Linux profiling with performance counters") | |
2538 | (description | |
2539 | "perf is a tool suite for profiling using hardware performance counters, | |
2540 | with support in the Linux kernel. perf can instrument CPU performance | |
2541 | counters, tracepoints, kprobes, and uprobes (dynamic tracing). It is capable | |
2542 | of lightweight profiling. This package contains the user-land tools and in | |
2543 | particular the 'perf' command.") | |
2544 | (license (package-license linux-libre)))) | |
c09e60e4 DT |
2545 | |
2546 | (define-public pflask | |
2547 | (package | |
2548 | (name "pflask") | |
2549 | (version "0.2") | |
2550 | (source (origin | |
2551 | (method url-fetch) | |
2552 | (uri (string-append "https://github.com/ghedo/pflask/archive/v" | |
2553 | version ".tar.gz")) | |
f586c877 | 2554 | (file-name (string-append name "-" version ".tar.gz")) |
c09e60e4 DT |
2555 | (sha256 |
2556 | (base32 | |
2557 | "1g8fjj67dfkc2s0852l9vqi1pm61gp4rxbpzbzg780f5s5hd1fys")))) | |
2558 | (build-system cmake-build-system) | |
2559 | (arguments | |
2560 | '(#:tests? #f)) ; no tests | |
2561 | (home-page "http://ghedo.github.io/pflask/") | |
2562 | (synopsis "Simple tool for creating Linux namespace containers") | |
2563 | (description "pflask is a simple tool for creating Linux namespace | |
2564 | containers. It can be used for running a command or even booting an OS inside | |
2565 | an isolated container, created with the help of Linux namespaces. It is | |
2566 | similar in functionality to chroot, although pflask provides better isolation | |
2567 | thanks to the use of namespaces.") | |
3ac73271 | 2568 | (license license:bsd-2))) |
288084d5 MW |
2569 | |
2570 | (define-public hdparm | |
2571 | (package | |
2572 | (name "hdparm") | |
8a1bb378 | 2573 | (version "9.52") |
288084d5 MW |
2574 | (source (origin |
2575 | (method url-fetch) | |
de67e922 | 2576 | (uri (string-append "mirror://sourceforge/" name "/" name "/" |
288084d5 MW |
2577 | name "-" version ".tar.gz")) |
2578 | (sha256 | |
2579 | (base32 | |
8a1bb378 | 2580 | "1djgxhfadd865dcrl6dp7dvjxpaisy7mk17mbdbglwg24ga9qhn3")))) |
288084d5 MW |
2581 | (build-system gnu-build-system) |
2582 | (arguments | |
2583 | `(#:make-flags (let ((out (assoc-ref %outputs "out"))) | |
2584 | (list (string-append "binprefix=" out) | |
2585 | (string-append "manprefix=" out) | |
2586 | "CC=gcc")) | |
ec238332 TGR |
2587 | #:phases |
2588 | (modify-phases %standard-phases | |
2589 | (delete 'configure)) ; no configure script | |
2590 | #:tests? #f)) ; no test suite | |
3b3b60d0 | 2591 | (home-page "https://sourceforge.net/projects/hdparm/") |
02052b2c | 2592 | (synopsis "View and tune ATA disk drive parameters") |
288084d5 | 2593 | (description |
02052b2c TGR |
2594 | "@command{hdparm} is a command-line utility to control ATA controllers and |
2595 | disk drives. It can increase performance and/or reliability by careful tuning | |
2596 | of hardware settings like power and acoustic management, DMA modes, and caching. | |
2597 | It can also display detailed device information, or be used as a simple | |
2598 | performance benchmarking tool. | |
2599 | ||
2600 | @command{hdparm} provides a command line interface to various Linux kernel | |
2601 | interfaces provided by the SATA/ATA/SAS @code{libata} subsystem, and the older | |
2602 | IDE driver subsystem. Many external USB drive enclosures with @dfn{SCSI-ATA | |
2603 | Command Translation} (SAT) are also supported.") | |
3ac73271 | 2604 | (license (license:non-copyleft "file://LICENSE.TXT")))) |
288084d5 | 2605 | |
c755c854 MW |
2606 | (define-public rfkill |
2607 | (package | |
2608 | (name "rfkill") | |
2609 | (version "0.5") | |
2610 | (source (origin | |
2611 | (method url-fetch) | |
2612 | (uri (string-append "mirror://kernel.org/software/network/" | |
2613 | name "/" name "-" version ".tar.xz")) | |
2614 | (sha256 | |
2615 | (base32 | |
2616 | "0snqj5h0y991lszbigbyyqb8swj0hxajc1vfqg2scfay44231bp0")))) | |
2617 | (build-system gnu-build-system) | |
2618 | (arguments | |
2619 | `(#:make-flags (list "CC=gcc" | |
2620 | (string-append "PREFIX=" %output)) | |
2621 | #:phases (modify-phases %standard-phases | |
2622 | (delete 'configure)) | |
2623 | #:tests? #f)) | |
2624 | (home-page "https://wireless.wiki.kernel.org/en/users/Documentation/rfkill") | |
2625 | (synopsis "Tool for enabling and disabling wireless devices") | |
2626 | (description | |
2627 | "rfkill is a simple tool for accessing the rfkill device interface, | |
2628 | which is used to enable and disable wireless networking devices, typically | |
2629 | WLAN, Bluetooth and mobile broadband.") | |
3ac73271 LC |
2630 | (license (license:non-copyleft "file://COPYING" |
2631 | "See COPYING in the distribution.")))) | |
c755c854 | 2632 | |
dc9bdb1e ML |
2633 | (define-public acpi |
2634 | (package | |
2635 | (name "acpi") | |
2636 | (version "1.7") | |
2637 | (source (origin | |
2638 | (method url-fetch) | |
de67e922 LF |
2639 | (uri (string-append "mirror://sourceforge/acpiclient/acpiclient/" |
2640 | version "/" name "-" version ".tar.gz")) | |
dc9bdb1e ML |
2641 | (sha256 |
2642 | (base32 | |
2643 | "01ahldvf0gc29dmbd5zi4rrnrw2i1ajnf30sx2vyaski3jv099fp")))) | |
2644 | (build-system gnu-build-system) | |
2645 | (home-page "http://acpiclient.sourceforge.net") | |
2646 | (synopsis "Display information on ACPI devices") | |
2647 | (description "@code{acpi} attempts to replicate the functionality of the | |
2648 | \"old\" @code{apm} command on ACPI systems, including battery and thermal | |
2649 | information. It does not support ACPI suspending, only displays information | |
2650 | about ACPI devices.") | |
2651 | (license license:gpl2+))) | |
2652 | ||
57a516d3 LC |
2653 | (define-public acpid |
2654 | (package | |
2655 | (name "acpid") | |
169a438c | 2656 | (version "2.0.28") |
57a516d3 LC |
2657 | (source (origin |
2658 | (method url-fetch) | |
2659 | (uri (string-append "mirror://sourceforge/acpid2/acpid-" | |
2660 | version ".tar.xz")) | |
2661 | (sha256 | |
2662 | (base32 | |
169a438c | 2663 | "043igasvp1l6nv5rzh4sksmymay2qn20anl4zm4zvwnkn1a3l34q")))) |
57a516d3 | 2664 | (build-system gnu-build-system) |
3b3b60d0 | 2665 | (home-page "https://sourceforge.net/projects/acpid2/") |
57a516d3 LC |
2666 | (synopsis "Daemon for delivering ACPI events to user-space programs") |
2667 | (description | |
2668 | "acpid is designed to notify user-space programs of Advanced | |
2669 | Configuration and Power Interface (ACPI) events. acpid should be started | |
2670 | during the system boot, and will run as a background process. When an ACPI | |
2671 | event is received from the kernel, acpid will examine the list of rules | |
2672 | specified in /etc/acpi/events and execute the rules that match the event.") | |
3ac73271 | 2673 | (license license:gpl2+))) |
37f5caec TUBK |
2674 | |
2675 | (define-public sysfsutils | |
2676 | (package | |
2677 | (name "sysfsutils") | |
2678 | (version "2.1.0") | |
2679 | (source | |
2680 | (origin | |
2681 | (method url-fetch) | |
2682 | (uri | |
2683 | (string-append | |
2684 | "mirror://sourceforge/linux-diag/sysfsutils/" version "/sysfsutils-" | |
2685 | version ".tar.gz")) | |
2686 | (sha256 | |
2687 | (base32 "12i0ip11xbfcjzxz4r10cvz7mbzgq1hfcdn97w6zz7sm3wndwrg8")))) | |
2688 | (build-system gnu-build-system) | |
2689 | (home-page "http://linux-diag.sourceforge.net/Sysfsutils.html") | |
2690 | (synopsis "System utilities based on Linux sysfs") | |
2691 | (description | |
8f65585b | 2692 | "These are a set of utilities built upon sysfs, a virtual file system in |
37f5caec TUBK |
2693 | Linux kernel versions 2.5+ that exposes a system's device tree. The package |
2694 | also contains the libsysfs library.") | |
2695 | ;; The library is under lgpl2.1+ (all files say "or any later version"). | |
2696 | ;; The rest is mostly gpl2, with a few files indicating gpl2+. | |
3ac73271 | 2697 | (license (list license:gpl2 license:gpl2+ license:lgpl2.1+)))) |
a9a1a40b TUBK |
2698 | |
2699 | (define-public sysfsutils-1 | |
2700 | (package | |
2701 | (inherit sysfsutils) | |
2702 | (version "1.3.0") | |
2703 | (source | |
2704 | (origin | |
2705 | (method url-fetch) | |
2706 | (uri | |
2707 | (string-append | |
2708 | "mirror://sourceforge/linux-diag/sysfsutils/sysfsutils-" version | |
2709 | "/sysfsutils-" version ".tar.gz")) | |
2710 | (sha256 | |
2711 | (base32 "0kdhs07fm8263pxwd5blwn2x211cg4fk63fyf9ijcdkvzmwxrqq3")) | |
2712 | (modules '((guix build utils))) | |
2713 | (snippet | |
2714 | '(begin | |
2715 | (substitute* "Makefile.in" | |
2716 | (("includedir = /usr/include/sysfs") | |
2717 | "includedir = @includedir@")) | |
2718 | (substitute* "configure" | |
2719 | (("includedir='(\\$\\{prefix\\}/include)'" all orig) | |
2720 | (string-append "includedir='" orig "/sysfs'"))))))) | |
2721 | (synopsis "System utilities based on Linux sysfs (version 1.x)"))) | |
e6caa52d TUBK |
2722 | |
2723 | (define-public cpufrequtils | |
2724 | (package | |
2725 | (name "cpufrequtils") | |
2726 | (version "0.3") | |
2727 | (source | |
2728 | (origin | |
2729 | (method url-fetch) | |
2730 | (uri | |
2731 | (string-append | |
2732 | "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-" | |
2733 | version ".tar.gz")) | |
2734 | (sha256 | |
2735 | (base32 "0qfqv7nqmjfr3p0bwrdlxkiqwqr7vmx053cadaa548ybqbghxmvm")) | |
fc1adab1 | 2736 | (patches (search-patches "cpufrequtils-fix-aclocal.patch")))) |
e6caa52d TUBK |
2737 | (build-system gnu-build-system) |
2738 | (native-inputs | |
2739 | `(("sysfsutils" ,sysfsutils-1))) | |
2740 | (arguments | |
2741 | '(#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath=" | |
2742 | (assoc-ref %outputs "out") "/lib")))) | |
2743 | (home-page "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/") | |
2744 | (synopsis "Utilities to get and set CPU frequency on Linux") | |
2745 | (description | |
e881752c | 2746 | "The cpufrequtils suite contains utilities to retrieve CPU frequency |
e6caa52d TUBK |
2747 | information, and set the CPU frequency if supported, using the cpufreq |
2748 | capabilities of the Linux kernel.") | |
3ac73271 | 2749 | (license license:gpl2))) |
0a588bf9 SB |
2750 | |
2751 | (define-public libraw1394 | |
2752 | (package | |
2753 | (name "libraw1394") | |
7c58c852 | 2754 | (version "2.1.2") |
0a588bf9 SB |
2755 | (source (origin |
2756 | (method url-fetch) | |
2757 | (uri (string-append | |
2758 | "mirror://kernel.org/linux/libs/ieee1394/" | |
2759 | name "-" version ".tar.xz")) | |
2760 | (sha256 | |
2761 | (base32 | |
7c58c852 | 2762 | "0pm5b415j1qdzyw38wdv8h7ff4yx20831z1727mpsb6jc6bwdk03")))) |
0a588bf9 SB |
2763 | (build-system gnu-build-system) |
2764 | (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page") | |
2765 | (synopsis "Interface library for the Linux IEEE1394 drivers") | |
2766 | (description | |
2767 | "Libraw1394 is the only supported interface to the kernel side raw1394 of | |
2768 | the Linux IEEE-1394 subsystem, which provides direct access to the connected | |
2769 | 1394 buses to user space. Through libraw1394/raw1394, applications can directly | |
2770 | send to and receive from other nodes without requiring a kernel driver for the | |
2771 | protocol in question.") | |
3ac73271 | 2772 | (license license:lgpl2.1+))) |
68e3c29d SB |
2773 | |
2774 | (define-public libavc1394 | |
2775 | (package | |
2776 | (name "libavc1394") | |
2777 | (version "0.5.4") | |
2778 | (source (origin | |
2779 | (method url-fetch) | |
de67e922 | 2780 | (uri (string-append "mirror://sourceforge/libavc1394/libavc1394/" |
68e3c29d SB |
2781 | name "-" version ".tar.gz")) |
2782 | (sha256 | |
2783 | (base32 | |
2784 | "0lsv46jdqvdx5hx92v0z2cz3yh6212pz9gk0k3513sbaa04zzcbw")))) | |
2785 | (build-system gnu-build-system) | |
2786 | (native-inputs | |
2787 | `(("pkg-config" ,pkg-config))) | |
2788 | (propagated-inputs | |
2789 | `(("libraw1394" ,libraw1394))) ; required by libavc1394.pc | |
3b3b60d0 | 2790 | (home-page "https://sourceforge.net/projects/libavc1394/") |
68e3c29d SB |
2791 | (synopsis "AV/C protocol library for IEEE 1394") |
2792 | (description | |
2793 | "Libavc1394 is a programming interface to the AV/C specification from | |
69b4ffcf | 2794 | the 1394 Trade Association. AV/C stands for Audio/Video Control.") |
3ac73271 | 2795 | (license license:lgpl2.1+))) |
3f7bf86a SB |
2796 | |
2797 | (define-public libiec61883 | |
2798 | (package | |
2799 | (name "libiec61883") | |
2800 | (version "1.2.0") | |
2801 | (source (origin | |
2802 | (method url-fetch) | |
2803 | (uri (string-append | |
2804 | "mirror://kernel.org/linux/libs/ieee1394/" | |
2805 | name "-" version ".tar.xz")) | |
2806 | (sha256 | |
2807 | (base32 | |
2808 | "17ph458zya2l8dr2xwqnzy195qd9swrir31g78qkgb3g4xz2rq6i")))) | |
2809 | (build-system gnu-build-system) | |
2810 | (native-inputs | |
2811 | `(("pkg-config" ,pkg-config))) | |
2812 | (propagated-inputs | |
2813 | `(("libraw1394" ,libraw1394))) ; required by libiec61883.pc | |
2814 | (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page") | |
2815 | (synopsis "Isochronous streaming media library for IEEE 1394") | |
2816 | (description | |
2817 | "The libiec61883 library provides a higher level API for streaming DV, | |
2818 | MPEG-2 and audio over Linux IEEE 1394.") | |
3ac73271 | 2819 | (license license:lgpl2.1+))) |
69159125 MW |
2820 | |
2821 | (define-public mdadm | |
2822 | (package | |
2823 | (name "mdadm") | |
fae88ae8 | 2824 | (version "4.0") |
69159125 MW |
2825 | (source (origin |
2826 | (method url-fetch) | |
2827 | (uri (string-append | |
2828 | "mirror://kernel.org/linux/utils/raid/mdadm/mdadm-" | |
2829 | version ".tar.xz")) | |
2830 | (sha256 | |
2831 | (base32 | |
fae88ae8 | 2832 | "1ad3mma641946wn5lsllwf0lifw9lps34fv1nnkhyfpd9krffshx")))) |
69159125 MW |
2833 | (build-system gnu-build-system) |
2834 | (inputs | |
2835 | `(("udev" ,eudev))) | |
2836 | (arguments | |
2837 | `(#:make-flags (let ((out (assoc-ref %outputs "out"))) | |
fae88ae8 LC |
2838 | (list "CC=gcc" |
2839 | "INSTALL=install" | |
69159125 MW |
2840 | "CHECK_RUN_DIR=0" |
2841 | ;; TODO: tell it where to find 'sendmail' | |
2842 | ;; (string-append "MAILCMD=" <???> "/sbin/sendmail") | |
2843 | (string-append "BINDIR=" out "/sbin") | |
2844 | (string-append "MANDIR=" out "/share/man") | |
2845 | (string-append "UDEVDIR=" out "/lib/udev"))) | |
dc1d3cde KK |
2846 | #:phases |
2847 | (modify-phases %standard-phases | |
2848 | (add-before 'build 'patch-program-paths | |
2849 | (lambda* (#:key inputs #:allow-other-keys) | |
2850 | (let ((coreutils (assoc-ref inputs "coreutils"))) | |
2851 | (substitute* "udev-md-raid-arrays.rules" | |
2852 | (("/usr/bin/(readlink|basename)" all program) | |
2853 | (string-append coreutils "/bin/" program)))) | |
2854 | #t)) | |
2855 | (add-before 'build 'remove-W-error | |
2856 | (lambda _ | |
2857 | ;; We cannot build with -Werror on i686 due to a | |
2858 | ;; 'sign-compare' warning in util.c. | |
2859 | (substitute* "Makefile" | |
2860 | (("-Werror") "")) | |
2861 | #t)) | |
2862 | (delete 'configure)) | |
69159125 MW |
2863 | ;;tests must be done as root |
2864 | #:tests? #f)) | |
2865 | (home-page "http://neil.brown.name/blog/mdadm") | |
2866 | (synopsis "Tool for managing Linux Software RAID arrays") | |
2867 | (description | |
2868 | "mdadm is a tool for managing Linux Software RAID arrays. It can create, | |
2869 | assemble, report on, and monitor arrays. It can also move spares between raid | |
2870 | arrays when needed.") | |
3ac73271 | 2871 | (license license:gpl2+))) |
01ccdfb6 | 2872 | |
631fda7e LC |
2873 | (define-public mdadm-static |
2874 | (package | |
2875 | (inherit mdadm) | |
2876 | (name "mdadm-static") | |
2877 | (arguments | |
2878 | (substitute-keyword-arguments (package-arguments mdadm) | |
2879 | ((#:make-flags flags) | |
2880 | `(cons "LDFLAGS = -static" ,flags)) | |
2881 | ((#:phases phases) | |
2882 | `(modify-phases ,phases | |
2883 | (add-after 'install 'remove-cruft | |
2884 | (lambda* (#:key outputs #:allow-other-keys) | |
2885 | (let* ((out (assoc-ref outputs "out")) | |
2886 | (precious? (lambda (file) | |
2887 | (member file '("." ".." "sbin")))) | |
2888 | (directories (scandir out (negate precious?)))) | |
2889 | (with-directory-excursion out | |
2890 | (for-each delete-file-recursively directories) | |
2891 | (remove-store-references "sbin/mdadm") | |
2892 | (delete-file "sbin/mdmon") | |
2893 | #t)))))) | |
2894 | ((#:modules modules %gnu-build-system-modules) | |
2895 | `((ice-9 ftw) ,@modules)) | |
2896 | ((#:strip-flags _ '()) | |
2897 | ''("--strip-all")) ;strip a few extra KiB | |
2898 | ((#:allowed-references _ '("out")) | |
2899 | '("out")))) ;refer only self | |
2900 | (synopsis "Statically-linked 'mdadm' command for use in an initrd"))) | |
2901 | ||
b3ed50e6 MB |
2902 | (define-public multipath-tools |
2903 | (package | |
2904 | (name "multipath-tools") | |
7f412f33 | 2905 | (version "0.7.1") |
b3ed50e6 MB |
2906 | (source (origin |
2907 | (method url-fetch) | |
2908 | (uri (string-append "http://git.opensvc.com/?p=multipath-tools/" | |
2909 | ".git;a=snapshot;h=" version ";sf=tgz")) | |
2910 | (file-name (string-append name "-" version ".tar.gz")) | |
2911 | (sha256 | |
2912 | (base32 | |
7f412f33 | 2913 | "0w0rgi3lqksaki30yvd4l5rgjqb0d7js1sh7masl8aw6xbrsm26p")) |
b3ed50e6 MB |
2914 | (modules '((guix build utils))) |
2915 | (snippet | |
2916 | '(begin | |
2917 | ;; Drop bundled valgrind headers. | |
2918 | (delete-file-recursively "third-party") | |
2919 | (substitute* '("multipathd/main.c" | |
2920 | "libmultipath/debug.c") | |
2921 | (("#include \"../third-party/") | |
2922 | "#include \"")) | |
2923 | #t)))) | |
2924 | (build-system gnu-build-system) | |
2925 | (arguments | |
2926 | '(#:tests? #f ; No tests. | |
2927 | #:make-flags (list (string-append "DESTDIR=" | |
2928 | (assoc-ref %outputs "out")) | |
b5fb9430 | 2929 | "SYSTEMDPATH=lib" |
b3ed50e6 MB |
2930 | (string-append "LDFLAGS=-Wl,-rpath=" |
2931 | (assoc-ref %outputs "out") | |
2932 | "/lib")) | |
2933 | #:phases | |
2934 | (modify-phases %standard-phases | |
b5fb9430 | 2935 | (add-after 'unpack 'patch-source |
7f412f33 MB |
2936 | (lambda* (#:key inputs #:allow-other-keys) |
2937 | (let ((lvm2 (assoc-ref inputs "lvm2")) | |
2938 | (udev (assoc-ref inputs "udev"))) | |
2939 | (substitute* "Makefile.inc" | |
2940 | (("\\$\\(prefix\\)/usr") "$(prefix)")) | |
2941 | (substitute* '("kpartx/Makefile" "libmultipath/Makefile") | |
2942 | (("/usr/include/libdevmapper.h") | |
2943 | (string-append lvm2 "/include/libdevmapper.h")) | |
2944 | (("/usr/include/libudev.h") | |
2945 | (string-append udev "/include/libudev.h"))) | |
2946 | #t))) | |
b3ed50e6 MB |
2947 | (delete 'configure) |
2948 | (add-before 'build 'set-CC | |
2949 | (lambda _ | |
2950 | (setenv "CC" "gcc") | |
2951 | #t))))) | |
2952 | (native-inputs | |
7f412f33 MB |
2953 | `(("perl" ,perl) |
2954 | ("pkg-config" ,pkg-config) | |
2955 | ("valgrind" ,valgrind))) | |
b3ed50e6 MB |
2956 | (inputs |
2957 | `(("ceph:lib" ,ceph "lib") | |
7f412f33 | 2958 | ("json-c" ,json-c) |
b3ed50e6 MB |
2959 | ("libaio" ,libaio) |
2960 | ("liburcu" ,liburcu) | |
2961 | ("lvm2" ,lvm2) | |
2962 | ("readline" ,readline) | |
2963 | ("udev" ,eudev))) | |
2964 | (home-page "http://christophe.varoqui.free.fr/") | |
2965 | (synopsis "Access block devices through multiple paths") | |
2966 | (description | |
2967 | "This package provides the following binaries to drive the | |
2968 | Linux Device Mapper multipathing driver: | |
2969 | @enumerate | |
2970 | @item @command{multipath} - Device mapper target autoconfig. | |
2971 | @item @command{multipathd} - Multipath daemon. | |
2972 | @item @command{mpathpersist} - Manages SCSI persistent reservations on | |
2973 | @code{dm} multipath devices. | |
2974 | @item @command{kpartx} - Create device maps from partition tables. | |
2975 | @end enumerate") | |
2976 | (license (list license:gpl2+ ; Main distribution. | |
2977 | license:lgpl2.0+)))) ; libmpathcmd/mpath_cmd.h | |
2978 | ||
01ccdfb6 SB |
2979 | (define-public libaio |
2980 | (package | |
2981 | (name "libaio") | |
2982 | (version "0.3.110") | |
2983 | (source (origin | |
2984 | (method url-fetch) | |
2985 | (uri (list | |
2986 | (string-append "mirror://debian/pool/main/liba/libaio/" | |
4929a061 | 2987 | name "_" version ".orig.tar.gz"))) |
01ccdfb6 SB |
2988 | (sha256 |
2989 | (base32 | |
2990 | "0zjzfkwd1kdvq6zpawhzisv7qbq1ffs343i5fs9p498pcf7046g0")))) | |
2991 | (build-system gnu-build-system) | |
2992 | (arguments | |
2993 | '(#:make-flags | |
2994 | (list "CC=gcc" (string-append "prefix=" %output)) | |
2995 | #:test-target "partcheck" ; need root for a full 'check' | |
2996 | #:phases | |
dc1d3cde | 2997 | (modify-phases %standard-phases (delete 'configure)))) ; no configure script |
01ccdfb6 SB |
2998 | (home-page "http://lse.sourceforge.net/io/aio.html") |
2999 | (synopsis "Linux-native asynchronous I/O access library") | |
3000 | (description | |
3001 | "This library enables userspace to use Linux kernel asynchronous I/O | |
3002 | system calls, important for the performance of databases and other advanced | |
3003 | applications.") | |
3ac73271 | 3004 | (license license:lgpl2.1+))) |
eb7c43c3 | 3005 | |
81b98756 RW |
3006 | (define-public sbc |
3007 | (package | |
3008 | (name "sbc") | |
3009 | (version "1.3") | |
3010 | (source (origin | |
3011 | (method url-fetch) | |
3012 | (uri (string-append "https://www.kernel.org/pub/linux/bluetooth/" | |
3013 | name "-" version ".tar.xz")) | |
3014 | (sha256 | |
3015 | (base32 | |
3016 | "02ckd2z51z0h85qgv7x8vv8ybp5czm9if1z78411j53gaz7j4476")))) | |
3017 | (build-system gnu-build-system) | |
3018 | (inputs | |
3019 | `(("libsndfile" ,libsndfile))) | |
3020 | (native-inputs | |
3021 | `(("pkg-config" ,pkg-config))) | |
3022 | (home-page "https://www.kernel.org/pub/linux/bluetooth/") | |
3023 | (synopsis "Bluetooth subband audio codec") | |
3024 | (description | |
3025 | "The SBC is a digital audio encoder and decoder used to transfer data to | |
3026 | Bluetooth audio output devices like headphones or loudspeakers.") | |
3027 | (license license:gpl2+))) | |
3028 | ||
eb7c43c3 DT |
3029 | (define-public bluez |
3030 | (package | |
3031 | (name "bluez") | |
164fccea | 3032 | (version "5.47") |
eb7c43c3 DT |
3033 | (source (origin |
3034 | (method url-fetch) | |
3035 | (uri (string-append | |
e9eb24b1 | 3036 | "mirror://kernel.org/linux/bluetooth/bluez-" |
eb7c43c3 DT |
3037 | version ".tar.xz")) |
3038 | (sha256 | |
3039 | (base32 | |
164fccea | 3040 | "1j22hfjz0fp4pgclgz9mfcwjbr4wqgah3gd2qhfg4r6msmybyxfg")))) |
eb7c43c3 DT |
3041 | (build-system gnu-build-system) |
3042 | (arguments | |
90ea83ee | 3043 | `(#:configure-flags |
eb7c43c3 | 3044 | (let ((out (assoc-ref %outputs "out"))) |
f3dbc626 SB |
3045 | (list "--sysconfdir=/etc" |
3046 | "--localstatedir=/var" | |
3047 | "--enable-library" | |
53142109 | 3048 | "--disable-systemd" |
eb7c43c3 DT |
3049 | ;; Install dbus/udev files to the correct location. |
3050 | (string-append "--with-dbusconfdir=" out "/etc") | |
87a16de7 SB |
3051 | (string-append "--with-udevdir=" out "/lib/udev"))) |
3052 | #:phases | |
3053 | (modify-phases %standard-phases | |
de47cfed TD |
3054 | ,@(if (string=? (%current-system) "armhf-linux") |
3055 | ;; This test fails unpredictably. | |
3056 | ;; TODO: skip it for all architectures. | |
3057 | `((add-before 'check 'skip-wonky-test | |
3058 | (lambda _ | |
3059 | (substitute* "unit/test-gatt.c" | |
3060 | (("tester_init\\(&argc, &argv\\);") "return 77;")) | |
3061 | #t))) | |
3062 | `()) | |
3063 | ||
87a16de7 SB |
3064 | (add-after 'install 'post-install |
3065 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
3066 | (let* ((out (assoc-ref outputs "out")) | |
3067 | (servicedir (string-append out "/share/dbus-1/services")) | |
3068 | (service "obexd/src/org.bluez.obex.service") | |
3069 | (rule (string-append | |
3070 | out "/lib/udev/rules.d/97-hid2hci.rules"))) | |
3071 | ;; Install the obex dbus service file. | |
3072 | (substitute* service | |
3073 | (("/bin/false") | |
3074 | (string-append out "/libexec/bluetooth/obexd"))) | |
3075 | (install-file service servicedir) | |
3076 | ;; Fix paths in the udev rule. | |
3077 | (substitute* rule | |
3078 | (("hid2hci --method") | |
3079 | (string-append out "/lib/udev/hid2hci --method")) | |
3080 | (("/sbin/udevadm") | |
3081 | (string-append (assoc-ref inputs "eudev") "/bin/udevadm"))) | |
de47cfed | 3082 | #t)))))) |
eb7c43c3 DT |
3083 | (native-inputs |
3084 | `(("pkg-config" ,pkg-config) | |
b94a6ca0 | 3085 | ("gettext" ,gettext-minimal))) |
eb7c43c3 DT |
3086 | (inputs |
3087 | `(("glib" ,glib) | |
3088 | ("dbus" ,dbus) | |
3089 | ("eudev" ,eudev) | |
3090 | ("libical" ,libical) | |
3091 | ("readline" ,readline))) | |
3092 | (home-page "http://www.bluez.org/") | |
3093 | (synopsis "Linux Bluetooth protocol stack") | |
3094 | (description | |
3095 | "BlueZ provides support for the core Bluetooth layers and protocols. It | |
3096 | is flexible, efficient and uses a modular implementation.") | |
3ac73271 | 3097 | (license license:gpl2+))) |
3d890318 LC |
3098 | |
3099 | (define-public fuse-exfat | |
3100 | (package | |
3101 | (name "fuse-exfat") | |
be900082 | 3102 | (version "1.2.7") |
3d890318 LC |
3103 | (source (origin |
3104 | (method url-fetch) | |
c0cc805e TGR |
3105 | (uri (string-append |
3106 | "https://github.com/relan/exfat/releases/download/v" | |
3107 | version "/" name "-" version ".tar.gz")) | |
3d890318 LC |
3108 | (sha256 |
3109 | (base32 | |
be900082 | 3110 | "0df0ccnd0dgwc6rvk9qmrz0nfb8whc5s3wg9qnw1mzbrh4rcvhw2")))) |
3d890318 LC |
3111 | (build-system gnu-build-system) |
3112 | (native-inputs | |
c0cc805e | 3113 | `(("pkg-config" ,pkg-config))) |
3d890318 LC |
3114 | (inputs |
3115 | `(("fuse" ,fuse))) | |
c0cc805e | 3116 | (home-page "https://github.com/relan/exfat") |
3d890318 LC |
3117 | (synopsis "Mount exFAT file systems") |
3118 | (description | |
3119 | "This package provides a FUSE-based file system that provides read and | |
3120 | write access to exFAT devices.") | |
3ac73271 | 3121 | (license license:gpl2+))) |
53ec8d48 LC |
3122 | |
3123 | (define-public gpm | |
3124 | (package | |
3125 | (name "gpm") | |
3126 | (version "1.20.7") | |
3127 | (source (origin | |
3128 | (method url-fetch) | |
3129 | (uri (string-append | |
3130 | "http://www.nico.schottelius.org/software/gpm/archives/gpm-" | |
3131 | version ".tar.bz2")) | |
3132 | (sha256 | |
3133 | (base32 | |
3134 | "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh")))) | |
3135 | (build-system gnu-build-system) | |
3136 | (arguments | |
3137 | '(#:phases (modify-phases %standard-phases | |
d10092b8 | 3138 | (add-after 'unpack 'bootstrap |
53ec8d48 LC |
3139 | (lambda _ |
3140 | ;; The tarball was not generated with 'make dist' so we | |
3141 | ;; need to bootstrap things ourselves. | |
77bb6c22 EF |
3142 | (substitute* "autogen.sh" |
3143 | (("/bin/sh") (which "sh"))) | |
53ec8d48 LC |
3144 | (and (zero? (system* "./autogen.sh")) |
3145 | (begin | |
3146 | (patch-makefile-SHELL "Makefile.include.in") | |
3147 | #t))))) | |
3148 | ||
3149 | ;; Make sure programs find libgpm.so. | |
3150 | #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath=" | |
3151 | (assoc-ref %outputs "out") | |
3152 | "/lib")))) | |
3153 | (native-inputs | |
3154 | `(("texinfo" ,texinfo) | |
3155 | ("bison" ,bison) | |
3156 | ("flex" ,flex) | |
3157 | ("autoconf" ,autoconf) | |
3158 | ("automake" ,automake) | |
3159 | ("libtool" ,libtool))) | |
3160 | (home-page "http://www.nico.schottelius.org/software/gpm/") | |
3161 | (synopsis "Mouse support for the Linux console") | |
3162 | (description | |
3163 | "The GPM (general-purpose mouse) daemon is a mouse server for | |
3164 | applications running on the Linux console. It allows users to select items | |
3165 | and copy/paste text in the console and in xterm.") | |
3ac73271 | 3166 | (license license:gpl2+))) |
fc686f9a TGR |
3167 | |
3168 | (define-public btrfs-progs | |
3169 | (package | |
3170 | (name "btrfs-progs") | |
2a86fece | 3171 | (version "4.13.3") |
fc686f9a TGR |
3172 | (source (origin |
3173 | (method url-fetch) | |
3174 | (uri (string-append "mirror://kernel.org/linux/kernel/" | |
3175 | "people/kdave/btrfs-progs/" | |
3176 | "btrfs-progs-v" version ".tar.xz")) | |
3177 | (sha256 | |
3178 | (base32 | |
2a86fece | 3179 | "10yp0b4pwrw5mcd81yn3d0d87fnqpp4si5d25dfhl6n2640dnnw0")))) |
fc686f9a | 3180 | (build-system gnu-build-system) |
7cad981d | 3181 | (outputs '("out" |
c4b006ba | 3182 | "static")) ; static versions of the binaries in "out" |
fc686f9a | 3183 | (arguments |
7cad981d TGR |
3184 | '(#:phases (modify-phases %standard-phases |
3185 | (add-after 'build 'build-static | |
3186 | (lambda _ (zero? (system* "make" "static")))) | |
9a1c4a98 MB |
3187 | (add-after 'install 'install-bash-completion |
3188 | (lambda* (#:key outputs #:allow-other-keys) | |
3189 | (install-file "btrfs-completion" | |
3190 | (string-append (assoc-ref outputs "out") | |
3191 | "/etc/bash_completion.d")) | |
3192 | #t)) | |
7cad981d TGR |
3193 | (add-after 'install 'install-static |
3194 | (let ((staticbin (string-append (assoc-ref %outputs "static") | |
3195 | "/bin"))) | |
3196 | (lambda _ | |
3197 | (zero? (system* "make" | |
3198 | (string-append "bindir=" staticbin) | |
3199 | "install-static")))))) | |
3200 | #:test-target "test" | |
fc686f9a TGR |
3201 | #:parallel-tests? #f)) ; tests fail when run in parallel |
3202 | (inputs `(("e2fsprogs" ,e2fsprogs) | |
3203 | ("libblkid" ,util-linux) | |
7cad981d | 3204 | ("libblkid:static" ,util-linux "static") |
fc686f9a | 3205 | ("libuuid" ,util-linux) |
7cad981d | 3206 | ("libuuid:static" ,util-linux "static") |
e2937a55 | 3207 | ("lzo" ,lzo) |
fc686f9a | 3208 | ("zlib" ,zlib) |
e2937a55 | 3209 | ("zstd" ,zstd))) |
fc686f9a TGR |
3210 | (native-inputs `(("pkg-config" ,pkg-config) |
3211 | ("asciidoc" ,asciidoc) | |
3212 | ("xmlto" ,xmlto) | |
41d23dd1 | 3213 | ;; For building documentation. |
fc686f9a | 3214 | ("libxml2" ,libxml2) |
48b7e4a6 | 3215 | ("docbook-xsl" ,docbook-xsl) |
41d23dd1 | 3216 | ;; For tests. |
bc64676c | 3217 | ("acl" ,acl) |
48b7e4a6 | 3218 | ("which" ,which))) |
fc686f9a TGR |
3219 | (home-page "https://btrfs.wiki.kernel.org/") |
3220 | (synopsis "Create and manage btrfs copy-on-write file systems") | |
039601e0 TGR |
3221 | (description "Btrfs is a @dfn{copy-on-write} (CoW) file system for Linux |
3222 | aimed at implementing advanced features while focusing on fault tolerance, | |
3223 | repair and easy administration.") | |
68bcac6b LF |
3224 | ;; GPL2+: crc32.c, radix-tree.c, raid6.c, rbtree.c. |
3225 | ;; GPL2: Everything else. | |
3226 | (license (list license:gpl2 license:gpl2+)))) | |
08e9daf5 | 3227 | |
f3e44f5c DC |
3228 | (define-public btrfs-progs/static |
3229 | (package | |
3230 | (name "btrfs-progs-static") | |
3231 | (version (package-version btrfs-progs)) | |
3232 | (source #f) | |
3233 | (build-system trivial-build-system) | |
3234 | (inputs | |
3235 | `(("btrfs-progs:static" ,btrfs-progs "static"))) | |
3236 | (arguments | |
3237 | `(#:modules ((guix build utils)) | |
3238 | #:builder | |
3239 | (begin | |
3240 | (use-modules (guix build utils) | |
3241 | (ice-9 ftw) | |
3242 | (srfi srfi-26)) | |
3243 | ||
3244 | (let* ((btrfs (assoc-ref %build-inputs "btrfs-progs:static")) | |
3245 | (out (assoc-ref %outputs "out")) | |
3246 | (source (string-append btrfs "/bin/btrfs.static")) | |
3247 | (target (string-append out "/bin/btrfs"))) | |
3248 | (mkdir-p (dirname target)) | |
3249 | (copy-file source target) | |
3250 | (remove-store-references target) | |
3251 | (chmod target #o555))))) | |
3252 | (home-page (package-home-page btrfs-progs)) | |
ff797172 TGR |
3253 | (synopsis "Statically-linked btrfs command from btrfs-progs") |
3254 | (description "This package provides the statically-linked @command{btrfs} | |
3255 | from the btrfs-progs package. It is meant to be used in initrds.") | |
f3e44f5c DC |
3256 | (license (package-license btrfs-progs)))) |
3257 | ||
2e456982 MB |
3258 | (define-public f2fs-tools |
3259 | (package | |
3260 | (name "f2fs-tools") | |
3261 | (version "1.8.0") | |
3262 | (source (origin | |
3263 | (method url-fetch) | |
3264 | (uri (string-append | |
3265 | "https://git.kernel.org/cgit/linux/kernel/git/jaegeuk" | |
3266 | "/f2fs-tools.git/snapshot/" name "-" version ".tar.gz")) | |
3267 | (sha256 | |
3268 | (base32 | |
3269 | "1bir9ladb58ijlcvrjrq1fb1xv5ys50zdjaq0yzliib0apsyrnyl")))) | |
3270 | (build-system gnu-build-system) | |
3271 | (arguments | |
3272 | `(#:phases | |
3273 | (modify-phases %standard-phases | |
3274 | (add-after 'unpack 'bootstrap | |
3275 | (lambda _ | |
3276 | (zero? (system* "autoreconf" "-vif"))))))) | |
3277 | (native-inputs | |
3278 | `(("autoconf" ,autoconf) | |
3279 | ("automake" ,automake) | |
3280 | ("libtool" ,libtool) | |
3281 | ("pkg-config" ,pkg-config))) | |
3282 | (inputs | |
3283 | `(("libuuid" ,util-linux))) | |
3284 | (home-page "https://f2fs.wiki.kernel.org/") | |
3285 | (synopsis "Userland tools for f2fs") | |
3286 | (description | |
3287 | "F2FS, the Flash-Friendly File System, is a modern file system | |
3288 | designed to be fast and durable on flash devices such as solid-state | |
3289 | disks and SD cards. This package provides the userland utilities.") | |
3290 | ;; The formatting utility, libf2fs and include/f2fs_fs.h is dual | |
3291 | ;; GPL2/LGPL2.1, everything else is GPL2 only. See 'COPYING'. | |
3292 | (license (list license:gpl2 license:lgpl2.1)))) | |
3293 | ||
08e9daf5 TGR |
3294 | (define-public freefall |
3295 | (package | |
3296 | (name "freefall") | |
3297 | (version (package-version linux-libre)) | |
3298 | (source (package-source linux-libre)) | |
3299 | (build-system gnu-build-system) | |
3300 | (arguments | |
3301 | '(#:phases (modify-phases %standard-phases | |
3302 | (add-after 'unpack 'enter-subdirectory | |
3303 | (lambda _ | |
3304 | (chdir "tools/laptop/freefall"))) | |
3305 | (delete 'configure) | |
3306 | (add-before 'build 'increase-timeout | |
3307 | (lambda _ | |
3308 | ;; The default of 2 seconds is too low: it assumes an | |
3309 | ;; open lid and AC power without actually checking. | |
3310 | (substitute* "freefall.c" | |
3311 | (("alarm\\(2\\)") "alarm(5)"))))) | |
3312 | #:make-flags (list (string-append "PREFIX=" | |
3313 | (assoc-ref %outputs "out"))) | |
3314 | #:tests? #f)) ;no tests | |
3315 | (home-page (package-home-page linux-libre)) | |
3316 | (synopsis "Free-fall protection for spinning laptop hard drives") | |
3317 | (description | |
3318 | "Prevents shock damage to the internal spinning hard drive(s) of some | |
3319 | HP and Dell laptops. When sudden movement is detected, all input/output | |
3320 | operations on the drive are suspended and its heads are parked on the ramp, | |
3321 | where they are less likely to cause damage to the spinning disc. Requires a | |
3322 | drive that supports the ATA/ATAPI-7 IDLE IMMEDIATE command with unload | |
3323 | feature, and a laptop with an accelerometer. It has no effect on SSDs.") | |
3324 | (license license:gpl2))) | |
d17ae8c0 NG |
3325 | |
3326 | (define-public thinkfan | |
3327 | (package | |
3328 | (name "thinkfan") | |
3329 | (version "0.9.3") | |
3330 | (source (origin | |
3331 | (method url-fetch) | |
3332 | (uri (string-append "mirror://sourceforge/thinkfan/" | |
de67e922 | 3333 | "/thinkfan-" version ".tar.gz")) |
d17ae8c0 NG |
3334 | (sha256 |
3335 | (base32 | |
3336 | "0nz4c48f0i0dljpk5y33c188dnnwg8gz82s4grfl8l64jr4n675n")) | |
3337 | (modules '((guix build utils))) | |
3338 | ;; Fix erroneous man page location in Makefile leading to | |
3339 | ;; a compilation failure. | |
3340 | (snippet | |
3341 | '(substitute* "CMakeLists.txt" | |
3342 | (("thinkfan\\.1") "src/thinkfan.1"))))) | |
3343 | (build-system cmake-build-system) | |
3344 | (arguments | |
3345 | `(#:modules ((guix build cmake-build-system) | |
3346 | (guix build utils) | |
3347 | (srfi srfi-26)) | |
3348 | #:tests? #f ;no test target | |
3349 | #:configure-flags | |
3350 | ;; Enable reading temperatures from hard disks via S.M.A.R.T. | |
3351 | `("-DUSE_ATASMART:BOOL=ON") | |
3352 | #:phases | |
3353 | (modify-phases %standard-phases | |
75e56aed NG |
3354 | ;; Install scripts for various foreign init systems. Also fix |
3355 | ;; hard-coded path for daemon. | |
d17ae8c0 NG |
3356 | (add-after 'install 'install-rc-scripts |
3357 | (lambda* (#:key outputs #:allow-other-keys) | |
75e56aed NG |
3358 | (let ((out (assoc-ref outputs "out")) |
3359 | (files (find-files | |
3360 | (string-append "../thinkfan-" ,version "/rcscripts") | |
3361 | ".*"))) | |
3362 | (substitute* files | |
3363 | (("/usr/sbin/(\\$NAME|thinkfan)" _ name) | |
3364 | (string-append out "/sbin/" name))) | |
3365 | (for-each (cute install-file <> | |
3366 | (string-append out "/share/thinkfan")) | |
3367 | files)) | |
d17ae8c0 NG |
3368 | #t))))) |
3369 | (inputs | |
3370 | `(("libatasmart" ,libatasmart))) | |
3371 | (home-page "http://thinkfan.sourceforge.net/") | |
3372 | (synopsis "Simple fan control program") | |
3373 | (description | |
3374 | "Thinkfan is a simple fan control program. It reads temperatures, | |
3375 | checks them against configured limits and switches to appropriate (also | |
3376 | pre-configured) fan level. It requires a working @code{thinkpad_acpi} or any | |
3377 | other @code{hwmon} driver that enables temperature reading and fan control | |
3378 | from userspace.") | |
3379 | (license license:gpl3+))) | |
91231156 LC |
3380 | |
3381 | (define-public ntfs-3g | |
3382 | (package | |
3383 | (name "ntfs-3g") | |
d8af4f6d | 3384 | (version "2017.3.23") |
91231156 LC |
3385 | (source (origin |
3386 | (method url-fetch) | |
3387 | (uri (string-append "https://tuxera.com/opensource/" | |
3388 | "ntfs-3g_ntfsprogs-" version ".tgz")) | |
3389 | (sha256 | |
3390 | (base32 | |
d8af4f6d | 3391 | "1mb228p80hv97pgk3myyvgp975r9mxq56c6bdn1n24kngcfh4niy")) |
91231156 LC |
3392 | (modules '((guix build utils))) |
3393 | (snippet | |
3394 | ;; Install under $prefix. | |
3395 | '(substitute* '("src/Makefile.in" "ntfsprogs/Makefile.in") | |
3396 | (("/sbin") | |
3397 | "@sbindir@"))))) | |
3398 | (build-system gnu-build-system) | |
3399 | (inputs `(("util-linux" ,util-linux) | |
3400 | ("fuse" ,fuse))) ;libuuid | |
3401 | (native-inputs `(("pkg-config" ,pkg-config))) | |
3402 | (arguments | |
3403 | '(#:configure-flags (list "--exec-prefix=${prefix}" | |
3404 | "--with-fuse=external" ;use our own FUSE | |
3405 | "--enable-mount-helper" | |
3406 | "--enable-posix-acls" | |
3407 | "--enable-xattr-mappings"))) | |
8bad0c0b | 3408 | (home-page "https://www.tuxera.com/community/open-source-ntfs-3g/") |
91231156 LC |
3409 | (synopsis "Read-write access to NTFS file systems") |
3410 | (description | |
3411 | "NTFS-3G provides read-write access to NTFS file systems, which are | |
3412 | commonly found on Microsoft Windows. It is implemented as a FUSE file system. | |
3413 | The package provides additional NTFS tools.") | |
3414 | (license license:gpl2+))) | |
9b0942c1 | 3415 | |
f8f44dd7 MB |
3416 | (define-public rdma-core |
3417 | (package | |
3418 | (name "rdma-core") | |
5826e7b1 | 3419 | (version "14") |
f8f44dd7 MB |
3420 | (source (origin |
3421 | (method url-fetch) | |
3422 | (uri (string-append "https://github.com/linux-rdma/rdma-core" | |
3423 | "/releases/download/v" version "/rdma-core-" | |
3424 | version ".tar.gz")) | |
3425 | (sha256 | |
3426 | (base32 | |
5826e7b1 | 3427 | "0w03zd49k96bmly44qc8l0s9l671sd26k4wrilsp13xaspy048kd")))) |
f8f44dd7 MB |
3428 | (build-system cmake-build-system) |
3429 | (arguments | |
3430 | '(#:tests? #f ; no tests | |
3431 | ;; Upstream uses the "ninja" build system and encourage distros | |
3432 | ;; to do the same for consistency. They also recommend using the | |
3433 | ;; "Release" build type. | |
3434 | #:configure-flags (list "-GNinja" | |
3435 | ;; Defaults to "lib64" on 64-bit archs. | |
3436 | (string-append "-DCMAKE_INSTALL_LIBDIR=" | |
3437 | (assoc-ref %outputs "out") "/lib") | |
3438 | "-DCMAKE_BUILD_TYPE=Release") | |
3439 | #:phases | |
3440 | (modify-phases %standard-phases | |
3441 | (replace 'build | |
3442 | (lambda _ | |
3443 | (zero? (system* "ninja" | |
3444 | "-j" (number->string (parallel-job-count)))))) | |
3445 | (replace 'install | |
3446 | (lambda _ | |
3447 | (zero? (system* "ninja" "install"))))))) | |
3448 | (native-inputs | |
3449 | `(("ninja" ,ninja) | |
3450 | ("pkg-config" ,pkg-config) | |
3451 | ("python" ,python-wrapper))) | |
3452 | (inputs | |
3453 | `(("libnl" ,libnl) | |
3454 | ("udev" ,eudev))) | |
3455 | (home-page "https://github.com/linux-rdma/rdma-core") | |
3456 | (synopsis "Utilities and libraries for working with RDMA devices") | |
3457 | (description | |
3458 | "This package provides userspace components for the InfiniBand | |
3459 | subsystem of the Linux kernel. Specifically it contains userspace | |
3460 | libraries for the following device nodes: | |
3461 | ||
3462 | @enumerate | |
3463 | @item @file{/dev/infiniband/uverbsX} (@code{libibverbs}) | |
3464 | @item @file{/dev/infiniband/rdma_cm} (@code{librdmacm}) | |
3465 | @item @file{/dev/infiniband/umadX} (@code{libibumad}) | |
3466 | @end enumerate | |
3467 | ||
3468 | The following service daemons are also provided: | |
3469 | @enumerate | |
3470 | @item @code{srp_daemon} (for the @code{ib_srp} kernel module) | |
3471 | @item @code{iwpmd} (for iWARP kernel providers) | |
3472 | @item @code{ibacm} (for InfiniBand communication management assistant) | |
3473 | @end enumerate") | |
3474 | ;; All library code is dual licensed under GPL2 and a custom MIT | |
3475 | ;; variant. The package also includes some components covered by | |
3476 | ;; other licenses. Consult COPYING.md for full details. | |
3477 | (license | |
3478 | (list license:gpl2 | |
3479 | (license:x11-style "See COPYING.BSD_MIT in the distribution") | |
3480 | license:bsd-2 ; Files referring to COPYING.BSD_FB | |
3481 | license:cc0 ; most files in ccan/ | |
3482 | license:bsd-3)))) ; providers/hfi1verbs are dual GPL2/BSD-3 | |
3483 | ||
9b0942c1 DC |
3484 | (define-public rng-tools |
3485 | (package | |
3486 | (name "rng-tools") | |
3487 | (version "5") | |
3488 | (source (origin | |
3489 | (method url-fetch) | |
3490 | (uri (string-append | |
3491 | "http://downloads.sourceforge.net/sourceforge/gkernel/" | |
3492 | "rng-tools-" version ".tar.gz")) | |
3493 | (sha256 | |
3494 | (base32 | |
3495 | "13h7lc8wl9khhvkr0i3bl5j9bapf8anhqis1lcnwxg1vc2v058b0")))) | |
3496 | (build-system gnu-build-system) | |
3497 | (synopsis "Random number generator daemon") | |
3498 | (description | |
3499 | "Monitor a hardware random number generator, and supply entropy | |
3500 | from that to the system kernel's @file{/dev/random} machinery.") | |
3b3b60d0 | 3501 | (home-page "https://sourceforge.net/projects/gkernel") |
9b0942c1 DC |
3502 | ;; The source package is offered under the GPL2+, but the files |
3503 | ;; 'rngd_rdrand.c' and 'rdrand_asm.S' are only available under the GPL2. | |
3504 | (license (list license:gpl2 license:gpl2+)))) | |
58d6a1f2 TGR |
3505 | |
3506 | (define-public cpupower | |
3507 | (package | |
3508 | (name "cpupower") | |
3509 | (version (package-version linux-libre)) | |
3510 | (source (package-source linux-libre)) | |
3511 | (build-system gnu-build-system) | |
3512 | (arguments | |
3513 | '(#:phases (modify-phases %standard-phases | |
3514 | (add-after 'unpack 'enter-subdirectory | |
3515 | (lambda _ | |
3516 | (chdir "tools/power/cpupower"))) | |
3517 | (delete 'configure) | |
3518 | (add-before 'build 'fix-makefiles | |
3519 | (lambda _ | |
3520 | (substitute* "Makefile" | |
3521 | (("/usr/") "/") | |
3522 | (("/bin/(install|pwd)" _ command) command)) | |
3523 | (substitute* "bench/Makefile" | |
3524 | (("\\$\\(CC\\) -o") "$(CC) $(LDFLAGS) -o"))))) | |
3525 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
3526 | (list (string-append "DESTDIR=" out) | |
3527 | (string-append "LDFLAGS=-Wl,-rpath=" out "/lib") | |
3528 | "docdir=/share/doc/cpupower" | |
3529 | "confdir=$(docdir)/examples" | |
3530 | ;; The Makefile recommends the following changes | |
3531 | "DEBUG=false" | |
3532 | "PACKAGE_BUGREPORT=bug-guix@gnu.org")) | |
3533 | #:tests? #f)) ;no tests | |
b94a6ca0 | 3534 | (native-inputs `(("gettext" ,gettext-minimal))) |
58d6a1f2 TGR |
3535 | (inputs `(("pciutils" ,pciutils))) |
3536 | (home-page (package-home-page linux-libre)) | |
3537 | (synopsis "CPU frequency and voltage scaling tools for Linux") | |
3538 | (description | |
3539 | "cpupower is a set of user-space tools that use the cpufreq feature of the | |
3540 | Linux kernel to retrieve and control processor features related to power saving, | |
3541 | such as frequency and voltage scaling.") | |
3542 | (license license:gpl2))) | |
2b76f135 TGR |
3543 | |
3544 | (define-public haveged | |
3545 | (package | |
3546 | (name "haveged") | |
3547 | (version "1.9.1") | |
3548 | (source | |
3549 | (origin | |
3550 | (method url-fetch) | |
3551 | (uri (string-append "http://www.issihosts.com/haveged/haveged-" | |
3552 | version ".tar.gz")) | |
3553 | (sha256 | |
3554 | (base32 | |
3555 | "059pxlfd4l5dqhd6r3lynzfz4wby2f17294fy17pi9j2jpnn68ww")))) | |
3556 | (build-system gnu-build-system) | |
3557 | (home-page "http://www.issihosts.com/haveged") | |
3558 | (synopsis "Entropy source for the Linux random number generator") | |
3559 | (description | |
3560 | "haveged generates an unpredictable stream of random numbers for use by | |
3561 | Linux's @file{/dev/random} and @file{/dev/urandom} devices. The kernel's | |
3562 | standard mechanisms for filling the entropy pool may not be sufficient for | |
3563 | systems with high needs or limited user interaction, such as headless servers. | |
3564 | @command{haveged} runs as a privileged daemon, harvesting randomness from the | |
3565 | indirect effects of hardware events on hidden processor state using the HArdware | |
3566 | Volatile Entropy Gathering and Expansion (HAVEGE) algorithm. It tunes itself to | |
3567 | its environment and provides the same built-in test suite for the output stream | |
3568 | as used on certified hardware security devices.") | |
3569 | (license (list (license:non-copyleft "file://nist/mconf.h") | |
3570 | (license:non-copyleft "file://nist/packtest.c") | |
3571 | license:public-domain ; nist/dfft.c | |
3572 | license:gpl3+)))) ; everything else | |
e385e957 TGR |
3573 | |
3574 | (define-public ecryptfs-utils | |
3575 | (package | |
3576 | (name "ecryptfs-utils") | |
3577 | (version "111") | |
3578 | (source | |
3579 | (origin | |
3580 | (method url-fetch) | |
3581 | (uri (string-append "https://launchpad.net/ecryptfs/trunk/" | |
3582 | version "/+download/ecryptfs-utils_" | |
3583 | version ".orig.tar.gz")) | |
3584 | (sha256 | |
3585 | (base32 | |
3586 | "0zwq19siiwf09h7lwa7n7mgmrr8cxifp45lmwgcfr8c1gviv6b0i")))) | |
3587 | (build-system gnu-build-system) | |
3588 | (arguments | |
3589 | `(#:configure-flags (list "--disable-pywrap"))) | |
3590 | (native-inputs | |
3591 | `(("intltool" ,intltool) | |
3592 | ("perl" ,perl) ; for pod2man | |
3593 | ("pkg-config" ,pkg-config))) | |
3594 | (inputs | |
3595 | `(("keyutils" ,keyutils) | |
3596 | ("linux-pam" ,linux-pam) | |
3597 | ("nss" ,nss))) | |
3598 | (home-page "http://ecryptfs.org/") | |
3599 | (synopsis "eCryptfs cryptographic file system utilities") | |
3600 | (description | |
3601 | "eCryptfs is a POSIX-compliant stacked cryptographic file system for Linux. | |
3602 | Each file's cryptographic meta-data is stored inside the file itself, along | |
3603 | with the encrypted contents. This allows individual encrypted files to be | |
3604 | copied between hosts and still be decrypted with the proper key. eCryptfs is a | |
3605 | native Linux file system, and has been part of the Linux kernel since version | |
3606 | 2.6.19. This package contains the userland utilities to manage it.") | |
3607 | ;; The files src/key_mod/ecryptfs_key_mod_{openssl,pkcs11_helper,tspi}.c | |
3608 | ;; grant additional permission to link with OpenSSL. | |
3609 | (license license:gpl2+))) | |
cff0adec DC |
3610 | |
3611 | (define-public libnfsidmap | |
3612 | (package | |
3613 | (name "libnfsidmap") | |
3614 | (version "0.25") | |
3615 | (source (origin | |
3616 | (method url-fetch) | |
3617 | (uri (string-append | |
3618 | "http://www.citi.umich.edu/projects/nfsv4/linux/" | |
3619 | name "/" name "-" version ".tar.gz")) | |
3620 | (sha256 | |
3621 | (base32 | |
3622 | "1kzgwxzh83qi97rblcm9qj80cdvnv8kml2plz0q103j0hifj8vb5")))) | |
3623 | (build-system gnu-build-system) | |
3624 | (arguments | |
3625 | `(#:configure-flags (list | |
3626 | (string-append "--with-pluginpath=" | |
3627 | (assoc-ref %outputs "out") | |
3628 | "/lib/libnfsidmap")))) | |
3629 | (home-page | |
3630 | "http://www.citi.umich.edu/projects/nfsv4/crossrealm/libnfsidmap_config.html") | |
3631 | (synopsis | |
3632 | "NFSv4 support library for name/ID mapping") | |
3633 | (description "Libnfsidmap is a library holding mulitiple methods of | |
3634 | mapping names to ids and visa versa, mainly for NFSv4. It provides an | |
3635 | extensible array of mapping functions, currently consisting of two choices: | |
3636 | the default @code{nsswitch} and the experimental @code{umich_ldap}.") | |
3637 | (license (license:non-copyleft "file://COPYING" | |
3638 | "See COPYING in the distribution.")))) | |
035d3593 DC |
3639 | |
3640 | (define-public module-init-tools | |
3641 | (package | |
3642 | (name "module-init-tools") | |
3643 | (version "3.16") | |
3644 | (source (origin | |
3645 | (method url-fetch) | |
3646 | (uri (string-append | |
3647 | "mirror://kernel.org/linux/utils/kernel/module-init-tools/" | |
3648 | "module-init-tools-" version ".tar.bz2")) | |
3649 | (sha256 | |
3650 | (base32 | |
3651 | "0jxnz9ahfic79rp93l5wxcbgh4pkv85mwnjlbv1gz3jawv5cvwp1")) | |
3652 | (patches (search-patches "module-init-tools-moduledir.patch")))) | |
3653 | (build-system gnu-build-system) | |
3654 | (arguments | |
3655 | ;; FIXME: The upstream tarball lacks man pages, and building them would | |
3656 | ;; require DocBook & co. We used to use Gentoo's pre-built man pages, | |
3657 | ;; but they vanished. In the meantime, fake it. | |
dc1d3cde KK |
3658 | '(#:phases |
3659 | (modify-phases %standard-phases | |
3660 | (add-before 'configure 'fake-docbook | |
3661 | (lambda _ | |
3662 | (substitute* "Makefile.in" | |
3663 | (("^DOCBOOKTOMAN.*$") | |
3664 | "DOCBOOKTOMAN = true\n")) | |
3665 | #t))))) | |
035d3593 DC |
3666 | (home-page "http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/") |
3667 | (synopsis "Tools for loading and managing Linux kernel modules") | |
3668 | (description | |
3669 | "Tools for loading and managing Linux kernel modules, such as `modprobe', | |
3670 | `insmod', `lsmod', and more.") | |
3671 | (license license:gpl2+))) | |
dd65f3b7 TGR |
3672 | |
3673 | (define-public mcelog | |
3674 | (package | |
3675 | (name "mcelog") | |
e03e9c86 | 3676 | (version "154") |
dd65f3b7 TGR |
3677 | (source (origin |
3678 | (method url-fetch) | |
3679 | (uri (string-append "https://git.kernel.org/cgit/utils/cpu/mce/" | |
3680 | "mcelog.git/snapshot/v" version ".tar.gz")) | |
3681 | (sha256 | |
3682 | (base32 | |
e03e9c86 | 3683 | "07628cr05f50m7lsvw26wxlnb7qcl0x6rymdpp5spqzhz91l58p3")) |
dd65f3b7 TGR |
3684 | (file-name (string-append name "-" version ".tar.gz")) |
3685 | (modules '((guix build utils))) | |
3686 | (snippet | |
3687 | ;; The snapshots lack a .git directory, breaking ‘git describe’. | |
3688 | `(substitute* "Makefile" | |
3689 | (("\"unknown\"") (string-append "\"v" ,version "\"")))))) | |
3690 | (build-system gnu-build-system) | |
3691 | (arguments | |
3692 | `(#:phases (modify-phases %standard-phases | |
3693 | (delete 'configure)) ; no configure script | |
3694 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
3695 | (list "CC=gcc" | |
3696 | (string-append "prefix=" out) | |
3697 | (string-append "DOCDIR=" out "/share/doc/mcelog") | |
3698 | "etcprefix=$(DOCDIR)/examples")) | |
3699 | ;; The tests will only run as root on certain supported CPU models. | |
3700 | #:tests? #f)) | |
3701 | (supported-systems (list "i686-linux" "x86_64-linux")) | |
71d60b96 | 3702 | (home-page "https://mcelog.org/") |
dd65f3b7 TGR |
3703 | (synopsis "Machine check monitor for x86 Linux systems") |
3704 | (description | |
3705 | "The mcelog daemon is required by the Linux kernel to log memory, I/O, CPU, | |
3706 | and other hardware errors on x86 systems. It can also perform user-defined | |
3707 | tasks, such as bringing bad pages off-line, when configurable error thresholds | |
3708 | are exceeded.") | |
3709 | (license license:gpl2))) | |
0c60cc53 DM |
3710 | |
3711 | (define-public mtd-utils | |
3712 | (package | |
3713 | (name "mtd-utils") | |
3714 | (version "1.5.2") | |
3715 | (source (origin | |
3716 | (method url-fetch) | |
3717 | (uri (string-append | |
3718 | "ftp://ftp.infradead.org/pub/mtd-utils/" | |
3719 | "mtd-utils-" version ".tar.bz2")) | |
3720 | (sha256 | |
3721 | (base32 | |
3722 | "007lhsd8yb34l899r4m37whhzdw815cz4fnjbpnblfha524p7dax")))) | |
3723 | (inputs | |
3724 | `(("acl" ,acl) | |
3725 | ("libuuid" ,util-linux) | |
3726 | ("lzo", lzo) | |
3727 | ("zlib" ,zlib))) | |
3728 | (build-system gnu-build-system) | |
3729 | (arguments | |
3730 | `(#:test-target "tests" | |
3731 | #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
3732 | #:phases (modify-phases %standard-phases | |
3733 | (delete 'configure)))) | |
3734 | (synopsis "MTD Flash Storage Utilities") | |
3735 | (description "This package provides utilities for testing, partitioning, etc | |
3736 | of flash storage.") | |
3737 | (home-page "http://www.linux-mtd.infradead.org/") | |
3738 | (license | |
3739 | (list license:gpl2 ; Almost everything is gpl2 or gpl2+ | |
3740 | license:mpl1.1 ; All ftl* files | |
3741 | license:expat)))) ; libiniparser | |
def6213f LF |
3742 | |
3743 | (define-public libseccomp | |
3744 | (package | |
3745 | (name "libseccomp") | |
488a3734 | 3746 | (version "2.3.2") |
def6213f LF |
3747 | (source (origin |
3748 | (method url-fetch) | |
3749 | (uri (string-append "https://github.com/seccomp/libseccomp/" | |
3750 | "releases/download/v" version | |
3751 | "/libseccomp-" version ".tar.gz")) | |
3752 | (sha256 | |
3753 | (base32 | |
488a3734 | 3754 | "18dwfxzsw3agiy2dxbflrkhmjgvlji0wwkk636nabh2ng41qrp1x")))) |
def6213f LF |
3755 | (build-system gnu-build-system) |
3756 | (native-inputs | |
3757 | `(("which" ,which))) | |
3758 | (synopsis "Interface to Linux's seccomp syscall filtering mechanism") | |
3759 | (description "The libseccomp library provides an easy to use, platform | |
3760 | independent, interface to the Linux Kernel's syscall filtering mechanism. The | |
3761 | libseccomp API is designed to abstract away the underlying BPF based syscall | |
3762 | filter language and present a more conventional function-call based filtering | |
3763 | interface that should be familiar to, and easily adopted by, application | |
3764 | developers.") | |
3765 | (home-page "https://github.com/seccomp/libseccomp") | |
3766 | (license license:lgpl2.1))) | |
58c4f11e TGR |
3767 | |
3768 | (define-public radeontop | |
3769 | (package | |
3770 | (name "radeontop") | |
a7c61512 | 3771 | (version "1.0") |
58c4f11e TGR |
3772 | (home-page "https://github.com/clbr/radeontop/") |
3773 | (source (origin | |
3774 | (method url-fetch) | |
a7c61512 | 3775 | (uri (string-append home-page "archive/v" version ".tar.gz")) |
58c4f11e TGR |
3776 | (file-name (string-append name "-" version ".tar.gz")) |
3777 | (sha256 | |
3778 | (base32 | |
a7c61512 | 3779 | "1z38nibirqxrbsfyhfcrnzlcw16cqjp4ds6qnjfxalwayf9fm5x9")))) |
58c4f11e TGR |
3780 | (build-system gnu-build-system) |
3781 | (arguments | |
3782 | `(#:phases (modify-phases %standard-phases | |
3783 | ;; getver.sh uses ‘git --describe’, isn't worth an extra git | |
3784 | ;; dependency, and doesn't even work on release(!) tarballs. | |
3785 | (add-after 'unpack 'report-correct-version | |
3786 | (lambda _ (substitute* "getver.sh" | |
3787 | (("ver=unknown") | |
3788 | (string-append "ver=" ,version))))) | |
3789 | (delete 'configure)) ; no configure script | |
3790 | #:make-flags (list "CC=gcc" | |
3791 | (string-append "PREFIX=" %output)) | |
3792 | #:tests? #f)) ; no tests | |
3793 | (native-inputs | |
7c90d0f4 | 3794 | `(("gettext" ,gettext-minimal) |
58c4f11e TGR |
3795 | ("pkg-config" ,pkg-config))) |
3796 | (inputs | |
3797 | `(("libdrm" ,libdrm) | |
3798 | ("libpciaccess" ,libpciaccess) | |
a7c61512 | 3799 | ("libxcb" ,libxcb) |
58c4f11e TGR |
3800 | ("ncurses" ,ncurses))) |
3801 | (synopsis "Usage monitor for AMD Radeon graphics") | |
3802 | (description "RadeonTop monitors resource consumption on supported AMD | |
3803 | Radeon Graphics Processing Units (GPUs), either in real time as bar graphs on | |
3804 | a terminal or saved to a file for further processing. It measures both the | |
3805 | activity of the GPU as a whole, which is also accurate during OpenCL | |
3806 | computations, as well as separate component statistics that are only meaningful | |
3807 | under OpenGL graphics workloads.") | |
3808 | (license license:gpl3))) | |
0d74462a MB |
3809 | |
3810 | (define-public efivar | |
3811 | (package | |
3812 | (name "efivar") | |
3813 | (version "30") | |
3814 | (source (origin | |
3815 | (method url-fetch) | |
3816 | (uri (string-append "https://github.com/rhinstaller/" name | |
3817 | "/releases/download/" version "/" name | |
3818 | "-" version ".tar.bz2")) | |
3819 | (sha256 | |
3820 | (base32 | |
3821 | "12qjnm44yi55ffqxjpgrxy82s89yjziy84w2rfjjknsd8flj0mqz")))) | |
3822 | (build-system gnu-build-system) | |
3823 | (arguments | |
3824 | `(;; Tests require a UEFI system and is not detected in the chroot. | |
3825 | #:tests? #f | |
3826 | #:make-flags (list (string-append "prefix=" %output) | |
3827 | (string-append "libdir=" %output "/lib") | |
3828 | (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")) | |
3829 | #:phases | |
3830 | (modify-phases %standard-phases | |
3831 | (delete 'configure)))) | |
3832 | (native-inputs | |
3833 | `(("pkg-config" ,pkg-config))) | |
3834 | (inputs | |
3835 | `(("popt" ,popt))) | |
3836 | (home-page "https://github.com/rhinstaller/efivar") | |
3837 | (synopsis "Tool and library to manipulate EFI variables") | |
3838 | (description "This package provides a library and a command line | |
3839 | interface to the variable facility of UEFI boot firmware.") | |
3840 | (license license:lgpl2.1+))) | |
1581406e MB |
3841 | |
3842 | (define-public efibootmgr | |
3843 | (package | |
3844 | (name "efibootmgr") | |
3845 | (version "14") | |
3846 | (source (origin | |
3847 | (method url-fetch) | |
3848 | (uri (string-append "https://github.com/rhinstaller/" name | |
3849 | "/releases/download/" version "/" name | |
3850 | "-" version ".tar.bz2")) | |
3851 | (sha256 | |
3852 | (base32 | |
3853 | "1n3sydvpr6yl040hhf460k7mrxby7laqd9dqs6pq0js1hijc2zip")))) | |
3854 | (build-system gnu-build-system) | |
3855 | (arguments | |
3856 | `(#:tests? #f ; No tests. | |
3857 | #:make-flags (list (string-append "prefix=" %output) | |
3858 | (string-append "libdir=" %output "/lib") | |
3859 | ;; Override CFLAGS to add efivar include directory. | |
3860 | (string-append "CFLAGS=-O2 -g -flto -I" | |
3861 | (assoc-ref %build-inputs "efivar") | |
3862 | "/include/efivar")) | |
3863 | #:phases | |
3864 | (modify-phases %standard-phases | |
3865 | (add-after 'unpack 'branding | |
3866 | ;; Replace default loader path with something more familiar. | |
3867 | (lambda _ | |
3868 | (substitute* "src/efibootmgr.c" | |
3869 | (("EFI\\\\\\\\redhat") ; Matches 'EFI\\redhat'. | |
3870 | "EFI\\\\gnu")) | |
3871 | #t)) | |
3872 | (delete 'configure)))) | |
3873 | (native-inputs | |
3874 | `(("pkg-config" ,pkg-config))) | |
3875 | (inputs | |
3876 | `(("efivar" ,efivar) | |
3877 | ("popt" ,popt))) | |
3878 | (home-page "https://github.com/rhinstaller/efibootmgr") | |
3879 | (synopsis "Modify the Extensible Firmware Interface (EFI) boot manager") | |
3880 | (description | |
3881 | "@code{efibootmgr} is a user-space application to modify the Intel | |
3882 | Extensible Firmware Interface (EFI) Boot Manager. This application can | |
3883 | create and destroy boot entries, change the boot order, change the next | |
3884 | running boot option, and more.") | |
3885 | (license license:gpl2+))) | |
6d3e08d4 LF |
3886 | |
3887 | (define-public sysstat | |
3888 | (package | |
3889 | (name "sysstat") | |
70443013 | 3890 | (version "11.4.3") |
6d3e08d4 LF |
3891 | (source (origin |
3892 | (method url-fetch) | |
3893 | (uri (string-append "http://perso.orange.fr/sebastien.godard/" | |
3894 | "sysstat-" version ".tar.xz")) | |
3895 | (sha256 | |
3896 | (base32 | |
70443013 | 3897 | "1ryf9myjzpa2279i3rvsh6fr5psm6qvr5r9kbm1sxyspapxcms82")))) |
6d3e08d4 LF |
3898 | (build-system gnu-build-system) |
3899 | (arguments | |
3900 | `(#:tests? #f ; No test suite. | |
3901 | ;; Without this flag, it tries to install the man pages with group 'root' | |
3902 | ;; and fails because /etc/passwd lacks an entry for the root user. | |
3903 | #:configure-flags | |
3904 | (list "--disable-file-attr" | |
3905 | (string-append "conf_dir=" (assoc-ref %outputs "out") "/etc")) | |
3906 | #:phases | |
3907 | (modify-phases %standard-phases | |
3908 | ;; The build process tries to create '/var/lib/sa', so we skip that | |
3909 | ;; instruction. | |
3910 | (add-after 'build 'skip-touching-var | |
3911 | (lambda _ | |
3912 | (substitute* "Makefile" | |
3913 | (("mkdir -p \\$\\(DESTDIR\\)\\$\\(SA_DIR\\)") | |
3914 | "")) | |
3915 | #t))))) | |
3916 | (home-page "http://sebastien.godard.pagesperso-orange.fr/") | |
3917 | (synopsis "Performance monitoring tools for Linux") | |
3918 | (description "The sysstat utilities are a collection of performance | |
3919 | monitoring tools for Linux. These include @code{mpstat}, @code{iostat}, | |
3920 | @code{tapestat}, @code{cifsiostat}, @code{pidstat}, @code{sar}, @code{sadc}, | |
3921 | @code{sadf} and @code{sa}.") | |
3922 | (license license:gpl2+))) | |
01be4f93 JMSG |
3923 | |
3924 | (define-public light | |
3925 | (package | |
3926 | (name "light") | |
3927 | (version "1.0") | |
3928 | (source (origin | |
3929 | (method url-fetch) | |
3930 | (uri (string-append "https://github.com/haikarainen/" name | |
3931 | "/archive/v" version ".tar.gz")) | |
3932 | (sha256 | |
3933 | (base32 | |
3934 | "0r5gn6c0jcxknzybl6059dplxv46dpahchqq4gymrs7z8bp0hilp")) | |
3935 | (file-name (string-append name "-" version ".tar.gz")))) | |
3936 | (build-system gnu-build-system) | |
3937 | (arguments | |
3938 | '(#:tests? #f ; no tests | |
3939 | #:make-flags (list "CC=gcc" | |
3940 | (string-append "PREFIX=" %output)) | |
3941 | #:phases | |
3942 | (modify-phases %standard-phases | |
3943 | (delete 'configure) | |
3944 | (add-after 'unpack 'patch-makefile | |
3945 | (lambda _ | |
3946 | (substitute* "Makefile" (("chown") "#"))))))) | |
3947 | (native-inputs | |
3948 | `(("help2man" ,help2man))) | |
3949 | (home-page "https://haikarainen.github.io/light") | |
3950 | (synopsis "GNU/Linux application to control backlights") | |
3951 | (description | |
3952 | "Light is a program to send commands to screen backlight controllers | |
3953 | under GNU/Linux. Features include: | |
3954 | ||
3955 | @itemize | |
3956 | @item It does not rely on X. | |
3957 | @item Light can automatically figure out the best controller to use, making | |
3958 | full use of underlying hardware. | |
3959 | @item It is possible to set a minimum brightness value, as some controllers | |
3960 | set the screen to be pitch black at a vaĺue of 0 (or higher). | |
3961 | @end itemize | |
3962 | ||
3963 | Light is the successor of lightscript.") | |
3964 | (license license:gpl3+))) | |
189d8422 | 3965 | |
c7adafa7 MO |
3966 | (define-public tlp |
3967 | (package | |
3968 | (name "tlp") | |
c48fa0ad | 3969 | (version "1.0") |
c7adafa7 MO |
3970 | (source (origin |
3971 | (method url-fetch) | |
3972 | (uri (string-append | |
3973 | "https://github.com/linrunner/" | |
3974 | (string-upcase name) | |
3975 | "/archive/" version ".tar.gz")) | |
3976 | (file-name (string-append name "-" version ".tar.gz")) | |
3977 | (sha256 | |
3978 | (base32 | |
c48fa0ad | 3979 | "1v3qpj9kp4rxwqapayd0i9419wwv4bikyrzjvqn0r9xkgnr1f9v4")))) |
c7adafa7 MO |
3980 | (inputs `(("bash" ,bash) |
3981 | ("dbus" ,dbus) | |
3982 | ("ethtool" ,ethtool) | |
3983 | ("eudev" ,eudev) | |
3984 | ("grep" ,grep) | |
3985 | ("hdparm" ,hdparm) | |
3986 | ("inetutils" ,inetutils) | |
3987 | ("iw" ,iw) | |
3988 | ("kmod" ,kmod) | |
3989 | ("pciutils" ,pciutils) | |
3990 | ("perl" ,perl) | |
3991 | ("rfkill" ,rfkill) | |
3992 | ("sed" ,sed) | |
3993 | ("usbutils" ,usbutils) | |
3994 | ("util-linux" ,util-linux) | |
3995 | ("wireless-tools" ,wireless-tools))) | |
3996 | (build-system gnu-build-system) | |
3997 | (arguments | |
3998 | `(#:phases | |
3999 | (modify-phases %standard-phases | |
cef3f146 | 4000 | (delete 'configure) ; no configure script |
c7adafa7 MO |
4001 | (add-before 'build 'setenv |
4002 | (lambda* (#:key outputs #:allow-other-keys) | |
4003 | (let ((out (assoc-ref outputs "out"))) | |
4004 | (setenv "TLP_WITH_SYSTEMD" "0") | |
4005 | (setenv "TLP_NO_INIT" "1") | |
4006 | (setenv "TLP_NO_PMUTILS" "1") | |
4007 | (setenv "TLP_SBIN" (string-append out "/bin")) | |
4008 | (setenv "TLP_BIN" (string-append out "/bin")) | |
4009 | (setenv "TLP_TLIB" (string-append out "/share/tlp-pm")) | |
4010 | (setenv "TLP_ULIB" (string-append out "/lib/udev")) | |
32e75b48 | 4011 | (setenv "TLP_CONF" "/etc/tlp") |
c7adafa7 MO |
4012 | (setenv "TLP_SHCPL" |
4013 | (string-append out "/share/bash-completion/completions")) | |
4014 | (setenv "TLP_MAN" (string-append out "/share/man"))))) | |
cef3f146 TGR |
4015 | (delete 'check) ; no tests |
4016 | (add-before 'install 'fix-installation | |
4017 | (lambda _ | |
4018 | ;; Stop the Makefile from trying to create system directories. | |
4019 | (substitute* "Makefile" (("\\[ -f \\$\\(_CONF\\) \\]") "#")))) | |
c7adafa7 MO |
4020 | (replace 'install |
4021 | (lambda _ | |
cef3f146 | 4022 | (zero? (system* "make" "install-tlp" "install-man")))) |
c7adafa7 MO |
4023 | (add-after 'install 'wrap |
4024 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
4025 | (let* ((bin (string-append (assoc-ref outputs "out") "/bin")) | |
4026 | (bin-files (find-files bin ".*"))) | |
4027 | (define (bin-directory input-name) | |
4028 | (string-append (assoc-ref inputs input-name) "/bin")) | |
4029 | (define (sbin-directory input-name) | |
4030 | (string-append (assoc-ref inputs input-name) "/sbin")) | |
4031 | (for-each (lambda (program) | |
4032 | (wrap-program program | |
4033 | `("PATH" ":" prefix | |
4034 | ,(append | |
4035 | (map bin-directory '("bash" | |
4036 | "coreutils" | |
4037 | "dbus" | |
4038 | "eudev" | |
4039 | "grep" | |
4040 | "inetutils" | |
4041 | "kmod" | |
4042 | "perl" | |
4043 | "sed" | |
4044 | "usbutils" | |
4045 | "util-linux")) | |
4046 | (map sbin-directory '("ethtool" | |
4047 | "hdparm" | |
4048 | "iw" | |
4049 | "pciutils" | |
4050 | "rfkill" | |
4051 | "wireless-tools")))))) | |
4052 | bin-files))))))) | |
4053 | (home-page "http://linrunner.de/en/tlp/tlp.html") | |
4054 | (synopsis "Power management tool for Linux") | |
4055 | (description "TLP is a power management tool for Linux. It comes with | |
4056 | a default configuration already optimized for battery life. Nevertheless, | |
4057 | TLP is customizable to fulfil system requirements. TLP settings are applied | |
4058 | every time the power supply source is changed.") | |
4059 | ||
4060 | ;; 'COPYING' is a custom version that says that one file is GPLv3+ and the | |
4061 | ;; rest is GPLv2+. | |
4062 | (license (list license:gpl2+ license:gpl3+)))) | |
4063 | ||
189d8422 BG |
4064 | (define-public lshw |
4065 | (package | |
4066 | (name "lshw") | |
4067 | (version "B.02.18") | |
4068 | (source (origin | |
4069 | (method url-fetch) | |
4070 | (uri (string-append "https://www.ezix.org/software/" | |
4071 | "files/lshw-" version | |
4072 | ".tar.gz")) | |
4073 | (sha256 | |
4074 | (base32 | |
4075 | "0brwra4jld0d53d7jsgca415ljglmmx1l2iazpj4ndilr48yy8mf")))) | |
4076 | (build-system gnu-build-system) | |
4077 | (arguments | |
4078 | `(#:phases (modify-phases %standard-phases (delete 'configure)) | |
4079 | #:tests? #f ; no tests | |
4080 | #:make-flags | |
4081 | (list (string-append "PREFIX=" (assoc-ref %outputs "out"))))) | |
4082 | (synopsis "List hardware information") | |
4083 | (description | |
4084 | "@command{lshw} (Hardware Lister) is a small tool to provide | |
4085 | detailed information on the hardware configuration of the machine. | |
4086 | It can report exact memory configuration, firmware version, mainboard | |
4087 | configuration, CPU version and speed, cache configuration, bus speed, | |
4088 | and more on DMI-capable x86 or EFI (IA-64) systems and on some PowerPC | |
4089 | machines (PowerMac G4 is known to work).") | |
4090 | (home-page "https://www.ezix.org/project/wiki/HardwareLiSter") | |
4091 | (license license:gpl2+))) | |
2f4a58b5 LF |
4092 | |
4093 | (define-public libmnl | |
4094 | (package | |
4095 | (name "libmnl") | |
4096 | (version "1.0.4") | |
4097 | (source | |
4098 | (origin | |
4099 | (method url-fetch) | |
f11ae44f | 4100 | (uri (string-append "mirror://netfilter.org/libmnl/" |
2f4a58b5 LF |
4101 | "libmnl-" version ".tar.bz2")) |
4102 | (sha256 | |
4103 | (base32 | |
4104 | "108zampspaalv44zn0ar9h386dlfixpd149bnxa5hsi8kxlqj7qp")))) | |
4105 | (build-system gnu-build-system) | |
4106 | (home-page "https://www.netfilter.org/projects/libmnl/") | |
4107 | (synopsis "Netlink utility library") | |
4108 | (description "Libmnl is a minimalistic user-space library oriented to | |
4109 | Netlink developers. There are a lot of common tasks in parsing, validating, | |
4110 | constructing of both the Netlink header and TLVs that are repetitive and easy to | |
4111 | get wrong. This library aims to provide simple helpers that allows you to | |
4112 | re-use code and to avoid re-inventing the wheel.") | |
4113 | (license license:lgpl2.1+))) | |
b754c612 LF |
4114 | |
4115 | (define-public libnftnl | |
4116 | (package | |
4117 | (name "libnftnl") | |
4118 | (version "1.0.7") | |
4119 | (source | |
4120 | (origin | |
4121 | (method url-fetch) | |
f11ae44f | 4122 | (uri (string-append "mirror://netfilter.org/libnftnl/" |
b754c612 LF |
4123 | "libnftnl-" version ".tar.bz2")) |
4124 | (sha256 | |
4125 | (base32 | |
4126 | "10irjrylcfkbp11617yr19vpfhgl54w0kw02jhj0i1abqv5nxdlv")))) | |
4127 | (build-system gnu-build-system) | |
4128 | (native-inputs | |
4129 | `(("pkg-config" ,pkg-config))) | |
4130 | (inputs | |
4131 | `(("libmnl" ,libmnl))) | |
4132 | (home-page "https://www.netfilter.org/projects/libnftnl/index.html") | |
4133 | (synopsis "Netlink programming interface to the Linux nf_tables subsystem") | |
4134 | (description "Libnftnl is a userspace library providing a low-level netlink | |
4135 | programming interface to the in-kernel nf_tables subsystem. The library | |
4136 | libnftnl has been previously known as libnftables. This library is currently | |
4137 | used by nftables.") | |
4138 | (license license:gpl2+))) | |
62b28c0e | 4139 | |
dfe93c9a RH |
4140 | (define-public nftables |
4141 | (package | |
4142 | (name "nftables") | |
4143 | (version "0.7") | |
4144 | (source | |
4145 | (origin | |
4146 | (method url-fetch) | |
4147 | (uri (string-append "http://www.nftables.org/projects/nftables" | |
4148 | "/files/nftables-" version ".tar.bz2")) | |
4149 | (sha256 | |
4150 | (base32 | |
4151 | "0hzdqigdx4i6jbpxbdyq4zy4p4waqn8l6vvz7685ikh1v0wr4qzy")))) | |
4152 | (build-system gnu-build-system) | |
4153 | (inputs `(("bison", bison) | |
4154 | ("flex", flex) | |
4155 | ("gmp", gmp) | |
4156 | ("libmnl", libmnl) | |
4157 | ("libnftnl", libnftnl) | |
4158 | ("readline", readline))) | |
4159 | (native-inputs `(("pkg-config", pkg-config))) | |
4160 | (home-page "http://www.nftables.org") | |
4161 | (synopsis "Userspace utility for Linux packet filtering") | |
4162 | (description "nftables is the project that aims to replace the existing | |
4163 | {ip,ip6,arp,eb}tables framework. Basically, this project provides a new packet | |
4164 | filtering framework, a new userspace utility and also a compatibility layer for | |
4165 | {ip,ip6}tables. nftables is built upon the building blocks of the Netfilter | |
4166 | infrastructure such as the existing hooks, the connection tracking system, the | |
4167 | userspace queueing component and the logging subsystem.") | |
4168 | (license license:gpl2))) | |
4169 | ||
62b28c0e LC |
4170 | (define-public proot |
4171 | (package | |
4172 | (name "proot") | |
4173 | (version "5.1.0") | |
4174 | (home-page "https://github.com/proot-me/PRoot") | |
4175 | (source (origin | |
4176 | (method url-fetch) | |
4177 | (uri (string-append home-page "/archive/v" version ".tar.gz")) | |
4178 | (file-name (string-append name "-" version ".tar.gz")) | |
4179 | (sha256 | |
4180 | (base32 | |
4181 | "11h30i83vdhc3khlj6hrh3a21sbmmz8nhfv09vkf6b9bcs1biz2h")) | |
4182 | (patches (search-patches "proot-test-fhs.patch")))) | |
4183 | (build-system gnu-build-system) | |
4184 | (arguments | |
4185 | '(#:make-flags '("-C" "src") | |
4186 | ||
4187 | #:phases (modify-phases %standard-phases | |
4188 | (delete 'configure) | |
4189 | (add-before 'build 'set-shell-file-name | |
4190 | (lambda* (#:key inputs #:allow-other-keys) | |
4191 | (substitute* (find-files "src" "\\.[ch]$") | |
4192 | (("\"/bin/sh\"") | |
4193 | (string-append "\"" | |
4194 | (assoc-ref inputs "bash") | |
4195 | "/bin/sh\""))) | |
4196 | #t)) | |
4197 | (add-before 'check 'fix-fhs-assumptions-in-tests | |
4198 | (lambda _ | |
4199 | (substitute* "tests/test-c6b77b77.mk" | |
4200 | (("/bin/bash") (which "bash")) | |
4201 | (("/usr/bin/test") (which "test"))) | |
4202 | (substitute* '("tests/test-16573e73.c") | |
4203 | (("/bin/([a-z-]+)" _ program) | |
4204 | (which program))) | |
4205 | ||
4206 | (substitute* (find-files "tests" "\\.sh$") | |
4207 | ;; Some of the tests try to "bind-mount" /bin/true. | |
4208 | (("-b /bin/true:") | |
4209 | (string-append "-b " (which "true") ":")) | |
4210 | ;; Likewise for /bin. | |
4211 | (("-b /bin:") "-b /gnu:") | |
4212 | ;; Others try to run /bin/sh. | |
4213 | (("/bin/sh") (which "sh")) | |
4214 | ;; Others assume /etc/fstab exists. | |
4215 | (("/etc/fstab") "/etc/passwd")) | |
4216 | ||
4217 | (substitute* "tests/GNUmakefile" | |
4218 | (("-b /bin:") "-b /gnu:")) | |
4219 | ||
4220 | ;; XXX: This test fails in an obscure corner case, just | |
4221 | ;; skip it. | |
4222 | (delete-file "tests/test-kkkkkkkk.c") | |
4223 | ||
4224 | #t)) | |
4225 | (replace 'check | |
4226 | (lambda _ | |
4227 | (let ((n (parallel-job-count))) | |
4228 | ;; For some reason we get lots of segfaults with | |
4229 | ;; seccomp support (x86_64, Linux-libre 4.11.0). | |
4230 | (setenv "PROOT_NO_SECCOMP" "1") | |
4231 | ||
4232 | ;; Most of the tests expect "/bin" to be in $PATH so | |
4233 | ;; they can run things that live in $ROOTFS/bin. | |
4234 | (setenv "PATH" | |
4235 | (string-append (getenv "PATH") ":/bin")) | |
4236 | ||
4237 | (zero? (system* "make" "check" "-C" "tests" | |
4238 | ;;"V=1" | |
4239 | "-j" (number->string n)))))) | |
4240 | (replace 'install | |
4241 | (lambda* (#:key outputs #:allow-other-keys) | |
4242 | ;; The 'install' rule does nearly nothing. | |
4243 | (let ((out (assoc-ref outputs "out"))) | |
4244 | (and (zero? | |
4245 | ;; TODO: 'make install-care' (does not even | |
4246 | ;; build currently.) | |
4247 | (system* "make" "-C" "src" "install" | |
4248 | (string-append "PREFIX=" out))) | |
02084762 LC |
4249 | (let ((man1 (string-append out |
4250 | "/share/man/man1"))) | |
4251 | (mkdir-p man1) | |
4252 | (copy-file "doc/proot/man.1" | |
4253 | (string-append man1 "/proot.1")) | |
62b28c0e LC |
4254 | #t)))))))) |
4255 | (native-inputs `(("which" ,which) | |
4256 | ||
4257 | ;; For 'mcookie', used by some of the tests. | |
4258 | ("util-linux" ,util-linux))) | |
4259 | (inputs `(("talloc" ,talloc))) | |
4260 | (synopsis "Unprivileged chroot, bind mount, and binfmt_misc") | |
4261 | (description | |
4262 | "PRoot is a user-space implementation of @code{chroot}, @code{mount --bind}, | |
4263 | and @code{binfmt_misc}. This means that users don't need any privileges or | |
4264 | setup to do things like using an arbitrary directory as the new root | |
4265 | filesystem, making files accessible somewhere else in the file system | |
4266 | hierarchy, or executing programs built for another CPU architecture | |
4267 | transparently through QEMU user-mode. Also, developers can use PRoot as a | |
4268 | generic process instrumentation engine thanks to its extension mechanism. | |
4269 | Technically PRoot relies on @code{ptrace}, an unprivileged system-call | |
4270 | available in the kernel Linux.") | |
4271 | (license license:gpl2+))) | |
b9048a14 LC |
4272 | |
4273 | (define-public proot-static | |
4274 | (package | |
4275 | (inherit proot) | |
4276 | (name "proot-static") | |
4277 | (synopsis | |
4278 | "Unprivileged chroot, bind mount, and binfmt_misc (statically linked)") | |
4279 | (inputs `(("talloc" ,talloc/static))) | |
4280 | (arguments | |
4281 | (substitute-keyword-arguments (package-arguments proot) | |
4282 | ((#:make-flags flags) | |
4283 | `(cons "LDFLAGS = -ltalloc -static -static-libgcc" ,flags)) | |
4284 | ((#:phases phases) | |
4285 | `(modify-phases ,phases | |
4286 | (add-after 'strip 'remove-store-references | |
4287 | (lambda* (#:key outputs #:allow-other-keys) | |
4288 | (let* ((out (assoc-ref outputs "out"))) | |
4289 | (with-directory-excursion out | |
4290 | (remove-store-references "bin/proot") | |
4291 | #t)))))) | |
4292 | ((#:allowed-references _ '("out")) | |
4293 | '("out")))))) | |
1113386b CL |
4294 | |
4295 | (define-public cpuid | |
4296 | (package | |
4297 | (name "cpuid") | |
4298 | (version "20170122") | |
4299 | (source (origin | |
4300 | (method url-fetch) | |
4301 | (uri (string-append "http://www.etallen.com/cpuid/cpuid-" | |
4302 | version ".src.tar.gz")) | |
4303 | (sha256 | |
4304 | (base32 | |
4305 | "0ra8ph9m1dckqaikfnbsh408fp2w9k49fkl423fl2hvhwsm14xk6")))) | |
4306 | (build-system gnu-build-system) | |
4307 | (arguments | |
4308 | '(#:make-flags '("CC=gcc") | |
4309 | #:tests? #f ; no tests | |
4310 | #:phases (modify-phases %standard-phases | |
4311 | (delete 'configure) | |
4312 | (add-before 'install 'fix-makefile | |
4313 | (lambda* (#:key outputs #:allow-other-keys) | |
4314 | (substitute* "Makefile" | |
4315 | (("\\$\\(BUILDROOT\\)/usr") (assoc-ref outputs "out"))) | |
4316 | ;; Make the compressed manpages writable so that the | |
4317 | ;; reset-gzip-timestamps phase does not error out. | |
4318 | (substitute* "Makefile" | |
4319 | (("-m 444") "-m 644")) | |
4320 | #t))))) | |
4321 | (inputs `(("perl" ,perl))) | |
4322 | (supported-systems '("i686-linux" "x86_64-linux")) | |
4323 | (home-page "http://www.etallen.com/cpuid.html") | |
4324 | (synopsis "Linux tool to dump x86 CPUID information about the CPU(s)") | |
4325 | (description "cpuid dumps detailed information about the CPU(s) gathered | |
4326 | from the CPUID instruction, and also determines the exact model of CPU(s). It | |
4327 | supports Intel, AMD, and VIA CPUs, as well as older Transmeta, Cyrix, UMC, | |
4328 | NexGen, Rise, and SiS CPUs.") | |
4329 | (license license:gpl2+))) | |
afc9d8ec LF |
4330 | |
4331 | (define-public jmtpfs | |
4332 | (package | |
4333 | (name "jmtpfs") | |
4334 | (version "0.5") | |
4335 | (source | |
4336 | (origin | |
4337 | (method url-fetch) | |
4338 | (uri (string-append "https://github.com/JasonFerrara/jmtpfs/archive/v" | |
4339 | version ".tar.gz")) | |
4340 | (file-name (string-append name "-" version ".tar.gz")) | |
4341 | (sha256 | |
4342 | (base32 | |
4343 | "10v8d7mmx8b8123x5f9y9zaaa428ms6wkngwn2ra71n5a53wrjn0")))) | |
4344 | (build-system gnu-build-system) | |
4345 | (inputs | |
4346 | `(("file" ,file) | |
4347 | ("fuse" ,fuse) | |
4348 | ("libmtp" ,libmtp))) | |
4349 | (native-inputs | |
4350 | `(("pkg-config" ,pkg-config))) | |
4351 | (home-page "https://github.com/JasonFerrara/jmtpfs") | |
4352 | (synopsis "Use a FUSE filesystem to access data over MTP") | |
4353 | (description "jmtpfs uses FUSE (filesystem in userspace) to provide access | |
4354 | to data over the Media Transfer Protocol (MTP). Unprivileged users can mount | |
4355 | the MTP device as a filesystem.") | |
4356 | (license license:gpl3))) | |
a73e7dd3 DL |
4357 | |
4358 | (define-public procenv | |
4359 | (package | |
4360 | (name "procenv") | |
4361 | (version "0.49") | |
4362 | (source | |
4363 | (origin | |
4364 | (method url-fetch) | |
4365 | (uri (string-append "https://github.com/jamesodhunt/procenv/archive/" | |
4366 | version ".tar.gz")) | |
4367 | (file-name (string-append name "-" version ".tar.gz")) | |
4368 | (sha256 | |
4369 | (base32 "0brzf6185hb76imw107cl21c8lzwiywkxi3jknihrk86bvvicd0d")))) | |
4370 | (build-system gnu-build-system) | |
4371 | (arguments `(#:configure-flags '("--disable-silent-rules"))) | |
4372 | (inputs `(("expat" ,expat) ("libcap" ,libcap) ("check" ,check) | |
4373 | ("groff" ,groff) ; for tests | |
4374 | ("libselinux" ,libselinux))) | |
4375 | (synopsis "Utility to show process environment") | |
4376 | (description "Procenv is a command-line tool that displays as much detail about | |
4377 | itself and its environment as possible. It can be used as a test | |
4378 | tool, to understand the type of environment a process runs in, and for | |
4379 | comparing system environments.") | |
4380 | (home-page "http://github.com/jamesodhunt/procenv/") | |
4381 | (license license:gpl3+))) | |
ae5947b0 DL |
4382 | |
4383 | (define-public libfabric | |
4384 | (package | |
4385 | (name "libfabric") | |
4386 | (version "1.4.1") | |
4387 | (source | |
4388 | (origin | |
4389 | (method url-fetch) | |
4390 | (uri | |
4391 | (string-append "https://github.com/ofiwg/libfabric/releases/download/v" | |
4392 | version "/libfabric-" version ".tar.bz2")) | |
4393 | (sha256 | |
4394 | (base32 "19l2m1frna1l765z4j7wl8hp4rb9wrh0hy5496685hd183hmy5pv")))) | |
4395 | (build-system gnu-build-system) | |
4396 | (inputs `(("rdma-core" ,rdma-core) | |
7bc05ef0 | 4397 | ("psm" ,psm) |
ae5947b0 DL |
4398 | ("libnl" ,libnl))) |
4399 | (home-page "https://ofiwg.github.io/libfabric/") | |
4400 | (synopsis "Open Fabric Interfaces") | |
4401 | (description | |
4402 | "OpenFabrics Interfaces (OFI) is a framework focused on exporting fabric | |
4403 | communication services to applications. OFI is best described as a collection | |
4404 | of libraries and applications used to export fabric services. The key | |
4405 | components of OFI are: application interfaces, provider libraries, kernel | |
4406 | services, daemons, and test applications. | |
4407 | ||
4408 | Libfabric is a core component of OFI. It is the library that defines and | |
4409 | exports the user-space API of OFI, and is typically the only software that | |
4410 | applications deal with directly. It works in conjunction with provider | |
4411 | libraries, which are often integrated directly into libfabric.") | |
4412 | (license (list license:bsd-2 license:gpl2)))) ;dual | |
fd23d259 DL |
4413 | |
4414 | (define-public psm | |
4415 | (package | |
4416 | (name "psm") | |
4417 | (version "3.3.20170428") | |
4418 | (source | |
4419 | (origin | |
4420 | (method git-fetch) | |
4421 | (uri (git-reference (url "http://github.com/01org/psm") | |
4422 | (commit "604758e76dc31e68d1de736ccf5ddf16cb22355b"))) | |
4423 | (file-name (string-append "psm-" version ".tar.gz")) | |
4424 | (sha256 | |
4425 | (base32 "0nsb325dmhn5ia3d2cnksqr0gdvrrx2hmvlylfgvmaqdpq76zm85")) | |
4426 | (patches (search-patches | |
4427 | "psm-arch.patch" ; uname -p returns "unknown" on Debian 9 | |
4428 | "psm-ldflags.patch" ; build shared lib with LDFLAGS | |
4429 | "psm-repro.patch")))) ; reproducibility | |
4430 | (build-system gnu-build-system) | |
4431 | (inputs `(("libuuid" ,util-linux))) | |
4432 | (arguments | |
4433 | '(#:make-flags `("PSM_USE_SYS_UUID=1" "CC=gcc" "WERROR=" | |
4434 | ,(string-append "INSTALL_PREFIX=" %output) | |
4435 | ,(string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")) | |
4436 | #:tests? #f | |
4437 | #:phases (modify-phases %standard-phases | |
4438 | (delete 'configure) | |
4439 | (add-after 'unpack 'patch-/usr/include | |
4440 | (lambda _ | |
4441 | (substitute* "Makefile" | |
4442 | (("\\$\\{DESTDIR}/usr/include") | |
4443 | (string-append %output "/include"))) | |
4444 | (substitute* "Makefile" | |
4445 | (("/lib64") "/lib")) | |
4446 | #t))))) | |
4447 | (home-page "https://github.com/01org/psm") | |
4448 | (synopsis "Intel Performance Scaled Messaging (PSM) Libraries") | |
4449 | (description | |
4450 | "The PSM Messaging API, or PSM API, is Intel's low-level user-level | |
4451 | communications interface for the True Scale family of products. PSM users are | |
4452 | enabled with mechanisms necessary to implement higher level communications | |
4453 | interfaces in parallel environments.") | |
b516b780 EF |
4454 | ;; Only Intel-compatable processors are supported. |
4455 | (supported-systems '("i686-linux" "x86_64-linux")) | |
fd23d259 | 4456 | (license (list license:bsd-2 license:gpl2)))) ;dual |