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>
9 ;;; This file is part of GNU Guix.
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.
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.
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/>.
24 (define-module (gnu packages linux)
25 #:use-module ((guix licenses)
26 #:hide (zlib openssl))
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 (gnu packages tls)
61 #:use-module (guix packages)
62 #:use-module (guix download)
63 #:use-module (guix utils)
64 #:use-module (guix build-system gnu)
65 #:use-module (guix build-system cmake)
66 #:use-module (guix build-system python)
67 #:use-module (guix build-system trivial)
68 #:use-module (srfi srfi-26)
69 #:use-module (ice-9 match))
71 (define-public (system->linux-architecture arch)
72 "Return the Linux architecture name for ARCH, a Guix system name such as
74 (let ((arch (car (string-split arch #\-))))
75 (cond ((string=? arch "i686") "i386")
76 ((string-prefix? "mips" arch) "mips")
77 ((string-prefix? "arm" arch) "arm")
80 (define (linux-libre-urls version)
81 "Return a list of URLs for Linux-Libre VERSION."
83 "http://linux-libre.fsfla.org/pub/linux-libre/releases/"
84 version "-gnu/linux-libre-" version "-gnu.tar.xz")
86 ;; XXX: Work around <http://bugs.gnu.org/14851>.
88 "ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-"
89 version "-gnu.tar.xz")
91 ;; Maybe this URL will become valid eventually.
93 "mirror://gnu/linux-libre/" version "-gnu/linux-libre-"
94 version "-gnu.tar.xz")))
96 (define-public linux-libre-headers
97 (let* ((version "3.14.37")
101 (setenv "ARCH" ,(system->linux-architecture arch))
102 (format #t "`ARCH' set to `~a'~%" (getenv "ARCH"))
104 (and (zero? (system* "make" "defconfig"))
105 (zero? (system* "make" "mrproper" "headers_check"))))))
107 `(lambda* (#:key outputs #:allow-other-keys)
108 (let ((out (assoc-ref outputs "out")))
109 (and (zero? (system* "make"
110 (string-append "INSTALL_HDR_PATH=" out)
113 (mkdir (string-append out "/include/config"))
114 (call-with-output-file
116 "/include/config/kernel.release")
118 (format p "~a-default~%" ,version)))
120 ;; Remove the '.install' and '..install.cmd' files; the
121 ;; latter contains store paths, which pulls in bootstrap
122 ;; binaries in the build environment, and prevents bit
123 ;; reproducibility for the bootstrap binaries.
124 (for-each delete-file (find-files out "\\.install"))
128 (name "linux-libre-headers")
132 (uri (linux-libre-urls version))
135 "1blxr2bsvfqi9khj4cpspv434bmx252zak2wsbi2mgl60zh77gza"))))
136 (build-system gnu-build-system)
137 (native-inputs `(("perl" ,perl)))
139 `(#:modules ((guix build gnu-build-system)
142 #:phases (alist-replace
143 'build ,(build-phase (or (%current-target-system)
146 'install ,install-phase
147 (alist-delete 'configure %standard-phases)))
148 #:allowed-references ()
150 (synopsis "GNU Linux-Libre kernel headers")
151 (description "Headers of the Linux-Libre kernel.")
153 (home-page "http://www.gnu.org/software/linux-libre/"))))
155 (define-public module-init-tools
157 (name "module-init-tools")
162 "mirror://kernel.org/linux/utils/kernel/module-init-tools/module-init-tools-"
166 "0jxnz9ahfic79rp93l5wxcbgh4pkv85mwnjlbv1gz3jawv5cvwp1"))
168 (list (search-patch "module-init-tools-moduledir.patch")))))
169 (build-system gnu-build-system)
171 ;; FIXME: The upstream tarball lacks man pages, and building them would
172 ;; require DocBook & co. We used to use Gentoo's pre-built man pages,
173 ;; but they vanished. In the meantime, fake it.
174 '(#:phases (alist-cons-before
175 'configure 'fake-docbook
177 (substitute* "Makefile.in"
178 (("^DOCBOOKTOMAN.*$")
179 "DOCBOOKTOMAN = true\n")))
181 (home-page "http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/")
182 (synopsis "Tools for loading and managing Linux kernel modules")
184 "Tools for loading and managing Linux kernel modules, such as `modprobe',
185 `insmod', `lsmod', and more.")
188 (define %boot-logo-patch
189 ;; Linux-Libre boot logo featuring Freedo and a gnu.
192 (uri (string-append "http://www.fsfla.org/svn/fsfla/software/linux-libre/"
193 "lemote/gnewsense/branches/3.16/100gnu+freedo.patch"))
196 "1hk9swxxc80bmn2zd2qr5ccrjrk28xkypwhl4z0qx4hbivj7qm06"))))
198 (define (kernel-config system)
199 "Return the absolute file name of the Linux-Libre build configuration file
200 for SYSTEM, or #f if there is no configuration for SYSTEM."
201 (define (lookup file)
202 (let ((file (string-append "gnu/packages/" file)))
203 (search-path %load-path file)))
207 (lookup "linux-libre-i686.conf"))
209 (lookup "linux-libre-x86_64.conf"))
213 (define-public linux-libre
214 (let* ((version "4.3.2")
216 '(lambda* (#:key system inputs #:allow-other-keys #:rest args)
217 ;; Apply the neat patch.
218 (system* "patch" "-p1" "--force"
219 "-i" (assoc-ref inputs "patch/freedo+gnu"))
221 (let ((arch (car (string-split system #\-))))
223 (cond ((string=? arch "i686") "i386")
224 ((string=? arch "mips64el") "mips")
226 (format #t "`ARCH' set to `~a'~%" (getenv "ARCH")))
228 (let ((build (assoc-ref %standard-phases 'build))
229 (config (assoc-ref inputs "kconfig")))
231 ;; Use the architecture-specific config if available, and
232 ;; 'defconfig' otherwise.
235 (copy-file config ".config")
236 (chmod ".config" #o666))
237 (system* "make" "defconfig"))
239 ;; Appending works even when the option wasn't in the
240 ;; file. The last one prevails if duplicated.
241 (let ((port (open-file ".config" "a")))
242 (display (string-append "CONFIG_NET_9P=m\n"
243 "CONFIG_NET_9P_VIRTIO=m\n"
244 "CONFIG_VIRTIO_BLK=m\n"
245 "CONFIG_VIRTIO_NET=m\n"
246 ;; https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00039.html
247 "CONFIG_DEVPTS_MULTIPLE_INSTANCES=y\n"
248 "CONFIG_VIRTIO_PCI=m\n"
249 "CONFIG_VIRTIO_BALLOON=m\n"
250 "CONFIG_VIRTIO_MMIO=m\n"
257 (zero? (system* "make" "oldconfig"))
259 ;; Call the default `build' phase so `-j' is correctly
261 (apply build #:make-flags "all" args))))
263 `(lambda* (#:key inputs outputs #:allow-other-keys)
264 (let* ((out (assoc-ref outputs "out"))
265 (moddir (string-append out "/lib/modules"))
266 (mit (assoc-ref inputs "module-init-tools")))
268 (for-each (lambda (file)
270 (string-append out "/" (basename file))))
271 (find-files "." "^(bzImage|vmlinuz|System\\.map)$"))
272 (copy-file ".config" (string-append out "/config"))
273 (zero? (system* "make"
274 (string-append "DEPMOD=" mit "/sbin/depmod")
275 (string-append "MODULE_DIR=" moddir)
276 (string-append "INSTALL_PATH=" out)
277 (string-append "INSTALL_MOD_PATH=" out)
278 "INSTALL_MOD_STRIP=1"
279 "modules_install"))))))
285 (uri (linux-libre-urls version))
288 "0d87jbmplv36kxq40k44zh3sj82qp79lf8n4by7jb2wvyk06rvfg"))))
289 (build-system gnu-build-system)
290 (supported-systems '("x86_64-linux" "i686-linux"))
291 (native-inputs `(("perl" ,perl)
294 ("module-init-tools" ,module-init-tools)
295 ("patch/freedo+gnu" ,%boot-logo-patch)
297 ,@(let ((conf (kernel-config (or (%current-target-system)
298 (%current-system)))))
303 `(#:modules ((guix build gnu-build-system)
307 #:phases (alist-replace
310 'install ,install-phase
311 (alist-delete 'configure %standard-phases)))
313 (synopsis "100% free redistribution of a cleaned Linux kernel")
315 "GNU Linux-Libre is a free (as in freedom) variant of the Linux kernel.
316 It has been modified to remove all non-free binary blobs.")
318 (home-page "http://www.gnu.org/software/linux-libre/"))))
322 ;;; Pluggable authentication modules (PAM).
325 (define-public linux-pam
332 (uri (list (string-append "http://www.linux-pam.org/library/Linux-PAM-"
334 (string-append "mirror://kernel.org/linux/libs/pam/library/Linux-PAM-"
335 version ".tar.bz2")))
338 "1n9lnf9gjs72kbj1g354v1xhi2j27aqaah15vykh7cnkq08i4arl"))))
339 (build-system gnu-build-system)
343 ;; TODO: optional dependencies
344 ;; ("libxcrypt" ,libxcrypt)
345 ;; ("cracklib" ,cracklib)
348 '(;; Most users, such as `shadow', expect the headers to be under
350 #:configure-flags (list (string-append "--includedir="
351 (assoc-ref %outputs "out")
352 "/include/security"))
354 ;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
357 (home-page "http://www.linux-pam.org/")
358 (synopsis "Pluggable authentication modules for Linux")
360 "A *Free* project to implement OSF's RFC 86.0.
361 Pluggable authentication modules are small shared object files that can
362 be used through the PAM API to perform tasks, like authenticating a user
363 at login. Local and dynamic reconfiguration are its key features.")
371 (define-public psmisc
378 (uri (string-append "mirror://sourceforge/psmisc/psmisc/psmisc-"
382 "052mfraykmxnavpi8s78aljx8w87hyvpx8mvzsgpjsjz73i28wmi"))))
383 (build-system gnu-build-system)
384 (inputs `(("ncurses" ,ncurses)))
385 (home-page "http://psmisc.sourceforge.net/")
387 "Small utilities that use the proc filesystem")
389 "This PSmisc package is a set of some small useful utilities that
390 use the proc filesystem. We're not about changing the world, but
391 providing the system administrator with some help in common tasks.")
394 (define-public util-linux
400 (uri (string-append "mirror://kernel.org/linux/utils/"
401 name "/v" (version-major+minor version) "/"
402 name "-" version ".tar.xz"))
405 "1ivdx1bhjbakf77agm9dn3wyxia1wgz9lzxgd61zqxw3xzih9gzw"))
406 (patches (list (search-patch "util-linux-tests.patch")))
407 (modules '((guix build utils)))
409 ;; We take the 'logger' program from GNU Inetutils and 'kill'
410 ;; from GNU Coreutils.
412 (substitute* "configure"
413 (("build_logger=yes") "build_logger=no")
414 (("build_kill=yes") "build_kill=no"))
416 (build-system gnu-build-system)
418 `(#:configure-flags (list "--disable-use-tty-group"
420 ;; Install completions where our
421 ;; bash-completion package expects them.
422 (string-append "--with-bashcompletiondir="
423 (assoc-ref %outputs "out")
424 "/etc/bash_completion.d"))
425 #:phases (modify-phases %standard-phases
427 'build 'set-umount-file-name
428 (lambda* (#:key outputs #:allow-other-keys)
429 ;; Tell 'eject' the right file name of 'umount'.
430 (let ((out (assoc-ref outputs "out")))
431 (substitute* "sys-utils/eject.c"
433 (string-append "\"" out "/bin/umount\"")))
437 (lambda* (#:key inputs outputs #:allow-other-keys)
438 (let ((out (assoc-ref outputs "out"))
439 (net (assoc-ref inputs "net-base")))
440 ;; Change the test to refer to the right file.
441 (substitute* "tests/ts/misc/mcookie"
443 (string-append net "/etc/services")))
445 (inputs `(("zlib" ,zlib)
446 ("ncurses" ,ncurses)))
449 ("net-base" ,net-base))) ;for tests
450 (home-page "https://www.kernel.org/pub/linux/utils/util-linux/")
451 (synopsis "Collection of utilities for the Linux kernel")
452 (description "Util-linux is a diverse collection of Linux kernel
453 utilities. It provides dmesg and includes tools for working with filesystems,
454 block devices, UUIDs, TTYs, and many other tools.")
456 ;; Note that util-linux doesn't use the same license for all the
457 ;; code. GPLv2+ is the default license for a code without an
458 ;; explicitly defined license.
459 (license (list gpl3+ gpl2+ gpl2 lgpl2.0+
460 bsd-4 public-domain))))
462 (define-public procps
468 ;; A mirror://sourceforge URI doesn't work, presumably becuase
469 ;; the SourceForge project is misconfigured.
470 (uri (string-append "http://procps.sourceforge.net/procps-"
474 "0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i"))
475 (patches (list (search-patch "procps-make-3.82.patch")))))
476 (build-system gnu-build-system)
477 (inputs `(("ncurses" ,ncurses)))
479 '(#:modules ((guix build utils)
480 (guix build gnu-build-system)
483 #:phases (alist-replace
485 (lambda* (#:key outputs #:allow-other-keys)
486 ;; No `configure', just a single Makefile.
487 (let ((out (assoc-ref outputs "out")))
488 (substitute* "Makefile"
490 (("--(owner|group) 0") "")
491 (("ldconfig") "true")
492 (("^LDFLAGS[[:blank:]]*:=(.*)$" _ value)
493 ;; Add libproc to the RPATH.
494 (string-append "LDFLAGS := -Wl,-rpath="
499 (lambda* (#:key outputs #:allow-other-keys)
500 (let ((out (assoc-ref outputs "out")))
502 (system* "make" "install"
503 (string-append "DESTDIR=" out)))
505 ;; Remove commands and man pages redundant with
507 (let ((dup (append-map (cut find-files out <>)
508 '("^kill" "^uptime"))))
509 (for-each delete-file dup)
514 (system* (string-append out "/bin/ps")
518 ;; What did you expect? Tests?
520 (home-page "http://procps.sourceforge.net/")
521 (synopsis "Utilities that give information about processes")
523 "Procps is the package that has a bunch of small useful utilities
524 that give information about processes using the Linux /proc file system.
525 The package includes the programs ps, top, vmstat, w, kill, free,
526 slabtop, and skill.")
529 (define-public usbutils
536 (uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/"
537 "usbutils-" version ".tar.xz"))
540 "03pd57vv8c6x0hgjqcbrxnzi14h8hcghmapg89p8k5zpwpkvbdfr"))))
541 (build-system gnu-build-system)
543 `(("libusb" ,libusb)))
545 `(("pkg-config" ,pkg-config)))
546 (home-page "http://www.linux-usb.org/")
548 "Tools for working with USB devices, such as lsusb")
550 "Tools for working with USB devices, such as lsusb.")
553 (define-public e2fsprogs
560 "mirror://kernel.org/linux/kernel/people/tytso/"
561 name "/v" version "/"
562 name "-" version ".tar.xz"))
565 "1ix0b83zgw5n0p2grh2961c6796m92yr2jqc2sbr23x3lfsp8r71"))
566 (modules '((guix build utils)))
568 '(substitute* "MCONFIG.in"
569 (("INSTALL_SYMLINK = /bin/sh")
570 "INSTALL_SYMLINK = sh")))))
571 (build-system gnu-build-system)
572 (inputs `(("util-linux" ,util-linux)))
573 (native-inputs `(("pkg-config" ,pkg-config)
574 ("texinfo" ,texinfo))) ;for the libext2fs Info manual
576 '(;; util-linux is not the preferred source for some of the libraries and
577 ;; commands, so disable them (see, e.g.,
578 ;; <http://git.buildroot.net/buildroot/commit/?id=e1ffc2f791b33633>.)
579 #:configure-flags '("--disable-libblkid"
580 "--disable-libuuid" "--disable-uuidd"
583 ;; Install libext2fs et al.
584 "--enable-elf-shlibs")
586 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
587 (assoc-ref %outputs "out")
590 #:phases (alist-cons-before
591 'configure 'patch-shells
593 (substitute* "configure"
594 (("/bin/sh (.*)parse-types.sh" _ dir)
595 (string-append (which "sh") " " dir
597 (substitute* (find-files "." "^Makefile.in$")
599 (string-append "#!" (which "sh")))))
601 'install 'install-libs
602 (lambda* (#:key outputs #:allow-other-keys)
603 (let* ((out (assoc-ref outputs "out"))
604 (lib (string-append out "/lib")))
605 (and (zero? (system* "make" "install-libs"))
607 ;; Make the .a writable so that 'strip' works.
608 ;; Failing to do that, due to debug symbols, we
609 ;; retain a reference to the final
610 ;; linux-libre-headers, which refer to the
611 ;; bootstrap binaries.
612 (let ((archives (find-files lib "\\.a$")))
613 (for-each (lambda (file)
619 ;; FIXME: Tests work by comparing the stdout/stderr of programs, that
620 ;; they fail because we get an extra line that says "Can't check if
621 ;; filesystem is mounted due to missing mtab file".
623 (home-page "http://e2fsprogs.sourceforge.net/")
624 (synopsis "Creating and checking ext2/ext3/ext4 file systems")
626 "This package provides tools for manipulating ext2/ext3/ext4 file systems.")
627 (license (list gpl2 ; programs
631 (define e2fsprogs/static
633 (package (inherit e2fsprogs)
635 ;; Do not build shared libraries.
636 (substitute-keyword-arguments (package-arguments e2fsprogs)
637 ((#:configure-flags _)
638 '(list "--disable-blkid"))
642 (define-public e2fsck/static
644 (name "e2fsck-static")
645 (version (package-version e2fsprogs))
646 (build-system trivial-build-system)
649 `(#:modules ((guix build utils))
652 (use-modules (guix build utils)
656 (let ((source (string-append (assoc-ref %build-inputs "e2fsprogs")
658 (bin (string-append (assoc-ref %outputs "out") "/sbin")))
660 (with-directory-excursion bin
661 (for-each (lambda (file)
662 (copy-file (string-append source "/" file)
664 (remove-store-references file)
666 (scandir source (cut string-prefix? "fsck." <>))))))))
667 (inputs `(("e2fsprogs" ,e2fsprogs/static)))
668 (synopsis "Statically-linked fsck.* commands from e2fsprogs")
670 "This package provides statically-linked command of fsck.ext[234] taken
671 from the e2fsprogs package. It is meant to be used in initrds.")
672 (home-page (package-home-page e2fsprogs))
673 (license (package-license e2fsprogs))))
675 (define-public extundelete
681 (uri (string-append "mirror://sourceforge/extundelete/"
682 version "/extundelete-" version ".tar.bz2"))
685 "1x0r7ylxlp9lbj3d7sqf6j2a222dwy2nfpff05jd6mkh4ihxvyd1"))))
686 (build-system gnu-build-system)
687 (inputs `(("e2fsprogs" ,e2fsprogs)))
688 (home-page "http://extundelete.sourceforge.net/")
689 (synopsis "Recover deleted files from ext2/3/4 partitions")
691 "Extundelete is a set of tools that can recover deleted files from an
692 ext3 or ext4 partition.")
695 (define-public zerofree
699 (home-page "http://intgat.tigress.co.uk/rmy/uml/")
702 (uri (string-append home-page name "-" version
706 "1xncw3dn2cp922ly42m96p6fh7jv8ysg6bwqbk5xvw701f3dmkrs"))))
707 (build-system gnu-build-system)
709 '(#:phases (alist-replace
711 (lambda* (#:key outputs #:allow-other-keys)
712 (let* ((out (assoc-ref outputs "out"))
713 (bin (string-append out "/bin")))
715 (copy-file "zerofree"
716 (string-append bin "/zerofree"))
717 (chmod (string-append bin "/zerofree")
720 (alist-delete 'configure %standard-phases))
721 #:tests? #f)) ;no tests
722 (inputs `(("libext2fs" ,e2fsprogs)))
723 (synopsis "Zero non-allocated regions in ext2/ext3/ext4 file systems")
725 "The zerofree command scans the free blocks in an ext2 file system and
726 fills any non-zero blocks with zeroes. This is a useful way to make disk
727 images more compressible.")
730 (define-public strace
736 (uri (string-append "mirror://sourceforge/strace/strace-"
740 "158iwk0pl2mfw93m1843xb7a2zb8p6lh0qim07rca6f1ff4dk764"))))
741 (build-system gnu-build-system)
742 (native-inputs `(("perl" ,perl)))
743 (home-page "http://strace.sourceforge.net/")
744 (synopsis "System call tracer for Linux")
746 "strace is a system call tracer, i.e. a debugging tool which prints out a
747 trace of all the system calls made by a another process/program.")
750 (define-public ltrace
756 (uri (string-append "http://www.ltrace.org/ltrace_" version
760 "00wmbdghqbz6x95m1mcdd3wd46l6hgcr4wggdp049dbifh3qqvqf"))))
761 (build-system gnu-build-system)
762 (inputs `(("libelf" ,libelf)))
764 ;; Compilation uses -Werror by default, but it fails.
765 '(#:configure-flags '("--disable-werror")))
766 (home-page "http://www.ltrace.org/")
767 (synopsis "Library call tracer for Linux")
769 "ltrace intercepts and records dynamic library calls which are called by
770 an executed process and the signals received by that process. It can also
771 intercept and print the system calls executed by the program.")
774 (define-public alsa-lib
781 "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-"
785 "0fx057746dj7rjdi0jnvx2m9b0y1lgdkh1hks87d8w32xyihf3k9"))
786 (patches (list (search-patch "alsa-lib-mips-atomic-fix.patch")))))
787 (build-system gnu-build-system)
788 (home-page "http://www.alsa-project.org/")
789 (synopsis "The Advanced Linux Sound Architecture libraries")
791 "The Advanced Linux Sound Architecture (ALSA) provides audio and
792 MIDI functionality to the Linux-based operating system.")
795 (define-public alsa-utils
801 (uri (string-append "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-"
805 "1sjjngnq50jv5ilwsb4zys6smifni3bd6fn28gbnhfrg14wsrgq2"))))
806 (build-system gnu-build-system)
808 ;; XXX: Disable man page creation until we have DocBook.
809 '(#:configure-flags (list "--disable-xmlto"
811 ;; The udev rule is responsible for restoring
813 (string-append "--with-udev-rules-dir="
814 (assoc-ref %outputs "out")
815 "/lib/udev/rules.d"))
816 #:phases (alist-cons-before
817 'install 'pre-install
819 ;; Don't try to mkdir /var/lib/alsa.
820 (substitute* "Makefile"
821 (("\\$\\(MKDIR_P\\) .*ASOUND_STATE_DIR.*")
825 `(("libsamplerate" ,libsamplerate)
827 ("alsa-lib" ,alsa-lib)
829 ("gettext" ,gnu-gettext)))
830 (home-page "http://www.alsa-project.org/")
831 (synopsis "Utilities for the Advanced Linux Sound Architecture (ALSA)")
833 "The Advanced Linux Sound Architecture (ALSA) provides audio and
834 MIDI functionality to the Linux-based operating system.")
836 ;; This is mostly GPLv2+ but a few files such as 'alsactl.c' are
840 (define-public iptables
847 "http://www.netfilter.org/projects/iptables/files/iptables-"
851 "0vkg5lzkn4l3i1sm6v3x96zzvnv9g7mi0qgj6279ld383mzcws24"))))
852 (build-system gnu-build-system)
854 '(#:tests? #f ; no test suite
855 #:configure-flags ; add $libdir to the RUNPATH of executables
856 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))))
857 (home-page "http://www.netfilter.org/projects/iptables/index.html")
858 (synopsis "Program to configure the Linux IP packet filtering rules")
860 "iptables is the userspace command line program used to configure the
861 Linux 2.4.x and later IPv4 packet filtering ruleset. It is targeted towards
862 system administrators. Since Network Address Translation is also configured
863 from the packet filter ruleset, iptables is used for this, too. The iptables
864 package also includes ip6tables. ip6tables is used for configuring the IPv6
868 (define-public iproute
875 "mirror://kernel.org/linux/utils/net/iproute2/iproute2-"
879 "04gi11gh087bg2nlxhj0lxrk8l9qxkpr88nsiil23917bm3h1xj4"))))
880 (build-system gnu-build-system)
882 `(#:tests? #f ; no test suite
883 #:make-flags (let ((out (assoc-ref %outputs "out")))
885 (string-append "LIBDIR=" out "/lib")
886 (string-append "SBINDIR=" out "/sbin")
887 (string-append "CONFDIR=" out "/etc")
888 (string-append "DOCDIR=" out "/share/doc/"
890 (string-append "MANDIR=" out "/share/man")))
891 #:phases (alist-cons-before
892 'install 'pre-install
894 ;; Don't attempt to create /var/lib/arpd.
895 (substitute* "Makefile"
896 (("^.*ARPDDIR.*$") "")))
899 `(("iptables" ,iptables)
902 `(("pkg-config" ,pkg-config)
906 "http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2")
908 "Utilities for controlling TCP/IP networking and traffic in Linux")
910 "Iproute2 is a collection of utilities for controlling TCP/IP
911 networking and traffic with the Linux kernel.
913 Most network configuration manuals still refer to ifconfig and route as the
914 primary network configuration tools, but ifconfig is known to behave
915 inadequately in modern network environments. They should be deprecated, but
916 most distros still include them. Most network configuration systems make use
917 of ifconfig and thus provide a limited feature set. The /etc/net project aims
918 to support most modern network technologies, as it doesn't use ifconfig and
919 allows a system administrator to make use of all iproute2 features, including
922 iproute2 is usually shipped in a package called iproute or iproute2 and
923 consists of several tools, of which the most important are ip and tc. ip
924 controls IPv4 and IPv6 configuration and tc stands for traffic control. Both
925 tools print detailed usage messages and are accompanied by a set of
929 (define-public net-tools
930 ;; XXX: This package is basically unmaintained, but it provides a few
931 ;; commands not yet provided by Inetutils, such as 'route', so we have to
936 (home-page "http://www.tazenda.demon.co.uk/phil/net-tools/")
939 (uri (string-append home-page "/" name "-"
943 "0yvxrzk0mzmspr7sa34hm1anw6sif39gyn85w4c5ywfn8inxvr3s"))
945 (list (search-patch "net-tools-bitrot.patch")))))
946 (build-system gnu-build-system)
948 '(#:modules ((guix build gnu-build-system)
952 #:phases (alist-cons-after
954 (lambda* (#:key inputs #:allow-other-keys)
955 (define (apply-patch file)
956 (zero? (system* "patch" "-p1" "--force"
959 (let ((patch.gz (assoc-ref inputs "patch")))
960 (format #t "applying Debian patch set '~a'...~%"
962 (system (string-append "gunzip < " patch.gz " > the-patch"))
963 (and (apply-patch "the-patch")
964 (for-each apply-patch
965 (find-files "debian/patches"
969 (lambda* (#:key outputs #:allow-other-keys)
970 (let ((out (assoc-ref outputs "out")))
971 (mkdir-p (string-append out "/bin"))
972 (mkdir-p (string-append out "/sbin"))
974 ;; Pretend we have everything...
975 (system "yes | make config")
977 ;; ... except for the things we don't have.
978 ;; HAVE_AFDECnet requires libdnet, which we don't have.
979 ;; HAVE_HWSTRIP and HAVE_HWTR require kernel headers
980 ;; that have been removed.
981 (substitute* '("config.make" "config.h")
982 (("^.*HAVE_(AFDECnet|HWSTRIP|HWTR)[ =]1.*$") ""))))
984 'install 'remove-redundant-commands
985 (lambda* (#:key outputs #:allow-other-keys)
986 ;; Remove commands and man pages redundant with
988 (let* ((out (assoc-ref outputs "out"))
989 (dup (append-map (cut find-files out <>)
991 "^(yp|nis|dns)?domainname"))))
992 (for-each delete-file dup)
996 ;; Binaries that depend on libnet-tools.a don't declare that
997 ;; dependency, making it parallel-unsafe.
1000 #:tests? #f ; no test suite
1001 #:make-flags (let ((out (assoc-ref %outputs "out")))
1003 (string-append "BASEDIR=" out)
1004 (string-append "INSTALLNLSDIR=" out "/share/locale")
1005 (string-append "mandir=/share/man")))))
1007 ;; Use the big Debian patch set (the thing does not even compile out of
1009 (inputs `(("patch" ,(origin
1012 "http://ftp.de.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz")
1015 "0p93lsqx23v5fv4hpbrydmfvw1ha2rgqpn2zqbs2jhxkzhjc030p"))))))
1016 (native-inputs `(("gettext" ,gnu-gettext)))
1018 (synopsis "Tools for controlling the network subsystem in Linux")
1020 "This package includes the important tools for controlling the network
1021 subsystem of the Linux kernel. This includes arp, hostname, ifconfig,
1022 netstat, rarp and route. Additionally, this package contains utilities
1023 relating to particular network hardware types (plipconfig, slattach) and
1024 advanced aspects of IP configuration (iptunnel, ipmaddr).")
1027 (define-public libcap
1034 "mirror://kernel.org/linux/libs/security/linux-privs/"
1035 "libcap2/libcap-" version ".tar.xz"))
1038 "0rbc9qbqs5bp9am9s9g83wxj5k4ixps2agy9dxr1v1fwg27mdr6f"))))
1039 (build-system gnu-build-system)
1040 (arguments '(#:phases
1041 (modify-phases %standard-phases
1043 ;; Add $libdir to the RUNPATH of executables.
1045 (substitute* "Make.Rules"
1047 (string-append "LDFLAGS := -Wl,-rpath="
1048 %output "/lib"))))))
1049 #:tests? #f ; no 'check' target
1050 #:make-flags (list "lib=lib"
1051 (string-append "prefix="
1052 (assoc-ref %outputs "out"))
1053 "RAISE_SETFCAP=no")))
1054 (native-inputs `(("perl" ,perl)))
1055 (inputs `(("attr" ,attr)))
1056 (home-page "https://sites.google.com/site/fullycapable/")
1057 (synopsis "Library for working with POSIX capabilities")
1059 "Libcap2 provides a programming interface to POSIX capabilities on
1060 Linux-based operating systems.")
1062 ;; License is BSD-3 or GPLv2, at the user's choice.
1065 (define-public bridge-utils
1067 (name "bridge-utils")
1071 (uri (string-append "mirror://sourceforge/bridge/bridge-utils-"
1075 "12367cwqmi0yqphi6j8rkx97q8hw52yq2fx4k0xfclkcizxybya2"))))
1076 (build-system gnu-build-system)
1078 ;; The tarball lacks all the generated files.
1079 (native-inputs `(("autoconf" ,autoconf)
1080 ("automake" ,automake)))
1082 '(#:phases (alist-cons-after
1085 ;; Fix "field ‘ip6’ has incomplete type" errors.
1086 (substitute* "libbridge/libbridge.h"
1087 (("#include <linux/if_bridge.h>")
1088 "#include <linux/in6.h>\n#include <linux/if_bridge.h>"))
1090 ;; Ensure that the entire build fails if one of the
1091 ;; sub-Makefiles fails.
1092 (substitute* "Makefile.in"
1093 (("\\$\\(MAKE\\) \\$\\(MFLAGS\\) -C \\$\\$x ;")
1094 "$(MAKE) $(MFLAGS) -C $$x || exit 1;"))
1096 (zero? (system* "autoreconf" "-vf")))
1098 #:tests? #f)) ; no 'check' target
1101 "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge")
1102 (synopsis "Manipulate Ethernet bridges")
1104 "Utilities for Linux's Ethernet bridging facilities. A bridge is a way
1105 to connect two Ethernet segments together in a protocol independent way.
1106 Packets are forwarded based on Ethernet address, rather than IP address (like
1107 a router). Since forwarding is done at Layer 2, all protocols can go
1108 transparently through a bridge.")
1111 (define-public libnl
1118 "http://www.infradead.org/~tgr/libnl/files/libnl-"
1122 "1icfrv8yihcb74as1gcgmp0wfpdq632q2zvbvqqvjms9cy87bswb"))))
1123 (build-system gnu-build-system)
1124 (native-inputs `(("flex" ,flex) ("bison" ,bison)))
1125 (home-page "http://www.infradead.org/~tgr/libnl/")
1126 (synopsis "NetLink protocol library suite")
1128 "The libnl suite is a collection of libraries providing APIs to netlink
1129 protocol based Linux kernel interfaces. Netlink is an IPC mechanism primarily
1130 between the kernel and user space processes. It was designed to be a more
1131 flexible successor to ioctl to provide mainly networking related kernel
1132 configuration and monitoring interfaces.")
1134 ;; Most files are LGPLv2.1-only, but some are GPLv2-only (like
1135 ;; 'nl-addr-add.c'), so the result is GPLv2-only.
1145 "https://www.kernel.org/pub/software/network/iw/iw-"
1149 "14zsapqhivk0ws5z21y1ys2c2czi05mzk7bl2yb7qxcfrnsjx9j8"))))
1150 (build-system gnu-build-system)
1151 (native-inputs `(("pkg-config" ,pkg-config)))
1152 (inputs `(("libnl" ,libnl)))
1154 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1156 #:phases (alist-delete 'configure %standard-phases)))
1157 (home-page "http://wireless.kernel.org/en/users/Documentation/iw")
1158 (synopsis "Tool for configuring wireless devices")
1160 "iw is a new nl80211 based CLI configuration utility for wireless
1161 devices. It replaces 'iwconfig', which is deprecated.")
1164 (define-public powertop
1172 "https://01.org/sites/default/files/downloads/powertop/powertop-"
1176 "1jkqqr3l1x98m7rgin1dgfzxqwj4vciw9lyyq1kl9bdswa818jwd"))))
1177 (build-system gnu-build-system)
1180 ("pciutils" ,pciutils)
1181 ("ncurses" ,ncurses)
1184 `(("pkg-config" ,pkg-config)))
1185 (home-page "https://01.org/powertop/")
1186 (synopsis "Analyze power consumption on Intel-based laptops")
1188 "PowerTOP is a Linux tool to diagnose issues with power consumption and
1189 power management. In addition to being a diagnostic tool, PowerTOP also has
1190 an interactive mode where the user can experiment various power management
1191 settings for cases where the operating system has not enabled these
1195 (define-public aumix
1202 "http://www.jpj.net/~trevor/aumix/releases/aumix-"
1203 version ".tar.bz2"))
1206 "0a8fwyxnc5qdxff8sl2sfsbnvgh6pkij4yafiln0fxgg6bal7knj"))))
1207 (build-system gnu-build-system)
1208 (inputs `(("ncurses" ,ncurses)))
1209 (home-page "http://www.jpj.net/~trevor/aumix.html")
1210 (synopsis "Audio mixer for X and the console")
1212 "Aumix adjusts an audio mixer from X, the console, a terminal,
1213 the command line or a script.")
1216 (define-public iotop
1223 (uri (string-append "http://guichaz.free.fr/iotop/files/iotop-"
1226 "1kp8mqg2pbxq4xzpianypadfxcsyfgwcaqgqia6h9fsq6zyh4z0s"))))
1227 (build-system python-build-system)
1229 ;; The setup.py script expects python-2.
1230 `(#:python ,python-2
1231 ;; There are currently no checks in the package.
1233 (native-inputs `(("python" ,python-2)))
1234 (home-page "http://guichaz.free.fr/iotop/")
1236 "Displays the IO activity of running processes")
1238 "Iotop is a Python program with a top like user interface to show the
1239 processes currently causing I/O.")
1248 (uri (string-append "mirror://sourceforge/fuse/fuse-"
1252 "071r6xjgssy8vwdn6m28qq1bqxsd2bphcd2mzhq0grf5ybm87sqb"))
1253 (patches (list (search-patch "fuse-CVE-2015-3202.patch")))))
1254 (build-system gnu-build-system)
1255 (inputs `(("util-linux" ,util-linux)))
1257 '(#:configure-flags (list (string-append "MOUNT_FUSE_PATH="
1258 (assoc-ref %outputs "out")
1260 (string-append "INIT_D_PATH="
1261 (assoc-ref %outputs "out")
1264 ;; The rule makes /dev/fuse 666.
1265 (string-append "UDEV_RULES_PATH="
1266 (assoc-ref %outputs "out")
1267 "/lib/udev/rules.d"))
1268 #:phases (alist-cons-before
1269 'build 'set-file-names
1270 (lambda* (#:key inputs #:allow-other-keys)
1271 ;; libfuse calls out to mount(8) and umount(8). Make sure
1272 ;; it refers to the right ones.
1273 (substitute* '("lib/mount_util.c" "util/mount_util.c")
1274 (("/bin/(u?)mount" _ maybe-u)
1275 (string-append (assoc-ref inputs "util-linux")
1276 "/bin/" maybe-u "mount")))
1277 (substitute* '("util/mount.fuse.c")
1281 ;; This hack leads libfuse to search for 'fusermount' in
1282 ;; $PATH, where it may find a setuid-root binary, instead of
1283 ;; trying solely $out/sbin/fusermount and failing because
1285 (substitute* "lib/Makefile"
1286 (("-DFUSERMOUNT_DIR=[[:graph:]]+")
1287 "-DFUSERMOUNT_DIR=\\\"/var/empty\\\"")))
1289 (home-page "http://fuse.sourceforge.net/")
1290 (synopsis "Support file systems implemented in user space")
1292 "As a consequence of its monolithic design, file system code for Linux
1293 normally goes into the kernel itself---which is not only a robustness issue,
1294 but also an impediment to system extensibility. FUSE, for \"file systems in
1295 user space\", is a kernel module and user-space library that tries to address
1296 part of this problem by allowing users to run file system implementations as
1297 user-space processes.")
1298 (license (list lgpl2.1 ; library
1299 gpl2+)))) ; command-line utilities
1301 (define-public unionfs-fuse
1303 (name "unionfs-fuse")
1308 "http://podgorny.cz/unionfs-fuse/releases/unionfs-fuse-"
1312 "0qpnr4czgc62vsfnmv933w62nq3xwcbnvqch72qakfgca75rsp4d"))))
1313 (build-system cmake-build-system)
1314 (inputs `(("fuse" ,fuse)))
1315 (arguments '(#:tests? #f)) ; no tests
1316 (home-page "http://podgorny.cz/moin/UnionFsFuse")
1317 (synopsis "User-space union file system")
1319 "UnionFS-FUSE is a flexible union file system implementation in user
1320 space, using the FUSE library. Mounting a union file system allows you to
1321 \"aggregate\" the contents of several directories into a single mount point.
1322 UnionFS-FUSE additionally supports copy-on-write.")
1326 (package (inherit fuse)
1327 (name "fuse-static")
1328 (source (origin (inherit (package-source fuse))
1329 (modules '((guix build utils)))
1331 ;; Normally libfuse invokes mount(8) so that /etc/mtab is
1332 ;; updated. Change calls to 'mtab_needs_update' to 0 so that
1333 ;; it doesn't do that, allowing us to remove the dependency on
1334 ;; util-linux (something that is useful in initrds.)
1335 '(substitute* '("lib/mount_util.c"
1336 "util/mount_util.c")
1337 (("mtab_needs_update[[:blank:]]*\\([a-z_]+\\)")
1342 (define-public unionfs-fuse/static
1343 (package (inherit unionfs-fuse)
1344 (synopsis "User-space union file system (statically linked)")
1345 (name (string-append (package-name unionfs-fuse) "-static"))
1346 (source (origin (inherit (package-source unionfs-fuse))
1347 (modules '((guix build utils)))
1349 ;; Add -ldl to the libraries, because libfuse.a needs that.
1350 '(substitute* "src/CMakeLists.txt"
1351 (("target_link_libraries(.*)\\)" _ libs)
1352 (string-append "target_link_libraries"
1356 #:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-static")
1357 #:phases (alist-cons-after
1358 'install 'post-install
1359 (lambda* (#:key outputs #:allow-other-keys)
1360 (let* ((out (assoc-ref outputs "out"))
1361 (exe (string-append out "/bin/unionfs")))
1362 ;; By default, 'unionfs' keeps references to
1363 ;; $glibc/share/locale and similar stuff. Remove them.
1364 (remove-store-references exe)))
1366 (inputs `(("fuse" ,fuse-static)))))
1368 (define-public sshfs-fuse
1374 (uri (string-append "mirror://sourceforge/fuse/sshfs-fuse-"
1378 "0gp6qr33l2p0964j0kds0dfmvyyf5lpgsn11daf0n5fhwm9185z9"))))
1379 (build-system gnu-build-system)
1384 `(("pkg-config" ,pkg-config)))
1385 (home-page "http://fuse.sourceforge.net/sshfs.html")
1386 (synopsis "Mount remote file systems over SSH")
1388 "This is a file system client based on the SSH File Transfer Protocol.
1389 Since most SSH servers already support this protocol it is very easy to set
1390 up: on the server side there's nothing to do; on the client side mounting the
1391 file system is as easy as logging into the server with an SSH client.")
1394 (define-public numactl
1401 "ftp://oss.sgi.com/www/projects/libnuma/download/numactl-"
1406 "0qbqa9gac2vlahrngi553hws2mqgqdwv2lc69a3yx4gq6l90j325"))))
1407 (build-system gnu-build-system)
1409 '(;; There's a 'test' target, but it requires NUMA support in the kernel
1410 ;; to run, which we can't assume to have.
1413 (home-page "http://oss.sgi.com/projects/libnuma/")
1414 (synopsis "Tools for non-uniform memory access (NUMA) machines")
1416 "NUMA stands for Non-Uniform Memory Access, in other words a system whose
1417 memory is not all in one place. The numactl program allows you to run your
1418 application program on specific CPU's and memory nodes. It does this by
1419 supplying a NUMA memory policy to the operating system before running your
1422 The package contains other commands, such as numademo, numastat and memhog.
1423 The numademo command provides a quick overview of NUMA performance on your
1425 (license (list gpl2 ; programs
1426 lgpl2.1)))) ; library
1434 (uri (string-append "mirror://kernel.org/linux/utils/kbd/kbd-"
1438 "04mrms12nm5sas0nxs94yrr3hz7gmqhnmfgb9ff34bh1jszxmzcx"))
1439 (modules '((guix build utils)))
1442 (substitute* "tests/Makefile.in"
1443 ;; The '%: %.in' rule incorrectly uses @VERSION@.
1446 (substitute* '("src/unicode_start" "src/unicode_stop")
1447 ;; Assume the Coreutils are in $PATH.
1450 (build-system gnu-build-system)
1452 '(#:phases (alist-cons-before
1454 (lambda* (#:key inputs #:allow-other-keys)
1455 (let ((gzip (assoc-ref %build-inputs "gzip"))
1456 (bzip2 (assoc-ref %build-inputs "bzip2")))
1457 (substitute* "src/libkeymap/findfile.c"
1459 (string-append gzip "/bin/gzip"))
1461 (string-append bzip2 "/bin/bzip2")))))
1463 'install 'post-install
1464 (lambda* (#:key outputs #:allow-other-keys)
1465 ;; Make sure these programs find their comrades.
1466 (let* ((out (assoc-ref outputs "out"))
1467 (bin (string-append out "/bin")))
1468 (for-each (lambda (prog)
1469 (wrap-program (string-append bin "/" prog)
1470 `("PATH" ":" prefix (,bin))))
1471 '("unicode_start" "unicode_stop"))))
1472 %standard-phases))))
1473 (inputs `(("check" ,check)
1476 ("pam" ,linux-pam)))
1477 (native-inputs `(("pkg-config" ,pkg-config)))
1478 (home-page "ftp://ftp.kernel.org/pub/linux/utils/kbd/")
1479 (synopsis "Linux keyboard utilities and keyboard maps")
1481 "This package contains keytable files and keyboard utilities compatible
1482 for systems using the Linux kernel. This includes commands such as
1483 'loadkeys', 'setfont', 'kbdinfo', and 'chvt'.")
1486 (define-public inotify-tools
1488 (name "inotify-tools")
1493 "mirror://sourceforge/inotify-tools/inotify-tools/"
1494 version "/inotify-tools-" version ".tar.gz"))
1497 "0icl4bx041axd5dvhg89kilfkysjj86hjakc7bk8n49cxjn4cha6"))))
1498 (build-system gnu-build-system)
1499 (home-page "http://inotify-tools.sourceforge.net/")
1500 (synopsis "Monitor file accesses")
1502 "The inotify-tools packages provides a C library and command-line tools
1503 to use Linux' inotify mechanism, which allows file accesses to be monitored.")
1513 (string-append "mirror://kernel.org/linux/utils/kernel/kmod/"
1514 "kmod-" version ".tar.xz"))
1517 "1yid3a9b64a60ybj66fk2ysrq5klnl0ijl4g624cl16y8404g9rv"))
1518 (patches (list (search-patch "kmod-module-directory.patch")))))
1519 (build-system gnu-build-system)
1521 `(("pkg-config" ,pkg-config)))
1526 `(#:tests? #f ; FIXME: Investigate test failures
1527 #:configure-flags '("--with-xz" "--with-zlib")
1528 #:phases (alist-cons-after
1529 'install 'install-modprobe&co
1530 (lambda* (#:key outputs #:allow-other-keys)
1531 (let* ((out (assoc-ref outputs "out"))
1532 (bin (string-append out "/bin")))
1533 (for-each (lambda (tool)
1535 (string-append bin "/" tool)))
1536 '("insmod" "rmmod" "lsmod" "modprobe"
1537 "modinfo" "depmod"))))
1539 (home-page "https://www.kernel.org/")
1540 (synopsis "Kernel module tools")
1541 (description "Kmod is a set of tools to handle common tasks with Linux
1542 kernel modules like insert, remove, list, check properties, resolve
1543 dependencies and aliases.
1545 These tools are designed on top of libkmod, a library that is shipped with
1546 kmod. The aim is to be compatible with tools, configurations and indices
1547 from the module-init-tools project.")
1548 (license gpl2+))) ; library under lgpl2.1+
1550 (define-public eudev
1551 ;; The post-systemd fork, maintained by Gentoo.
1558 "http://dev.gentoo.org/~blueness/eudev/eudev-"
1562 "0akg9gcc3c2p56xbhlvbybqavcprly5q0bvk655zwl6d62j8an7p"))
1563 (patches (list (search-patch "eudev-rules-directory.patch")))))
1564 (build-system gnu-build-system)
1566 `(("pkg-config" ,pkg-config)
1571 (home-page "http://www.gentoo.org/proj/en/eudev/")
1572 (synopsis "Userspace device management")
1573 (description "Udev is a daemon which dynamically creates and removes
1574 device nodes from /dev/, handles hotplug events and loads drivers at boot
1581 (version "2.02.109")
1584 (uri (string-append "ftp://sources.redhat.com/pub/lvm2/releases/LVM2."
1588 "1rv5ivg0l1w3nwzwdkqixm96h5bzg7ib4rr196ysb2lw42jmpjbv"))
1589 (modules '((guix build utils)))
1592 (use-modules (guix build utils))
1594 ;; Honor sysconfdir.
1595 (substitute* "make.tmpl.in"
1597 "confdir = @sysconfdir@\n")
1598 (("DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@")
1599 "DEFAULT_SYS_DIR = @sysconfdir@"))))))
1600 (build-system gnu-build-system)
1602 `(("pkg-config" ,pkg-config)
1603 ("procps" ,procps))) ;tests use 'pgrep'
1607 '(#:phases (alist-cons-after
1608 'configure 'set-makefile-shell
1610 ;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as
1612 (setenv "SHELL" (which "sh"))
1614 ;; Replace /bin/sh with the right file name.
1615 (patch-makefile-SHELL "make.tmpl"))
1618 #:configure-flags (list (string-append "--sysconfdir="
1619 (assoc-ref %outputs "out")
1621 "--enable-udev_sync"
1622 "--enable-udev_rules"
1624 ;; Make sure programs such as 'dmsetup' can
1625 ;; find libdevmapper.so.
1626 (string-append "LDFLAGS=-Wl,-rpath="
1627 (assoc-ref %outputs "out")
1630 ;; The tests use 'mknod', which requires root access.
1632 (home-page "http://sourceware.org/lvm2/")
1633 (synopsis "Logical volume management for Linux")
1635 "LVM2 is the logical volume management tool set for Linux-based systems.
1636 This package includes the user-space libraries and tools, including the device
1637 mapper. Kernel components are part of Linux-libre.")
1639 ;; Libraries (liblvm2, libdevmapper) are LGPLv2.1.
1640 ;; Command-line tools are GPLv2.
1641 (license (list gpl2 lgpl2.1))))
1643 (define-public wireless-tools
1645 (name "wireless-tools")
1649 (uri (string-append "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools."
1653 "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb"))
1656 ;; Remove the older header files that are not free software.
1657 (for-each (lambda (n)
1658 (delete-file (format #f "wireless.~a.h" n)))
1659 '(10 11 12 13 14 15 16 17 18 19 20))
1661 (build-system gnu-build-system)
1664 (list (string-append "PREFIX=" %output)
1665 (string-append "INSTALL_MAN=" %output "/share/man")
1666 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
1668 #:phases (modify-phases %standard-phases
1669 (delete 'configure))
1671 (synopsis "Tools for manipulating Linux Wireless Extensions")
1672 (description "Wireless Tools are used to manipulate the now-deprecated
1673 Linux Wireless Extensions; consider using 'iw' instead. The Wireless
1674 Extension was an interface allowing you to set Wireless LAN specific
1675 parameters and get the specific stats. It is deprecated in favor the nl80211
1677 (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html")
1678 ;; wireless.21.h and wireless.22.h are distributed under lgpl2.1+, the
1679 ;; other files are distributed under gpl2.
1680 (license (list gpl2 lgpl2.1+))))
1688 (uri (string-append "mirror://kernel.org/software/network/crda/"
1689 "crda-" version ".tar.xz"))
1692 "1gydiqgb08d9gbx4l6gv98zg3pljc984m50hmn3ysxcbkxkvkz23"))
1693 (patches (list (search-patch "crda-optional-gcrypt.patch")))))
1694 (build-system gnu-build-system)
1696 '(#:phases (modify-phases %standard-phases
1699 'build 'no-werror-no-ldconfig
1701 (substitute* "Makefile"
1703 (("ldconfig") "true"))
1706 'build 'set-regulator-db-file-name
1707 (lambda* (#:key inputs #:allow-other-keys)
1708 ;; Tell CRDA where to find our database.
1709 (let ((regdb (assoc-ref inputs "wireless-regdb")))
1710 (substitute* "crda.c"
1711 (("\"/lib/crda/regulatory.bin\"")
1712 (string-append "\"" regdb
1713 "/lib/crda/regulatory.bin\"")))
1715 #:test-target "verify"
1716 #:make-flags (let ((out (assoc-ref %outputs "out"))
1717 (regdb (assoc-ref %build-inputs "wireless-regdb")))
1718 (list "CC=gcc" "V=1"
1720 ;; Disable signature-checking on 'regulatory.bin'.
1721 ;; The reason is that this simplifies maintenance
1722 ;; on our side (no need to manage a distro key
1723 ;; pair), and we can guarantee integrity of
1724 ;; 'regulatory.bin' by other means anyway, such as
1725 ;; 'guix gc --verify'. See
1726 ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
1730 (string-append "PREFIX=" out)
1731 (string-append "SBINDIR=" out "/sbin/")
1732 (string-append "UDEV_RULE_DIR="
1733 out "/lib/udev/rules.d")
1734 (string-append "LDFLAGS=-Wl,-rpath="
1736 (string-append "REG_BIN=" regdb
1737 "/lib/crda/regulatory.bin")))))
1738 (native-inputs `(("pkg-config" ,pkg-config)
1739 ("python" ,python-2)
1740 ("wireless-regdb" ,wireless-regdb)))
1741 (inputs `(("libnl" ,libnl)))
1743 "https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA")
1744 (synopsis "Central regulatory domain agent (CRDA) for WiFi")
1746 "The Central Regulatory Domain Agent (CRDA) acts as the udev helper for
1747 communication between the kernel Linux and user space for regulatory
1749 (license copyleft-next)))
1751 (define-public wireless-regdb
1753 (name "wireless-regdb")
1754 (version "2015.04.06")
1758 "mirror://kernel.org/software/network/wireless-regdb/"
1759 "wireless-regdb-" version ".tar.xz"))
1762 "0czi83k311fp27z42hxjm8vi88fsbc23mhavv96lkb4pmari0jjc"))
1764 ;; We're building 'regulatory.bin' by ourselves.
1765 (snippet '(delete-file "regulatory.bin"))))
1766 (build-system gnu-build-system)
1768 '(#:phases (modify-phases %standard-phases
1769 (delete 'configure))
1771 ;; The 'all' target of the makefile depends on $(REGDB_CHANGED), which
1772 ;; is computed and can be equal to 'maintainer-clean'; when that
1773 ;; happens, we can end up deleting the 'regulatory.bin' file that we
1774 ;; just built. Thus, build things sequentially.
1775 #:parallel-build? #f
1777 #:tests? #f ;no tests
1778 #:make-flags (let ((out (assoc-ref %outputs "out")))
1779 (list (string-append "PREFIX=" out)
1780 (string-append "LSB_ID=GuixSD")
1781 (string-append "DISTRO_PUBKEY=/dev/null")
1782 (string-append "DISTRO_PRIVKEY=/dev/null")
1783 (string-append "REGDB_PUBKEY=/dev/null")
1785 ;; Leave that empty so that db2bin.py doesn't try
1786 ;; to sign 'regulatory.bin'. This allows us to
1787 ;; avoid managing a key pair for the whole distro.
1788 (string-append "REGDB_PRIVKEY=")))))
1789 (native-inputs `(("python" ,python-2)))
1791 "https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb")
1792 (synopsis "Wireless regulatory database")
1794 "This package contains the wireless regulatory database Central
1795 Regulatory Database Agent (CRDA) daemon. The database contains information on
1796 country-specific regulations for the wireless spectrum.")
1799 (define-public lm-sensors
1806 "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-"
1807 version ".tar.bz2"))
1810 "1ksgrynxgrq590nb2fwxrl1gwzisjkqlyg3ljfd1al0ibrk6mbjx"))
1811 (patches (list (search-patch "lm-sensors-hwmon-attrs.patch")))))
1812 (build-system gnu-build-system)
1813 (inputs `(("rrdtool" ,rrdtool)
1816 ("gnuplot" ,gnuplot)))
1817 (native-inputs `(("pkg-config" ,pkg-config)
1822 `(#:tests? #f ; no 'check' target
1823 #:make-flags (list (string-append "PREFIX=" %output)
1824 (string-append "ETCDIR=" %output "/etc")
1825 (string-append "MANDIR=" %output "/share/man"))
1830 'build 'patch-exec-paths
1831 (lambda* (#:key inputs outputs #:allow-other-keys)
1832 (substitute* "prog/detect/sensors-detect"
1834 (string-append "`" (assoc-ref inputs "coreutils")
1836 (("(`|\")modprobe" all open-quote)
1837 (string-append open-quote
1838 (assoc-ref inputs "kmod")
1840 (substitute* '("prog/pwm/pwmconfig"
1841 "prog/pwm/fancontrol")
1843 (string-append (assoc-ref inputs "gnuplot")
1846 (string-append (assoc-ref inputs "coreutils")
1849 (string-append (assoc-ref inputs "grep")
1852 (string-append (assoc-ref inputs "sed")
1855 (string-append (assoc-ref inputs "coreutils")
1858 (string-append (assoc-ref inputs "coreutils")
1861 (string-append (assoc-ref inputs "coreutils")
1862 "/bin/readlink -f"))))
1863 %standard-phases))))
1864 (home-page "http://www.lm-sensors.org/")
1865 (synopsis "Utilities to read temperature/voltage/fan sensors")
1867 "Lm-sensors is a hardware health monitoring package for Linux. It allows
1868 you to access information from temperature, voltage, and fan speed sensors.
1869 It works with most newer systems.")
1872 (define-public i2c-tools
1879 "http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-"
1880 version ".tar.bz2"))
1883 "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
1884 (build-system gnu-build-system)
1886 `(#:tests? #f ; no 'check' target
1887 #:make-flags (list (string-append "prefix=" %output)
1889 ;; no configure script
1890 #:phases (alist-delete 'configure %standard-phases)))
1893 (home-page "http://www.lm-sensors.org/wiki/I2CTools")
1894 (synopsis "I2C tools for Linux")
1896 "The i2c-tools package contains a heterogeneous set of I2C tools for
1897 Linux: a bus probing tool, a chip dumper, register-level SMBus access helpers,
1898 EEPROM decoding scripts, EEPROM programming tools, and a python module for
1902 (define-public xsensors
1909 "http://www.linuxhardware.org/xsensors/xsensors-"
1913 "1siplsfgvcxamyqf44h71jx6jdfmvhfm7mh0y1q8ps4zs6pj2zwh"))))
1914 (build-system gnu-build-system)
1915 (inputs `(("lm-sensors" ,lm-sensors)
1917 (native-inputs `(("pkg-config" ,pkg-config)))
1919 `(#:phases (alist-cons-before
1920 'configure 'enable-deprecated
1922 (substitute* "src/Makefile.in"
1923 (("-DGDK_DISABLE_DEPRECATED") "")
1924 (("-DGTK_DISABLE_DEPRECATED") "")))
1926 'configure 'remove-Werror
1928 (substitute* '("configure" "src/Makefile.in")
1930 %standard-phases))))
1931 (home-page "http://www.linuxhardware.org/xsensors/")
1932 (synopsis "Hardware health information viewer")
1934 "Xsensors reads data from the libsensors library regarding hardware
1935 health such as temperature, voltage and fan speed and displays the information
1936 in a digital read-out.")
1942 (version (package-version linux-libre))
1943 (source (package-source linux-libre))
1944 (build-system gnu-build-system)
1946 '(#:phases (alist-replace
1948 (lambda* (#:key inputs #:allow-other-keys)
1949 (setenv "SHELL_PATH" (which "bash"))
1950 (chdir "tools/perf"))
1952 #:make-flags (list (string-append "DESTDIR="
1953 (assoc-ref %outputs "out"))
1956 ;; By default, 'config/Makefile' uses lib64 on
1957 ;; x86_64. Work around that.
1959 #:tests? #f)) ;no tests
1961 `(("pkg-config" ,pkg-config)
1965 ;; There are build scripts written in these languages.
1967 ("python" ,python-2)))
1969 `(("slang" ,slang) ;for the interactive TUI
1971 ("python" ,python-2) ;'perf' links against libpython
1972 ("elfutils" ,elfutils)
1975 ("libxml2" ,libxml2) ;for $XML_CATALOG_FILES
1976 ("libxslt" ,libxslt)
1977 ("docbook-xml" ,docbook-xml)
1978 ("docbook-xsl" ,docbook-xsl)
1980 ("asciidoc" ,asciidoc)))
1981 (home-page "https://perf.wiki.kernel.org/")
1982 (synopsis "Linux profiling with performance counters")
1984 "perf is a tool suite for profiling using hardware performance counters,
1985 with support in the Linux kernel. perf can instrument CPU performance
1986 counters, tracepoints, kprobes, and uprobes (dynamic tracing). It is capable
1987 of lightweight profiling. This package contains the user-land tools and in
1988 particular the 'perf' command.")
1989 (license (package-license linux-libre))))
1991 (define-public pflask
1997 (uri (string-append "https://github.com/ghedo/pflask/archive/v"
1999 (file-name (string-append name "-" version ".tar.gz"))
2002 "1g8fjj67dfkc2s0852l9vqi1pm61gp4rxbpzbzg780f5s5hd1fys"))))
2003 (build-system cmake-build-system)
2005 '(#:tests? #f)) ; no tests
2006 (home-page "http://ghedo.github.io/pflask/")
2007 (synopsis "Simple tool for creating Linux namespace containers")
2008 (description "pflask is a simple tool for creating Linux namespace
2009 containers. It can be used for running a command or even booting an OS inside
2010 an isolated container, created with the help of Linux namespaces. It is
2011 similar in functionality to chroot, although pflask provides better isolation
2012 thanks to the use of namespaces.")
2015 (define-public hdparm
2021 (uri (string-append "mirror://sourceforge/" name "/"
2022 name "-" version ".tar.gz"))
2025 "0sc6yf3k6sd7n6a2ig2my9fjlqpak3znlyw7jw4cz5d9asm1rc13"))))
2026 (build-system gnu-build-system)
2028 `(#:make-flags (let ((out (assoc-ref %outputs "out")))
2029 (list (string-append "binprefix=" out)
2030 (string-append "manprefix=" out)
2032 #:phases (alist-delete 'configure %standard-phases)
2033 #:tests? #f)) ; no test suite
2034 (home-page "http://sourceforge.net/projects/hdparm/")
2035 (synopsis "Tune hard disk parameters for high performance")
2037 "Get/set device parameters for Linux SATA/IDE drives. It's primary use
2038 is for enabling irq-unmasking and IDE multiple-mode.")
2039 (license (non-copyleft "file://LICENSE.TXT"))))
2041 (define-public rfkill
2047 (uri (string-append "mirror://kernel.org/software/network/"
2048 name "/" name "-" version ".tar.xz"))
2051 "0snqj5h0y991lszbigbyyqb8swj0hxajc1vfqg2scfay44231bp0"))))
2052 (build-system gnu-build-system)
2054 `(#:make-flags (list "CC=gcc"
2055 (string-append "PREFIX=" %output))
2056 #:phases (modify-phases %standard-phases
2057 (delete 'configure))
2059 (home-page "https://wireless.wiki.kernel.org/en/users/Documentation/rfkill")
2060 (synopsis "Tool for enabling and disabling wireless devices")
2062 "rfkill is a simple tool for accessing the rfkill device interface,
2063 which is used to enable and disable wireless networking devices, typically
2064 WLAN, Bluetooth and mobile broadband.")
2065 (license (non-copyleft "file://COPYING"
2066 "See COPYING in the distribution."))))
2068 (define-public acpid
2074 (uri (string-append "mirror://sourceforge/acpid2/acpid-"
2078 "1vl7c6vc724v4jwki17czgj6lnrknnj1a6llm8gkl32i2gnam5j3"))))
2079 (build-system gnu-build-system)
2080 (home-page "http://sourceforge.net/projects/acpid2/")
2081 (synopsis "Daemon for delivering ACPI events to user-space programs")
2083 "acpid is designed to notify user-space programs of Advanced
2084 Configuration and Power Interface (ACPI) events. acpid should be started
2085 during the system boot, and will run as a background process. When an ACPI
2086 event is received from the kernel, acpid will examine the list of rules
2087 specified in /etc/acpi/events and execute the rules that match the event.")
2090 (define-public sysfsutils
2099 "mirror://sourceforge/linux-diag/sysfsutils/" version "/sysfsutils-"
2102 (base32 "12i0ip11xbfcjzxz4r10cvz7mbzgq1hfcdn97w6zz7sm3wndwrg8"))))
2103 (build-system gnu-build-system)
2104 (home-page "http://linux-diag.sourceforge.net/Sysfsutils.html")
2105 (synopsis "System utilities based on Linux sysfs")
2107 "These are a set of utilities built upon sysfs, a virtual filesystem in
2108 Linux kernel versions 2.5+ that exposes a system's device tree. The package
2109 also contains the libsysfs library.")
2110 ;; The library is under lgpl2.1+ (all files say "or any later version").
2111 ;; The rest is mostly gpl2, with a few files indicating gpl2+.
2112 (license (list gpl2 gpl2+ lgpl2.1+))))
2114 (define-public sysfsutils-1
2116 (inherit sysfsutils)
2123 "mirror://sourceforge/linux-diag/sysfsutils/sysfsutils-" version
2124 "/sysfsutils-" version ".tar.gz"))
2126 (base32 "0kdhs07fm8263pxwd5blwn2x211cg4fk63fyf9ijcdkvzmwxrqq3"))
2127 (modules '((guix build utils)))
2130 (substitute* "Makefile.in"
2131 (("includedir = /usr/include/sysfs")
2132 "includedir = @includedir@"))
2133 (substitute* "configure"
2134 (("includedir='(\\$\\{prefix\\}/include)'" all orig)
2135 (string-append "includedir='" orig "/sysfs'")))))))
2136 (synopsis "System utilities based on Linux sysfs (version 1.x)")))
2138 (define-public cpufrequtils
2140 (name "cpufrequtils")
2147 "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-"
2150 (base32 "0qfqv7nqmjfr3p0bwrdlxkiqwqr7vmx053cadaa548ybqbghxmvm"))
2151 (patches (list (search-patch "cpufrequtils-fix-aclocal.patch")))))
2152 (build-system gnu-build-system)
2154 `(("sysfsutils" ,sysfsutils-1)))
2156 '(#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2157 (assoc-ref %outputs "out") "/lib"))))
2158 (home-page "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/")
2159 (synopsis "Utilities to get and set CPU frequency on Linux")
2161 "The cpufrequtils suite contains utilities to retrieve CPU frequency
2162 information, and set the CPU frequency if supported, using the cpufreq
2163 capabilities of the Linux kernel.")
2166 (define-public libraw1394
2173 "mirror://kernel.org/linux/libs/ieee1394/"
2174 name "-" version ".tar.xz"))
2177 "0kwnf4ha45c04mhc4yla672aqmvqqihxix1gvblns5cd2pc2cc8b"))))
2178 (build-system gnu-build-system)
2179 (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page")
2180 (synopsis "Interface library for the Linux IEEE1394 drivers")
2182 "Libraw1394 is the only supported interface to the kernel side raw1394 of
2183 the Linux IEEE-1394 subsystem, which provides direct access to the connected
2184 1394 buses to user space. Through libraw1394/raw1394, applications can directly
2185 send to and receive from other nodes without requiring a kernel driver for the
2186 protocol in question.")
2187 (license lgpl2.1+)))
2189 (define-public libavc1394
2195 (uri (string-append "mirror://sourceforge/libavc1394/"
2196 name "-" version ".tar.gz"))
2199 "0lsv46jdqvdx5hx92v0z2cz3yh6212pz9gk0k3513sbaa04zzcbw"))))
2200 (build-system gnu-build-system)
2202 `(("pkg-config" ,pkg-config)))
2204 `(("libraw1394" ,libraw1394))) ; required by libavc1394.pc
2205 (home-page "http://sourceforge.net/projects/libavc1394/")
2206 (synopsis "AV/C protocol library for IEEE 1394")
2208 "Libavc1394 is a programming interface to the AV/C specification from
2209 the 1394 Trade Association. AV/C stands for Audio/Video Control.")
2210 (license lgpl2.1+)))
2212 (define-public libiec61883
2214 (name "libiec61883")
2219 "mirror://kernel.org/linux/libs/ieee1394/"
2220 name "-" version ".tar.xz"))
2223 "17ph458zya2l8dr2xwqnzy195qd9swrir31g78qkgb3g4xz2rq6i"))))
2224 (build-system gnu-build-system)
2226 `(("pkg-config" ,pkg-config)))
2228 `(("libraw1394" ,libraw1394))) ; required by libiec61883.pc
2229 (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page")
2230 (synopsis "Isochronous streaming media library for IEEE 1394")
2232 "The libiec61883 library provides a higher level API for streaming DV,
2233 MPEG-2 and audio over Linux IEEE 1394.")
2234 (license lgpl2.1+)))
2236 (define-public mdadm
2243 "mirror://kernel.org/linux/utils/raid/mdadm/mdadm-"
2247 "132vdvh3myjgcjn6i9w90ck16ddjxjcszklzkyvr4f5ifqd7wfhg"))
2248 (patches (list (search-patch "mdadm-gcc-4.9-fix.patch")))))
2249 (build-system gnu-build-system)
2253 `(#:make-flags (let ((out (assoc-ref %outputs "out")))
2254 (list "INSTALL=install"
2256 ;; TODO: tell it where to find 'sendmail'
2257 ;; (string-append "MAILCMD=" <???> "/sbin/sendmail")
2258 (string-append "BINDIR=" out "/sbin")
2259 (string-append "MANDIR=" out "/share/man")
2260 (string-append "UDEVDIR=" out "/lib/udev")))
2261 #:phases (alist-cons-before
2262 'build 'patch-program-paths
2263 (lambda* (#:key inputs #:allow-other-keys)
2264 (let ((coreutils (assoc-ref inputs "coreutils")))
2265 (substitute* "udev-md-raid-arrays.rules"
2266 (("/usr/bin/(readlink|basename)" all program)
2267 (string-append coreutils "/bin/" program)))))
2268 (alist-delete 'configure %standard-phases))
2269 ;;tests must be done as root
2271 (home-page "http://neil.brown.name/blog/mdadm")
2272 (synopsis "Tool for managing Linux Software RAID arrays")
2274 "mdadm is a tool for managing Linux Software RAID arrays. It can create,
2275 assemble, report on, and monitor arrays. It can also move spares between raid
2276 arrays when needed.")
2279 (define-public libaio
2286 (string-append "mirror://debian/pool/main/liba/libaio/"
2287 name "_" version ".orig.tar.gz")
2288 (string-append "https://fedorahosted.org/releases/l/i/libaio/"
2289 name "-" version ".tar.gz")))
2292 "0zjzfkwd1kdvq6zpawhzisv7qbq1ffs343i5fs9p498pcf7046g0"))))
2293 (build-system gnu-build-system)
2296 (list "CC=gcc" (string-append "prefix=" %output))
2297 #:test-target "partcheck" ; need root for a full 'check'
2299 (alist-delete 'configure %standard-phases))) ; no configure script
2300 (home-page "http://lse.sourceforge.net/io/aio.html")
2301 (synopsis "Linux-native asynchronous I/O access library")
2303 "This library enables userspace to use Linux kernel asynchronous I/O
2304 system calls, important for the performance of databases and other advanced
2306 (license lgpl2.1+)))
2308 (define-public bluez
2315 "https://www.kernel.org/pub/linux/bluetooth/bluez-"
2319 "1qphz25hganfnd5ipfscbj7s70anv5favmwqmi9ig2saciaf1zhs"))
2321 (list (search-patch "bluez-tests.patch")))))
2322 (build-system gnu-build-system)
2325 (let ((out (assoc-ref %outputs "out")))
2326 (list "--enable-library"
2328 ;; Install dbus/udev files to the correct location.
2329 (string-append "--with-dbusconfdir=" out "/etc")
2330 (string-append "--with-udevdir=" out "/lib/udev")))))
2332 `(("pkg-config" ,pkg-config)
2333 ("gettext" ,gnu-gettext)))
2338 ("libical" ,libical)
2339 ("readline" ,readline)))
2340 (home-page "http://www.bluez.org/")
2341 (synopsis "Linux Bluetooth protocol stack")
2343 "BlueZ provides support for the core Bluetooth layers and protocols. It
2344 is flexible, efficient and uses a modular implementation.")
2347 (define-public fuse-exfat
2353 (uri "https://docs.google.com/uc?export=download&\
2354 id=0B7CLI-REKbE3VTdaa0EzTkhYdU0")
2357 "0glmgwrf0nv09am54i6s35ksbvrywrwc51w6q32mv5by8475530r"))
2358 (file-name (string-append name "-" version ".tar.gz"))))
2359 (build-system gnu-build-system)
2362 ("pkg-config" ,pkg-config)))
2366 '(#:tests? #f ;no test suite
2368 ;; XXX: Factorize with 'exfat-utils'.
2369 #:phases (modify-phases %standard-phases
2371 (add-after 'unpack 'scons-propagate-environment
2373 ;; Modify the SConstruct file to arrange for
2374 ;; environment variables to be propagated.
2375 (substitute* "SConstruct"
2376 (("^env = Environment\\(")
2377 "env = Environment(ENV=os.environ, "))))
2380 (zero? (system* "scons"))))
2382 (lambda* (#:key outputs #:allow-other-keys)
2383 (let* ((out (assoc-ref outputs "out"))
2384 (bin (string-append out "/bin"))
2385 (man8 (string-append out
2386 "/share/man/man8")))
2389 (for-each (lambda (file)
2392 (string-append man8 "/"
2394 (find-files "." "\\.8$"))
2395 (zero? (system* "scons" "install"
2396 (string-append "DESTDIR="
2398 (home-page "http://code.google.com/p/exfat/")
2399 (synopsis "Mount exFAT file systems")
2401 "This package provides a FUSE-based file system that provides read and
2402 write access to exFAT devices.")
2412 "http://www.nico.schottelius.org/software/gpm/archives/gpm-"
2413 version ".tar.bz2"))
2416 "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh"))))
2417 (build-system gnu-build-system)
2419 '(#:phases (modify-phases %standard-phases
2420 (add-before 'configure 'bootstrap
2422 ;; The tarball was not generated with 'make dist' so we
2423 ;; need to bootstrap things ourselves.
2424 (and (zero? (system* "./autogen.sh"))
2426 (patch-makefile-SHELL "Makefile.include.in")
2429 ;; Make sure programs find libgpm.so.
2430 #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2431 (assoc-ref %outputs "out")
2434 `(("texinfo" ,texinfo)
2437 ("autoconf" ,autoconf)
2438 ("automake" ,automake)
2439 ("libtool" ,libtool)))
2440 (home-page "http://www.nico.schottelius.org/software/gpm/")
2441 (synopsis "Mouse support for the Linux console")
2443 "The GPM (general-purpose mouse) daemon is a mouse server for
2444 applications running on the Linux console. It allows users to select items
2445 and copy/paste text in the console and in xterm.")