gnu: Add exfat-utils.
[jackhill/guix/guix.git] / gnu / packages / linux.scm
... / ...
CommitLineData
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
4;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
5;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
6;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
7;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages linux)
25 #:use-module ((guix licenses)
26 #:hide (zlib))
27 #:use-module (gnu packages)
28 #:use-module (gnu packages compression)
29 #:use-module (gnu packages gcc)
30 #:use-module (gnu packages flex)
31 #:use-module (gnu packages bison)
32 #:use-module (gnu packages admin)
33 #:use-module (gnu packages gperf)
34 #:use-module (gnu packages libusb)
35 #:use-module (gnu packages ncurses)
36 #:use-module (gnu packages pciutils)
37 #:use-module (gnu packages databases)
38 #:use-module (gnu packages perl)
39 #:use-module (gnu packages pkg-config)
40 #:use-module (gnu packages python)
41 #:use-module (gnu packages slang)
42 #:use-module (gnu packages algebra)
43 #:use-module (gnu packages gettext)
44 #:use-module (gnu packages glib)
45 #:use-module (gnu packages pulseaudio)
46 #:use-module (gnu packages attr)
47 #:use-module (gnu packages xml)
48 #:use-module (gnu packages autotools)
49 #:use-module (gnu packages texinfo)
50 #:use-module (gnu packages check)
51 #:use-module (gnu packages maths)
52 #:use-module (gnu packages base)
53 #:use-module (gnu packages rrdtool)
54 #:use-module (gnu packages elf)
55 #:use-module (gnu packages gtk)
56 #:use-module (gnu packages docbook)
57 #:use-module (gnu packages asciidoc)
58 #:use-module (gnu packages readline)
59 #:use-module (gnu packages calendar)
60 #:use-module (guix packages)
61 #:use-module (guix download)
62 #:use-module (guix utils)
63 #:use-module (guix build-system gnu)
64 #:use-module (guix build-system cmake)
65 #:use-module (guix build-system python)
66 #:use-module (guix build-system trivial)
67 #:use-module (srfi srfi-26)
68 #:use-module (ice-9 match))
69
70(define-public (system->linux-architecture arch)
71 "Return the Linux architecture name for ARCH, a Guix system name such as
72\"x86_64-linux\"."
73 (let ((arch (car (string-split arch #\-))))
74 (cond ((string=? arch "i686") "i386")
75 ((string-prefix? "mips" arch) "mips")
76 ((string-prefix? "arm" arch) "arm")
77 (else arch))))
78
79(define (linux-libre-urls version)
80 "Return a list of URLs for Linux-Libre VERSION."
81 (list (string-append
82 "http://linux-libre.fsfla.org/pub/linux-libre/releases/"
83 version "-gnu/linux-libre-" version "-gnu.tar.xz")
84
85 ;; XXX: Work around <http://bugs.gnu.org/14851>.
86 (string-append
87 "ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-"
88 version "-gnu.tar.xz")
89
90 ;; Maybe this URL will become valid eventually.
91 (string-append
92 "mirror://gnu/linux-libre/" version "-gnu/linux-libre-"
93 version "-gnu.tar.xz")))
94
95(define-public linux-libre-headers
96 (let* ((version "3.14.37")
97 (build-phase
98 (lambda (arch)
99 `(lambda _
100 (setenv "ARCH" ,(system->linux-architecture arch))
101 (format #t "`ARCH' set to `~a'~%" (getenv "ARCH"))
102
103 (and (zero? (system* "make" "defconfig"))
104 (zero? (system* "make" "mrproper" "headers_check"))))))
105 (install-phase
106 `(lambda* (#:key outputs #:allow-other-keys)
107 (let ((out (assoc-ref outputs "out")))
108 (and (zero? (system* "make"
109 (string-append "INSTALL_HDR_PATH=" out)
110 "headers_install"))
111 (begin
112 (mkdir (string-append out "/include/config"))
113 (call-with-output-file
114 (string-append out
115 "/include/config/kernel.release")
116 (lambda (p)
117 (format p "~a-default~%" ,version)))
118
119 ;; Remove the '.install' and '..install.cmd' files; the
120 ;; latter contains store paths, which pulls in bootstrap
121 ;; binaries in the build environment, and prevents bit
122 ;; reproducibility for the bootstrap binaries.
123 (for-each delete-file (find-files out "\\.install"))
124
125 #t))))))
126 (package
127 (name "linux-libre-headers")
128 (version version)
129 (source (origin
130 (method url-fetch)
131 (uri (linux-libre-urls version))
132 (sha256
133 (base32
134 "1blxr2bsvfqi9khj4cpspv434bmx252zak2wsbi2mgl60zh77gza"))))
135 (build-system gnu-build-system)
136 (native-inputs `(("perl" ,perl)))
137 (arguments
138 `(#:modules ((guix build gnu-build-system)
139 (guix build utils)
140 (srfi srfi-1))
141 #:phases (alist-replace
142 'build ,(build-phase (or (%current-target-system)
143 (%current-system)))
144 (alist-replace
145 'install ,install-phase
146 (alist-delete 'configure %standard-phases)))
147 #:allowed-references ()
148 #:tests? #f))
149 (synopsis "GNU Linux-Libre kernel headers")
150 (description "Headers of the Linux-Libre kernel.")
151 (license gpl2)
152 (home-page "http://www.gnu.org/software/linux-libre/"))))
153
154(define-public module-init-tools
155 (package
156 (name "module-init-tools")
157 (version "3.16")
158 (source (origin
159 (method url-fetch)
160 (uri (string-append
161 "mirror://kernel.org/linux/utils/kernel/module-init-tools/module-init-tools-"
162 version ".tar.bz2"))
163 (sha256
164 (base32
165 "0jxnz9ahfic79rp93l5wxcbgh4pkv85mwnjlbv1gz3jawv5cvwp1"))
166 (patches
167 (list (search-patch "module-init-tools-moduledir.patch")))))
168 (build-system gnu-build-system)
169 (arguments
170 ;; FIXME: The upstream tarball lacks man pages, and building them would
171 ;; require DocBook & co. We used to use Gentoo's pre-built man pages,
172 ;; but they vanished. In the meantime, fake it.
173 '(#:phases (alist-cons-before
174 'configure 'fake-docbook
175 (lambda _
176 (substitute* "Makefile.in"
177 (("^DOCBOOKTOMAN.*$")
178 "DOCBOOKTOMAN = true\n")))
179 %standard-phases)))
180 (home-page "http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/")
181 (synopsis "Tools for loading and managing Linux kernel modules")
182 (description
183 "Tools for loading and managing Linux kernel modules, such as `modprobe',
184`insmod', `lsmod', and more.")
185 (license gpl2+)))
186
187(define %boot-logo-patch
188 ;; Linux-Libre boot logo featuring Freedo and a gnu.
189 (origin
190 (method url-fetch)
191 (uri (string-append "http://www.fsfla.org/svn/fsfla/software/linux-libre/"
192 "lemote/gnewsense/branches/3.16/100gnu+freedo.patch"))
193 (sha256
194 (base32
195 "1hk9swxxc80bmn2zd2qr5ccrjrk28xkypwhl4z0qx4hbivj7qm06"))))
196
197(define (kernel-config system)
198 "Return the absolute file name of the Linux-Libre build configuration file
199for SYSTEM, or #f if there is no configuration for SYSTEM."
200 (define (lookup file)
201 (let ((file (string-append "gnu/packages/" file)))
202 (search-path %load-path file)))
203
204 (match system
205 ("i686-linux"
206 (lookup "linux-libre-i686.conf"))
207 ("x86_64-linux"
208 (lookup "linux-libre-x86_64.conf"))
209 (_
210 #f)))
211
212(define-public linux-libre
213 (let* ((version "4.1.6")
214 (build-phase
215 '(lambda* (#:key system inputs #:allow-other-keys #:rest args)
216 ;; Apply the neat patch.
217 (system* "patch" "-p1" "--force"
218 "-i" (assoc-ref inputs "patch/freedo+gnu"))
219
220 (let ((arch (car (string-split system #\-))))
221 (setenv "ARCH"
222 (cond ((string=? arch "i686") "i386")
223 (else arch)))
224 (format #t "`ARCH' set to `~a'~%" (getenv "ARCH")))
225
226 (let ((build (assoc-ref %standard-phases 'build))
227 (config (assoc-ref inputs "kconfig")))
228
229 ;; Use the architecture-specific config if available, and
230 ;; 'defconfig' otherwise.
231 (if config
232 (begin
233 (copy-file config ".config")
234 (chmod ".config" #o666))
235 (system* "make" "defconfig"))
236
237 ;; Appending works even when the option wasn't in the
238 ;; file. The last one prevails if duplicated.
239 (let ((port (open-file ".config" "a")))
240 (display (string-append "CONFIG_NET_9P=m\n"
241 "CONFIG_NET_9P_VIRTIO=m\n"
242 "CONFIG_VIRTIO_BLK=m\n"
243 "CONFIG_VIRTIO_NET=m\n"
244 ;; https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00039.html
245 "CONFIG_DEVPTS_MULTIPLE_INSTANCES=y\n"
246 "CONFIG_VIRTIO_PCI=m\n"
247 "CONFIG_VIRTIO_BALLOON=m\n"
248 "CONFIG_VIRTIO_MMIO=m\n"
249 "CONFIG_FUSE_FS=m\n"
250 "CONFIG_CIFS=m\n"
251 "CONFIG_9P_FS=m\n")
252 port)
253 (close-port port))
254
255 (zero? (system* "make" "oldconfig"))
256
257 ;; Call the default `build' phase so `-j' is correctly
258 ;; passed.
259 (apply build #:make-flags "all" args))))
260 (install-phase
261 `(lambda* (#:key inputs outputs #:allow-other-keys)
262 (let* ((out (assoc-ref outputs "out"))
263 (moddir (string-append out "/lib/modules"))
264 (mit (assoc-ref inputs "module-init-tools")))
265 (mkdir-p moddir)
266 (for-each (lambda (file)
267 (copy-file file
268 (string-append out "/" (basename file))))
269 (find-files "." "^(bzImage|System\\.map)$"))
270 (copy-file ".config" (string-append out "/config"))
271 (zero? (system* "make"
272 (string-append "DEPMOD=" mit "/sbin/depmod")
273 (string-append "MODULE_DIR=" moddir)
274 (string-append "INSTALL_PATH=" out)
275 (string-append "INSTALL_MOD_PATH=" out)
276 "INSTALL_MOD_STRIP=1"
277 "modules_install"))))))
278 (package
279 (name "linux-libre")
280 (version version)
281 (source (origin
282 (method url-fetch)
283 (uri (linux-libre-urls version))
284 (sha256
285 (base32
286 "07gmpy32v90bx78bm1khc1hw7x0akdh2sxpkxkavwj4fjc6f732v"))))
287 (build-system gnu-build-system)
288 (native-inputs `(("perl" ,perl)
289 ("bc" ,bc)
290 ("module-init-tools" ,module-init-tools)
291 ("patch/freedo+gnu" ,%boot-logo-patch)
292
293 ,@(let ((conf (kernel-config (or (%current-target-system)
294 (%current-system)))))
295 (if conf
296 `(("kconfig" ,conf))
297 '()))))
298 (arguments
299 `(#:modules ((guix build gnu-build-system)
300 (guix build utils)
301 (srfi srfi-1)
302 (ice-9 match))
303 #:phases (alist-replace
304 'build ,build-phase
305 (alist-replace
306 'install ,install-phase
307 (alist-delete 'configure %standard-phases)))
308 #:tests? #f))
309 (synopsis "100% free redistribution of a cleaned Linux kernel")
310 (description
311 "GNU Linux-Libre is a free (as in freedom) variant of the Linux kernel.
312It has been modified to remove all non-free binary blobs.")
313 (license gpl2)
314 (home-page "http://www.gnu.org/software/linux-libre/"))))
315
316\f
317;;;
318;;; Pluggable authentication modules (PAM).
319;;;
320
321(define-public linux-pam
322 (package
323 (name "linux-pam")
324 (version "1.1.6")
325 (source
326 (origin
327 (method url-fetch)
328 (uri (list (string-append "http://www.linux-pam.org/library/Linux-PAM-"
329 version ".tar.bz2")
330 (string-append "mirror://kernel.org/linux/libs/pam/library/Linux-PAM-"
331 version ".tar.bz2")))
332 (sha256
333 (base32
334 "1hlz2kqvbjisvwyicdincq7nz897b9rrafyzccwzqiqg53b8gf5s"))))
335 (build-system gnu-build-system)
336 (native-inputs
337 `(("flex" ,flex)
338
339 ;; TODO: optional dependencies
340 ;; ("libxcrypt" ,libxcrypt)
341 ;; ("cracklib" ,cracklib)
342 ))
343 (arguments
344 '(;; Most users, such as `shadow', expect the headers to be under
345 ;; `security'.
346 #:configure-flags (list (string-append "--includedir="
347 (assoc-ref %outputs "out")
348 "/include/security"))
349
350 ;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
351 ;; isn't available.
352 #:tests? #f))
353 (home-page "http://www.linux-pam.org/")
354 (synopsis "Pluggable authentication modules for Linux")
355 (description
356 "A *Free* project to implement OSF's RFC 86.0.
357Pluggable authentication modules are small shared object files that can
358be used through the PAM API to perform tasks, like authenticating a user
359at login. Local and dynamic reconfiguration are its key features.")
360 (license bsd-3)))
361
362
363;;;
364;;; Miscellaneous.
365;;;
366
367(define-public psmisc
368 (package
369 (name "psmisc")
370 (version "22.20")
371 (source
372 (origin
373 (method url-fetch)
374 (uri (string-append "mirror://sourceforge/psmisc/psmisc/psmisc-"
375 version ".tar.gz"))
376 (sha256
377 (base32
378 "052mfraykmxnavpi8s78aljx8w87hyvpx8mvzsgpjsjz73i28wmi"))))
379 (build-system gnu-build-system)
380 (inputs `(("ncurses" ,ncurses)))
381 (home-page "http://psmisc.sourceforge.net/")
382 (synopsis
383 "Small utilities that use the proc filesystem")
384 (description
385 "This PSmisc package is a set of some small useful utilities that
386use the proc filesystem. We're not about changing the world, but
387providing the system administrator with some help in common tasks.")
388 (license gpl2+)))
389
390(define-public util-linux
391 (package
392 (name "util-linux")
393 (version "2.25.2")
394 (source (origin
395 (method url-fetch)
396 (uri (string-append "mirror://kernel.org/linux/utils/"
397 name "/v" (version-major+minor version) "/"
398 name "-" version ".tar.xz"))
399 (sha256
400 (base32
401 "1miwwdq1zwvhf0smrxx3fjddq3mz22s8rc5cw54s7x3kbdqpyig0"))
402 (patches (list (search-patch "util-linux-tests.patch")))
403 (modules '((guix build utils)))
404 (snippet
405 ;; We take the 'logger' program from GNU Inetutils and 'kill'
406 ;; from GNU Coreutils.
407 '(substitute* "configure"
408 (("build_logger=yes") "build_logger=no")
409 (("build_kill=yes") "build_kill=no")))))
410 (build-system gnu-build-system)
411 (arguments
412 `(#:configure-flags (list "--disable-use-tty-group"
413 "--enable-ddate"
414
415 ;; Install completions where our
416 ;; bash-completion package expects them.
417 (string-append "--with-bashcompletiondir="
418 (assoc-ref %outputs "out")
419 "/etc/bash_completion.d"))
420 #:phases (modify-phases %standard-phases
421 (add-before
422 'build 'set-umount-file-name
423 (lambda* (#:key outputs #:allow-other-keys)
424 ;; Tell 'eject' the right file name of 'umount'.
425 (let ((out (assoc-ref outputs "out")))
426 (substitute* "sys-utils/eject.c"
427 (("\"/bin/umount\"")
428 (string-append "\"" out "/bin/umount\"")))
429 #t)))
430 (add-before
431 'check 'pre-check
432 (lambda* (#:key inputs outputs #:allow-other-keys)
433 (let ((out (assoc-ref outputs "out"))
434 (net (assoc-ref inputs "net-base")))
435 ;; Change the test to refer to the right file.
436 (substitute* "tests/ts/misc/mcookie"
437 (("/etc/services")
438 (string-append net "/etc/services")))
439 #t))))))
440 (inputs `(("zlib" ,zlib)
441 ("ncurses" ,ncurses)))
442 (native-inputs
443 `(("perl" ,perl)
444 ("net-base" ,net-base))) ;for tests
445 (home-page "https://www.kernel.org/pub/linux/utils/util-linux/")
446 (synopsis "Collection of utilities for the Linux kernel")
447 (description
448 "Util-linux is a random collection of utilities for the Linux kernel.")
449
450 ;; Note that util-linux doesn't use the same license for all the
451 ;; code. GPLv2+ is the default license for a code without an
452 ;; explicitly defined license.
453 (license (list gpl3+ gpl2+ gpl2 lgpl2.0+
454 bsd-4 public-domain))))
455
456(define-public procps
457 (package
458 (name "procps")
459 (version "3.2.8")
460 (source (origin
461 (method url-fetch)
462 ;; A mirror://sourceforge URI doesn't work, presumably becuase
463 ;; the SourceForge project is misconfigured.
464 (uri (string-append "http://procps.sourceforge.net/procps-"
465 version ".tar.gz"))
466 (sha256
467 (base32
468 "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i"))
469 (patches (list (search-patch "procps-make-3.82.patch")))))
470 (build-system gnu-build-system)
471 (inputs `(("ncurses" ,ncurses)))
472 (arguments
473 '(#:modules ((guix build utils)
474 (guix build gnu-build-system)
475 (srfi srfi-1)
476 (srfi srfi-26))
477 #:phases (alist-replace
478 'configure
479 (lambda* (#:key outputs #:allow-other-keys)
480 ;; No `configure', just a single Makefile.
481 (let ((out (assoc-ref outputs "out")))
482 (substitute* "Makefile"
483 (("/usr/") "/")
484 (("--(owner|group) 0") "")
485 (("ldconfig") "true")
486 (("^LDFLAGS[[:blank:]]*:=(.*)$" _ value)
487 ;; Add libproc to the RPATH.
488 (string-append "LDFLAGS := -Wl,-rpath="
489 out "/lib" value))))
490 (setenv "CC" "gcc"))
491 (alist-replace
492 'install
493 (lambda* (#:key outputs #:allow-other-keys)
494 (let ((out (assoc-ref outputs "out")))
495 (and (zero?
496 (system* "make" "install"
497 (string-append "DESTDIR=" out)))
498
499 ;; Remove commands and man pages redundant with
500 ;; Coreutils.
501 (let ((dup (append-map (cut find-files out <>)
502 '("^kill" "^uptime"))))
503 (for-each delete-file dup)
504 #t)
505
506 ;; Sanity check.
507 (zero?
508 (system* (string-append out "/bin/ps")
509 "--version")))))
510 %standard-phases))
511
512 ;; What did you expect? Tests?
513 #:tests? #f))
514 (home-page "http://procps.sourceforge.net/")
515 (synopsis "Utilities that give information about processes")
516 (description
517 "Procps is the package that has a bunch of small useful utilities
518that give information about processes using the Linux /proc file system.
519The package includes the programs ps, top, vmstat, w, kill, free,
520slabtop, and skill.")
521 (license gpl2)))
522
523(define-public usbutils
524 (package
525 (name "usbutils")
526 (version "006")
527 (source
528 (origin
529 (method url-fetch)
530 (uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/"
531 "usbutils-" version ".tar.xz"))
532 (sha256
533 (base32
534 "03pd57vv8c6x0hgjqcbrxnzi14h8hcghmapg89p8k5zpwpkvbdfr"))))
535 (build-system gnu-build-system)
536 (inputs
537 `(("libusb" ,libusb)))
538 (native-inputs
539 `(("pkg-config" ,pkg-config)))
540 (home-page "http://www.linux-usb.org/")
541 (synopsis
542 "Tools for working with USB devices, such as lsusb")
543 (description
544 "Tools for working with USB devices, such as lsusb.")
545 (license gpl2+)))
546
547(define-public e2fsprogs
548 (package
549 (name "e2fsprogs")
550 (version "1.42.13")
551 (source (origin
552 (method url-fetch)
553 (uri (string-append
554 "mirror://kernel.org/linux/kernel/people/tytso/"
555 name "/v" version "/"
556 name "-" version ".tar.xz"))
557 (sha256
558 (base32
559 "1ix0b83zgw5n0p2grh2961c6796m92yr2jqc2sbr23x3lfsp8r71"))
560 (modules '((guix build utils)))
561 (snippet
562 '(substitute* "MCONFIG.in"
563 (("INSTALL_SYMLINK = /bin/sh")
564 "INSTALL_SYMLINK = sh")))))
565 (build-system gnu-build-system)
566 (inputs `(("util-linux" ,util-linux)))
567 (native-inputs `(("pkg-config" ,pkg-config)
568 ("texinfo" ,texinfo))) ;for the libext2fs Info manual
569 (arguments
570 '(;; util-linux is not the preferred source for some of the libraries and
571 ;; commands, so disable them (see, e.g.,
572 ;; <http://git.buildroot.net/buildroot/commit/?id=e1ffc2f791b336339909c90559b7db40b455f172>.)
573 #:configure-flags '("--disable-libblkid"
574 "--disable-libuuid" "--disable-uuidd"
575 "--disable-fsck"
576
577 ;; Install libext2fs et al.
578 "--enable-elf-shlibs")
579
580 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
581 (assoc-ref %outputs "out")
582 "/lib"))
583
584 #:phases (alist-cons-before
585 'configure 'patch-shells
586 (lambda _
587 (substitute* "configure"
588 (("/bin/sh (.*)parse-types.sh" _ dir)
589 (string-append (which "sh") " " dir
590 "parse-types.sh")))
591 (substitute* (find-files "." "^Makefile.in$")
592 (("#!/bin/sh")
593 (string-append "#!" (which "sh")))))
594 (alist-cons-after
595 'install 'install-libs
596 (lambda* (#:key outputs #:allow-other-keys)
597 (let* ((out (assoc-ref outputs "out"))
598 (lib (string-append out "/lib")))
599 (and (zero? (system* "make" "install-libs"))
600
601 ;; Make the .a writable so that 'strip' works.
602 ;; Failing to do that, due to debug symbols, we
603 ;; retain a reference to the final
604 ;; linux-libre-headers, which refer to the
605 ;; bootstrap binaries.
606 (let ((archives (find-files lib "\\.a$")))
607 (for-each (lambda (file)
608 (chmod file #o666))
609 archives)
610 #t))))
611 %standard-phases))
612
613 ;; FIXME: Tests work by comparing the stdout/stderr of programs, that
614 ;; they fail because we get an extra line that says "Can't check if
615 ;; filesystem is mounted due to missing mtab file".
616 #:tests? #f))
617 (home-page "http://e2fsprogs.sourceforge.net/")
618 (synopsis "Creating and checking ext2/ext3/ext4 file systems")
619 (description
620 "This package provides tools for manipulating ext2/ext3/ext4 file systems.")
621 (license (list gpl2 ; programs
622 lgpl2.0 ; libext2fs
623 x11)))) ; libuuid
624
625(define e2fsprogs/static
626 (static-package
627 (package (inherit e2fsprogs)
628 (arguments
629 ;; Do not build shared libraries.
630 (substitute-keyword-arguments (package-arguments e2fsprogs)
631 ((#:configure-flags _)
632 '(list "--disable-blkid"))
633 ((#:make-flags _)
634 '(list)))))))
635
636(define-public e2fsck/static
637 (package
638 (name "e2fsck-static")
639 (version (package-version e2fsprogs))
640 (build-system trivial-build-system)
641 (source #f)
642 (arguments
643 `(#:modules ((guix build utils))
644 #:builder
645 (begin
646 (use-modules (guix build utils)
647 (ice-9 ftw)
648 (srfi srfi-26))
649
650 (let ((source (string-append (assoc-ref %build-inputs "e2fsprogs")
651 "/sbin"))
652 (bin (string-append (assoc-ref %outputs "out") "/sbin")))
653 (mkdir-p bin)
654 (with-directory-excursion bin
655 (for-each (lambda (file)
656 (copy-file (string-append source "/" file)
657 file)
658 (remove-store-references file)
659 (chmod file #o555))
660 (scandir source (cut string-prefix? "fsck." <>))))))))
661 (inputs `(("e2fsprogs" ,e2fsprogs/static)))
662 (synopsis "Statically-linked fsck.* commands from e2fsprogs")
663 (description
664 "This package provides statically-linked command of fsck.ext[234] taken
665from the e2fsprogs package. It is meant to be used in initrds.")
666 (home-page (package-home-page e2fsprogs))
667 (license (package-license e2fsprogs))))
668
669(define-public extundelete
670 (package
671 (name "extundelete")
672 (version "0.2.4")
673 (source (origin
674 (method url-fetch)
675 (uri (string-append "mirror://sourceforge/extundelete/"
676 version "/extundelete-" version ".tar.bz2"))
677 (sha256
678 (base32
679 "1x0r7ylxlp9lbj3d7sqf6j2a222dwy2nfpff05jd6mkh4ihxvyd1"))))
680 (build-system gnu-build-system)
681 (inputs `(("e2fsprogs" ,e2fsprogs)))
682 (home-page "http://extundelete.sourceforge.net/")
683 (synopsis "Recover deleted files from ext2/3/4 partitions")
684 (description
685 "Extundelete is a set of tools that can recover deleted files from an
686ext3 or ext4 partition.")
687 (license gpl2)))
688
689(define-public zerofree
690 (package
691 (name "zerofree")
692 (version "1.0.3")
693 (home-page "http://intgat.tigress.co.uk/rmy/uml/")
694 (source (origin
695 (method url-fetch)
696 (uri (string-append home-page name "-" version
697 ".tgz"))
698 (sha256
699 (base32
700 "1xncw3dn2cp922ly42m96p6fh7jv8ysg6bwqbk5xvw701f3dmkrs"))))
701 (build-system gnu-build-system)
702 (arguments
703 '(#:phases (alist-replace
704 'install
705 (lambda* (#:key outputs #:allow-other-keys)
706 (let* ((out (assoc-ref outputs "out"))
707 (bin (string-append out "/bin")))
708 (mkdir-p bin)
709 (copy-file "zerofree"
710 (string-append bin "/zerofree"))
711 (chmod (string-append bin "/zerofree")
712 #o555)
713 #t))
714 (alist-delete 'configure %standard-phases))
715 #:tests? #f)) ;no tests
716 (inputs `(("libext2fs" ,e2fsprogs)))
717 (synopsis "Zero non-allocated regions in ext2/ext3/ext4 file systems")
718 (description
719 "The zerofree command scans the free blocks in an ext2 file system and
720fills any non-zero blocks with zeroes. This is a useful way to make disk
721images more compressible.")
722 (license gpl2)))
723
724(define-public strace
725 (package
726 (name "strace")
727 (version "4.7")
728 (source (origin
729 (method url-fetch)
730 (uri (string-append "mirror://sourceforge/strace/strace-"
731 version ".tar.xz"))
732 (sha256
733 (base32
734 "158iwk0pl2mfw93m1843xb7a2zb8p6lh0qim07rca6f1ff4dk764"))))
735 (build-system gnu-build-system)
736 (native-inputs `(("perl" ,perl)))
737 (home-page "http://strace.sourceforge.net/")
738 (synopsis "System call tracer for Linux")
739 (description
740 "strace is a system call tracer, i.e. a debugging tool which prints out a
741trace of all the system calls made by a another process/program.")
742 (license bsd-3)))
743
744(define-public ltrace
745 (package
746 (name "ltrace")
747 (version "0.7.3")
748 (source (origin
749 (method url-fetch)
750 (uri (string-append "http://www.ltrace.org/ltrace_" version
751 ".orig.tar.bz2"))
752 (sha256
753 (base32
754 "00wmbdghqbz6x95m1mcdd3wd46l6hgcr4wggdp049dbifh3qqvqf"))))
755 (build-system gnu-build-system)
756 (inputs `(("libelf" ,libelf)))
757 (arguments
758 ;; Compilation uses -Werror by default, but it fails.
759 '(#:configure-flags '("--disable-werror")))
760 (home-page "http://www.ltrace.org/")
761 (synopsis "Library call tracer for Linux")
762 (description
763 "ltrace intercepts and records dynamic library calls which are called by
764an executed process and the signals received by that process. It can also
765intercept and print the system calls executed by the program.")
766 (license gpl2+)))
767
768(define-public alsa-lib
769 (package
770 (name "alsa-lib")
771 (version "1.0.27.1")
772 (source (origin
773 (method url-fetch)
774 (uri (string-append
775 "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-"
776 version ".tar.bz2"))
777 (sha256
778 (base32
779 "0fx057746dj7rjdi0jnvx2m9b0y1lgdkh1hks87d8w32xyihf3k9"))
780 (patches (list (search-patch "alsa-lib-mips-atomic-fix.patch")))))
781 (build-system gnu-build-system)
782 (home-page "http://www.alsa-project.org/")
783 (synopsis "The Advanced Linux Sound Architecture libraries")
784 (description
785 "The Advanced Linux Sound Architecture (ALSA) provides audio and
786MIDI functionality to the Linux-based operating system.")
787 (license lgpl2.1+)))
788
789(define-public alsa-utils
790 (package
791 (name "alsa-utils")
792 (version "1.0.27.2")
793 (source (origin
794 (method url-fetch)
795 (uri (string-append "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-"
796 version ".tar.bz2"))
797 (sha256
798 (base32
799 "1sjjngnq50jv5ilwsb4zys6smifni3bd6fn28gbnhfrg14wsrgq2"))))
800 (build-system gnu-build-system)
801 (arguments
802 ;; XXX: Disable man page creation until we have DocBook.
803 '(#:configure-flags (list "--disable-xmlto"
804
805 ;; The udev rule is responsible for restoring
806 ;; the volume.
807 (string-append "--with-udev-rules-dir="
808 (assoc-ref %outputs "out")
809 "/lib/udev/rules.d"))
810 #:phases (alist-cons-before
811 'install 'pre-install
812 (lambda _
813 ;; Don't try to mkdir /var/lib/alsa.
814 (substitute* "Makefile"
815 (("\\$\\(MKDIR_P\\) .*ASOUND_STATE_DIR.*")
816 "true\n")))
817 %standard-phases)))
818 (inputs
819 `(("libsamplerate" ,libsamplerate)
820 ("ncurses" ,ncurses)
821 ("alsa-lib" ,alsa-lib)
822 ("xmlto" ,xmlto)
823 ("gettext" ,gnu-gettext)))
824 (home-page "http://www.alsa-project.org/")
825 (synopsis "Utilities for the Advanced Linux Sound Architecture (ALSA)")
826 (description
827 "The Advanced Linux Sound Architecture (ALSA) provides audio and
828MIDI functionality to the Linux-based operating system.")
829
830 ;; This is mostly GPLv2+ but a few files such as 'alsactl.c' are
831 ;; GPLv2-only.
832 (license gpl2)))
833
834(define-public iptables
835 (package
836 (name "iptables")
837 (version "1.4.16.2")
838 (source (origin
839 (method url-fetch)
840 (uri (string-append
841 "http://www.netfilter.org/projects/iptables/files/iptables-"
842 version ".tar.bz2"))
843 (sha256
844 (base32
845 "0vkg5lzkn4l3i1sm6v3x96zzvnv9g7mi0qgj6279ld383mzcws24"))))
846 (build-system gnu-build-system)
847 (arguments
848 '(#:tests? #f ; no test suite
849 #:configure-flags ; add $libdir to the RUNPATH of executables
850 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))))
851 (home-page "http://www.netfilter.org/projects/iptables/index.html")
852 (synopsis "Program to configure the Linux IP packet filtering rules")
853 (description
854 "iptables is the userspace command line program used to configure the
855Linux 2.4.x and later IPv4 packet filtering ruleset. It is targeted towards
856system administrators. Since Network Address Translation is also configured
857from the packet filter ruleset, iptables is used for this, too. The iptables
858package also includes ip6tables. ip6tables is used for configuring the IPv6
859packet filter.")
860 (license gpl2+)))
861
862(define-public iproute
863 (package
864 (name "iproute2")
865 (version "3.12.0")
866 (source (origin
867 (method url-fetch)
868 (uri (string-append
869 "mirror://kernel.org/linux/utils/net/iproute2/iproute2-"
870 version ".tar.xz"))
871 (sha256
872 (base32
873 "04gi11gh087bg2nlxhj0lxrk8l9qxkpr88nsiil23917bm3h1xj4"))))
874 (build-system gnu-build-system)
875 (arguments
876 `(#:tests? #f ; no test suite
877 #:make-flags (let ((out (assoc-ref %outputs "out")))
878 (list "DESTDIR="
879 (string-append "LIBDIR=" out "/lib")
880 (string-append "SBINDIR=" out "/sbin")
881 (string-append "CONFDIR=" out "/etc")
882 (string-append "DOCDIR=" out "/share/doc/"
883 ,name "-" ,version)
884 (string-append "MANDIR=" out "/share/man")))
885 #:phases (alist-cons-before
886 'install 'pre-install
887 (lambda _
888 ;; Don't attempt to create /var/lib/arpd.
889 (substitute* "Makefile"
890 (("^.*ARPDDIR.*$") "")))
891 %standard-phases)))
892 (inputs
893 `(("iptables" ,iptables)
894 ("db4" ,bdb)))
895 (native-inputs
896 `(("pkg-config" ,pkg-config)
897 ("flex" ,flex)
898 ("bison" ,bison)))
899 (home-page
900 "http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2")
901 (synopsis
902 "Utilities for controlling TCP/IP networking and traffic in Linux")
903 (description
904 "Iproute2 is a collection of utilities for controlling TCP/IP
905networking and traffic with the Linux kernel.
906
907Most network configuration manuals still refer to ifconfig and route as the
908primary network configuration tools, but ifconfig is known to behave
909inadequately in modern network environments. They should be deprecated, but
910most distros still include them. Most network configuration systems make use
911of ifconfig and thus provide a limited feature set. The /etc/net project aims
912to support most modern network technologies, as it doesn't use ifconfig and
913allows a system administrator to make use of all iproute2 features, including
914traffic control.
915
916iproute2 is usually shipped in a package called iproute or iproute2 and
917consists of several tools, of which the most important are ip and tc. ip
918controls IPv4 and IPv6 configuration and tc stands for traffic control. Both
919tools print detailed usage messages and are accompanied by a set of
920manpages.")
921 (license gpl2+)))
922
923(define-public net-tools
924 ;; XXX: This package is basically unmaintained, but it provides a few
925 ;; commands not yet provided by Inetutils, such as 'route', so we have to
926 ;; live with it.
927 (package
928 (name "net-tools")
929 (version "1.60")
930 (home-page "http://www.tazenda.demon.co.uk/phil/net-tools/")
931 (source (origin
932 (method url-fetch)
933 (uri (string-append home-page "/" name "-"
934 version ".tar.bz2"))
935 (sha256
936 (base32
937 "0yvxrzk0mzmspr7sa34hm1anw6sif39gyn85w4c5ywfn8inxvr3s"))
938 (patches
939 (list (search-patch "net-tools-bitrot.patch")))))
940 (build-system gnu-build-system)
941 (arguments
942 '(#:modules ((guix build gnu-build-system)
943 (guix build utils)
944 (srfi srfi-1)
945 (srfi srfi-26))
946 #:phases (alist-cons-after
947 'unpack 'patch
948 (lambda* (#:key inputs #:allow-other-keys)
949 (define (apply-patch file)
950 (zero? (system* "patch" "-p1" "--force"
951 "--input" file)))
952
953 (let ((patch.gz (assoc-ref inputs "patch")))
954 (format #t "applying Debian patch set '~a'...~%"
955 patch.gz)
956 (system (string-append "gunzip < " patch.gz " > the-patch"))
957 (and (apply-patch "the-patch")
958 (for-each apply-patch
959 (find-files "debian/patches"
960 "\\.patch")))))
961 (alist-replace
962 'configure
963 (lambda* (#:key outputs #:allow-other-keys)
964 (let ((out (assoc-ref outputs "out")))
965 (mkdir-p (string-append out "/bin"))
966 (mkdir-p (string-append out "/sbin"))
967
968 ;; Pretend we have everything...
969 (system "yes | make config")
970
971 ;; ... except for the things we don't have.
972 ;; HAVE_AFDECnet requires libdnet, which we don't have.
973 ;; HAVE_HWSTRIP and HAVE_HWTR require kernel headers
974 ;; that have been removed.
975 (substitute* '("config.make" "config.h")
976 (("^.*HAVE_(AFDECnet|HWSTRIP|HWTR)[ =]1.*$") ""))))
977 (alist-cons-after
978 'install 'remove-redundant-commands
979 (lambda* (#:key outputs #:allow-other-keys)
980 ;; Remove commands and man pages redundant with
981 ;; Inetutils.
982 (let* ((out (assoc-ref outputs "out"))
983 (dup (append-map (cut find-files out <>)
984 '("^hostname"
985 "^(yp|nis|dns)?domainname"))))
986 (for-each delete-file dup)
987 #t))
988 %standard-phases)))
989
990 ;; Binaries that depend on libnet-tools.a don't declare that
991 ;; dependency, making it parallel-unsafe.
992 #:parallel-build? #f
993
994 #:tests? #f ; no test suite
995 #:make-flags (let ((out (assoc-ref %outputs "out")))
996 (list "CC=gcc"
997 (string-append "BASEDIR=" out)
998 (string-append "INSTALLNLSDIR=" out "/share/locale")
999 (string-append "mandir=/share/man")))))
1000
1001 ;; Use the big Debian patch set (the thing does not even compile out of
1002 ;; the box.)
1003 (inputs `(("patch" ,(origin
1004 (method url-fetch)
1005 (uri
1006 "http://ftp.de.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz")
1007 (sha256
1008 (base32
1009 "0p93lsqx23v5fv4hpbrydmfvw1ha2rgqpn2zqbs2jhxkzhjc030p"))))))
1010 (native-inputs `(("gettext" ,gnu-gettext)))
1011
1012 (synopsis "Tools for controlling the network subsystem in Linux")
1013 (description
1014 "This package includes the important tools for controlling the network
1015subsystem of the Linux kernel. This includes arp, hostname, ifconfig,
1016netstat, rarp and route. Additionally, this package contains utilities
1017relating to particular network hardware types (plipconfig, slattach) and
1018advanced aspects of IP configuration (iptunnel, ipmaddr).")
1019 (license gpl2+)))
1020
1021(define-public libcap
1022 (package
1023 (name "libcap")
1024 (version "2.22")
1025 (source (origin
1026 (method url-fetch)
1027
1028 ;; Tarballs used to be available from
1029 ;; <https://www.kernel.org/pub/linux/libs/security/linux-privs/>
1030 ;; but they never came back after kernel.org was compromised.
1031 (uri (string-append
1032 "mirror://debian/pool/main/libc/libcap2/libcap2_"
1033 version ".orig.tar.gz"))
1034 (sha256
1035 (base32
1036 "07vjhkznm82p8dm4w6j8mmg7h5c70lp5s9bwwfdmgwpbixfydjp1"))))
1037 (build-system gnu-build-system)
1038 (arguments '(#:phases
1039 (modify-phases %standard-phases
1040 (replace 'configure
1041 ;; Add $libdir to the RUNPATH of executables.
1042 (lambda _
1043 (substitute* "Make.Rules"
1044 (("LDFLAGS := #-g")
1045 (string-append "LDFLAGS := -Wl,-rpath="
1046 %output "/lib"))))))
1047 #:tests? #f ; no 'check' target
1048 #:make-flags (list "lib=lib"
1049 (string-append "prefix="
1050 (assoc-ref %outputs "out"))
1051 "RAISE_SETFCAP=no")))
1052 (native-inputs `(("perl" ,perl)))
1053 (inputs `(("attr" ,attr)))
1054 (home-page "https://sites.google.com/site/fullycapable/")
1055 (synopsis "Library for working with POSIX capabilities")
1056 (description
1057 "Libcap2 provides a programming interface to POSIX capabilities on
1058Linux-based operating systems.")
1059
1060 ;; License is BSD-3 or GPLv2, at the user's choice.
1061 (license gpl2)))
1062
1063(define-public bridge-utils
1064 (package
1065 (name "bridge-utils")
1066 (version "1.5")
1067 (source (origin
1068 (method url-fetch)
1069 (uri (string-append "mirror://sourceforge/bridge/bridge-utils-"
1070 version ".tar.gz"))
1071 (sha256
1072 (base32
1073 "12367cwqmi0yqphi6j8rkx97q8hw52yq2fx4k0xfclkcizxybya2"))))
1074 (build-system gnu-build-system)
1075
1076 ;; The tarball lacks all the generated files.
1077 (native-inputs `(("autoconf" ,autoconf)
1078 ("automake" ,automake)))
1079 (arguments
1080 '(#:phases (alist-cons-after
1081 'unpack 'bootstrap
1082 (lambda _
1083 ;; Fix "field ‘ip6’ has incomplete type" errors.
1084 (substitute* "libbridge/libbridge.h"
1085 (("#include <linux/if_bridge.h>")
1086 "#include <linux/in6.h>\n#include <linux/if_bridge.h>"))
1087
1088 ;; Ensure that the entire build fails if one of the
1089 ;; sub-Makefiles fails.
1090 (substitute* "Makefile.in"
1091 (("\\$\\(MAKE\\) \\$\\(MFLAGS\\) -C \\$\\$x ;")
1092 "$(MAKE) $(MFLAGS) -C $$x || exit 1;"))
1093
1094 (zero? (system* "autoreconf" "-vf")))
1095 %standard-phases)
1096 #:tests? #f)) ; no 'check' target
1097
1098 (home-page
1099 "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge")
1100 (synopsis "Manipulate Ethernet bridges")
1101 (description
1102 "Utilities for Linux's Ethernet bridging facilities. A bridge is a way
1103to connect two Ethernet segments together in a protocol independent way.
1104Packets are forwarded based on Ethernet address, rather than IP address (like
1105a router). Since forwarding is done at Layer 2, all protocols can go
1106transparently through a bridge.")
1107 (license gpl2+)))
1108
1109(define-public libnl
1110 (package
1111 (name "libnl")
1112 (version "3.2.25")
1113 (source (origin
1114 (method url-fetch)
1115 (uri (string-append
1116 "http://www.infradead.org/~tgr/libnl/files/libnl-"
1117 version ".tar.gz"))
1118 (sha256
1119 (base32
1120 "1icfrv8yihcb74as1gcgmp0wfpdq632q2zvbvqqvjms9cy87bswb"))))
1121 (build-system gnu-build-system)
1122 (native-inputs `(("flex" ,flex) ("bison" ,bison)))
1123 (home-page "http://www.infradead.org/~tgr/libnl/")
1124 (synopsis "NetLink protocol library suite")
1125 (description
1126 "The libnl suite is a collection of libraries providing APIs to netlink
1127protocol based Linux kernel interfaces. Netlink is an IPC mechanism primarily
1128between the kernel and user space processes. It was designed to be a more
1129flexible successor to ioctl to provide mainly networking related kernel
1130configuration and monitoring interfaces.")
1131
1132 ;; Most files are LGPLv2.1-only, but some are GPLv2-only (like
1133 ;; 'nl-addr-add.c'), so the result is GPLv2-only.
1134 (license gpl2)))
1135
1136(define-public iw
1137 (package
1138 (name "iw")
1139 (version "3.17")
1140 (source (origin
1141 (method url-fetch)
1142 (uri (string-append
1143 "https://www.kernel.org/pub/software/network/iw/iw-"
1144 version ".tar.xz"))
1145 (sha256
1146 (base32
1147 "14zsapqhivk0ws5z21y1ys2c2czi05mzk7bl2yb7qxcfrnsjx9j8"))))
1148 (build-system gnu-build-system)
1149 (native-inputs `(("pkg-config" ,pkg-config)))
1150 (inputs `(("libnl" ,libnl)))
1151 (arguments
1152 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1153 "CC=gcc")
1154 #:phases (alist-delete 'configure %standard-phases)))
1155 (home-page "http://wireless.kernel.org/en/users/Documentation/iw")
1156 (synopsis "Tool for configuring wireless devices")
1157 (description
1158 "iw is a new nl80211 based CLI configuration utility for wireless
1159devices. It replaces 'iwconfig', which is deprecated.")
1160 (license isc)))
1161
1162(define-public powertop
1163 (package
1164 (name "powertop")
1165 (version "2.5")
1166 (source
1167 (origin
1168 (method url-fetch)
1169 (uri (string-append
1170 "https://01.org/powertop/sites/default/files/downloads/powertop-"
1171 version ".tar.gz"))
1172 (sha256
1173 (base32
1174 "02rwqbpasdayl201v0549gbp2f82rd0hqiv3i111r7npanjhhb4b"))))
1175 (build-system gnu-build-system)
1176 (inputs
1177 ;; TODO: Add pciutils.
1178 `(("zlib" ,zlib)
1179 ;; ("pciutils" ,pciutils)
1180 ("ncurses" ,ncurses)
1181 ("libnl" ,libnl)))
1182 (native-inputs
1183 `(("pkg-config" ,pkg-config)))
1184 (home-page "https://01.org/powertop/")
1185 (synopsis "Analyze power consumption on Intel-based laptops")
1186 (description
1187 "PowerTOP is a Linux tool to diagnose issues with power consumption and
1188power management. In addition to being a diagnostic tool, PowerTOP also has
1189an interactive mode where the user can experiment various power management
1190settings for cases where the operating system has not enabled these
1191settings.")
1192 (license gpl2)))
1193
1194(define-public aumix
1195 (package
1196 (name "aumix")
1197 (version "2.9.1")
1198 (source (origin
1199 (method url-fetch)
1200 (uri (string-append
1201 "http://www.jpj.net/~trevor/aumix/releases/aumix-"
1202 version ".tar.bz2"))
1203 (sha256
1204 (base32
1205 "0a8fwyxnc5qdxff8sl2sfsbnvgh6pkij4yafiln0fxgg6bal7knj"))))
1206 (build-system gnu-build-system)
1207 (inputs `(("ncurses" ,ncurses)))
1208 (home-page "http://www.jpj.net/~trevor/aumix.html")
1209 (synopsis "Audio mixer for X and the console")
1210 (description
1211 "Aumix adjusts an audio mixer from X, the console, a terminal,
1212the command line or a script.")
1213 (license gpl2+)))
1214
1215(define-public iotop
1216 (package
1217 (name "iotop")
1218 (version "0.6")
1219 (source
1220 (origin
1221 (method url-fetch)
1222 (uri (string-append "http://guichaz.free.fr/iotop/files/iotop-"
1223 version ".tar.gz"))
1224 (sha256 (base32
1225 "1kp8mqg2pbxq4xzpianypadfxcsyfgwcaqgqia6h9fsq6zyh4z0s"))))
1226 (build-system python-build-system)
1227 (arguments
1228 ;; The setup.py script expects python-2.
1229 `(#:python ,python-2
1230 ;; There are currently no checks in the package.
1231 #:tests? #f))
1232 (native-inputs `(("python" ,python-2)))
1233 (home-page "http://guichaz.free.fr/iotop/")
1234 (synopsis
1235 "Displays the IO activity of running processes")
1236 (description
1237 "Iotop is a Python program with a top like user interface to show the
1238processes currently causing I/O.")
1239 (license gpl2+)))
1240
1241(define-public fuse
1242 (package
1243 (name "fuse")
1244 (version "2.9.3")
1245 (source (origin
1246 (method url-fetch)
1247 (uri (string-append "mirror://sourceforge/fuse/fuse-"
1248 version ".tar.gz"))
1249 (sha256
1250 (base32
1251 "071r6xjgssy8vwdn6m28qq1bqxsd2bphcd2mzhq0grf5ybm87sqb"))
1252 (patches (list (search-patch "fuse-CVE-2015-3202.patch")))))
1253 (build-system gnu-build-system)
1254 (inputs `(("util-linux" ,util-linux)))
1255 (arguments
1256 '(#:configure-flags (list (string-append "MOUNT_FUSE_PATH="
1257 (assoc-ref %outputs "out")
1258 "/sbin")
1259 (string-append "INIT_D_PATH="
1260 (assoc-ref %outputs "out")
1261 "/etc/init.d")
1262
1263 ;; The rule makes /dev/fuse 666.
1264 (string-append "UDEV_RULES_PATH="
1265 (assoc-ref %outputs "out")
1266 "/lib/udev/rules.d"))
1267 #:phases (alist-cons-before
1268 'build 'set-file-names
1269 (lambda* (#:key inputs #:allow-other-keys)
1270 ;; libfuse calls out to mount(8) and umount(8). Make sure
1271 ;; it refers to the right ones.
1272 (substitute* '("lib/mount_util.c" "util/mount_util.c")
1273 (("/bin/(u?)mount" _ maybe-u)
1274 (string-append (assoc-ref inputs "util-linux")
1275 "/bin/" maybe-u "mount")))
1276 (substitute* '("util/mount.fuse.c")
1277 (("/bin/sh")
1278 (which "sh")))
1279
1280 ;; This hack leads libfuse to search for 'fusermount' in
1281 ;; $PATH, where it may find a setuid-root binary, instead of
1282 ;; trying solely $out/sbin/fusermount and failing because
1283 ;; it's not setuid.
1284 (substitute* "lib/Makefile"
1285 (("-DFUSERMOUNT_DIR=[[:graph:]]+")
1286 "-DFUSERMOUNT_DIR=\\\"/var/empty\\\"")))
1287 %standard-phases)))
1288 (home-page "http://fuse.sourceforge.net/")
1289 (synopsis "Support file systems implemented in user space")
1290 (description
1291 "As a consequence of its monolithic design, file system code for Linux
1292normally goes into the kernel itself---which is not only a robustness issue,
1293but also an impediment to system extensibility. FUSE, for \"file systems in
1294user space\", is a kernel module and user-space library that tries to address
1295part of this problem by allowing users to run file system implementations as
1296user-space processes.")
1297 (license (list lgpl2.1 ; library
1298 gpl2+)))) ; command-line utilities
1299
1300(define-public unionfs-fuse
1301 (package
1302 (name "unionfs-fuse")
1303 (version "0.26")
1304 (source (origin
1305 (method url-fetch)
1306 (uri (string-append
1307 "http://podgorny.cz/unionfs-fuse/releases/unionfs-fuse-"
1308 version ".tar.xz"))
1309 (sha256
1310 (base32
1311 "0qpnr4czgc62vsfnmv933w62nq3xwcbnvqch72qakfgca75rsp4d"))))
1312 (build-system cmake-build-system)
1313 (inputs `(("fuse" ,fuse)))
1314 (arguments '(#:tests? #f)) ; no tests
1315 (home-page "http://podgorny.cz/moin/UnionFsFuse")
1316 (synopsis "User-space union file system")
1317 (description
1318 "UnionFS-FUSE is a flexible union file system implementation in user
1319space, using the FUSE library. Mounting a union file system allows you to
1320\"aggregate\" the contents of several directories into a single mount point.
1321UnionFS-FUSE additionally supports copy-on-write.")
1322 (license bsd-3)))
1323
1324(define fuse-static
1325 (package (inherit fuse)
1326 (name "fuse-static")
1327 (source (origin (inherit (package-source fuse))
1328 (modules '((guix build utils)))
1329 (snippet
1330 ;; Normally libfuse invokes mount(8) so that /etc/mtab is
1331 ;; updated. Change calls to 'mtab_needs_update' to 0 so that
1332 ;; it doesn't do that, allowing us to remove the dependency on
1333 ;; util-linux (something that is useful in initrds.)
1334 '(substitute* '("lib/mount_util.c"
1335 "util/mount_util.c")
1336 (("mtab_needs_update[[:blank:]]*\\([a-z_]+\\)")
1337 "0")
1338 (("/bin/")
1339 "")))))))
1340
1341(define-public unionfs-fuse/static
1342 (package (inherit unionfs-fuse)
1343 (synopsis "User-space union file system (statically linked)")
1344 (name (string-append (package-name unionfs-fuse) "-static"))
1345 (source (origin (inherit (package-source unionfs-fuse))
1346 (modules '((guix build utils)))
1347 (snippet
1348 ;; Add -ldl to the libraries, because libfuse.a needs that.
1349 '(substitute* "src/CMakeLists.txt"
1350 (("target_link_libraries(.*)\\)" _ libs)
1351 (string-append "target_link_libraries"
1352 libs " dl)"))))))
1353 (arguments
1354 '(#:tests? #f
1355 #:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-static")
1356 #:phases (alist-cons-after
1357 'install 'post-install
1358 (lambda* (#:key outputs #:allow-other-keys)
1359 (let* ((out (assoc-ref outputs "out"))
1360 (exe (string-append out "/bin/unionfs")))
1361 ;; By default, 'unionfs' keeps references to
1362 ;; $glibc/share/locale and similar stuff. Remove them.
1363 (remove-store-references exe)))
1364 %standard-phases)))
1365 (inputs `(("fuse" ,fuse-static)))))
1366
1367(define-public sshfs-fuse
1368 (package
1369 (name "sshfs-fuse")
1370 (version "2.5")
1371 (source (origin
1372 (method url-fetch)
1373 (uri (string-append "mirror://sourceforge/fuse/sshfs-fuse-"
1374 version ".tar.gz"))
1375 (sha256
1376 (base32
1377 "0gp6qr33l2p0964j0kds0dfmvyyf5lpgsn11daf0n5fhwm9185z9"))))
1378 (build-system gnu-build-system)
1379 (inputs
1380 `(("fuse" ,fuse)
1381 ("glib" ,glib)))
1382 (native-inputs
1383 `(("pkg-config" ,pkg-config)))
1384 (home-page "http://fuse.sourceforge.net/sshfs.html")
1385 (synopsis "Mount remote file systems over SSH")
1386 (description
1387 "This is a file system client based on the SSH File Transfer Protocol.
1388Since most SSH servers already support this protocol it is very easy to set
1389up: on the server side there's nothing to do; on the client side mounting the
1390file system is as easy as logging into the server with an SSH client.")
1391 (license gpl2+)))
1392
1393(define-public numactl
1394 (package
1395 (name "numactl")
1396 (version "2.0.9")
1397 (source (origin
1398 (method url-fetch)
1399 (uri (string-append
1400 "ftp://oss.sgi.com/www/projects/libnuma/download/numactl-"
1401 version
1402 ".tar.gz"))
1403 (sha256
1404 (base32
1405 "073myxlyyhgxh1w3r757ajixb7s2k69czc3r0g12c3scq7k3784w"))))
1406 (build-system gnu-build-system)
1407 (arguments
1408 '(#:phases (alist-replace
1409 'configure
1410 (lambda* (#:key outputs #:allow-other-keys)
1411 ;; There's no 'configure' script, just a raw makefile.
1412 (substitute* "Makefile"
1413 (("^prefix := .*$")
1414 (string-append "prefix := " (assoc-ref outputs "out")
1415 "\n"))
1416 (("^libdir := .*$")
1417 ;; By default the thing tries to install under
1418 ;; $prefix/lib64 when on a 64-bit platform.
1419 (string-append "libdir := $(prefix)/lib\n"))))
1420 %standard-phases)
1421
1422 #:make-flags (list
1423 ;; By default the thing tries to use 'cc'.
1424 "CC=gcc"
1425
1426 ;; Make sure programs have an RPATH so they can find
1427 ;; libnuma.so.
1428 (string-append "LDLIBS=-Wl,-rpath="
1429 (assoc-ref %outputs "out") "/lib"))
1430
1431 ;; There's a 'test' target, but it requires NUMA support in the kernel
1432 ;; to run, which we can't assume to have.
1433 #:tests? #f))
1434 (home-page "http://oss.sgi.com/projects/libnuma/")
1435 (synopsis "Tools for non-uniform memory access (NUMA) machines")
1436 (description
1437 "NUMA stands for Non-Uniform Memory Access, in other words a system whose
1438memory is not all in one place. The numactl program allows you to run your
1439application program on specific CPU's and memory nodes. It does this by
1440supplying a NUMA memory policy to the operating system before running your
1441program.
1442
1443The package contains other commands, such as numademo, numastat and memhog.
1444The numademo command provides a quick overview of NUMA performance on your
1445system.")
1446 (license (list gpl2 ; programs
1447 lgpl2.1)))) ; library
1448
1449(define-public kbd
1450 (package
1451 (name "kbd")
1452 (version "2.0.2")
1453 (source (origin
1454 (method url-fetch)
1455 (uri (string-append "mirror://kernel.org/linux/utils/kbd/kbd-"
1456 version ".tar.xz"))
1457 (sha256
1458 (base32
1459 "04mrms12nm5sas0nxs94yrr3hz7gmqhnmfgb9ff34bh1jszxmzcx"))
1460 (modules '((guix build utils)))
1461 (snippet
1462 '(begin
1463 (substitute* "tests/Makefile.in"
1464 ;; The '%: %.in' rule incorrectly uses @VERSION@.
1465 (("@VERSION@")
1466 "[@]VERSION[@]"))
1467 (substitute* '("src/unicode_start" "src/unicode_stop")
1468 ;; Assume the Coreutils are in $PATH.
1469 (("/usr/bin/tty")
1470 "tty"))))))
1471 (build-system gnu-build-system)
1472 (arguments
1473 '(#:phases (alist-cons-before
1474 'build 'pre-build
1475 (lambda* (#:key inputs #:allow-other-keys)
1476 (let ((gzip (assoc-ref %build-inputs "gzip"))
1477 (bzip2 (assoc-ref %build-inputs "bzip2")))
1478 (substitute* "src/libkeymap/findfile.c"
1479 (("gzip")
1480 (string-append gzip "/bin/gzip"))
1481 (("bzip2")
1482 (string-append bzip2 "/bin/bzip2")))))
1483 (alist-cons-after
1484 'install 'post-install
1485 (lambda* (#:key outputs #:allow-other-keys)
1486 ;; Make sure these programs find their comrades.
1487 (let* ((out (assoc-ref outputs "out"))
1488 (bin (string-append out "/bin")))
1489 (for-each (lambda (prog)
1490 (wrap-program (string-append bin "/" prog)
1491 `("PATH" ":" prefix (,bin))))
1492 '("unicode_start" "unicode_stop"))))
1493 %standard-phases))))
1494 (inputs `(("check" ,check)
1495 ("gzip" ,gzip)
1496 ("bzip2" ,bzip2)
1497 ("pam" ,linux-pam)))
1498 (native-inputs `(("pkg-config" ,pkg-config)))
1499 (home-page "ftp://ftp.kernel.org/pub/linux/utils/kbd/")
1500 (synopsis "Linux keyboard utilities and keyboard maps")
1501 (description
1502 "This package contains keytable files and keyboard utilities compatible
1503for systems using the Linux kernel. This includes commands such as
1504'loadkeys', 'setfont', 'kbdinfo', and 'chvt'.")
1505 (license gpl2+)))
1506
1507(define-public inotify-tools
1508 (package
1509 (name "inotify-tools")
1510 (version "3.13")
1511 (source (origin
1512 (method url-fetch)
1513 (uri (string-append
1514 "mirror://sourceforge/inotify-tools/inotify-tools/"
1515 version "/inotify-tools-" version ".tar.gz"))
1516 (sha256
1517 (base32
1518 "0icl4bx041axd5dvhg89kilfkysjj86hjakc7bk8n49cxjn4cha6"))))
1519 (build-system gnu-build-system)
1520 (home-page "http://inotify-tools.sourceforge.net/")
1521 (synopsis "Monitor file accesses")
1522 (description
1523 "The inotify-tools packages provides a C library and command-line tools
1524to use Linux' inotify mechanism, which allows file accesses to be monitored.")
1525 (license gpl2+)))
1526
1527(define-public kmod
1528 (package
1529 (name "kmod")
1530 (version "17")
1531 (source (origin
1532 (method url-fetch)
1533 (uri
1534 (string-append "mirror://kernel.org/linux/utils/kernel/kmod/"
1535 "kmod-" version ".tar.xz"))
1536 (sha256
1537 (base32
1538 "1yid3a9b64a60ybj66fk2ysrq5klnl0ijl4g624cl16y8404g9rv"))
1539 (patches (list (search-patch "kmod-module-directory.patch")))))
1540 (build-system gnu-build-system)
1541 (native-inputs
1542 `(("pkg-config" ,pkg-config)))
1543 (inputs
1544 `(("xz" ,xz)
1545 ("zlib" ,zlib)))
1546 (arguments
1547 `(#:tests? #f ; FIXME: Investigate test failures
1548 #:configure-flags '("--with-xz" "--with-zlib")
1549 #:phases (alist-cons-after
1550 'install 'install-modprobe&co
1551 (lambda* (#:key outputs #:allow-other-keys)
1552 (let* ((out (assoc-ref outputs "out"))
1553 (bin (string-append out "/bin")))
1554 (for-each (lambda (tool)
1555 (symlink "kmod"
1556 (string-append bin "/" tool)))
1557 '("insmod" "rmmod" "lsmod" "modprobe"
1558 "modinfo" "depmod"))))
1559 %standard-phases)))
1560 (home-page "https://www.kernel.org/")
1561 (synopsis "Kernel module tools")
1562 (description "Kmod is a set of tools to handle common tasks with Linux
1563kernel modules like insert, remove, list, check properties, resolve
1564dependencies and aliases.
1565
1566These tools are designed on top of libkmod, a library that is shipped with
1567kmod. The aim is to be compatible with tools, configurations and indices
1568from the module-init-tools project.")
1569 (license gpl2+))) ; library under lgpl2.1+
1570
1571(define-public eudev
1572 ;; The post-systemd fork, maintained by Gentoo.
1573 (package
1574 (name "eudev")
1575 (version "2.1.1")
1576 (source (origin
1577 (method url-fetch)
1578 (uri (string-append
1579 "http://dev.gentoo.org/~blueness/eudev/eudev-"
1580 version ".tar.gz"))
1581 (sha256
1582 (base32
1583 "0shf5vqiz9fdxl95aa1a8vh0xjxwim3psc39wr2xr8lnahf11vva"))
1584 (patches (list (search-patch "eudev-rules-directory.patch")))
1585 (modules '((guix build utils)))
1586 (snippet
1587 ;; 'configure' checks uses <linux/btrfs.h> as an indication of
1588 ;; whether Linux headers are available, but it doesn't actually
1589 ;; use it, and our 'linux-libre-headers' package doesn't
1590 ;; provide it. So just remove that.
1591 '(substitute* "configure"
1592 (("linux/btrfs\\.h")
1593 "")))))
1594 (build-system gnu-build-system)
1595 (native-inputs
1596 `(("pkg-config" ,pkg-config)
1597 ("gperf" ,gperf)
1598 ("glib" ,glib "bin") ; glib-genmarshal, etc.
1599 ("perl" ,perl) ; for the tests
1600 ("python" ,python-2))) ; ditto
1601 (inputs
1602 `(("kmod" ,kmod)
1603 ("pciutils" ,pciutils)
1604 ("usbutils" ,usbutils)
1605 ("util-linux" ,util-linux)
1606 ("glib" ,glib)
1607 ("gobject-introspection" ,gobject-introspection)))
1608 (arguments
1609 `(#:configure-flags (list "--enable-libkmod"
1610
1611 (string-append
1612 "--with-pci-ids-path="
1613 (assoc-ref %build-inputs "pciutils")
1614 "/share/pci.ids.gz")
1615
1616 "--with-firmware-path=/no/firmware"
1617
1618 ;; Work around undefined reference to
1619 ;; 'mq_getattr' in sc-daemon.c.
1620 "LDFLAGS=-lrt")
1621 #:phases
1622 (alist-cons-before
1623 'build 'pre-build
1624 ;; The program 'g-ir-scanner' (part of the package
1625 ;; 'gobject-introspection'), to generate .gir files, makes some
1626 ;; library pre-processing. During that phase it looks for the C
1627 ;; compiler as either 'cc' or as defined by the environment variable
1628 ;; 'CC' (with code in 'giscanner/dumper.py').
1629 (lambda* _
1630 (setenv "CC" "gcc"))
1631 %standard-phases)))
1632 (home-page "http://www.gentoo.org/proj/en/eudev/")
1633 (synopsis "Userspace device management")
1634 (description "Udev is a daemon which dynamically creates and removes
1635device nodes from /dev/, handles hotplug events and loads drivers at boot
1636time.")
1637 (license gpl2+)))
1638
1639(define-public lvm2
1640 (package
1641 (name "lvm2")
1642 (version "2.02.109")
1643 (source (origin
1644 (method url-fetch)
1645 (uri (string-append "ftp://sources.redhat.com/pub/lvm2/releases/LVM2."
1646 version ".tgz"))
1647 (sha256
1648 (base32
1649 "1rv5ivg0l1w3nwzwdkqixm96h5bzg7ib4rr196ysb2lw42jmpjbv"))
1650 (modules '((guix build utils)))
1651 (snippet
1652 '(begin
1653 (use-modules (guix build utils))
1654
1655 ;; Honor sysconfdir.
1656 (substitute* "make.tmpl.in"
1657 (("confdir = .*$")
1658 "confdir = @sysconfdir@\n")
1659 (("DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@")
1660 "DEFAULT_SYS_DIR = @sysconfdir@"))))))
1661 (build-system gnu-build-system)
1662 (native-inputs
1663 `(("pkg-config" ,pkg-config)
1664 ("procps" ,procps))) ;tests use 'pgrep'
1665 (inputs
1666 `(("udev" ,eudev)))
1667 (arguments
1668 '(#:phases (alist-cons-after
1669 'configure 'set-makefile-shell
1670 (lambda _
1671 ;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as
1672 ;; expected.
1673 (setenv "SHELL" (which "sh"))
1674
1675 ;; Replace /bin/sh with the right file name.
1676 (patch-makefile-SHELL "make.tmpl"))
1677 %standard-phases)
1678
1679 #:configure-flags (list (string-append "--sysconfdir="
1680 (assoc-ref %outputs "out")
1681 "/etc/lvm")
1682 "--enable-udev_sync"
1683 "--enable-udev_rules"
1684
1685 ;; Make sure programs such as 'dmsetup' can
1686 ;; find libdevmapper.so.
1687 (string-append "LDFLAGS=-Wl,-rpath="
1688 (assoc-ref %outputs "out")
1689 "/lib"))
1690
1691 ;; The tests use 'mknod', which requires root access.
1692 #:tests? #f))
1693 (home-page "http://sourceware.org/lvm2/")
1694 (synopsis "Logical volume management for Linux")
1695 (description
1696 "LVM2 is the logical volume management tool set for Linux-based systems.
1697This package includes the user-space libraries and tools, including the device
1698mapper. Kernel components are part of Linux-libre.")
1699
1700 ;; Libraries (liblvm2, libdevmapper) are LGPLv2.1.
1701 ;; Command-line tools are GPLv2.
1702 (license (list gpl2 lgpl2.1))))
1703
1704(define-public wireless-tools
1705 (package
1706 (name "wireless-tools")
1707 (version "30.pre9")
1708 (source (origin
1709 (method url-fetch)
1710 (uri (string-append "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools."
1711 version ".tar.gz"))
1712 (sha256
1713 (base32
1714 "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb"))
1715 (snippet
1716 '(begin
1717 ;; Remove the older header files that are not free software.
1718 (for-each (lambda (n)
1719 (delete-file (format #f "wireless.~a.h" n)))
1720 '(10 11 12 13 14 15 16 17 18 19 20))
1721 #t))))
1722 (build-system gnu-build-system)
1723 (arguments
1724 `(#:make-flags
1725 (list (string-append "PREFIX=" %output)
1726 (string-append "INSTALL_MAN=" %output "/share/man")
1727 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
1728 "BUILD_STATIC=")
1729 #:phases (modify-phases %standard-phases
1730 (delete 'configure))
1731 #:tests? #f))
1732 (synopsis "Tools for manipulating Linux Wireless Extensions")
1733 (description "Wireless Tools are used to manipulate the now-deprecated
1734Linux Wireless Extensions; consider using 'iw' instead. The Wireless
1735Extension was an interface allowing you to set Wireless LAN specific
1736parameters and get the specific stats. It is deprecated in favor the nl80211
1737interface.")
1738 (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html")
1739 ;; wireless.21.h and wireless.22.h are distributed under lgpl2.1+, the
1740 ;; other files are distributed under gpl2.
1741 (license (list gpl2 lgpl2.1+))))
1742
1743(define-public crda
1744 (package
1745 (name "crda")
1746 (version "3.18")
1747 (source (origin
1748 (method url-fetch)
1749 (uri (string-append "mirror://kernel.org/software/network/crda/"
1750 "crda-" version ".tar.xz"))
1751 (sha256
1752 (base32
1753 "1gydiqgb08d9gbx4l6gv98zg3pljc984m50hmn3ysxcbkxkvkz23"))
1754 (patches (list (search-patch "crda-optional-gcrypt.patch")))))
1755 (build-system gnu-build-system)
1756 (arguments
1757 '(#:phases (modify-phases %standard-phases
1758 (delete 'configure)
1759 (add-before
1760 'build 'no-werror-no-ldconfig
1761 (lambda _
1762 (substitute* "Makefile"
1763 (("-Werror") "")
1764 (("ldconfig") "true"))
1765 #t))
1766 (add-before
1767 'build 'set-regulator-db-file-name
1768 (lambda* (#:key inputs #:allow-other-keys)
1769 ;; Tell CRDA where to find our database.
1770 (let ((regdb (assoc-ref inputs "wireless-regdb")))
1771 (substitute* "crda.c"
1772 (("\"/lib/crda/regulatory.bin\"")
1773 (string-append "\"" regdb
1774 "/lib/crda/regulatory.bin\"")))
1775 #t))))
1776 #:test-target "verify"
1777 #:make-flags (let ((out (assoc-ref %outputs "out"))
1778 (regdb (assoc-ref %build-inputs "wireless-regdb")))
1779 (list "CC=gcc" "V=1"
1780
1781 ;; Disable signature-checking on 'regulatory.bin'.
1782 ;; The reason is that this simplifies maintenance
1783 ;; on our side (no need to manage a distro key
1784 ;; pair), and we can guarantee integrity of
1785 ;; 'regulatory.bin' by other means anyway, such as
1786 ;; 'guix gc --verify'. See
1787 ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
1788 ;; for a discssion.
1789 "USE_OPENSSL=0"
1790
1791 (string-append "PREFIX=" out)
1792 (string-append "SBINDIR=" out "/sbin/")
1793 (string-append "UDEV_RULE_DIR="
1794 out "/lib/udev/rules.d")
1795 (string-append "LDFLAGS=-Wl,-rpath="
1796 out "/lib -L.")
1797 (string-append "REG_BIN=" regdb
1798 "/lib/crda/regulatory.bin")))))
1799 (native-inputs `(("pkg-config" ,pkg-config)
1800 ("python" ,python-2)
1801 ("wireless-regdb" ,wireless-regdb)))
1802 (inputs `(("libnl" ,libnl)))
1803 (home-page
1804 "https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA")
1805 (synopsis "Central regulatory domain agent (CRDA) for WiFi")
1806 (description
1807 "The Central Regulatory Domain Agent (CRDA) acts as the udev helper for
1808communication between the kernel Linux and user space for regulatory
1809compliance.")
1810 (license copyleft-next)))
1811
1812(define-public wireless-regdb
1813 (package
1814 (name "wireless-regdb")
1815 (version "2015.04.06")
1816 (source (origin
1817 (method url-fetch)
1818 (uri (string-append
1819 "mirror://kernel.org/software/network/wireless-regdb/"
1820 "wireless-regdb-" version ".tar.xz"))
1821 (sha256
1822 (base32
1823 "0czi83k311fp27z42hxjm8vi88fsbc23mhavv96lkb4pmari0jjc"))))
1824 (build-system gnu-build-system)
1825 (arguments
1826 '(#:phases (modify-phases %standard-phases
1827 (delete 'configure))
1828 #:tests? #f ;no tests
1829 #:make-flags (let ((out (assoc-ref %outputs "out")))
1830 (list (string-append "PREFIX=" out)
1831 (string-append "LSB_ID=GuixSD")
1832 (string-append "DISTRO_PUBKEY=/dev/null")
1833 (string-append "DISTRO_PRIVKEY=/dev/null")
1834 (string-append "REGDB_PUBKEY=/dev/null")
1835
1836 ;; Leave that empty so that db2bin.py doesn't try
1837 ;; to sign 'regulatory.bin'. This allows us to
1838 ;; avoid managing a key pair for the whole distro.
1839 (string-append "REGDB_PRIVKEY=")))))
1840 (native-inputs `(("python" ,python-2)))
1841 (home-page
1842 "https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb")
1843 (synopsis "Wireless regulatory database")
1844 (description
1845 "This package contains the wireless regulatory database Central
1846Regulatory Database Agent (CRDA) daemon. The database contains information on
1847country-specific regulations for the wireless spectrum.")
1848 (license isc)))
1849
1850(define-public lm-sensors
1851 (package
1852 (name "lm-sensors")
1853 (version "3.3.5")
1854 (source (origin
1855 (method url-fetch)
1856 (uri (string-append
1857 "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-"
1858 version ".tar.bz2"))
1859 (sha256
1860 (base32
1861 "1ksgrynxgrq590nb2fwxrl1gwzisjkqlyg3ljfd1al0ibrk6mbjx"))
1862 (patches (list (search-patch "lm-sensors-hwmon-attrs.patch")))))
1863 (build-system gnu-build-system)
1864 (inputs `(("rrdtool" ,rrdtool)
1865 ("perl" ,perl)
1866 ("kmod" ,kmod)
1867 ("gnuplot" ,gnuplot)))
1868 (native-inputs `(("pkg-config" ,pkg-config)
1869 ("flex" ,flex)
1870 ("bison" ,bison)
1871 ("which" ,which)))
1872 (arguments
1873 `(#:tests? #f ; no 'check' target
1874 #:make-flags (list (string-append "PREFIX=" %output)
1875 (string-append "ETCDIR=" %output "/etc")
1876 (string-append "MANDIR=" %output "/share/man"))
1877 #:phases
1878 (alist-delete
1879 'configure
1880 (alist-cons-before
1881 'build 'patch-exec-paths
1882 (lambda* (#:key inputs outputs #:allow-other-keys)
1883 (substitute* "prog/detect/sensors-detect"
1884 (("`uname")
1885 (string-append "`" (assoc-ref inputs "coreutils")
1886 "/bin/uname"))
1887 (("(`|\")modprobe" all open-quote)
1888 (string-append open-quote
1889 (assoc-ref inputs "kmod")
1890 "/bin/modprobe")))
1891 (substitute* '("prog/pwm/pwmconfig"
1892 "prog/pwm/fancontrol")
1893 (("gnuplot")
1894 (string-append (assoc-ref inputs "gnuplot")
1895 "/bin/gnuplot"))
1896 (("cat ")
1897 (string-append (assoc-ref inputs "coreutils")
1898 "/bin/cat "))
1899 (("egrep ")
1900 (string-append (assoc-ref inputs "grep")
1901 "/bin/egrep "))
1902 (("sed -e")
1903 (string-append (assoc-ref inputs "sed")
1904 "/bin/sed -e"))
1905 (("cut -d")
1906 (string-append (assoc-ref inputs "coreutils")
1907 "/bin/cut -d"))
1908 (("sleep ")
1909 (string-append (assoc-ref inputs "coreutils")
1910 "/bin/sleep "))
1911 (("readlink -f")
1912 (string-append (assoc-ref inputs "coreutils")
1913 "/bin/readlink -f"))))
1914 %standard-phases))))
1915 (home-page "http://www.lm-sensors.org/")
1916 (synopsis "Utilities to read temperature/voltage/fan sensors")
1917 (description
1918 "Lm-sensors is a hardware health monitoring package for Linux. It allows
1919you to access information from temperature, voltage, and fan speed sensors.
1920It works with most newer systems.")
1921 (license gpl2+)))
1922
1923(define-public i2c-tools
1924 (package
1925 (name "i2c-tools")
1926 (version "3.1.1")
1927 (source (origin
1928 (method url-fetch)
1929 (uri (string-append
1930 "http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-"
1931 version ".tar.bz2"))
1932 (sha256
1933 (base32
1934 "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
1935 (build-system gnu-build-system)
1936 (arguments
1937 `(#:tests? #f ; no 'check' target
1938 #:make-flags (list (string-append "prefix=" %output)
1939 "CC=gcc")
1940 ;; no configure script
1941 #:phases (alist-delete 'configure %standard-phases)))
1942 (inputs
1943 `(("perl" ,perl)))
1944 (home-page "http://www.lm-sensors.org/wiki/I2CTools")
1945 (synopsis "I2C tools for Linux")
1946 (description
1947 "The i2c-tools package contains a heterogeneous set of I2C tools for
1948Linux: a bus probing tool, a chip dumper, register-level SMBus access helpers,
1949EEPROM decoding scripts, EEPROM programming tools, and a python module for
1950SMBus access.")
1951 (license gpl2+)))
1952
1953(define-public xsensors
1954 (package
1955 (name "xsensors")
1956 (version "0.70")
1957 (source (origin
1958 (method url-fetch)
1959 (uri (string-append
1960 "http://www.linuxhardware.org/xsensors/xsensors-"
1961 version ".tar.gz"))
1962 (sha256
1963 (base32
1964 "1siplsfgvcxamyqf44h71jx6jdfmvhfm7mh0y1q8ps4zs6pj2zwh"))))
1965 (build-system gnu-build-system)
1966 (inputs `(("lm-sensors" ,lm-sensors)
1967 ("gtk" ,gtk+-2)))
1968 (native-inputs `(("pkg-config" ,pkg-config)))
1969 (arguments
1970 `(#:phases (alist-cons-before
1971 'configure 'enable-deprecated
1972 (lambda _
1973 (substitute* "src/Makefile.in"
1974 (("-DGDK_DISABLE_DEPRECATED") "")
1975 (("-DGTK_DISABLE_DEPRECATED") "")))
1976 (alist-cons-before
1977 'configure 'remove-Werror
1978 (lambda _
1979 (substitute* '("configure" "src/Makefile.in")
1980 (("-Werror") "")))
1981 %standard-phases))))
1982 (home-page "http://www.linuxhardware.org/xsensors/")
1983 (synopsis "Hardware health information viewer")
1984 (description
1985 "Xsensors reads data from the libsensors library regarding hardware
1986health such as temperature, voltage and fan speed and displays the information
1987in a digital read-out.")
1988 (license gpl2+)))
1989
1990(define-public perf
1991 (package
1992 (name "perf")
1993 (version (package-version linux-libre))
1994 (source (package-source linux-libre))
1995 (build-system gnu-build-system)
1996 (arguments
1997 '(#:phases (alist-replace
1998 'configure
1999 (lambda* (#:key inputs #:allow-other-keys)
2000 (setenv "SHELL_PATH" (which "bash"))
2001 (chdir "tools/perf"))
2002 %standard-phases)
2003 #:make-flags (list (string-append "DESTDIR="
2004 (assoc-ref %outputs "out"))
2005 "WERROR=0"
2006
2007 ;; By default, 'config/Makefile' uses lib64 on
2008 ;; x86_64. Work around that.
2009 "lib=lib")
2010 #:tests? #f)) ;no tests
2011 (native-inputs
2012 `(("pkg-config" ,pkg-config)
2013 ("bison" ,bison)
2014 ("flex" ,flex)
2015
2016 ;; There are build scripts written in these languages.
2017 ("perl" ,perl)
2018 ("python" ,python-2)))
2019 (inputs
2020 `(("slang" ,slang) ;for the interactive TUI
2021 ;; ("newt" ,newt)
2022 ("python" ,python-2) ;'perf' links against libpython
2023 ("elfutils" ,elfutils)
2024
2025 ;; Documentation.
2026 ("libxml2" ,libxml2) ;for $XML_CATALOG_FILES
2027 ("libxslt" ,libxslt)
2028 ("docbook-xml" ,docbook-xml)
2029 ("docbook-xsl" ,docbook-xsl)
2030 ("xmlto" ,xmlto)
2031 ("asciidoc" ,asciidoc)))
2032 (home-page "https://perf.wiki.kernel.org/")
2033 (synopsis "Linux profiling with performance counters")
2034 (description
2035 "perf is a tool suite for profiling using hardware performance counters,
2036with support in the Linux kernel. perf can instrument CPU performance
2037counters, tracepoints, kprobes, and uprobes (dynamic tracing). It is capable
2038of lightweight profiling. This package contains the user-land tools and in
2039particular the 'perf' command.")
2040 (license (package-license linux-libre))))
2041
2042(define-public pflask
2043 (package
2044 (name "pflask")
2045 (version "0.2")
2046 (source (origin
2047 (method url-fetch)
2048 (uri (string-append "https://github.com/ghedo/pflask/archive/v"
2049 version ".tar.gz"))
2050 (file-name (string-append name "-" version ".tar.gz"))
2051 (sha256
2052 (base32
2053 "1g8fjj67dfkc2s0852l9vqi1pm61gp4rxbpzbzg780f5s5hd1fys"))))
2054 (build-system cmake-build-system)
2055 (arguments
2056 '(#:tests? #f)) ; no tests
2057 (home-page "http://ghedo.github.io/pflask/")
2058 (synopsis "Simple tool for creating Linux namespace containers")
2059 (description "pflask is a simple tool for creating Linux namespace
2060containers. It can be used for running a command or even booting an OS inside
2061an isolated container, created with the help of Linux namespaces. It is
2062similar in functionality to chroot, although pflask provides better isolation
2063thanks to the use of namespaces.")
2064 (license bsd-2)))
2065
2066(define-public hdparm
2067 (package
2068 (name "hdparm")
2069 (version "9.45")
2070 (source (origin
2071 (method url-fetch)
2072 (uri (string-append "mirror://sourceforge/" name "/"
2073 name "-" version ".tar.gz"))
2074 (sha256
2075 (base32
2076 "0sc6yf3k6sd7n6a2ig2my9fjlqpak3znlyw7jw4cz5d9asm1rc13"))))
2077 (build-system gnu-build-system)
2078 (arguments
2079 `(#:make-flags (let ((out (assoc-ref %outputs "out")))
2080 (list (string-append "binprefix=" out)
2081 (string-append "manprefix=" out)
2082 "CC=gcc"))
2083 #:phases (alist-delete 'configure %standard-phases)
2084 #:tests? #f)) ; no test suite
2085 (home-page "http://sourceforge.net/projects/hdparm/")
2086 (synopsis "Tune hard disk parameters for high performance")
2087 (description
2088 "Get/set device parameters for Linux SATA/IDE drives. It's primary use
2089is for enabling irq-unmasking and IDE multiple-mode.")
2090 (license (non-copyleft "file://LICENSE.TXT"))))
2091
2092(define-public rfkill
2093 (package
2094 (name "rfkill")
2095 (version "0.5")
2096 (source (origin
2097 (method url-fetch)
2098 (uri (string-append "mirror://kernel.org/software/network/"
2099 name "/" name "-" version ".tar.xz"))
2100 (sha256
2101 (base32
2102 "0snqj5h0y991lszbigbyyqb8swj0hxajc1vfqg2scfay44231bp0"))))
2103 (build-system gnu-build-system)
2104 (arguments
2105 `(#:make-flags (list "CC=gcc"
2106 (string-append "PREFIX=" %output))
2107 #:phases (modify-phases %standard-phases
2108 (delete 'configure))
2109 #:tests? #f))
2110 (home-page "https://wireless.wiki.kernel.org/en/users/Documentation/rfkill")
2111 (synopsis "Tool for enabling and disabling wireless devices")
2112 (description
2113 "rfkill is a simple tool for accessing the rfkill device interface,
2114which is used to enable and disable wireless networking devices, typically
2115WLAN, Bluetooth and mobile broadband.")
2116 (license (non-copyleft "file://COPYING"
2117 "See COPYING in the distribution."))))
2118
2119(define-public acpid
2120 (package
2121 (name "acpid")
2122 (version "2.0.23")
2123 (source (origin
2124 (method url-fetch)
2125 (uri (string-append "mirror://sourceforge/acpid2/acpid-"
2126 version ".tar.xz"))
2127 (sha256
2128 (base32
2129 "1vl7c6vc724v4jwki17czgj6lnrknnj1a6llm8gkl32i2gnam5j3"))))
2130 (build-system gnu-build-system)
2131 (home-page "http://sourceforge.net/projects/acpid2/")
2132 (synopsis "Daemon for delivering ACPI events to user-space programs")
2133 (description
2134 "acpid is designed to notify user-space programs of Advanced
2135Configuration and Power Interface (ACPI) events. acpid should be started
2136during the system boot, and will run as a background process. When an ACPI
2137event is received from the kernel, acpid will examine the list of rules
2138specified in /etc/acpi/events and execute the rules that match the event.")
2139 (license gpl2+)))
2140
2141(define-public sysfsutils
2142 (package
2143 (name "sysfsutils")
2144 (version "2.1.0")
2145 (source
2146 (origin
2147 (method url-fetch)
2148 (uri
2149 (string-append
2150 "mirror://sourceforge/linux-diag/sysfsutils/" version "/sysfsutils-"
2151 version ".tar.gz"))
2152 (sha256
2153 (base32 "12i0ip11xbfcjzxz4r10cvz7mbzgq1hfcdn97w6zz7sm3wndwrg8"))))
2154 (build-system gnu-build-system)
2155 (home-page "http://linux-diag.sourceforge.net/Sysfsutils.html")
2156 (synopsis "System utilities based on Linux sysfs")
2157 (description
2158 "These are a set of utilities built upon sysfs, a virtual filesystem in
2159Linux kernel versions 2.5+ that exposes a system's device tree. The package
2160also contains the libsysfs library.")
2161 ;; The library is under lgpl2.1+ (all files say "or any later version").
2162 ;; The rest is mostly gpl2, with a few files indicating gpl2+.
2163 (license (list gpl2 gpl2+ lgpl2.1+))))
2164
2165(define-public sysfsutils-1
2166 (package
2167 (inherit sysfsutils)
2168 (version "1.3.0")
2169 (source
2170 (origin
2171 (method url-fetch)
2172 (uri
2173 (string-append
2174 "mirror://sourceforge/linux-diag/sysfsutils/sysfsutils-" version
2175 "/sysfsutils-" version ".tar.gz"))
2176 (sha256
2177 (base32 "0kdhs07fm8263pxwd5blwn2x211cg4fk63fyf9ijcdkvzmwxrqq3"))
2178 (modules '((guix build utils)))
2179 (snippet
2180 '(begin
2181 (substitute* "Makefile.in"
2182 (("includedir = /usr/include/sysfs")
2183 "includedir = @includedir@"))
2184 (substitute* "configure"
2185 (("includedir='(\\$\\{prefix\\}/include)'" all orig)
2186 (string-append "includedir='" orig "/sysfs'")))))))
2187 (synopsis "System utilities based on Linux sysfs (version 1.x)")))
2188
2189(define-public cpufrequtils
2190 (package
2191 (name "cpufrequtils")
2192 (version "0.3")
2193 (source
2194 (origin
2195 (method url-fetch)
2196 (uri
2197 (string-append
2198 "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-"
2199 version ".tar.gz"))
2200 (sha256
2201 (base32 "0qfqv7nqmjfr3p0bwrdlxkiqwqr7vmx053cadaa548ybqbghxmvm"))
2202 (patches (list (search-patch "cpufrequtils-fix-aclocal.patch")))))
2203 (build-system gnu-build-system)
2204 (native-inputs
2205 `(("sysfsutils" ,sysfsutils-1)))
2206 (arguments
2207 '(#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2208 (assoc-ref %outputs "out") "/lib"))))
2209 (home-page "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/")
2210 (synopsis "Utilities to get and set CPU frequency on Linux")
2211 (description
2212 "The cpufrequtils suite contains utilities to retrieve CPU frequency
2213information, and set the CPU frequency if supported, using the cpufreq
2214capabilities of the Linux kernel.")
2215 (license gpl2)))
2216
2217(define-public libraw1394
2218 (package
2219 (name "libraw1394")
2220 (version "2.1.0")
2221 (source (origin
2222 (method url-fetch)
2223 (uri (string-append
2224 "mirror://kernel.org/linux/libs/ieee1394/"
2225 name "-" version ".tar.xz"))
2226 (sha256
2227 (base32
2228 "0kwnf4ha45c04mhc4yla672aqmvqqihxix1gvblns5cd2pc2cc8b"))))
2229 (build-system gnu-build-system)
2230 (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page")
2231 (synopsis "Interface library for the Linux IEEE1394 drivers")
2232 (description
2233 "Libraw1394 is the only supported interface to the kernel side raw1394 of
2234the Linux IEEE-1394 subsystem, which provides direct access to the connected
22351394 buses to user space. Through libraw1394/raw1394, applications can directly
2236send to and receive from other nodes without requiring a kernel driver for the
2237protocol in question.")
2238 (license lgpl2.1+)))
2239
2240(define-public libavc1394
2241 (package
2242 (name "libavc1394")
2243 (version "0.5.4")
2244 (source (origin
2245 (method url-fetch)
2246 (uri (string-append "mirror://sourceforge/libavc1394/"
2247 name "-" version ".tar.gz"))
2248 (sha256
2249 (base32
2250 "0lsv46jdqvdx5hx92v0z2cz3yh6212pz9gk0k3513sbaa04zzcbw"))))
2251 (build-system gnu-build-system)
2252 (native-inputs
2253 `(("pkg-config" ,pkg-config)))
2254 (propagated-inputs
2255 `(("libraw1394" ,libraw1394))) ; required by libavc1394.pc
2256 (home-page "http://sourceforge.net/projects/libavc1394/")
2257 (synopsis "AV/C protocol library for IEEE 1394")
2258 (description
2259 "Libavc1394 is a programming interface to the AV/C specification from
2260the 1394 Trade Association. AV/C stands for Audio/Video Control.")
2261 (license lgpl2.1+)))
2262
2263(define-public libiec61883
2264 (package
2265 (name "libiec61883")
2266 (version "1.2.0")
2267 (source (origin
2268 (method url-fetch)
2269 (uri (string-append
2270 "mirror://kernel.org/linux/libs/ieee1394/"
2271 name "-" version ".tar.xz"))
2272 (sha256
2273 (base32
2274 "17ph458zya2l8dr2xwqnzy195qd9swrir31g78qkgb3g4xz2rq6i"))))
2275 (build-system gnu-build-system)
2276 (native-inputs
2277 `(("pkg-config" ,pkg-config)))
2278 (propagated-inputs
2279 `(("libraw1394" ,libraw1394))) ; required by libiec61883.pc
2280 (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page")
2281 (synopsis "Isochronous streaming media library for IEEE 1394")
2282 (description
2283 "The libiec61883 library provides a higher level API for streaming DV,
2284MPEG-2 and audio over Linux IEEE 1394.")
2285 (license lgpl2.1+)))
2286
2287(define-public mdadm
2288 (package
2289 (name "mdadm")
2290 (version "3.3.2")
2291 (source (origin
2292 (method url-fetch)
2293 (uri (string-append
2294 "mirror://kernel.org/linux/utils/raid/mdadm/mdadm-"
2295 version ".tar.xz"))
2296 (sha256
2297 (base32
2298 "132vdvh3myjgcjn6i9w90ck16ddjxjcszklzkyvr4f5ifqd7wfhg"))
2299 (patches (list (search-patch "mdadm-gcc-4.9-fix.patch")))))
2300 (build-system gnu-build-system)
2301 (inputs
2302 `(("udev" ,eudev)))
2303 (arguments
2304 `(#:make-flags (let ((out (assoc-ref %outputs "out")))
2305 (list "INSTALL=install"
2306 "CHECK_RUN_DIR=0"
2307 ;; TODO: tell it where to find 'sendmail'
2308 ;; (string-append "MAILCMD=" <???> "/sbin/sendmail")
2309 (string-append "BINDIR=" out "/sbin")
2310 (string-append "MANDIR=" out "/share/man")
2311 (string-append "UDEVDIR=" out "/lib/udev")))
2312 #:phases (alist-cons-before
2313 'build 'patch-program-paths
2314 (lambda* (#:key inputs #:allow-other-keys)
2315 (let ((coreutils (assoc-ref inputs "coreutils")))
2316 (substitute* "udev-md-raid-arrays.rules"
2317 (("/usr/bin/(readlink|basename)" all program)
2318 (string-append coreutils "/bin/" program)))))
2319 (alist-delete 'configure %standard-phases))
2320 ;;tests must be done as root
2321 #:tests? #f))
2322 (home-page "http://neil.brown.name/blog/mdadm")
2323 (synopsis "Tool for managing Linux Software RAID arrays")
2324 (description
2325 "mdadm is a tool for managing Linux Software RAID arrays. It can create,
2326assemble, report on, and monitor arrays. It can also move spares between raid
2327arrays when needed.")
2328 (license gpl2+)))
2329
2330(define-public libaio
2331 (package
2332 (name "libaio")
2333 (version "0.3.110")
2334 (source (origin
2335 (method url-fetch)
2336 (uri (list
2337 (string-append "mirror://debian/pool/main/liba/libaio/"
2338 name "_" version ".orig.tar.gz")
2339 (string-append "https://fedorahosted.org/releases/l/i/libaio/"
2340 name "-" version ".tar.gz")))
2341 (sha256
2342 (base32
2343 "0zjzfkwd1kdvq6zpawhzisv7qbq1ffs343i5fs9p498pcf7046g0"))))
2344 (build-system gnu-build-system)
2345 (arguments
2346 '(#:make-flags
2347 (list "CC=gcc" (string-append "prefix=" %output))
2348 #:test-target "partcheck" ; need root for a full 'check'
2349 #:phases
2350 (alist-delete 'configure %standard-phases))) ; no configure script
2351 (home-page "http://lse.sourceforge.net/io/aio.html")
2352 (synopsis "Linux-native asynchronous I/O access library")
2353 (description
2354 "This library enables userspace to use Linux kernel asynchronous I/O
2355system calls, important for the performance of databases and other advanced
2356applications.")
2357 (license lgpl2.1+)))
2358
2359(define-public bluez
2360 (package
2361 (name "bluez")
2362 (version "5.30")
2363 (source (origin
2364 (method url-fetch)
2365 (uri (string-append
2366 "https://www.kernel.org/pub/linux/bluetooth/bluez-"
2367 version ".tar.xz"))
2368 (sha256
2369 (base32
2370 "0b1qbnq1xzcdw5rajg9yyg31bf21jnff0n6gnf1snz89bbdllfhy"))))
2371 (build-system gnu-build-system)
2372 (arguments
2373 '(#:configure-flags
2374 (let ((out (assoc-ref %outputs "out")))
2375 (list "--enable-library"
2376 "--disable-systemd"
2377 ;; Install dbus/udev files to the correct location.
2378 (string-append "--with-dbusconfdir=" out "/etc")
2379 (string-append "--with-udevdir=" out "/lib/udev")))))
2380 (native-inputs
2381 `(("pkg-config" ,pkg-config)
2382 ("gettext" ,gnu-gettext)))
2383 (inputs
2384 `(("glib" ,glib)
2385 ("dbus" ,dbus)
2386 ("eudev" ,eudev)
2387 ("libical" ,libical)
2388 ("readline" ,readline)))
2389 (home-page "http://www.bluez.org/")
2390 (synopsis "Linux Bluetooth protocol stack")
2391 (description
2392 "BlueZ provides support for the core Bluetooth layers and protocols. It
2393is flexible, efficient and uses a modular implementation.")
2394 (license gpl2+)))