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 ;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages linux)
26 #:use-module ((guix licenses)
27 #:hide (zlib openssl))
28 #:use-module (gnu packages)
29 #:use-module (gnu packages compression)
30 #:use-module (gnu packages gcc)
31 #:use-module (gnu packages flex)
32 #:use-module (gnu packages bison)
33 #:use-module (gnu packages admin)
34 #:use-module (gnu packages gperf)
35 #:use-module (gnu packages libusb)
36 #:use-module (gnu packages ncurses)
37 #:use-module (gnu packages pciutils)
38 #:use-module (gnu packages databases)
39 #:use-module (gnu packages perl)
40 #:use-module (gnu packages pkg-config)
41 #:use-module (gnu packages python)
42 #:use-module (gnu packages slang)
43 #:use-module (gnu packages algebra)
44 #:use-module (gnu packages gettext)
45 #:use-module (gnu packages glib)
46 #:use-module (gnu packages pulseaudio)
47 #:use-module (gnu packages attr)
48 #:use-module (gnu packages xml)
49 #:use-module (gnu packages autotools)
50 #:use-module (gnu packages texinfo)
51 #:use-module (gnu packages check)
52 #:use-module (gnu packages maths)
53 #:use-module (gnu packages base)
54 #:use-module (gnu packages rrdtool)
55 #:use-module (gnu packages elf)
56 #:use-module (gnu packages gtk)
57 #:use-module (gnu packages docbook)
58 #:use-module (gnu packages asciidoc)
59 #:use-module (gnu packages readline)
60 #:use-module (gnu packages calendar)
61 #:use-module (gnu packages tls)
62 #:use-module (guix packages)
63 #:use-module (guix download)
64 #:use-module (guix utils)
65 #:use-module (guix build-system gnu)
66 #:use-module (guix build-system cmake)
67 #:use-module (guix build-system python)
68 #:use-module (guix build-system trivial)
69 #:use-module (srfi srfi-26)
70 #:use-module (ice-9 match))
72 (define-public (system->linux-architecture arch)
73 "Return the Linux architecture name for ARCH, a Guix system name such as
75 (let ((arch (car (string-split arch #\-))))
76 (cond ((string=? arch "i686") "i386")
77 ((string-prefix? "mips" arch) "mips")
78 ((string-prefix? "arm" arch) "arm")
81 (define (linux-libre-urls version)
82 "Return a list of URLs for Linux-Libre VERSION."
84 "http://linux-libre.fsfla.org/pub/linux-libre/releases/"
85 version "-gnu/linux-libre-" version "-gnu.tar.xz")
87 ;; XXX: Work around <http://bugs.gnu.org/14851>.
89 "ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-"
90 version "-gnu.tar.xz")
92 ;; Maybe this URL will become valid eventually.
94 "mirror://gnu/linux-libre/" version "-gnu/linux-libre-"
95 version "-gnu.tar.xz")))
97 (define-public linux-libre-headers
98 (let* ((version "3.14.37")
102 (setenv "ARCH" ,(system->linux-architecture arch))
103 (format #t "`ARCH' set to `~a'~%" (getenv "ARCH"))
105 (and (zero? (system* "make" "defconfig"))
106 (zero? (system* "make" "mrproper" "headers_check"))))))
108 `(lambda* (#:key outputs #:allow-other-keys)
109 (let ((out (assoc-ref outputs "out")))
110 (and (zero? (system* "make"
111 (string-append "INSTALL_HDR_PATH=" out)
114 (mkdir (string-append out "/include/config"))
115 (call-with-output-file
117 "/include/config/kernel.release")
119 (format p "~a-default~%" ,version)))
121 ;; Remove the '.install' and '..install.cmd' files; the
122 ;; latter contains store paths, which pulls in bootstrap
123 ;; binaries in the build environment, and prevents bit
124 ;; reproducibility for the bootstrap binaries.
125 (for-each delete-file (find-files out "\\.install"))
129 (name "linux-libre-headers")
133 (uri (linux-libre-urls version))
136 "1blxr2bsvfqi9khj4cpspv434bmx252zak2wsbi2mgl60zh77gza"))))
137 (build-system gnu-build-system)
138 (native-inputs `(("perl" ,perl)))
140 `(#:modules ((guix build gnu-build-system)
143 #:phases (alist-replace
144 'build ,(build-phase (or (%current-target-system)
147 'install ,install-phase
148 (alist-delete 'configure %standard-phases)))
149 #:allowed-references ()
151 (synopsis "GNU Linux-Libre kernel headers")
152 (description "Headers of the Linux-Libre kernel.")
154 (home-page "http://www.gnu.org/software/linux-libre/"))))
156 (define-public module-init-tools
158 (name "module-init-tools")
163 "mirror://kernel.org/linux/utils/kernel/module-init-tools/module-init-tools-"
167 "0jxnz9ahfic79rp93l5wxcbgh4pkv85mwnjlbv1gz3jawv5cvwp1"))
169 (list (search-patch "module-init-tools-moduledir.patch")))))
170 (build-system gnu-build-system)
172 ;; FIXME: The upstream tarball lacks man pages, and building them would
173 ;; require DocBook & co. We used to use Gentoo's pre-built man pages,
174 ;; but they vanished. In the meantime, fake it.
175 '(#:phases (alist-cons-before
176 'configure 'fake-docbook
178 (substitute* "Makefile.in"
179 (("^DOCBOOKTOMAN.*$")
180 "DOCBOOKTOMAN = true\n")))
182 (home-page "http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/")
183 (synopsis "Tools for loading and managing Linux kernel modules")
185 "Tools for loading and managing Linux kernel modules, such as `modprobe',
186 `insmod', `lsmod', and more.")
189 (define %boot-logo-patch
190 ;; Linux-Libre boot logo featuring Freedo and a gnu.
193 (uri (string-append "http://www.fsfla.org/svn/fsfla/software/linux-libre/"
194 "lemote/gnewsense/branches/3.16/100gnu+freedo.patch"))
197 "1hk9swxxc80bmn2zd2qr5ccrjrk28xkypwhl4z0qx4hbivj7qm06"))))
199 (define (kernel-config system)
200 "Return the absolute file name of the Linux-Libre build configuration file
201 for SYSTEM, or #f if there is no configuration for SYSTEM."
202 (define (lookup file)
203 (let ((file (string-append "gnu/packages/" file)))
204 (search-path %load-path file)))
208 (lookup "linux-libre-i686.conf"))
210 (lookup "linux-libre-x86_64.conf"))
214 (define-public linux-libre
215 (let* ((version "4.3.3")
217 '(lambda* (#:key system inputs #:allow-other-keys #:rest args)
218 ;; Apply the neat patch.
219 (system* "patch" "-p1" "--force"
220 "-i" (assoc-ref inputs "patch/freedo+gnu"))
222 (let ((arch (car (string-split system #\-))))
224 (cond ((string=? arch "i686") "i386")
225 ((string=? arch "mips64el") "mips")
227 (format #t "`ARCH' set to `~a'~%" (getenv "ARCH")))
229 (let ((build (assoc-ref %standard-phases 'build))
230 (config (assoc-ref inputs "kconfig")))
232 ;; Use the architecture-specific config if available, and
233 ;; 'defconfig' otherwise.
236 (copy-file config ".config")
237 (chmod ".config" #o666))
238 (system* "make" "defconfig"))
240 ;; Appending works even when the option wasn't in the
241 ;; file. The last one prevails if duplicated.
242 (let ((port (open-file ".config" "a")))
243 (display (string-append "CONFIG_NET_9P=m\n"
244 "CONFIG_NET_9P_VIRTIO=m\n"
245 "CONFIG_VIRTIO_BLK=m\n"
246 "CONFIG_VIRTIO_NET=m\n"
247 ;; https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00039.html
248 "CONFIG_DEVPTS_MULTIPLE_INSTANCES=y\n"
249 "CONFIG_VIRTIO_PCI=m\n"
250 "CONFIG_VIRTIO_BALLOON=m\n"
251 "CONFIG_VIRTIO_MMIO=m\n"
258 (zero? (system* "make" "oldconfig"))
260 ;; Call the default `build' phase so `-j' is correctly
262 (apply build #:make-flags "all" args))))
264 `(lambda* (#:key inputs outputs #:allow-other-keys)
265 (let* ((out (assoc-ref outputs "out"))
266 (moddir (string-append out "/lib/modules"))
267 (mit (assoc-ref inputs "module-init-tools")))
269 (for-each (lambda (file)
271 (string-append out "/" (basename file))))
272 (find-files "." "^(bzImage|vmlinuz|System\\.map)$"))
273 (copy-file ".config" (string-append out "/config"))
274 (zero? (system* "make"
275 (string-append "DEPMOD=" mit "/sbin/depmod")
276 (string-append "MODULE_DIR=" moddir)
277 (string-append "INSTALL_PATH=" out)
278 (string-append "INSTALL_MOD_PATH=" out)
279 "INSTALL_MOD_STRIP=1"
280 "modules_install"))))))
286 (uri (linux-libre-urls version))
289 "1z43kzs1pzwq5mkyh7zk8nq38sxlswp65824v54dzwngyc252a18"))))
290 (build-system gnu-build-system)
291 (supported-systems '("x86_64-linux" "i686-linux"))
292 (native-inputs `(("perl" ,perl)
295 ("module-init-tools" ,module-init-tools)
296 ("patch/freedo+gnu" ,%boot-logo-patch)
298 ,@(let ((conf (kernel-config (or (%current-target-system)
299 (%current-system)))))
304 `(#:modules ((guix build gnu-build-system)
308 #:phases (alist-replace
311 'install ,install-phase
312 (alist-delete 'configure %standard-phases)))
314 (synopsis "100% free redistribution of a cleaned Linux kernel")
316 "GNU Linux-Libre is a free (as in freedom) variant of the Linux kernel.
317 It has been modified to remove all non-free binary blobs.")
319 (home-page "http://www.gnu.org/software/linux-libre/"))))
323 ;;; Pluggable authentication modules (PAM).
326 (define-public linux-pam
333 (uri (list (string-append "http://www.linux-pam.org/library/Linux-PAM-"
335 (string-append "mirror://kernel.org/linux/libs/pam/library/Linux-PAM-"
336 version ".tar.bz2")))
339 "1n9lnf9gjs72kbj1g354v1xhi2j27aqaah15vykh7cnkq08i4arl"))))
340 (build-system gnu-build-system)
344 ;; TODO: optional dependencies
345 ;; ("libxcrypt" ,libxcrypt)
346 ;; ("cracklib" ,cracklib)
349 '(;; Most users, such as `shadow', expect the headers to be under
351 #:configure-flags (list (string-append "--includedir="
352 (assoc-ref %outputs "out")
353 "/include/security"))
355 ;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
358 (home-page "http://www.linux-pam.org/")
359 (synopsis "Pluggable authentication modules for Linux")
361 "A *Free* project to implement OSF's RFC 86.0.
362 Pluggable authentication modules are small shared object files that can
363 be used through the PAM API to perform tasks, like authenticating a user
364 at login. Local and dynamic reconfiguration are its key features.")
372 (define-public psmisc
379 (uri (string-append "mirror://sourceforge/psmisc/psmisc/psmisc-"
383 "052mfraykmxnavpi8s78aljx8w87hyvpx8mvzsgpjsjz73i28wmi"))))
384 (build-system gnu-build-system)
385 (inputs `(("ncurses" ,ncurses)))
386 (home-page "http://psmisc.sourceforge.net/")
388 "Small utilities that use the proc filesystem")
390 "This PSmisc package is a set of some small useful utilities that
391 use the proc filesystem. We're not about changing the world, but
392 providing the system administrator with some help in common tasks.")
395 (define-public util-linux
401 (uri (string-append "mirror://kernel.org/linux/utils/"
402 name "/v" (version-major+minor version) "/"
403 name "-" version ".tar.xz"))
406 "1ivdx1bhjbakf77agm9dn3wyxia1wgz9lzxgd61zqxw3xzih9gzw"))
407 (patches (list (search-patch "util-linux-tests.patch")))
408 (modules '((guix build utils)))
410 ;; We take the 'logger' program from GNU Inetutils and 'kill'
411 ;; from GNU Coreutils.
413 (substitute* "configure"
414 (("build_logger=yes") "build_logger=no")
415 (("build_kill=yes") "build_kill=no"))
417 (build-system gnu-build-system)
419 `(#:configure-flags (list "--disable-use-tty-group"
421 ;; Install completions where our
422 ;; bash-completion package expects them.
423 (string-append "--with-bashcompletiondir="
424 (assoc-ref %outputs "out")
425 "/etc/bash_completion.d"))
426 #:phases (modify-phases %standard-phases
428 'build 'set-umount-file-name
429 (lambda* (#:key outputs #:allow-other-keys)
430 ;; Tell 'eject' the right file name of 'umount'.
431 (let ((out (assoc-ref outputs "out")))
432 (substitute* "sys-utils/eject.c"
434 (string-append "\"" out "/bin/umount\"")))
438 (lambda* (#:key inputs outputs #:allow-other-keys)
439 (let ((out (assoc-ref outputs "out"))
440 (net (assoc-ref inputs "net-base")))
441 ;; Change the test to refer to the right file.
442 (substitute* "tests/ts/misc/mcookie"
444 (string-append net "/etc/services")))
446 (inputs `(("zlib" ,zlib)
447 ("ncurses" ,ncurses)))
450 ("net-base" ,net-base))) ;for tests
451 (home-page "https://www.kernel.org/pub/linux/utils/util-linux/")
452 (synopsis "Collection of utilities for the Linux kernel")
453 (description "Util-linux is a diverse collection of Linux kernel
454 utilities. It provides dmesg and includes tools for working with filesystems,
455 block devices, UUIDs, TTYs, and many other tools.")
457 ;; Note that util-linux doesn't use the same license for all the
458 ;; code. GPLv2+ is the default license for a code without an
459 ;; explicitly defined license.
460 (license (list gpl3+ gpl2+ gpl2 lgpl2.0+
461 bsd-4 public-domain))))
463 (define-public procps
469 ;; A mirror://sourceforge URI doesn't work, presumably becuase
470 ;; the SourceForge project is misconfigured.
471 (uri (string-append "http://procps.sourceforge.net/procps-"
475 "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i"))
476 (patches (list (search-patch "procps-make-3.82.patch")))))
477 (build-system gnu-build-system)
478 (inputs `(("ncurses" ,ncurses)))
480 '(#:modules ((guix build utils)
481 (guix build gnu-build-system)
484 #:phases (alist-replace
486 (lambda* (#:key outputs #:allow-other-keys)
487 ;; No `configure', just a single Makefile.
488 (let ((out (assoc-ref outputs "out")))
489 (substitute* "Makefile"
491 (("--(owner|group) 0") "")
492 (("ldconfig") "true")
493 (("^LDFLAGS[[:blank:]]*:=(.*)$" _ value)
494 ;; Add libproc to the RPATH.
495 (string-append "LDFLAGS := -Wl,-rpath="
500 (lambda* (#:key outputs #:allow-other-keys)
501 (let ((out (assoc-ref outputs "out")))
503 (system* "make" "install"
504 (string-append "DESTDIR=" out)))
506 ;; Remove commands and man pages redundant with
508 (let ((dup (append-map (cut find-files out <>)
509 '("^kill" "^uptime"))))
510 (for-each delete-file dup)
515 (system* (string-append out "/bin/ps")
519 ;; What did you expect? Tests?
521 (home-page "http://procps.sourceforge.net/")
522 (synopsis "Utilities that give information about processes")
524 "Procps is the package that has a bunch of small useful utilities
525 that give information about processes using the Linux /proc file system.
526 The package includes the programs ps, top, vmstat, w, kill, free,
527 slabtop, and skill.")
530 (define-public usbutils
537 (uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/"
538 "usbutils-" version ".tar.xz"))
541 "03pd57vv8c6x0hgjqcbrxnzi14h8hcghmapg89p8k5zpwpkvbdfr"))))
542 (build-system gnu-build-system)
544 `(("libusb" ,libusb)))
546 `(("pkg-config" ,pkg-config)))
547 (home-page "http://www.linux-usb.org/")
549 "Tools for working with USB devices, such as lsusb")
551 "Tools for working with USB devices, such as lsusb.")
554 (define-public e2fsprogs
561 "mirror://kernel.org/linux/kernel/people/tytso/"
562 name "/v" version "/"
563 name "-" version ".tar.xz"))
566 "1ix0b83zgw5n0p2grh2961c6796m92yr2jqc2sbr23x3lfsp8r71"))
567 (modules '((guix build utils)))
569 '(substitute* "MCONFIG.in"
570 (("INSTALL_SYMLINK = /bin/sh")
571 "INSTALL_SYMLINK = sh")))))
572 (build-system gnu-build-system)
573 (inputs `(("util-linux" ,util-linux)))
574 (native-inputs `(("pkg-config" ,pkg-config)
575 ("texinfo" ,texinfo))) ;for the libext2fs Info manual
577 '(;; util-linux is not the preferred source for some of the libraries and
578 ;; commands, so disable them (see, e.g.,
579 ;; <http://git.buildroot.net/buildroot/commit/?id=e1ffc2f791b33633>.)
580 #:configure-flags '("--disable-libblkid"
581 "--disable-libuuid" "--disable-uuidd"
584 ;; Install libext2fs et al.
585 "--enable-elf-shlibs")
587 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
588 (assoc-ref %outputs "out")
591 #:phases (alist-cons-before
592 'configure 'patch-shells
594 (substitute* "configure"
595 (("/bin/sh (.*)parse-types.sh" _ dir)
596 (string-append (which "sh") " " dir
598 (substitute* (find-files "." "^Makefile.in$")
600 (string-append "#!" (which "sh")))))
602 'install 'install-libs
603 (lambda* (#:key outputs #:allow-other-keys)
604 (let* ((out (assoc-ref outputs "out"))
605 (lib (string-append out "/lib")))
606 (and (zero? (system* "make" "install-libs"))
608 ;; Make the .a writable so that 'strip' works.
609 ;; Failing to do that, due to debug symbols, we
610 ;; retain a reference to the final
611 ;; linux-libre-headers, which refer to the
612 ;; bootstrap binaries.
613 (let ((archives (find-files lib "\\.a$")))
614 (for-each (lambda (file)
620 ;; FIXME: Tests work by comparing the stdout/stderr of programs, that
621 ;; they fail because we get an extra line that says "Can't check if
622 ;; filesystem is mounted due to missing mtab file".
624 (home-page "http://e2fsprogs.sourceforge.net/")
625 (synopsis "Creating and checking ext2/ext3/ext4 file systems")
627 "This package provides tools for manipulating ext2/ext3/ext4 file systems.")
628 (license (list gpl2 ; programs
632 (define e2fsprogs/static
634 (package (inherit e2fsprogs)
636 ;; Do not build shared libraries.
637 (substitute-keyword-arguments (package-arguments e2fsprogs)
638 ((#:configure-flags _)
639 '(list "--disable-blkid"))
643 (define-public e2fsck/static
645 (name "e2fsck-static")
646 (version (package-version e2fsprogs))
647 (build-system trivial-build-system)
650 `(#:modules ((guix build utils))
653 (use-modules (guix build utils)
657 (let ((source (string-append (assoc-ref %build-inputs "e2fsprogs")
659 (bin (string-append (assoc-ref %outputs "out") "/sbin")))
661 (with-directory-excursion bin
662 (for-each (lambda (file)
663 (copy-file (string-append source "/" file)
665 (remove-store-references file)
667 (scandir source (cut string-prefix? "fsck." <>))))))))
668 (inputs `(("e2fsprogs" ,e2fsprogs/static)))
669 (synopsis "Statically-linked fsck.* commands from e2fsprogs")
671 "This package provides statically-linked command of fsck.ext[234] taken
672 from the e2fsprogs package. It is meant to be used in initrds.")
673 (home-page (package-home-page e2fsprogs))
674 (license (package-license e2fsprogs))))
676 (define-public extundelete
682 (uri (string-append "mirror://sourceforge/extundelete/"
683 version "/extundelete-" version ".tar.bz2"))
686 "1x0r7ylxlp9lbj3d7sqf6j2a222dwy2nfpff05jd6mkh4ihxvyd1"))))
687 (build-system gnu-build-system)
688 (inputs `(("e2fsprogs" ,e2fsprogs)))
689 (home-page "http://extundelete.sourceforge.net/")
690 (synopsis "Recover deleted files from ext2/3/4 partitions")
692 "Extundelete is a set of tools that can recover deleted files from an
693 ext3 or ext4 partition.")
696 (define-public zerofree
700 (home-page "http://intgat.tigress.co.uk/rmy/uml/")
703 (uri (string-append home-page name "-" version
707 "1xncw3dn2cp922ly42m96p6fh7jv8ysg6bwqbk5xvw701f3dmkrs"))))
708 (build-system gnu-build-system)
710 '(#:phases (alist-replace
712 (lambda* (#:key outputs #:allow-other-keys)
713 (let* ((out (assoc-ref outputs "out"))
714 (bin (string-append out "/bin")))
716 (copy-file "zerofree"
717 (string-append bin "/zerofree"))
718 (chmod (string-append bin "/zerofree")
721 (alist-delete 'configure %standard-phases))
722 #:tests? #f)) ;no tests
723 (inputs `(("libext2fs" ,e2fsprogs)))
724 (synopsis "Zero non-allocated regions in ext2/ext3/ext4 file systems")
726 "The zerofree command scans the free blocks in an ext2 file system and
727 fills any non-zero blocks with zeroes. This is a useful way to make disk
728 images more compressible.")
731 (define-public strace
737 (uri (string-append "mirror://sourceforge/strace/strace-"
741 "158iwk0pl2mfw93m1843xb7a2zb8p6lh0qim07rca6f1ff4dk764"))))
742 (build-system gnu-build-system)
743 (native-inputs `(("perl" ,perl)))
744 (home-page "http://strace.sourceforge.net/")
745 (synopsis "System call tracer for Linux")
747 "strace is a system call tracer, i.e. a debugging tool which prints out a
748 trace of all the system calls made by a another process/program.")
751 (define-public ltrace
757 (uri (string-append "http://www.ltrace.org/ltrace_" version
761 "00wmbdghqbz6x95m1mcdd3wd46l6hgcr4wggdp049dbifh3qqvqf"))))
762 (build-system gnu-build-system)
763 (inputs `(("libelf" ,libelf)))
765 ;; Compilation uses -Werror by default, but it fails.
766 '(#:configure-flags '("--disable-werror")))
767 (home-page "http://www.ltrace.org/")
768 (synopsis "Library call tracer for Linux")
770 "ltrace intercepts and records dynamic library calls which are called by
771 an executed process and the signals received by that process. It can also
772 intercept and print the system calls executed by the program.")
775 (define-public alsa-lib
782 "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-"
786 "0fx057746dj7rjdi0jnvx2m9b0y1lgdkh1hks87d8w32xyihf3k9"))
787 (patches (list (search-patch "alsa-lib-mips-atomic-fix.patch")))))
788 (build-system gnu-build-system)
789 (home-page "http://www.alsa-project.org/")
790 (synopsis "The Advanced Linux Sound Architecture libraries")
792 "The Advanced Linux Sound Architecture (ALSA) provides audio and
793 MIDI functionality to the Linux-based operating system.")
796 (define-public alsa-utils
802 (uri (string-append "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-"
806 "1sjjngnq50jv5ilwsb4zys6smifni3bd6fn28gbnhfrg14wsrgq2"))))
807 (build-system gnu-build-system)
809 ;; XXX: Disable man page creation until we have DocBook.
810 '(#:configure-flags (list "--disable-xmlto"
812 ;; The udev rule is responsible for restoring
814 (string-append "--with-udev-rules-dir="
815 (assoc-ref %outputs "out")
816 "/lib/udev/rules.d"))
817 #:phases (alist-cons-before
818 'install 'pre-install
820 ;; Don't try to mkdir /var/lib/alsa.
821 (substitute* "Makefile"
822 (("\\$\\(MKDIR_P\\) .*ASOUND_STATE_DIR.*")
826 `(("libsamplerate" ,libsamplerate)
828 ("alsa-lib" ,alsa-lib)
830 ("gettext" ,gnu-gettext)))
831 (home-page "http://www.alsa-project.org/")
832 (synopsis "Utilities for the Advanced Linux Sound Architecture (ALSA)")
834 "The Advanced Linux Sound Architecture (ALSA) provides audio and
835 MIDI functionality to the Linux-based operating system.")
837 ;; This is mostly GPLv2+ but a few files such as 'alsactl.c' are
841 (define-public iptables
848 "http://www.netfilter.org/projects/iptables/files/iptables-"
852 "0vkg5lzkn4l3i1sm6v3x96zzvnv9g7mi0qgj6279ld383mzcws24"))))
853 (build-system gnu-build-system)
855 '(#:tests? #f ; no test suite
856 #:configure-flags ; add $libdir to the RUNPATH of executables
857 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))))
858 (home-page "http://www.netfilter.org/projects/iptables/index.html")
859 (synopsis "Program to configure the Linux IP packet filtering rules")
861 "iptables is the userspace command line program used to configure the
862 Linux 2.4.x and later IPv4 packet filtering ruleset. It is targeted towards
863 system administrators. Since Network Address Translation is also configured
864 from the packet filter ruleset, iptables is used for this, too. The iptables
865 package also includes ip6tables. ip6tables is used for configuring the IPv6
869 (define-public iproute
876 "mirror://kernel.org/linux/utils/net/iproute2/iproute2-"
880 "04gi11gh087bg2nlxhj0lxrk8l9qxkpr88nsiil23917bm3h1xj4"))))
881 (build-system gnu-build-system)
883 `(#:tests? #f ; no test suite
884 #:make-flags (let ((out (assoc-ref %outputs "out")))
886 (string-append "LIBDIR=" out "/lib")
887 (string-append "SBINDIR=" out "/sbin")
888 (string-append "CONFDIR=" out "/etc")
889 (string-append "DOCDIR=" out "/share/doc/"
891 (string-append "MANDIR=" out "/share/man")))
892 #:phases (alist-cons-before
893 'install 'pre-install
895 ;; Don't attempt to create /var/lib/arpd.
896 (substitute* "Makefile"
897 (("^.*ARPDDIR.*$") "")))
900 `(("iptables" ,iptables)
903 `(("pkg-config" ,pkg-config)
907 "http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2")
909 "Utilities for controlling TCP/IP networking and traffic in Linux")
911 "Iproute2 is a collection of utilities for controlling TCP/IP
912 networking and traffic with the Linux kernel.
914 Most network configuration manuals still refer to ifconfig and route as the
915 primary network configuration tools, but ifconfig is known to behave
916 inadequately in modern network environments. They should be deprecated, but
917 most distros still include them. Most network configuration systems make use
918 of ifconfig and thus provide a limited feature set. The /etc/net project aims
919 to support most modern network technologies, as it doesn't use ifconfig and
920 allows a system administrator to make use of all iproute2 features, including
923 iproute2 is usually shipped in a package called iproute or iproute2 and
924 consists of several tools, of which the most important are ip and tc. ip
925 controls IPv4 and IPv6 configuration and tc stands for traffic control. Both
926 tools print detailed usage messages and are accompanied by a set of
930 (define-public net-tools
931 ;; XXX: This package is basically unmaintained, but it provides a few
932 ;; commands not yet provided by Inetutils, such as 'route', so we have to
937 (home-page "http://www.tazenda.demon.co.uk/phil/net-tools/")
940 (uri (string-append home-page "/" name "-"
944 "0yvxrzk0mzmspr7sa34hm1anw6sif39gyn85w4c5ywfn8inxvr3s"))
946 (list (search-patch "net-tools-bitrot.patch")))))
947 (build-system gnu-build-system)
949 '(#:modules ((guix build gnu-build-system)
953 #:phases (alist-cons-after
955 (lambda* (#:key inputs #:allow-other-keys)
956 (define (apply-patch file)
957 (zero? (system* "patch" "-p1" "--force"
960 (let ((patch.gz (assoc-ref inputs "patch")))
961 (format #t "applying Debian patch set '~a'...~%"
963 (system (string-append "gunzip < " patch.gz " > the-patch"))
964 (and (apply-patch "the-patch")
965 (for-each apply-patch
966 (find-files "debian/patches"
970 (lambda* (#:key outputs #:allow-other-keys)
971 (let ((out (assoc-ref outputs "out")))
972 (mkdir-p (string-append out "/bin"))
973 (mkdir-p (string-append out "/sbin"))
975 ;; Pretend we have everything...
976 (system "yes | make config")
978 ;; ... except for the things we don't have.
979 ;; HAVE_AFDECnet requires libdnet, which we don't have.
980 ;; HAVE_HWSTRIP and HAVE_HWTR require kernel headers
981 ;; that have been removed.
982 (substitute* '("config.make" "config.h")
983 (("^.*HAVE_(AFDECnet|HWSTRIP|HWTR)[ =]1.*$") ""))))
985 'install 'remove-redundant-commands
986 (lambda* (#:key outputs #:allow-other-keys)
987 ;; Remove commands and man pages redundant with
989 (let* ((out (assoc-ref outputs "out"))
990 (dup (append-map (cut find-files out <>)
992 "^(yp|nis|dns)?domainname"))))
993 (for-each delete-file dup)
997 ;; Binaries that depend on libnet-tools.a don't declare that
998 ;; dependency, making it parallel-unsafe.
1001 #:tests? #f ; no test suite
1002 #:make-flags (let ((out (assoc-ref %outputs "out")))
1004 (string-append "BASEDIR=" out)
1005 (string-append "INSTALLNLSDIR=" out "/share/locale")
1006 (string-append "mandir=/share/man")))))
1008 ;; Use the big Debian patch set (the thing does not even compile out of
1010 (inputs `(("patch" ,(origin
1013 "http://ftp.de.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz")
1016 "0p93lsqx23v5fv4hpbrydmfvw1ha2rgqpn2zqbs2jhxkzhjc030p"))))))
1017 (native-inputs `(("gettext" ,gnu-gettext)))
1019 (synopsis "Tools for controlling the network subsystem in Linux")
1021 "This package includes the important tools for controlling the network
1022 subsystem of the Linux kernel. This includes arp, hostname, ifconfig,
1023 netstat, rarp and route. Additionally, this package contains utilities
1024 relating to particular network hardware types (plipconfig, slattach) and
1025 advanced aspects of IP configuration (iptunnel, ipmaddr).")
1028 (define-public libcap
1035 "mirror://kernel.org/linux/libs/security/linux-privs/"
1036 "libcap2/libcap-" version ".tar.xz"))
1039 "0rbc9qbqs5bp9am9s9g83wxj5k4ixps2agy9dxr1v1fwg27mdr6f"))))
1040 (build-system gnu-build-system)
1041 (arguments '(#:phases
1042 (modify-phases %standard-phases
1044 ;; Add $libdir to the RUNPATH of executables.
1046 (substitute* "Make.Rules"
1048 (string-append "LDFLAGS := -Wl,-rpath="
1049 %output "/lib"))))))
1050 #:tests? #f ; no 'check' target
1051 #:make-flags (list "lib=lib"
1052 (string-append "prefix="
1053 (assoc-ref %outputs "out"))
1054 "RAISE_SETFCAP=no")))
1055 (native-inputs `(("perl" ,perl)))
1056 (inputs `(("attr" ,attr)))
1057 (home-page "https://sites.google.com/site/fullycapable/")
1058 (synopsis "Library for working with POSIX capabilities")
1060 "Libcap2 provides a programming interface to POSIX capabilities on
1061 Linux-based operating systems.")
1063 ;; License is BSD-3 or GPLv2, at the user's choice.
1066 (define-public bridge-utils
1068 (name "bridge-utils")
1072 (uri (string-append "mirror://sourceforge/bridge/bridge-utils-"
1076 "12367cwqmi0yqphi6j8rkx97q8hw52yq2fx4k0xfclkcizxybya2"))))
1077 (build-system gnu-build-system)
1079 ;; The tarball lacks all the generated files.
1080 (native-inputs `(("autoconf" ,autoconf)
1081 ("automake" ,automake)))
1083 '(#:phases (alist-cons-after
1086 ;; Fix "field ‘ip6’ has incomplete type" errors.
1087 (substitute* "libbridge/libbridge.h"
1088 (("#include <linux/if_bridge.h>")
1089 "#include <linux/in6.h>\n#include <linux/if_bridge.h>"))
1091 ;; Ensure that the entire build fails if one of the
1092 ;; sub-Makefiles fails.
1093 (substitute* "Makefile.in"
1094 (("\\$\\(MAKE\\) \\$\\(MFLAGS\\) -C \\$\\$x ;")
1095 "$(MAKE) $(MFLAGS) -C $$x || exit 1;"))
1097 (zero? (system* "autoreconf" "-vf")))
1099 #:tests? #f)) ; no 'check' target
1102 "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge")
1103 (synopsis "Manipulate Ethernet bridges")
1105 "Utilities for Linux's Ethernet bridging facilities. A bridge is a way
1106 to connect two Ethernet segments together in a protocol independent way.
1107 Packets are forwarded based on Ethernet address, rather than IP address (like
1108 a router). Since forwarding is done at Layer 2, all protocols can go
1109 transparently through a bridge.")
1112 (define-public libnl
1119 "http://www.infradead.org/~tgr/libnl/files/libnl-"
1123 "1icfrv8yihcb74as1gcgmp0wfpdq632q2zvbvqqvjms9cy87bswb"))))
1124 (build-system gnu-build-system)
1125 (native-inputs `(("flex" ,flex) ("bison" ,bison)))
1126 (home-page "http://www.infradead.org/~tgr/libnl/")
1127 (synopsis "NetLink protocol library suite")
1129 "The libnl suite is a collection of libraries providing APIs to netlink
1130 protocol based Linux kernel interfaces. Netlink is an IPC mechanism primarily
1131 between the kernel and user space processes. It was designed to be a more
1132 flexible successor to ioctl to provide mainly networking related kernel
1133 configuration and monitoring interfaces.")
1135 ;; Most files are LGPLv2.1-only, but some are GPLv2-only (like
1136 ;; 'nl-addr-add.c'), so the result is GPLv2-only.
1146 "https://www.kernel.org/pub/software/network/iw/iw-"
1150 "14zsapqhivk0ws5z21y1ys2c2czi05mzk7bl2yb7qxcfrnsjx9j8"))))
1151 (build-system gnu-build-system)
1152 (native-inputs `(("pkg-config" ,pkg-config)))
1153 (inputs `(("libnl" ,libnl)))
1155 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1157 #:phases (alist-delete 'configure %standard-phases)))
1158 (home-page "http://wireless.kernel.org/en/users/Documentation/iw")
1159 (synopsis "Tool for configuring wireless devices")
1161 "iw is a new nl80211 based CLI configuration utility for wireless
1162 devices. It replaces 'iwconfig', which is deprecated.")
1165 (define-public powertop
1173 "https://01.org/sites/default/files/downloads/powertop/powertop-"
1177 "0nlwazxbnn0k6q5f5b09wdhw0f194lpzkp3l7vxansqhfczmcyx8"))))
1178 (build-system gnu-build-system)
1181 ("pciutils" ,pciutils)
1182 ("ncurses" ,ncurses)
1185 `(("pkg-config" ,pkg-config)))
1186 (home-page "https://01.org/powertop/")
1187 (synopsis "Analyze power consumption on Intel-based laptops")
1189 "PowerTOP is a Linux tool to diagnose issues with power consumption and
1190 power management. In addition to being a diagnostic tool, PowerTOP also has
1191 an interactive mode where the user can experiment various power management
1192 settings for cases where the operating system has not enabled these
1196 (define-public aumix
1203 "http://www.jpj.net/~trevor/aumix/releases/aumix-"
1204 version ".tar.bz2"))
1207 "0a8fwyxnc5qdxff8sl2sfsbnvgh6pkij4yafiln0fxgg6bal7knj"))))
1208 (build-system gnu-build-system)
1209 (inputs `(("ncurses" ,ncurses)))
1210 (home-page "http://www.jpj.net/~trevor/aumix.html")
1211 (synopsis "Audio mixer for X and the console")
1213 "Aumix adjusts an audio mixer from X, the console, a terminal,
1214 the command line or a script.")
1217 (define-public iotop
1224 (uri (string-append "http://guichaz.free.fr/iotop/files/iotop-"
1227 "1kp8mqg2pbxq4xzpianypadfxcsyfgwcaqgqia6h9fsq6zyh4z0s"))))
1228 (build-system python-build-system)
1230 ;; The setup.py script expects python-2.
1231 `(#:python ,python-2
1232 ;; There are currently no checks in the package.
1234 (native-inputs `(("python" ,python-2)))
1235 (home-page "http://guichaz.free.fr/iotop/")
1237 "Displays the IO activity of running processes")
1239 "Iotop is a Python program with a top like user interface to show the
1240 processes currently causing I/O.")
1249 (uri (string-append "mirror://sourceforge/fuse/fuse-"
1253 "071r6xjgssy8vwdn6m28qq1bqxsd2bphcd2mzhq0grf5ybm87sqb"))
1254 (patches (list (search-patch "fuse-CVE-2015-3202.patch")))))
1255 (build-system gnu-build-system)
1256 (inputs `(("util-linux" ,util-linux)))
1258 '(#:configure-flags (list (string-append "MOUNT_FUSE_PATH="
1259 (assoc-ref %outputs "out")
1261 (string-append "INIT_D_PATH="
1262 (assoc-ref %outputs "out")
1265 ;; The rule makes /dev/fuse 666.
1266 (string-append "UDEV_RULES_PATH="
1267 (assoc-ref %outputs "out")
1268 "/lib/udev/rules.d"))
1269 #:phases (alist-cons-before
1270 'build 'set-file-names
1271 (lambda* (#:key inputs #:allow-other-keys)
1272 ;; libfuse calls out to mount(8) and umount(8). Make sure
1273 ;; it refers to the right ones.
1274 (substitute* '("lib/mount_util.c" "util/mount_util.c")
1275 (("/bin/(u?)mount" _ maybe-u)
1276 (string-append (assoc-ref inputs "util-linux")
1277 "/bin/" maybe-u "mount")))
1278 (substitute* '("util/mount.fuse.c")
1282 ;; This hack leads libfuse to search for 'fusermount' in
1283 ;; $PATH, where it may find a setuid-root binary, instead of
1284 ;; trying solely $out/sbin/fusermount and failing because
1286 (substitute* "lib/Makefile"
1287 (("-DFUSERMOUNT_DIR=[[:graph:]]+")
1288 "-DFUSERMOUNT_DIR=\\\"/var/empty\\\"")))
1290 (home-page "http://fuse.sourceforge.net/")
1291 (synopsis "Support file systems implemented in user space")
1293 "As a consequence of its monolithic design, file system code for Linux
1294 normally goes into the kernel itself---which is not only a robustness issue,
1295 but also an impediment to system extensibility. FUSE, for \"file systems in
1296 user space\", is a kernel module and user-space library that tries to address
1297 part of this problem by allowing users to run file system implementations as
1298 user-space processes.")
1299 (license (list lgpl2.1 ; library
1300 gpl2+)))) ; command-line utilities
1302 (define-public unionfs-fuse
1304 (name "unionfs-fuse")
1309 "http://podgorny.cz/unionfs-fuse/releases/unionfs-fuse-"
1313 "0qpnr4czgc62vsfnmv933w62nq3xwcbnvqch72qakfgca75rsp4d"))))
1314 (build-system cmake-build-system)
1315 (inputs `(("fuse" ,fuse)))
1316 (arguments '(#:tests? #f)) ; no tests
1317 (home-page "http://podgorny.cz/moin/UnionFsFuse")
1318 (synopsis "User-space union file system")
1320 "UnionFS-FUSE is a flexible union file system implementation in user
1321 space, using the FUSE library. Mounting a union file system allows you to
1322 \"aggregate\" the contents of several directories into a single mount point.
1323 UnionFS-FUSE additionally supports copy-on-write.")
1327 (package (inherit fuse)
1328 (name "fuse-static")
1329 (source (origin (inherit (package-source fuse))
1330 (modules '((guix build utils)))
1332 ;; Normally libfuse invokes mount(8) so that /etc/mtab is
1333 ;; updated. Change calls to 'mtab_needs_update' to 0 so that
1334 ;; it doesn't do that, allowing us to remove the dependency on
1335 ;; util-linux (something that is useful in initrds.)
1336 '(substitute* '("lib/mount_util.c"
1337 "util/mount_util.c")
1338 (("mtab_needs_update[[:blank:]]*\\([a-z_]+\\)")
1343 (define-public unionfs-fuse/static
1344 (package (inherit unionfs-fuse)
1345 (synopsis "User-space union file system (statically linked)")
1346 (name (string-append (package-name unionfs-fuse) "-static"))
1347 (source (origin (inherit (package-source unionfs-fuse))
1348 (modules '((guix build utils)))
1350 ;; Add -ldl to the libraries, because libfuse.a needs that.
1351 '(substitute* "src/CMakeLists.txt"
1352 (("target_link_libraries(.*)\\)" _ libs)
1353 (string-append "target_link_libraries"
1357 #:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-static")
1358 #:phases (alist-cons-after
1359 'install 'post-install
1360 (lambda* (#:key outputs #:allow-other-keys)
1361 (let* ((out (assoc-ref outputs "out"))
1362 (exe (string-append out "/bin/unionfs")))
1363 ;; By default, 'unionfs' keeps references to
1364 ;; $glibc/share/locale and similar stuff. Remove them.
1365 (remove-store-references exe)))
1367 (inputs `(("fuse" ,fuse-static)))))
1369 (define-public sshfs-fuse
1375 (uri (string-append "mirror://sourceforge/fuse/sshfs-fuse-"
1379 "0gp6qr33l2p0964j0kds0dfmvyyf5lpgsn11daf0n5fhwm9185z9"))))
1380 (build-system gnu-build-system)
1385 `(("pkg-config" ,pkg-config)))
1386 (home-page "http://fuse.sourceforge.net/sshfs.html")
1387 (synopsis "Mount remote file systems over SSH")
1389 "This is a file system client based on the SSH File Transfer Protocol.
1390 Since most SSH servers already support this protocol it is very easy to set
1391 up: on the server side there's nothing to do; on the client side mounting the
1392 file system is as easy as logging into the server with an SSH client.")
1395 (define-public numactl
1402 "ftp://oss.sgi.com/www/projects/libnuma/download/numactl-"
1407 "0qbqa9gac2vlahrngi553hws2mqgqdwv2lc69a3yx4gq6l90j325"))))
1408 (build-system gnu-build-system)
1410 '(;; There's a 'test' target, but it requires NUMA support in the kernel
1411 ;; to run, which we can't assume to have.
1414 (home-page "http://oss.sgi.com/projects/libnuma/")
1415 (synopsis "Tools for non-uniform memory access (NUMA) machines")
1417 "NUMA stands for Non-Uniform Memory Access, in other words a system whose
1418 memory is not all in one place. The numactl program allows you to run your
1419 application program on specific CPU's and memory nodes. It does this by
1420 supplying a NUMA memory policy to the operating system before running your
1423 The package contains other commands, such as numademo, numastat and memhog.
1424 The numademo command provides a quick overview of NUMA performance on your
1426 (license (list gpl2 ; programs
1427 lgpl2.1)))) ; library
1435 (uri (string-append "mirror://kernel.org/linux/utils/kbd/kbd-"
1439 "04mrms12nm5sas0nxs94yrr3hz7gmqhnmfgb9ff34bh1jszxmzcx"))
1440 (modules '((guix build utils)))
1443 (substitute* "tests/Makefile.in"
1444 ;; The '%: %.in' rule incorrectly uses @VERSION@.
1447 (substitute* '("src/unicode_start" "src/unicode_stop")
1448 ;; Assume the Coreutils are in $PATH.
1451 (build-system gnu-build-system)
1453 '(#:phases (alist-cons-before
1455 (lambda* (#:key inputs #:allow-other-keys)
1456 (let ((gzip (assoc-ref %build-inputs "gzip"))
1457 (bzip2 (assoc-ref %build-inputs "bzip2")))
1458 (substitute* "src/libkeymap/findfile.c"
1460 (string-append gzip "/bin/gzip"))
1462 (string-append bzip2 "/bin/bzip2")))))
1464 'install 'post-install
1465 (lambda* (#:key outputs #:allow-other-keys)
1466 ;; Make sure these programs find their comrades.
1467 (let* ((out (assoc-ref outputs "out"))
1468 (bin (string-append out "/bin")))
1469 (for-each (lambda (prog)
1470 (wrap-program (string-append bin "/" prog)
1471 `("PATH" ":" prefix (,bin))))
1472 '("unicode_start" "unicode_stop"))))
1473 %standard-phases))))
1474 (inputs `(("check" ,check)
1477 ("pam" ,linux-pam)))
1478 (native-inputs `(("pkg-config" ,pkg-config)))
1479 (home-page "ftp://ftp.kernel.org/pub/linux/utils/kbd/")
1480 (synopsis "Linux keyboard utilities and keyboard maps")
1482 "This package contains keytable files and keyboard utilities compatible
1483 for systems using the Linux kernel. This includes commands such as
1484 'loadkeys', 'setfont', 'kbdinfo', and 'chvt'.")
1487 (define-public inotify-tools
1489 (name "inotify-tools")
1494 "mirror://sourceforge/inotify-tools/inotify-tools/"
1495 version "/inotify-tools-" version ".tar.gz"))
1498 "0icl4bx041axd5dvhg89kilfkysjj86hjakc7bk8n49cxjn4cha6"))))
1499 (build-system gnu-build-system)
1500 (home-page "http://inotify-tools.sourceforge.net/")
1501 (synopsis "Monitor file accesses")
1503 "The inotify-tools packages provides a C library and command-line tools
1504 to use Linux' inotify mechanism, which allows file accesses to be monitored.")
1514 (string-append "mirror://kernel.org/linux/utils/kernel/kmod/"
1515 "kmod-" version ".tar.xz"))
1518 "1yid3a9b64a60ybj66fk2ysrq5klnl0ijl4g624cl16y8404g9rv"))
1519 (patches (list (search-patch "kmod-module-directory.patch")))))
1520 (build-system gnu-build-system)
1522 `(("pkg-config" ,pkg-config)))
1527 `(#:tests? #f ; FIXME: Investigate test failures
1528 #:configure-flags '("--with-xz" "--with-zlib")
1529 #:phases (alist-cons-after
1530 'install 'install-modprobe&co
1531 (lambda* (#:key outputs #:allow-other-keys)
1532 (let* ((out (assoc-ref outputs "out"))
1533 (bin (string-append out "/bin")))
1534 (for-each (lambda (tool)
1536 (string-append bin "/" tool)))
1537 '("insmod" "rmmod" "lsmod" "modprobe"
1538 "modinfo" "depmod"))))
1540 (home-page "https://www.kernel.org/")
1541 (synopsis "Kernel module tools")
1542 (description "Kmod is a set of tools to handle common tasks with Linux
1543 kernel modules like insert, remove, list, check properties, resolve
1544 dependencies and aliases.
1546 These tools are designed on top of libkmod, a library that is shipped with
1547 kmod. The aim is to be compatible with tools, configurations and indices
1548 from the module-init-tools project.")
1549 (license gpl2+))) ; library under lgpl2.1+
1551 (define-public eudev
1552 ;; The post-systemd fork, maintained by Gentoo.
1559 "http://dev.gentoo.org/~blueness/eudev/eudev-"
1563 "0akg9gcc3c2p56xbhlvbybqavcprly5q0bvk655zwl6d62j8an7p"))
1564 (patches (list (search-patch "eudev-rules-directory.patch")))))
1565 (build-system gnu-build-system)
1567 `(("pkg-config" ,pkg-config)
1572 (home-page "http://www.gentoo.org/proj/en/eudev/")
1573 (synopsis "Userspace device management")
1574 (description "Udev is a daemon which dynamically creates and removes
1575 device nodes from /dev/, handles hotplug events and loads drivers at boot
1582 (version "2.02.109")
1585 (uri (string-append "ftp://sources.redhat.com/pub/lvm2/releases/LVM2."
1589 "1rv5ivg0l1w3nwzwdkqixm96h5bzg7ib4rr196ysb2lw42jmpjbv"))
1590 (modules '((guix build utils)))
1593 (use-modules (guix build utils))
1595 ;; Honor sysconfdir.
1596 (substitute* "make.tmpl.in"
1598 "confdir = @sysconfdir@\n")
1599 (("DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@")
1600 "DEFAULT_SYS_DIR = @sysconfdir@"))))))
1601 (build-system gnu-build-system)
1603 `(("pkg-config" ,pkg-config)
1604 ("procps" ,procps))) ;tests use 'pgrep'
1608 '(#:phases (alist-cons-after
1609 'configure 'set-makefile-shell
1611 ;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as
1613 (setenv "SHELL" (which "sh"))
1615 ;; Replace /bin/sh with the right file name.
1616 (patch-makefile-SHELL "make.tmpl"))
1619 #:configure-flags (list (string-append "--sysconfdir="
1620 (assoc-ref %outputs "out")
1622 "--enable-udev_sync"
1623 "--enable-udev_rules"
1625 ;; Make sure programs such as 'dmsetup' can
1626 ;; find libdevmapper.so.
1627 (string-append "LDFLAGS=-Wl,-rpath="
1628 (assoc-ref %outputs "out")
1631 ;; The tests use 'mknod', which requires root access.
1633 (home-page "http://sourceware.org/lvm2/")
1634 (synopsis "Logical volume management for Linux")
1636 "LVM2 is the logical volume management tool set for Linux-based systems.
1637 This package includes the user-space libraries and tools, including the device
1638 mapper. Kernel components are part of Linux-libre.")
1640 ;; Libraries (liblvm2, libdevmapper) are LGPLv2.1.
1641 ;; Command-line tools are GPLv2.
1642 (license (list gpl2 lgpl2.1))))
1644 (define-public wireless-tools
1646 (name "wireless-tools")
1650 (uri (string-append "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools."
1654 "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb"))
1657 ;; Remove the older header files that are not free software.
1658 (for-each (lambda (n)
1659 (delete-file (format #f "wireless.~a.h" n)))
1660 '(10 11 12 13 14 15 16 17 18 19 20))
1662 (build-system gnu-build-system)
1665 (list (string-append "PREFIX=" %output)
1666 (string-append "INSTALL_MAN=" %output "/share/man")
1667 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
1669 #:phases (modify-phases %standard-phases
1670 (delete 'configure))
1672 (synopsis "Tools for manipulating Linux Wireless Extensions")
1673 (description "Wireless Tools are used to manipulate the now-deprecated
1674 Linux Wireless Extensions; consider using 'iw' instead. The Wireless
1675 Extension was an interface allowing you to set Wireless LAN specific
1676 parameters and get the specific stats. It is deprecated in favor the nl80211
1678 (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html")
1679 ;; wireless.21.h and wireless.22.h are distributed under lgpl2.1+, the
1680 ;; other files are distributed under gpl2.
1681 (license (list gpl2 lgpl2.1+))))
1689 (uri (string-append "mirror://kernel.org/software/network/crda/"
1690 "crda-" version ".tar.xz"))
1693 "1gydiqgb08d9gbx4l6gv98zg3pljc984m50hmn3ysxcbkxkvkz23"))
1694 (patches (list (search-patch "crda-optional-gcrypt.patch")))))
1695 (build-system gnu-build-system)
1697 '(#:phases (modify-phases %standard-phases
1700 'build 'no-werror-no-ldconfig
1702 (substitute* "Makefile"
1704 (("ldconfig") "true"))
1707 'build 'set-regulator-db-file-name
1708 (lambda* (#:key inputs #:allow-other-keys)
1709 ;; Tell CRDA where to find our database.
1710 (let ((regdb (assoc-ref inputs "wireless-regdb")))
1711 (substitute* "crda.c"
1712 (("\"/lib/crda/regulatory.bin\"")
1713 (string-append "\"" regdb
1714 "/lib/crda/regulatory.bin\"")))
1716 #:test-target "verify"
1717 #:make-flags (let ((out (assoc-ref %outputs "out"))
1718 (regdb (assoc-ref %build-inputs "wireless-regdb")))
1719 (list "CC=gcc" "V=1"
1721 ;; Disable signature-checking on 'regulatory.bin'.
1722 ;; The reason is that this simplifies maintenance
1723 ;; on our side (no need to manage a distro key
1724 ;; pair), and we can guarantee integrity of
1725 ;; 'regulatory.bin' by other means anyway, such as
1726 ;; 'guix gc --verify'. See
1727 ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
1731 (string-append "PREFIX=" out)
1732 (string-append "SBINDIR=" out "/sbin/")
1733 (string-append "UDEV_RULE_DIR="
1734 out "/lib/udev/rules.d")
1735 (string-append "LDFLAGS=-Wl,-rpath="
1737 (string-append "REG_BIN=" regdb
1738 "/lib/crda/regulatory.bin")))))
1739 (native-inputs `(("pkg-config" ,pkg-config)
1740 ("python" ,python-2)
1741 ("wireless-regdb" ,wireless-regdb)))
1742 (inputs `(("libnl" ,libnl)))
1744 "https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA")
1745 (synopsis "Central regulatory domain agent (CRDA) for WiFi")
1747 "The Central Regulatory Domain Agent (CRDA) acts as the udev helper for
1748 communication between the kernel Linux and user space for regulatory
1750 (license copyleft-next)))
1752 (define-public wireless-regdb
1754 (name "wireless-regdb")
1755 (version "2015.04.06")
1759 "mirror://kernel.org/software/network/wireless-regdb/"
1760 "wireless-regdb-" version ".tar.xz"))
1763 "0czi83k311fp27z42hxjm8vi88fsbc23mhavv96lkb4pmari0jjc"))
1765 ;; We're building 'regulatory.bin' by ourselves.
1766 (snippet '(delete-file "regulatory.bin"))))
1767 (build-system gnu-build-system)
1769 '(#:phases (modify-phases %standard-phases
1770 (delete 'configure))
1772 ;; The 'all' target of the makefile depends on $(REGDB_CHANGED), which
1773 ;; is computed and can be equal to 'maintainer-clean'; when that
1774 ;; happens, we can end up deleting the 'regulatory.bin' file that we
1775 ;; just built. Thus, build things sequentially.
1776 #:parallel-build? #f
1778 #:tests? #f ;no tests
1779 #:make-flags (let ((out (assoc-ref %outputs "out")))
1780 (list (string-append "PREFIX=" out)
1781 (string-append "LSB_ID=GuixSD")
1782 (string-append "DISTRO_PUBKEY=/dev/null")
1783 (string-append "DISTRO_PRIVKEY=/dev/null")
1784 (string-append "REGDB_PUBKEY=/dev/null")
1786 ;; Leave that empty so that db2bin.py doesn't try
1787 ;; to sign 'regulatory.bin'. This allows us to
1788 ;; avoid managing a key pair for the whole distro.
1789 (string-append "REGDB_PRIVKEY=")))))
1790 (native-inputs `(("python" ,python-2)))
1792 "https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb")
1793 (synopsis "Wireless regulatory database")
1795 "This package contains the wireless regulatory database Central
1796 Regulatory Database Agent (CRDA) daemon. The database contains information on
1797 country-specific regulations for the wireless spectrum.")
1800 (define-public lm-sensors
1807 "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-"
1808 version ".tar.bz2"))
1811 "1ksgrynxgrq590nb2fwxrl1gwzisjkqlyg3ljfd1al0ibrk6mbjx"))
1812 (patches (list (search-patch "lm-sensors-hwmon-attrs.patch")))))
1813 (build-system gnu-build-system)
1814 (inputs `(("rrdtool" ,rrdtool)
1817 ("gnuplot" ,gnuplot)))
1818 (native-inputs `(("pkg-config" ,pkg-config)
1823 `(#:tests? #f ; no 'check' target
1824 #:make-flags (list (string-append "PREFIX=" %output)
1825 (string-append "ETCDIR=" %output "/etc")
1826 (string-append "MANDIR=" %output "/share/man"))
1831 'build 'patch-exec-paths
1832 (lambda* (#:key inputs outputs #:allow-other-keys)
1833 (substitute* "prog/detect/sensors-detect"
1835 (string-append "`" (assoc-ref inputs "coreutils")
1837 (("(`|\")modprobe" all open-quote)
1838 (string-append open-quote
1839 (assoc-ref inputs "kmod")
1841 (substitute* '("prog/pwm/pwmconfig"
1842 "prog/pwm/fancontrol")
1844 (string-append (assoc-ref inputs "gnuplot")
1847 (string-append (assoc-ref inputs "coreutils")
1850 (string-append (assoc-ref inputs "grep")
1853 (string-append (assoc-ref inputs "sed")
1856 (string-append (assoc-ref inputs "coreutils")
1859 (string-append (assoc-ref inputs "coreutils")
1862 (string-append (assoc-ref inputs "coreutils")
1863 "/bin/readlink -f"))))
1864 %standard-phases))))
1865 (home-page "http://www.lm-sensors.org/")
1866 (synopsis "Utilities to read temperature/voltage/fan sensors")
1868 "Lm-sensors is a hardware health monitoring package for Linux. It allows
1869 you to access information from temperature, voltage, and fan speed sensors.
1870 It works with most newer systems.")
1873 (define-public i2c-tools
1880 "http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-"
1881 version ".tar.bz2"))
1884 "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
1885 (build-system gnu-build-system)
1887 `(#:tests? #f ; no 'check' target
1888 #:make-flags (list (string-append "prefix=" %output)
1890 ;; no configure script
1891 #:phases (alist-delete 'configure %standard-phases)))
1894 (home-page "http://www.lm-sensors.org/wiki/I2CTools")
1895 (synopsis "I2C tools for Linux")
1897 "The i2c-tools package contains a heterogeneous set of I2C tools for
1898 Linux: a bus probing tool, a chip dumper, register-level SMBus access helpers,
1899 EEPROM decoding scripts, EEPROM programming tools, and a python module for
1903 (define-public xsensors
1910 "http://www.linuxhardware.org/xsensors/xsensors-"
1914 "1siplsfgvcxamyqf44h71jx6jdfmvhfm7mh0y1q8ps4zs6pj2zwh"))))
1915 (build-system gnu-build-system)
1916 (inputs `(("lm-sensors" ,lm-sensors)
1918 (native-inputs `(("pkg-config" ,pkg-config)))
1920 `(#:phases (alist-cons-before
1921 'configure 'enable-deprecated
1923 (substitute* "src/Makefile.in"
1924 (("-DGDK_DISABLE_DEPRECATED") "")
1925 (("-DGTK_DISABLE_DEPRECATED") "")))
1927 'configure 'remove-Werror
1929 (substitute* '("configure" "src/Makefile.in")
1931 %standard-phases))))
1932 (home-page "http://www.linuxhardware.org/xsensors/")
1933 (synopsis "Hardware health information viewer")
1935 "Xsensors reads data from the libsensors library regarding hardware
1936 health such as temperature, voltage and fan speed and displays the information
1937 in a digital read-out.")
1943 (version (package-version linux-libre))
1944 (source (package-source linux-libre))
1945 (build-system gnu-build-system)
1947 '(#:phases (alist-replace
1949 (lambda* (#:key inputs #:allow-other-keys)
1950 (setenv "SHELL_PATH" (which "bash"))
1951 (chdir "tools/perf"))
1953 #:make-flags (list (string-append "DESTDIR="
1954 (assoc-ref %outputs "out"))
1957 ;; By default, 'config/Makefile' uses lib64 on
1958 ;; x86_64. Work around that.
1960 #:tests? #f)) ;no tests
1962 `(("pkg-config" ,pkg-config)
1966 ;; There are build scripts written in these languages.
1968 ("python" ,python-2)))
1970 `(("slang" ,slang) ;for the interactive TUI
1972 ("python" ,python-2) ;'perf' links against libpython
1973 ("elfutils" ,elfutils)
1976 ("libxml2" ,libxml2) ;for $XML_CATALOG_FILES
1977 ("libxslt" ,libxslt)
1978 ("docbook-xml" ,docbook-xml)
1979 ("docbook-xsl" ,docbook-xsl)
1981 ("asciidoc" ,asciidoc)))
1982 (home-page "https://perf.wiki.kernel.org/")
1983 (synopsis "Linux profiling with performance counters")
1985 "perf is a tool suite for profiling using hardware performance counters,
1986 with support in the Linux kernel. perf can instrument CPU performance
1987 counters, tracepoints, kprobes, and uprobes (dynamic tracing). It is capable
1988 of lightweight profiling. This package contains the user-land tools and in
1989 particular the 'perf' command.")
1990 (license (package-license linux-libre))))
1992 (define-public pflask
1998 (uri (string-append "https://github.com/ghedo/pflask/archive/v"
2000 (file-name (string-append name "-" version ".tar.gz"))
2003 "1g8fjj67dfkc2s0852l9vqi1pm61gp4rxbpzbzg780f5s5hd1fys"))))
2004 (build-system cmake-build-system)
2006 '(#:tests? #f)) ; no tests
2007 (home-page "http://ghedo.github.io/pflask/")
2008 (synopsis "Simple tool for creating Linux namespace containers")
2009 (description "pflask is a simple tool for creating Linux namespace
2010 containers. It can be used for running a command or even booting an OS inside
2011 an isolated container, created with the help of Linux namespaces. It is
2012 similar in functionality to chroot, although pflask provides better isolation
2013 thanks to the use of namespaces.")
2016 (define-public hdparm
2022 (uri (string-append "mirror://sourceforge/" name "/"
2023 name "-" version ".tar.gz"))
2026 "0sc6yf3k6sd7n6a2ig2my9fjlqpak3znlyw7jw4cz5d9asm1rc13"))))
2027 (build-system gnu-build-system)
2029 `(#:make-flags (let ((out (assoc-ref %outputs "out")))
2030 (list (string-append "binprefix=" out)
2031 (string-append "manprefix=" out)
2033 #:phases (alist-delete 'configure %standard-phases)
2034 #:tests? #f)) ; no test suite
2035 (home-page "http://sourceforge.net/projects/hdparm/")
2036 (synopsis "Tune hard disk parameters for high performance")
2038 "Get/set device parameters for Linux SATA/IDE drives. It's primary use
2039 is for enabling irq-unmasking and IDE multiple-mode.")
2040 (license (non-copyleft "file://LICENSE.TXT"))))
2042 (define-public rfkill
2048 (uri (string-append "mirror://kernel.org/software/network/"
2049 name "/" name "-" version ".tar.xz"))
2052 "0snqj5h0y991lszbigbyyqb8swj0hxajc1vfqg2scfay44231bp0"))))
2053 (build-system gnu-build-system)
2055 `(#:make-flags (list "CC=gcc"
2056 (string-append "PREFIX=" %output))
2057 #:phases (modify-phases %standard-phases
2058 (delete 'configure))
2060 (home-page "https://wireless.wiki.kernel.org/en/users/Documentation/rfkill")
2061 (synopsis "Tool for enabling and disabling wireless devices")
2063 "rfkill is a simple tool for accessing the rfkill device interface,
2064 which is used to enable and disable wireless networking devices, typically
2065 WLAN, Bluetooth and mobile broadband.")
2066 (license (non-copyleft "file://COPYING"
2067 "See COPYING in the distribution."))))
2069 (define-public acpid
2075 (uri (string-append "mirror://sourceforge/acpid2/acpid-"
2079 "1vl7c6vc724v4jwki17czgj6lnrknnj1a6llm8gkl32i2gnam5j3"))))
2080 (build-system gnu-build-system)
2081 (home-page "http://sourceforge.net/projects/acpid2/")
2082 (synopsis "Daemon for delivering ACPI events to user-space programs")
2084 "acpid is designed to notify user-space programs of Advanced
2085 Configuration and Power Interface (ACPI) events. acpid should be started
2086 during the system boot, and will run as a background process. When an ACPI
2087 event is received from the kernel, acpid will examine the list of rules
2088 specified in /etc/acpi/events and execute the rules that match the event.")
2091 (define-public sysfsutils
2100 "mirror://sourceforge/linux-diag/sysfsutils/" version "/sysfsutils-"
2103 (base32 "12i0ip11xbfcjzxz4r10cvz7mbzgq1hfcdn97w6zz7sm3wndwrg8"))))
2104 (build-system gnu-build-system)
2105 (home-page "http://linux-diag.sourceforge.net/Sysfsutils.html")
2106 (synopsis "System utilities based on Linux sysfs")
2108 "These are a set of utilities built upon sysfs, a virtual filesystem in
2109 Linux kernel versions 2.5+ that exposes a system's device tree. The package
2110 also contains the libsysfs library.")
2111 ;; The library is under lgpl2.1+ (all files say "or any later version").
2112 ;; The rest is mostly gpl2, with a few files indicating gpl2+.
2113 (license (list gpl2 gpl2+ lgpl2.1+))))
2115 (define-public sysfsutils-1
2117 (inherit sysfsutils)
2124 "mirror://sourceforge/linux-diag/sysfsutils/sysfsutils-" version
2125 "/sysfsutils-" version ".tar.gz"))
2127 (base32 "0kdhs07fm8263pxwd5blwn2x211cg4fk63fyf9ijcdkvzmwxrqq3"))
2128 (modules '((guix build utils)))
2131 (substitute* "Makefile.in"
2132 (("includedir = /usr/include/sysfs")
2133 "includedir = @includedir@"))
2134 (substitute* "configure"
2135 (("includedir='(\\$\\{prefix\\}/include)'" all orig)
2136 (string-append "includedir='" orig "/sysfs'")))))))
2137 (synopsis "System utilities based on Linux sysfs (version 1.x)")))
2139 (define-public cpufrequtils
2141 (name "cpufrequtils")
2148 "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-"
2151 (base32 "0qfqv7nqmjfr3p0bwrdlxkiqwqr7vmx053cadaa548ybqbghxmvm"))
2152 (patches (list (search-patch "cpufrequtils-fix-aclocal.patch")))))
2153 (build-system gnu-build-system)
2155 `(("sysfsutils" ,sysfsutils-1)))
2157 '(#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2158 (assoc-ref %outputs "out") "/lib"))))
2159 (home-page "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/")
2160 (synopsis "Utilities to get and set CPU frequency on Linux")
2162 "The cpufrequtils suite contains utilities to retrieve CPU frequency
2163 information, and set the CPU frequency if supported, using the cpufreq
2164 capabilities of the Linux kernel.")
2167 (define-public libraw1394
2174 "mirror://kernel.org/linux/libs/ieee1394/"
2175 name "-" version ".tar.xz"))
2178 "0kwnf4ha45c04mhc4yla672aqmvqqihxix1gvblns5cd2pc2cc8b"))))
2179 (build-system gnu-build-system)
2180 (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page")
2181 (synopsis "Interface library for the Linux IEEE1394 drivers")
2183 "Libraw1394 is the only supported interface to the kernel side raw1394 of
2184 the Linux IEEE-1394 subsystem, which provides direct access to the connected
2185 1394 buses to user space. Through libraw1394/raw1394, applications can directly
2186 send to and receive from other nodes without requiring a kernel driver for the
2187 protocol in question.")
2188 (license lgpl2.1+)))
2190 (define-public libavc1394
2196 (uri (string-append "mirror://sourceforge/libavc1394/"
2197 name "-" version ".tar.gz"))
2200 "0lsv46jdqvdx5hx92v0z2cz3yh6212pz9gk0k3513sbaa04zzcbw"))))
2201 (build-system gnu-build-system)
2203 `(("pkg-config" ,pkg-config)))
2205 `(("libraw1394" ,libraw1394))) ; required by libavc1394.pc
2206 (home-page "http://sourceforge.net/projects/libavc1394/")
2207 (synopsis "AV/C protocol library for IEEE 1394")
2209 "Libavc1394 is a programming interface to the AV/C specification from
2210 the 1394 Trade Association. AV/C stands for Audio/Video Control.")
2211 (license lgpl2.1+)))
2213 (define-public libiec61883
2215 (name "libiec61883")
2220 "mirror://kernel.org/linux/libs/ieee1394/"
2221 name "-" version ".tar.xz"))
2224 "17ph458zya2l8dr2xwqnzy195qd9swrir31g78qkgb3g4xz2rq6i"))))
2225 (build-system gnu-build-system)
2227 `(("pkg-config" ,pkg-config)))
2229 `(("libraw1394" ,libraw1394))) ; required by libiec61883.pc
2230 (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page")
2231 (synopsis "Isochronous streaming media library for IEEE 1394")
2233 "The libiec61883 library provides a higher level API for streaming DV,
2234 MPEG-2 and audio over Linux IEEE 1394.")
2235 (license lgpl2.1+)))
2237 (define-public mdadm
2244 "mirror://kernel.org/linux/utils/raid/mdadm/mdadm-"
2248 "132vdvh3myjgcjn6i9w90ck16ddjxjcszklzkyvr4f5ifqd7wfhg"))
2249 (patches (list (search-patch "mdadm-gcc-4.9-fix.patch")))))
2250 (build-system gnu-build-system)
2254 `(#:make-flags (let ((out (assoc-ref %outputs "out")))
2255 (list "INSTALL=install"
2257 ;; TODO: tell it where to find 'sendmail'
2258 ;; (string-append "MAILCMD=" <???> "/sbin/sendmail")
2259 (string-append "BINDIR=" out "/sbin")
2260 (string-append "MANDIR=" out "/share/man")
2261 (string-append "UDEVDIR=" out "/lib/udev")))
2262 #:phases (alist-cons-before
2263 'build 'patch-program-paths
2264 (lambda* (#:key inputs #:allow-other-keys)
2265 (let ((coreutils (assoc-ref inputs "coreutils")))
2266 (substitute* "udev-md-raid-arrays.rules"
2267 (("/usr/bin/(readlink|basename)" all program)
2268 (string-append coreutils "/bin/" program)))))
2269 (alist-delete 'configure %standard-phases))
2270 ;;tests must be done as root
2272 (home-page "http://neil.brown.name/blog/mdadm")
2273 (synopsis "Tool for managing Linux Software RAID arrays")
2275 "mdadm is a tool for managing Linux Software RAID arrays. It can create,
2276 assemble, report on, and monitor arrays. It can also move spares between raid
2277 arrays when needed.")
2280 (define-public libaio
2287 (string-append "mirror://debian/pool/main/liba/libaio/"
2288 name "_" version ".orig.tar.gz")
2289 (string-append "https://fedorahosted.org/releases/l/i/libaio/"
2290 name "-" version ".tar.gz")))
2293 "0zjzfkwd1kdvq6zpawhzisv7qbq1ffs343i5fs9p498pcf7046g0"))))
2294 (build-system gnu-build-system)
2297 (list "CC=gcc" (string-append "prefix=" %output))
2298 #:test-target "partcheck" ; need root for a full 'check'
2300 (alist-delete 'configure %standard-phases))) ; no configure script
2301 (home-page "http://lse.sourceforge.net/io/aio.html")
2302 (synopsis "Linux-native asynchronous I/O access library")
2304 "This library enables userspace to use Linux kernel asynchronous I/O
2305 system calls, important for the performance of databases and other advanced
2307 (license lgpl2.1+)))
2309 (define-public bluez
2316 "https://www.kernel.org/pub/linux/bluetooth/bluez-"
2320 "1wkqwmi5krr37mxcqqlp5m2xnw7vw70v3ww7j09vvlskxcdflhx3"))))
2321 (build-system gnu-build-system)
2324 (let ((out (assoc-ref %outputs "out")))
2325 (list "--enable-library"
2327 ;; Install dbus/udev files to the correct location.
2328 (string-append "--with-dbusconfdir=" out "/etc")
2329 (string-append "--with-udevdir=" out "/lib/udev")))))
2331 `(("pkg-config" ,pkg-config)
2332 ("gettext" ,gnu-gettext)))
2337 ("libical" ,libical)
2338 ("readline" ,readline)))
2339 (home-page "http://www.bluez.org/")
2340 (synopsis "Linux Bluetooth protocol stack")
2342 "BlueZ provides support for the core Bluetooth layers and protocols. It
2343 is flexible, efficient and uses a modular implementation.")
2346 (define-public fuse-exfat
2352 (uri "https://docs.google.com/uc?export=download&\
2353 id=0B7CLI-REKbE3VTdaa0EzTkhYdU0")
2356 "0glmgwrf0nv09am54i6s35ksbvrywrwc51w6q32mv5by8475530r"))
2357 (file-name (string-append name "-" version ".tar.gz"))))
2358 (build-system gnu-build-system)
2361 ("pkg-config" ,pkg-config)))
2365 '(#:tests? #f ;no test suite
2367 ;; XXX: Factorize with 'exfat-utils'.
2368 #:phases (modify-phases %standard-phases
2370 (add-after 'unpack 'scons-propagate-environment
2372 ;; Modify the SConstruct file to arrange for
2373 ;; environment variables to be propagated.
2374 (substitute* "SConstruct"
2375 (("^env = Environment\\(")
2376 "env = Environment(ENV=os.environ, "))))
2379 (zero? (system* "scons"))))
2381 (lambda* (#:key outputs #:allow-other-keys)
2382 (let* ((out (assoc-ref outputs "out"))
2383 (bin (string-append out "/bin"))
2384 (man8 (string-append out
2385 "/share/man/man8")))
2388 (for-each (lambda (file)
2391 (string-append man8 "/"
2393 (find-files "." "\\.8$"))
2394 (zero? (system* "scons" "install"
2395 (string-append "DESTDIR="
2397 (home-page "http://code.google.com/p/exfat/")
2398 (synopsis "Mount exFAT file systems")
2400 "This package provides a FUSE-based file system that provides read and
2401 write access to exFAT devices.")
2411 "http://www.nico.schottelius.org/software/gpm/archives/gpm-"
2412 version ".tar.bz2"))
2415 "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh"))))
2416 (build-system gnu-build-system)
2418 '(#:phases (modify-phases %standard-phases
2419 (add-before 'configure 'bootstrap
2421 ;; The tarball was not generated with 'make dist' so we
2422 ;; need to bootstrap things ourselves.
2423 (and (zero? (system* "./autogen.sh"))
2425 (patch-makefile-SHELL "Makefile.include.in")
2428 ;; Make sure programs find libgpm.so.
2429 #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2430 (assoc-ref %outputs "out")
2433 `(("texinfo" ,texinfo)
2436 ("autoconf" ,autoconf)
2437 ("automake" ,automake)
2438 ("libtool" ,libtool)))
2439 (home-page "http://www.nico.schottelius.org/software/gpm/")
2440 (synopsis "Mouse support for the Linux console")
2442 "The GPM (general-purpose mouse) daemon is a mouse server for
2443 applications running on the Linux console. It allows users to select items
2444 and copy/paste text in the console and in xterm.")