1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
5 ;;; Copyright © 2014, 2015, 2016 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, 2016 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
10 ;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
12 ;;; Copyright © 2016 Raymond Nicholson <rain1@openmailbox.org>
13 ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
14 ;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
15 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
16 ;;; Copyright © 2016 David Craven <david@craven.ch>
17 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
19 ;;; This file is part of GNU Guix.
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
22 ;;; under the terms of the GNU General Public License as published by
23 ;;; the Free Software Foundation; either version 3 of the License, or (at
24 ;;; your option) any later version.
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
27 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 ;;; GNU General Public License for more details.
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34 (define-module (gnu packages linux)
35 #:use-module (gnu packages)
36 #:use-module (gnu packages admin)
37 #:use-module (gnu packages algebra)
38 #:use-module (gnu packages attr)
39 #:use-module (gnu packages autotools)
40 #:use-module (gnu packages base)
41 #:use-module (gnu packages bison)
42 #:use-module (gnu packages calendar)
43 #:use-module (gnu packages check)
44 #:use-module (gnu packages crypto)
45 #:use-module (gnu packages compression)
46 #:use-module (gnu packages databases)
47 #:use-module (gnu packages docbook)
48 #:use-module (gnu packages documentation)
49 #:use-module (gnu packages elf)
50 #:use-module (gnu packages flex)
51 #:use-module (gnu packages freedesktop)
52 #:use-module (gnu packages gcc)
53 #:use-module (gnu packages gettext)
54 #:use-module (gnu packages glib)
55 #:use-module (gnu packages gnuzilla)
56 #:use-module (gnu packages gperf)
57 #:use-module (gnu packages gtk)
58 #:use-module (gnu packages libusb)
59 #:use-module (gnu packages maths)
60 #:use-module (gnu packages ncurses)
61 #:use-module (gnu packages perl)
62 #:use-module (gnu packages pciutils)
63 #:use-module (gnu packages pkg-config)
64 #:use-module (gnu packages pulseaudio)
65 #:use-module (gnu packages python)
66 #:use-module (gnu packages readline)
67 #:use-module (gnu packages rrdtool)
68 #:use-module (gnu packages slang)
69 #:use-module (gnu packages texinfo)
70 #:use-module (gnu packages tls)
71 #:use-module (gnu packages xml)
72 #:use-module (guix build-system cmake)
73 #:use-module (guix build-system gnu)
74 #:use-module (guix build-system python)
75 #:use-module (guix build-system trivial)
76 #:use-module (guix download)
77 #:use-module ((guix licenses) #:prefix license:)
78 #:use-module (guix packages)
79 #:use-module (guix utils)
80 #:use-module (srfi srfi-1)
81 #:use-module (srfi srfi-2)
82 #:use-module (srfi srfi-26)
83 #:use-module (ice-9 match))
85 (define-public (system->linux-architecture arch)
86 "Return the Linux architecture name for ARCH, a Guix system name such as
88 (let ((arch (car (string-split arch #\-))))
89 (cond ((string=? arch "i686") "i386")
90 ((string-prefix? "mips" arch) "mips")
91 ((string-prefix? "arm" arch) "arm")
92 ((string-prefix? "aarch64" arch) "arm64")
95 (define (linux-libre-urls version)
96 "Return a list of URLs for Linux-Libre VERSION."
98 "http://linux-libre.fsfla.org/pub/linux-libre/releases/"
99 version "-gnu/linux-libre-" version "-gnu.tar.xz")
101 ;; XXX: Work around <http://bugs.gnu.org/14851>.
103 "ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-"
104 version "-gnu.tar.xz")
106 ;; Maybe this URL will become valid eventually.
108 "mirror://gnu/linux-libre/" version "-gnu/linux-libre-"
109 version "-gnu.tar.xz")))
111 (define-public linux-libre-headers
113 (name "linux-libre-headers")
117 (uri (linux-libre-urls version))
120 "0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps"))))
121 (build-system gnu-build-system)
122 (native-inputs `(("perl" ,perl)))
124 `(#:modules ((guix build gnu-build-system)
128 (modify-phases %standard-phases
132 (let ((arch ,(system->linux-architecture
133 (or (%current-target-system)
134 (%current-system)))))
136 (format #t "`ARCH' set to `~a'~%" (getenv "ARCH"))
138 (and (zero? (system* "make" "defconfig"))
139 (zero? (system* "make" "mrproper" "headers_check"))))))
141 (lambda* (#:key outputs #:allow-other-keys)
142 (let ((out (assoc-ref outputs "out")))
143 (and (zero? (system* "make"
144 (string-append "INSTALL_HDR_PATH=" out)
147 (mkdir (string-append out "/include/config"))
148 (call-with-output-file
150 "/include/config/kernel.release")
152 (format p "~a-default~%" ,version)))
154 ;; Remove the '.install' and '..install.cmd' files; the
155 ;; latter contains store paths, which pulls in bootstrap
156 ;; binaries in the build environment, and prevents bit
157 ;; reproducibility for the bootstrap binaries.
158 (for-each delete-file (find-files out "\\.install"))
161 #:allowed-references ()
163 (home-page "http://www.gnu.org/software/linux-libre")
164 (synopsis "GNU Linux-Libre kernel headers")
165 (description "Headers of the Linux-Libre kernel.")
166 (license license:gpl2)))
168 (define-public module-init-tools
170 (name "module-init-tools")
175 "mirror://kernel.org/linux/utils/kernel/module-init-tools/module-init-tools-"
179 "0jxnz9ahfic79rp93l5wxcbgh4pkv85mwnjlbv1gz3jawv5cvwp1"))
180 (patches (search-patches "module-init-tools-moduledir.patch"))))
181 (build-system gnu-build-system)
183 ;; FIXME: The upstream tarball lacks man pages, and building them would
184 ;; require DocBook & co. We used to use Gentoo's pre-built man pages,
185 ;; but they vanished. In the meantime, fake it.
186 '(#:phases (alist-cons-before
187 'configure 'fake-docbook
189 (substitute* "Makefile.in"
190 (("^DOCBOOKTOMAN.*$")
191 "DOCBOOKTOMAN = true\n")))
193 (home-page "http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/")
194 (synopsis "Tools for loading and managing Linux kernel modules")
196 "Tools for loading and managing Linux kernel modules, such as `modprobe',
197 `insmod', `lsmod', and more.")
198 (license license:gpl2+)))
200 (define-public libnfsidmap
207 "http://www.citi.umich.edu/projects/nfsv4/linux/"
208 name "/" name "-" version ".tar.gz"))
211 "1kzgwxzh83qi97rblcm9qj80cdvnv8kml2plz0q103j0hifj8vb5"))))
212 (build-system gnu-build-system)
214 "http://www.citi.umich.edu/projects/nfsv4/crossrealm/libnfsidmap_config.html")
216 "NFSv4 support library for name/ID mapping")
217 (description "Libnfsidmap is a library holding mulitiple methods of
218 mapping names to ids and visa versa, mainly for NFSv4. It provides an
219 extensible array of mapping functions, currently consisting of two choices:
220 the default @code{nsswitch} and the experimental @code{umich_ldap}.")
221 (license (license:non-copyleft "file://COPYING"
222 "See COPYING in the distribution."))))
224 (define %boot-logo-patch
225 ;; Linux-Libre boot logo featuring Freedo and a gnu.
228 (uri (string-append "http://www.fsfla.org/svn/fsfla/software/linux-libre/"
229 "lemote/gnewsense/branches/3.16/100gnu+freedo.patch"))
232 "1hk9swxxc80bmn2zd2qr5ccrjrk28xkypwhl4z0qx4hbivj7qm06"))))
234 (define* (kernel-config system #:key variant)
235 "Return the absolute file name of the Linux-Libre build configuration file
236 for SYSTEM and optionally VARIANT, or #f if there is no such configuration."
237 (and-let* ((arch (match system
244 (name (string-append "linux-libre-"
246 (string-append variant "-")
250 (file (string-append "gnu/packages/" name)))
251 (search-path %load-path file)))
253 (define-public linux-libre
254 (let* ((version "4.7.2")
256 '(lambda* (#:key system inputs #:allow-other-keys #:rest args)
257 ;; Avoid introducing timestamps
258 (setenv "KCONFIG_NOTIMESTAMP" "1")
259 (setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
261 ;; Apply the neat patch.
262 (system* "patch" "-p1" "--force"
263 "-i" (assoc-ref inputs "patch/freedo+gnu"))
265 (let ((arch (car (string-split system #\-))))
267 (cond ((string=? arch "i686") "i386")
268 ((string=? arch "mips64el") "mips")
270 (format #t "`ARCH' set to `~a'~%" (getenv "ARCH")))
272 (let ((build (assoc-ref %standard-phases 'build))
273 (config (assoc-ref inputs "kconfig")))
275 ;; Use the architecture-specific config if available, and
276 ;; 'defconfig' otherwise.
279 (copy-file config ".config")
280 (chmod ".config" #o666))
281 (system* "make" "defconfig"))
283 ;; Appending works even when the option wasn't in the
284 ;; file. The last one prevails if duplicated.
285 (let ((port (open-file ".config" "a")))
286 (display (string-append "CONFIG_NET_9P=m\n"
287 "CONFIG_NET_9P_VIRTIO=m\n"
288 "CONFIG_VIRTIO_BLK=m\n"
289 "CONFIG_VIRTIO_NET=m\n"
290 ;; https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00039.html
291 "CONFIG_DEVPTS_MULTIPLE_INSTANCES=y\n"
292 "CONFIG_VIRTIO_PCI=m\n"
293 "CONFIG_VIRTIO_BALLOON=m\n"
294 "CONFIG_VIRTIO_MMIO=m\n"
301 (zero? (system* "make" "oldconfig"))
303 ;; Call the default `build' phase so `-j' is correctly
305 (apply build #:make-flags "all" args))))
307 `(lambda* (#:key inputs outputs #:allow-other-keys)
308 (let* ((out (assoc-ref outputs "out"))
309 (moddir (string-append out "/lib/modules"))
310 (mit (assoc-ref inputs "module-init-tools")))
312 (for-each (lambda (file)
314 (string-append out "/" (basename file))))
315 (find-files "." "^(bzImage|vmlinuz|System\\.map)$"))
316 (copy-file ".config" (string-append out "/config"))
317 (zero? (system* "make"
318 (string-append "DEPMOD=" mit "/sbin/depmod")
319 (string-append "MODULE_DIR=" moddir)
320 (string-append "INSTALL_PATH=" out)
321 (string-append "INSTALL_MOD_PATH=" out)
322 "INSTALL_MOD_STRIP=1"
323 "modules_install"))))))
329 (uri (linux-libre-urls version))
332 "1rp09y2hv0hvdybm2n2im9717kzxmklpgzs8k1bmdfzqxyg8cb85"))))
333 (build-system gnu-build-system)
334 (supported-systems '("x86_64-linux" "i686-linux"))
335 (native-inputs `(("perl" ,perl)
338 ("module-init-tools" ,module-init-tools)
339 ("patch/freedo+gnu" ,%boot-logo-patch)
341 ,@(let ((conf (kernel-config
342 (or (%current-target-system)
344 #:variant (version-major+minor version))))
349 `(#:modules ((guix build gnu-build-system)
353 #:phases (alist-replace
356 'install ,install-phase
357 (alist-delete 'configure %standard-phases)))
359 (synopsis "100% free redistribution of a cleaned Linux kernel")
361 "GNU Linux-Libre is a free (as in freedom) variant of the Linux kernel.
362 It has been modified to remove all non-free binary blobs.")
363 (license license:gpl2)
364 (home-page "http://www.gnu.org/software/linux-libre/"))))
366 (define-public linux-libre-4.4
368 (inherit linux-libre)
372 (uri (linux-libre-urls version))
375 "0nddjs7prmb0g7g3w2k4qfyq02a9szm5nvsgflxcaarbq1slibb5"))))
377 (let ((conf (kernel-config (or (%current-target-system)
380 `(,@(alist-delete "kconfig" (package-native-inputs linux-libre))
381 ("kconfig" ,conf))))))
383 (define-public linux-libre-4.1
385 (inherit linux-libre)
389 (uri (linux-libre-urls version))
392 "0grffah921k136w1qwcswxv6m810s8q54nr2rk7kyqka3a1b81yw"))))
394 (let ((conf (kernel-config (or (%current-target-system)
397 `(,@(alist-delete "kconfig" (package-native-inputs linux-libre))
398 ("kconfig" ,conf))))))
402 ;;; Pluggable authentication modules (PAM).
405 (define-public linux-pam
413 "http://www.linux-pam.org/library/"
414 "Linux-PAM-" version ".tar.bz2"))
417 "1fyi04d5nsh8ivd0rn2y0z83ylgc0licz7kifbb6xxi2ylgfs6i4"))))
418 (build-system gnu-build-system)
422 ;; TODO: optional dependencies
423 ;; ("libxcrypt" ,libxcrypt)
424 ;; ("cracklib" ,cracklib)
427 '(;; Most users, such as `shadow', expect the headers to be under
429 #:configure-flags (list (string-append "--includedir="
430 (assoc-ref %outputs "out")
431 "/include/security"))
433 ;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
436 (home-page "http://www.linux-pam.org/")
437 (synopsis "Pluggable authentication modules for Linux")
439 "A *Free* project to implement OSF's RFC 86.0.
440 Pluggable authentication modules are small shared object files that can
441 be used through the PAM API to perform tasks, like authenticating a user
442 at login. Local and dynamic reconfiguration are its key features.")
443 (license license:bsd-3)))
445 (define-public linux-pam-1.2
448 (name "linux-pam-1.2")
454 "http://www.linux-pam.org/library/"
455 "Linux-PAM-" version ".tar.bz2"))
458 "1n9lnf9gjs72kbj1g354v1xhi2j27aqaah15vykh7cnkq08i4arl"))))))
466 (define-public psmisc
473 (uri (string-append "mirror://sourceforge/psmisc/psmisc/psmisc-"
477 "052mfraykmxnavpi8s78aljx8w87hyvpx8mvzsgpjsjz73i28wmi"))))
478 (build-system gnu-build-system)
479 (inputs `(("ncurses" ,ncurses)))
480 (home-page "http://psmisc.sourceforge.net/")
482 "Small utilities that use the proc filesystem")
484 "This PSmisc package is a set of some small useful utilities that
485 use the proc filesystem. We're not about changing the world, but
486 providing the system administrator with some help in common tasks.")
487 (license license:gpl2+)))
489 (define-public util-linux
495 (uri (string-append "mirror://kernel.org/linux/utils/"
496 name "/v" (version-major+minor version) "/"
497 name "-" version ".tar.xz"))
500 "03xnaw3c7pavxvvh1vnimcr44hlhhf25whawiyv8dxsflfj4xkiy"))
501 (patches (search-patches "util-linux-tests.patch"))
502 (modules '((guix build utils)))
504 ;; We take the 'logger' program from GNU Inetutils and 'kill'
505 ;; from GNU Coreutils.
507 (substitute* "configure"
508 (("build_logger=yes") "build_logger=no")
509 (("build_kill=yes") "build_kill=no"))
511 (build-system gnu-build-system)
513 "static")) ; >2 MiB of static .a libraries
515 `(#:configure-flags (list "--disable-use-tty-group"
517 ;; Install completions where our
518 ;; bash-completion package expects them.
519 (string-append "--with-bashcompletiondir="
520 (assoc-ref %outputs "out")
521 "/etc/bash_completion.d"))
522 #:phases (modify-phases %standard-phases
524 'build 'set-umount-file-name
525 (lambda* (#:key outputs #:allow-other-keys)
526 ;; Tell 'eject' the right file name of 'umount'.
527 (let ((out (assoc-ref outputs "out")))
528 (substitute* "sys-utils/eject.c"
530 (string-append "\"" out "/bin/umount\"")))
534 (lambda* (#:key inputs outputs #:allow-other-keys)
535 (let ((out (assoc-ref outputs "out"))
536 (net (assoc-ref inputs "net-base")))
537 ;; Change the test to refer to the right file.
538 (substitute* "tests/ts/misc/mcookie"
540 (string-append net "/etc/services")))
543 'install 'move-static-libraries
544 (lambda* (#:key outputs #:allow-other-keys)
545 (let ((out (assoc-ref outputs "out"))
546 (static (assoc-ref outputs "static")))
547 (mkdir-p (string-append static "/lib"))
548 (with-directory-excursion out
549 (for-each (lambda (file)
551 (string-append static "/"
553 (find-files "lib" "\\.a$")))
555 (inputs `(("zlib" ,zlib)
556 ("ncurses" ,ncurses)))
559 ("net-base" ,net-base))) ;for tests
560 (home-page "https://www.kernel.org/pub/linux/utils/util-linux/")
561 (synopsis "Collection of utilities for the Linux kernel")
562 (description "Util-linux is a diverse collection of Linux kernel
563 utilities. It provides dmesg and includes tools for working with filesystems,
564 block devices, UUIDs, TTYs, and many other tools.")
566 ;; Note that util-linux doesn't use the same license for all the
567 ;; code. GPLv2+ is the default license for a code without an
568 ;; explicitly defined license.
569 (license (list license:gpl3+ license:gpl2+ license:gpl2 license:lgpl2.0+
570 license:bsd-4 license:public-domain))))
572 (define-public procps
578 (uri (string-append "mirror://sourceforge/procps-ng/Production/"
579 "procps-ng-" version ".tar.xz"))
582 "1m57w6jmry84njd5sgk5afycbglql0al80grx027kwqqcfw5mmkf"))))
583 (build-system gnu-build-system)
585 '(#:modules ((guix build utils)
586 (guix build gnu-build-system)
590 (modify-phases %standard-phases
591 (add-before 'check 'disable-strtod-test
593 ;; Disable the 'strtod' test, which fails on 32-bit systems.
594 ;; This is what upstream does:
595 ;; <https://gitlab.com/procps-ng/procps/commit/100afbc1491be388f1429021ff65d969f4b1e08f>.
596 (substitute* "Makefile"
597 (("^(TESTS|check_PROGRAMS) = .*$" all)
598 (string-append "# " all "\n")))
601 'install 'post-install
602 ;; Remove commands and man pages redudant with
604 (lambda* (#:key outputs #:allow-other-keys)
605 (let* ((out (assoc-ref outputs "out"))
606 (dup (append-map (cut find-files out <>)
607 '("^kill" "^uptime"))))
608 (for-each delete-file dup)
610 (inputs `(("ncurses" ,ncurses)))
611 (home-page "https://gitlab.com/procps-ng/procps/")
612 (synopsis "Utilities that give information about processes")
614 "Procps is the package that has a bunch of small useful utilities
615 that give information about processes using the Linux /proc file system.
616 The package includes the programs ps, top, vmstat, w, kill, free,
617 slabtop, and skill.")
618 (license license:gpl2)))
620 (define-public usbutils
627 (uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/"
628 "usbutils-" version ".tar.xz"))
631 "03pd57vv8c6x0hgjqcbrxnzi14h8hcghmapg89p8k5zpwpkvbdfr"))))
632 (build-system gnu-build-system)
634 `(("libusb" ,libusb)))
636 `(("pkg-config" ,pkg-config)))
637 (home-page "http://www.linux-usb.org/")
639 "Tools for working with USB devices, such as lsusb")
641 "Tools for working with USB devices, such as lsusb.")
642 (license license:gpl2+)))
644 (define-public e2fsprogs
651 "mirror://kernel.org/linux/kernel/people/tytso/"
652 name "/v" version "/"
653 name "-" version ".tar.xz"))
656 "1ix0b83zgw5n0p2grh2961c6796m92yr2jqc2sbr23x3lfsp8r71"))
657 (modules '((guix build utils)))
659 '(substitute* "MCONFIG.in"
660 (("INSTALL_SYMLINK = /bin/sh")
661 "INSTALL_SYMLINK = sh")))))
662 (build-system gnu-build-system)
663 (inputs `(("util-linux" ,util-linux)))
664 (native-inputs `(("pkg-config" ,pkg-config)
665 ("texinfo" ,texinfo))) ;for the libext2fs Info manual
667 '(;; util-linux is the preferred source for some of the libraries and
668 ;; commands, so disable them (see, e.g.,
669 ;; <http://git.buildroot.net/buildroot/commit/?id=e1ffc2f791b33633>.)
670 #:configure-flags '("--disable-libblkid"
671 "--disable-libuuid" "--disable-uuidd"
674 ;; Install libext2fs et al.
675 "--enable-elf-shlibs")
677 #:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
678 (assoc-ref %outputs "out")
681 #:phases (alist-cons-before
682 'configure 'patch-shells
684 (substitute* "configure"
685 (("/bin/sh (.*)parse-types.sh" _ dir)
686 (string-append (which "sh") " " dir
688 (substitute* (find-files "." "^Makefile.in$")
690 (string-append "#!" (which "sh")))))
692 'install 'install-libs
693 (lambda* (#:key outputs #:allow-other-keys)
694 (let* ((out (assoc-ref outputs "out"))
695 (lib (string-append out "/lib")))
696 (and (zero? (system* "make" "install-libs"))
698 ;; Make the .a writable so that 'strip' works.
699 ;; Failing to do that, due to debug symbols, we
700 ;; retain a reference to the final
701 ;; linux-libre-headers, which refer to the
702 ;; bootstrap binaries.
703 (let ((archives (find-files lib "\\.a$")))
704 (for-each (lambda (file)
710 ;; FIXME: Tests work by comparing the stdout/stderr of programs, that
711 ;; they fail because we get an extra line that says "Can't check if
712 ;; filesystem is mounted due to missing mtab file".
714 (home-page "http://e2fsprogs.sourceforge.net/")
715 (synopsis "Creating and checking ext2/ext3/ext4 file systems")
717 "This package provides tools for manipulating ext2/ext3/ext4 file systems.")
718 (license (list license:gpl2 ;programs
719 license:lgpl2.0 ;libext2fs
720 license:x11)))) ;libuuid
722 (define e2fsprogs/static
724 (package (inherit e2fsprogs)
726 ;; Do not build shared libraries.
727 (substitute-keyword-arguments (package-arguments e2fsprogs)
728 ((#:configure-flags _)
729 '(list "--disable-blkid"))
733 (define-public e2fsck/static
735 (name "e2fsck-static")
736 (version (package-version e2fsprogs))
737 (build-system trivial-build-system)
740 `(#:modules ((guix build utils))
743 (use-modules (guix build utils)
747 (let ((source (string-append (assoc-ref %build-inputs "e2fsprogs")
749 (bin (string-append (assoc-ref %outputs "out") "/sbin")))
751 (with-directory-excursion bin
752 (for-each (lambda (file)
753 (copy-file (string-append source "/" file)
755 (remove-store-references file)
757 (scandir source (cut string-prefix? "fsck." <>))))))))
758 (inputs `(("e2fsprogs" ,e2fsprogs/static)))
759 (synopsis "Statically-linked fsck.* commands from e2fsprogs")
761 "This package provides statically-linked command of fsck.ext[234] taken
762 from the e2fsprogs package. It is meant to be used in initrds.")
763 (home-page (package-home-page e2fsprogs))
764 (license (package-license e2fsprogs))))
766 (define-public extundelete
772 (uri (string-append "mirror://sourceforge/extundelete/"
773 "extundelete/" version "/extundelete-"
777 "1x0r7ylxlp9lbj3d7sqf6j2a222dwy2nfpff05jd6mkh4ihxvyd1"))))
778 (build-system gnu-build-system)
779 (inputs `(("e2fsprogs" ,e2fsprogs)))
780 (home-page "http://extundelete.sourceforge.net/")
781 (synopsis "Recover deleted files from ext2/3/4 partitions")
783 "Extundelete is a set of tools that can recover deleted files from an
784 ext3 or ext4 partition.")
785 (license license:gpl2)))
787 (define-public zerofree
791 (home-page "http://intgat.tigress.co.uk/rmy/uml/")
794 (uri (string-append home-page name "-" version
798 "1xncw3dn2cp922ly42m96p6fh7jv8ysg6bwqbk5xvw701f3dmkrs"))))
799 (build-system gnu-build-system)
801 '(#:phases (alist-replace
803 (lambda* (#:key outputs #:allow-other-keys)
804 (let* ((out (assoc-ref outputs "out"))
805 (bin (string-append out "/bin")))
807 (copy-file "zerofree"
808 (string-append bin "/zerofree"))
809 (chmod (string-append bin "/zerofree")
812 (alist-delete 'configure %standard-phases))
813 #:tests? #f)) ;no tests
814 (inputs `(("libext2fs" ,e2fsprogs)))
815 (synopsis "Zero non-allocated regions in ext2/ext3/ext4 file systems")
817 "The zerofree command scans the free blocks in an ext2 file system and
818 fills any non-zero blocks with zeroes. This is a useful way to make disk
819 images more compressible.")
820 (license license:gpl2)))
822 (define-public strace
828 (uri (string-append "mirror://sourceforge/strace/strace/" version
829 "/strace-" version ".tar.xz"))
832 "158iwk0pl2mfw93m1843xb7a2zb8p6lh0qim07rca6f1ff4dk764"))))
833 (build-system gnu-build-system)
834 (native-inputs `(("perl" ,perl)))
835 (home-page "http://strace.sourceforge.net/")
836 (synopsis "System call tracer for Linux")
838 "strace is a system call tracer, i.e. a debugging tool which prints out a
839 trace of all the system calls made by a another process/program.")
840 (license license:bsd-3)))
842 (define-public ltrace
848 (uri (string-append "http://www.ltrace.org/ltrace_" version
852 "00wmbdghqbz6x95m1mcdd3wd46l6hgcr4wggdp049dbifh3qqvqf"))))
853 (build-system gnu-build-system)
854 (inputs `(("libelf" ,libelf)))
856 ;; Compilation uses -Werror by default, but it fails.
857 '(#:configure-flags '("--disable-werror")))
858 (home-page "http://www.ltrace.org/")
859 (synopsis "Library call tracer for Linux")
861 "ltrace intercepts and records dynamic library calls which are called by
862 an executed process and the signals received by that process. It can also
863 intercept and print the system calls executed by the program.")
864 (license license:gpl2+)))
866 (define-public alsa-lib
873 "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-"
877 "0fx057746dj7rjdi0jnvx2m9b0y1lgdkh1hks87d8w32xyihf3k9"))
878 (patches (search-patches "alsa-lib-mips-atomic-fix.patch"))))
879 (build-system gnu-build-system)
880 (home-page "http://www.alsa-project.org/")
881 (synopsis "The Advanced Linux Sound Architecture libraries")
883 "The Advanced Linux Sound Architecture (ALSA) provides audio and
884 MIDI functionality to the Linux-based operating system.")
885 (license license:lgpl2.1+)))
887 (define-public alsa-utils
893 (uri (string-append "ftp://ftp.alsa-project.org/pub/utils/"
894 name "-" version ".tar.bz2"))
897 "0wcha78c2sm8qqk5r3w83cvm8fp6fb1zpd35kmcm24kxhz007xks"))))
898 (build-system gnu-build-system)
900 ;; XXX: Disable man page creation until we have DocBook.
901 '(#:configure-flags (list "--disable-xmlto"
903 ;; The udev rule is responsible for restoring
905 (string-append "--with-udev-rules-dir="
906 (assoc-ref %outputs "out")
907 "/lib/udev/rules.d"))
909 (modify-phases %standard-phases
911 'install 'pre-install
913 ;; Don't try to mkdir /var/lib/alsa.
914 (substitute* "Makefile"
915 (("\\$\\(MKDIR_P\\) .*ASOUND_STATE_DIR.*")
918 `(("libsamplerate" ,libsamplerate)
920 ("alsa-lib" ,alsa-lib)
922 ("gettext" ,gnu-gettext)))
923 (home-page "http://www.alsa-project.org/")
924 (synopsis "Utilities for the Advanced Linux Sound Architecture (ALSA)")
926 "The Advanced Linux Sound Architecture (ALSA) provides audio and
927 MIDI functionality to the Linux-based operating system.")
929 ;; This is mostly GPLv2+ but a few files such as 'alsactl.c' are
931 (license license:gpl2)))
933 (define-public iptables
940 "http://www.netfilter.org/projects/iptables/files/iptables-"
944 "1q6kg7sf0pgpq0qhab6sywl23cngxxfzc9zdzscsba8x09l4q02j"))))
945 (build-system gnu-build-system)
947 '(#:tests? #f ; no test suite
948 #:configure-flags ; add $libdir to the RUNPATH of executables
949 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))))
950 (home-page "http://www.netfilter.org/projects/iptables/index.html")
951 (synopsis "Program to configure the Linux IP packet filtering rules")
953 "iptables is the userspace command line program used to configure the
954 Linux 2.4.x and later IPv4 packet filtering ruleset (firewall). It is targeted at
955 system administrators. Since Network Address Translation is also configured
956 from the packet filter ruleset, iptables is used for this, too. The iptables
957 package also includes ip6tables. ip6tables is used for configuring the IPv6
959 (license license:gpl2+)))
961 (define-public iproute
968 "mirror://kernel.org/linux/utils/net/iproute2/iproute2-"
972 "05351m4m0whsivlblvs3m0nz5q9v6r06ik80z27gf6ca51kw74dw"))))
973 (build-system gnu-build-system)
975 `(#:tests? #f ; no test suite
976 #:make-flags (let ((out (assoc-ref %outputs "out")))
978 (string-append "LIBDIR=" out "/lib")
979 (string-append "SBINDIR=" out "/sbin")
980 (string-append "CONFDIR=" out "/etc")
981 (string-append "DOCDIR=" out "/share/doc/"
983 (string-append "MANDIR=" out "/share/man")))
984 #:phases (modify-phases %standard-phases
985 (add-before 'install 'pre-install
987 ;; Don't attempt to create /var/lib/arpd.
988 (substitute* "Makefile"
989 (("^.*ARPDDIR.*$") "")))))))
991 `(("iptables" ,iptables)
994 `(("pkg-config" ,pkg-config)
998 "http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2")
1000 "Utilities for controlling TCP/IP networking and traffic in Linux")
1002 "Iproute2 is a collection of utilities for controlling TCP/IP
1003 networking and traffic with the Linux kernel.
1005 Most network configuration manuals still refer to ifconfig and route as the
1006 primary network configuration tools, but ifconfig is known to behave
1007 inadequately in modern network environments. They should be deprecated, but
1008 most distros still include them. Most network configuration systems make use
1009 of ifconfig and thus provide a limited feature set. The /etc/net project aims
1010 to support most modern network technologies, as it doesn't use ifconfig and
1011 allows a system administrator to make use of all iproute2 features, including
1014 iproute2 is usually shipped in a package called iproute or iproute2 and
1015 consists of several tools, of which the most important are ip and tc. ip
1016 controls IPv4 and IPv6 configuration and tc stands for traffic control. Both
1017 tools print detailed usage messages and are accompanied by a set of
1019 (license license:gpl2+)))
1021 (define-public net-tools
1022 ;; XXX: This package is basically unmaintained, but it provides a few
1023 ;; commands not yet provided by Inetutils, such as 'route', so we have to
1028 (home-page "http://net-tools.sourceforge.net/")
1031 (uri (list (string-append
1032 "mirror://sourceforge/net-tools/net-tools-"
1035 "http://distro.ibiblio.org/rootlinux/rootlinux-ports"
1036 "/base/net-tools/net-tools-1.60.tar.bz2")))
1039 "0yvxrzk0mzmspr7sa34hm1anw6sif39gyn85w4c5ywfn8inxvr3s"))
1040 (patches (search-patches "net-tools-bitrot.patch"))))
1041 (build-system gnu-build-system)
1043 '(#:modules ((guix build gnu-build-system)
1047 #:phases (alist-cons-after
1049 (lambda* (#:key inputs #:allow-other-keys)
1050 (define (apply-patch file)
1051 (zero? (system* "patch" "-p1" "--force"
1054 (let ((patch.gz (assoc-ref inputs "patch")))
1055 (format #t "applying Debian patch set '~a'...~%"
1057 (system (string-append "gunzip < " patch.gz " > the-patch"))
1058 (and (apply-patch "the-patch")
1059 (for-each apply-patch
1060 (find-files "debian/patches"
1064 (lambda* (#:key outputs #:allow-other-keys)
1065 (let ((out (assoc-ref outputs "out")))
1066 (mkdir-p (string-append out "/bin"))
1067 (mkdir-p (string-append out "/sbin"))
1069 ;; Pretend we have everything...
1070 (system "yes | make config")
1072 ;; ... except for the things we don't have.
1073 ;; HAVE_AFDECnet requires libdnet, which we don't have.
1074 ;; HAVE_HWSTRIP and HAVE_HWTR require kernel headers
1075 ;; that have been removed.
1076 (substitute* '("config.make" "config.h")
1077 (("^.*HAVE_(AFDECnet|HWSTRIP|HWTR)[ =]1.*$") ""))))
1079 'install 'remove-redundant-commands
1080 (lambda* (#:key outputs #:allow-other-keys)
1081 ;; Remove commands and man pages redundant with
1083 (let* ((out (assoc-ref outputs "out"))
1084 (dup (append-map (cut find-files out <>)
1086 "^(yp|nis|dns)?domainname"))))
1087 (for-each delete-file dup)
1091 ;; Binaries that depend on libnet-tools.a don't declare that
1092 ;; dependency, making it parallel-unsafe.
1093 #:parallel-build? #f
1095 #:tests? #f ; no test suite
1096 #:make-flags (let ((out (assoc-ref %outputs "out")))
1098 (string-append "BASEDIR=" out)
1099 (string-append "INSTALLNLSDIR=" out "/share/locale")
1100 (string-append "mandir=/share/man")))))
1102 ;; Use the big Debian patch set (the thing does not even compile out of
1104 (inputs `(("patch" ,(origin
1107 "http://ftp.de.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz")
1110 "0p93lsqx23v5fv4hpbrydmfvw1ha2rgqpn2zqbs2jhxkzhjc030p"))))))
1111 (native-inputs `(("gettext" ,gnu-gettext)))
1113 (synopsis "Tools for controlling the network subsystem in Linux")
1115 "This package includes the important tools for controlling the network
1116 subsystem of the Linux kernel. This includes arp, hostname, ifconfig,
1117 netstat, rarp and route. Additionally, this package contains utilities
1118 relating to particular network hardware types (plipconfig, slattach) and
1119 advanced aspects of IP configuration (iptunnel, ipmaddr).")
1120 (license license:gpl2+)))
1122 (define-public libcap
1129 "mirror://kernel.org/linux/libs/security/linux-privs/"
1130 "libcap2/libcap-" version ".tar.xz"))
1133 "0rbc9qbqs5bp9am9s9g83wxj5k4ixps2agy9dxr1v1fwg27mdr6f"))))
1134 (build-system gnu-build-system)
1135 (arguments '(#:phases
1136 (modify-phases %standard-phases
1138 ;; Add $libdir to the RUNPATH of executables.
1140 (substitute* "Make.Rules"
1142 (string-append "LDFLAGS := -Wl,-rpath="
1143 %output "/lib"))))))
1144 #:tests? #f ; no 'check' target
1145 #:make-flags (list "lib=lib"
1146 (string-append "prefix="
1147 (assoc-ref %outputs "out"))
1148 "RAISE_SETFCAP=no")))
1149 (native-inputs `(("perl" ,perl)))
1150 (inputs `(("attr" ,attr)))
1151 (home-page "https://sites.google.com/site/fullycapable/")
1152 (synopsis "Library for working with POSIX capabilities")
1154 "Libcap2 provides a programming interface to POSIX capabilities on
1155 Linux-based operating systems.")
1157 ;; License is BSD-3 or GPLv2, at the user's choice.
1158 (license license:gpl2)))
1160 (define-public bridge-utils
1162 (name "bridge-utils")
1166 (uri (string-append "mirror://sourceforge/bridge/bridge/"
1167 "bridge-utils-" version ".tar.gz"))
1170 "12367cwqmi0yqphi6j8rkx97q8hw52yq2fx4k0xfclkcizxybya2"))))
1171 (build-system gnu-build-system)
1173 ;; The tarball lacks all the generated files.
1174 (native-inputs `(("autoconf" ,autoconf)
1175 ("automake" ,automake)))
1177 '(#:phases (alist-cons-after
1180 ;; Fix "field ‘ip6’ has incomplete type" errors.
1181 (substitute* "libbridge/libbridge.h"
1182 (("#include <linux/if_bridge.h>")
1183 "#include <linux/in6.h>\n#include <linux/if_bridge.h>"))
1185 ;; Ensure that the entire build fails if one of the
1186 ;; sub-Makefiles fails.
1187 (substitute* "Makefile.in"
1188 (("\\$\\(MAKE\\) \\$\\(MFLAGS\\) -C \\$\\$x ;")
1189 "$(MAKE) $(MFLAGS) -C $$x || exit 1;"))
1191 (zero? (system* "autoreconf" "-vf")))
1193 #:tests? #f)) ; no 'check' target
1196 "http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge")
1197 (synopsis "Manipulate Ethernet bridges")
1199 "Utilities for Linux's Ethernet bridging facilities. A bridge is a way
1200 to connect two Ethernet segments together in a protocol independent way.
1201 Packets are forwarded based on Ethernet address, rather than IP address (like
1202 a router). Since forwarding is done at Layer 2, all protocols can go
1203 transparently through a bridge.")
1204 (license license:gpl2+)))
1206 (define-public libnl
1213 "http://www.infradead.org/~tgr/libnl/files/libnl-"
1217 "1icfrv8yihcb74as1gcgmp0wfpdq632q2zvbvqqvjms9cy87bswb"))))
1218 (build-system gnu-build-system)
1219 (native-inputs `(("flex" ,flex) ("bison" ,bison)))
1220 (home-page "http://www.infradead.org/~tgr/libnl/")
1221 (synopsis "NetLink protocol library suite")
1223 "The libnl suite is a collection of libraries providing APIs to netlink
1224 protocol based Linux kernel interfaces. Netlink is an IPC mechanism primarily
1225 between the kernel and user space processes. It was designed to be a more
1226 flexible successor to ioctl to provide mainly networking related kernel
1227 configuration and monitoring interfaces.")
1229 ;; Most files are LGPLv2.1-only, but some are GPLv2-only (like
1230 ;; 'nl-addr-add.c'), so the result is GPLv2-only.
1231 (license license:gpl2)))
1240 "mirror://kernel.org/software/network/iw/iw-"
1244 "085jyvrxzarvn5jl0fk618jjxy50nqx7ifngszc4jxk6a4ddibd6"))))
1245 (build-system gnu-build-system)
1246 (native-inputs `(("pkg-config" ,pkg-config)))
1247 (inputs `(("libnl" ,libnl)))
1249 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1251 #:phases (alist-delete 'configure %standard-phases)))
1252 (home-page "https://wireless.wiki.kernel.org/")
1253 (synopsis "Tool for configuring wireless devices")
1255 "iw is a new nl80211 based CLI configuration utility for wireless
1256 devices. It replaces @code{iwconfig}, which is deprecated.")
1257 (license license:isc)))
1259 (define-public powertop
1267 "https://01.org/sites/default/files/downloads/powertop/powertop-"
1271 "0nlwazxbnn0k6q5f5b09wdhw0f194lpzkp3l7vxansqhfczmcyx8"))))
1272 (build-system gnu-build-system)
1275 (modify-phases %standard-phases
1276 ;; TODO: Patch some hardcoded "wlan0" in calibrate/calibrate.cpp to
1277 ;; allow calibrating the network interface in GuixSD.
1278 (add-after 'unpack 'patch-absolute-file-names
1279 (lambda* (#:key inputs #:allow-other-keys)
1280 (let ((kmod (assoc-ref inputs "kmod")))
1281 (substitute* (find-files "src" "\\.cpp$")
1282 ;; Give the right 'modprobe' file name so that essential
1283 ;; modules such as msr.ko can be loaded.
1284 (("/sbin/modprobe") (string-append kmod "/bin/modprobe"))
1285 ;; These programs are only needed to calibrate, so using
1286 ;; relative file names avoids adding extra inputs. When they
1287 ;; are missing powertop gracefully handles it.
1288 (("/usr/bin/hcitool") "hcitool")
1289 (("/usr/bin/xset") "xset")
1290 (("/usr/sbin/hciconfig") "hciconfig"))
1295 ("ncurses" ,ncurses)
1296 ("pciutils" ,pciutils)
1299 `(("pkg-config" ,pkg-config)))
1300 (home-page "https://01.org/powertop/")
1301 (synopsis "Analyze power consumption on Intel-based laptops")
1303 "PowerTOP is a Linux tool to diagnose issues with power consumption and
1304 power management. In addition to being a diagnostic tool, PowerTOP also has
1305 an interactive mode where the user can experiment various power management
1306 settings for cases where the operating system has not enabled these
1308 (license license:gpl2)))
1310 (define-public aumix
1317 "http://www.jpj.net/~trevor/aumix/releases/aumix-"
1318 version ".tar.bz2"))
1321 "0a8fwyxnc5qdxff8sl2sfsbnvgh6pkij4yafiln0fxgg6bal7knj"))))
1322 (build-system gnu-build-system)
1323 (inputs `(("ncurses" ,ncurses)))
1324 (home-page "http://www.jpj.net/~trevor/aumix.html")
1325 (synopsis "Audio mixer for X and the console")
1327 "Aumix adjusts an audio mixer from X, the console, a terminal,
1328 the command line or a script.")
1329 (license license:gpl2+)))
1331 (define-public iotop
1338 (uri (string-append "http://guichaz.free.fr/iotop/files/iotop-"
1341 "1kp8mqg2pbxq4xzpianypadfxcsyfgwcaqgqia6h9fsq6zyh4z0s"))))
1342 (build-system python-build-system)
1344 ;; The setup.py script expects python-2.
1345 `(#:python ,python-2
1346 ;; There are currently no checks in the package.
1348 (native-inputs `(("python" ,python-2)))
1349 (home-page "http://guichaz.free.fr/iotop/")
1351 "Displays the IO activity of running processes")
1353 "Iotop is a Python program with a top like user interface to show the
1354 processes currently causing I/O.")
1355 (license license:gpl2+)))
1363 (uri (string-append "https://github.com/libfuse/libfuse/releases/"
1364 "download/fuse-" version
1365 "/fuse-" version ".tar.gz"))
1368 "0szi2vlsjxg03y4ji51jks34p269jqj5ify6l0ajsqq6f6y8pd0c"))))
1369 (build-system gnu-build-system)
1370 (inputs `(("util-linux" ,util-linux)))
1372 '(#:configure-flags (list (string-append "MOUNT_FUSE_PATH="
1373 (assoc-ref %outputs "out")
1375 (string-append "INIT_D_PATH="
1376 (assoc-ref %outputs "out")
1379 ;; The rule makes /dev/fuse 666.
1380 (string-append "UDEV_RULES_PATH="
1381 (assoc-ref %outputs "out")
1382 "/lib/udev/rules.d"))
1383 #:phases (alist-cons-before
1384 'build 'set-file-names
1385 (lambda* (#:key inputs #:allow-other-keys)
1386 ;; libfuse calls out to mount(8) and umount(8). Make sure
1387 ;; it refers to the right ones.
1388 (substitute* '("lib/mount_util.c" "util/mount_util.c")
1389 (("/bin/(u?)mount" _ maybe-u)
1390 (string-append (assoc-ref inputs "util-linux")
1391 "/bin/" maybe-u "mount")))
1392 (substitute* '("util/mount.fuse.c")
1396 ;; This hack leads libfuse to search for 'fusermount' in
1397 ;; $PATH, where it may find a setuid-root binary, instead of
1398 ;; trying solely $out/sbin/fusermount and failing because
1400 (substitute* "lib/Makefile"
1401 (("-DFUSERMOUNT_DIR=[[:graph:]]+")
1402 "-DFUSERMOUNT_DIR=\\\"/var/empty\\\"")))
1404 (home-page "https://github.com/libfuse/libfuse")
1405 (synopsis "Support file systems implemented in user space")
1407 "As a consequence of its monolithic design, file system code for Linux
1408 normally goes into the kernel itself---which is not only a robustness issue,
1409 but also an impediment to system extensibility. FUSE, for \"file systems in
1410 user space\", is a kernel module and user-space library that tries to address
1411 part of this problem by allowing users to run file system implementations as
1412 user-space processes.")
1413 (license (list license:lgpl2.1 ;library
1414 license:gpl2+)))) ;command-line utilities
1416 (define-public unionfs-fuse
1418 (name "unionfs-fuse")
1423 "http://podgorny.cz/unionfs-fuse/releases/unionfs-fuse-"
1427 "0qpnr4czgc62vsfnmv933w62nq3xwcbnvqch72qakfgca75rsp4d"))))
1428 (build-system cmake-build-system)
1429 (inputs `(("fuse" ,fuse)))
1430 (arguments '(#:tests? #f)) ; no tests
1431 (home-page "http://podgorny.cz/moin/UnionFsFuse")
1432 (synopsis "User-space union file system")
1434 "UnionFS-FUSE is a flexible union file system implementation in user
1435 space, using the FUSE library. Mounting a union file system allows you to
1436 \"aggregate\" the contents of several directories into a single mount point.
1437 UnionFS-FUSE additionally supports copy-on-write.")
1438 (license license:bsd-3)))
1441 (package (inherit fuse)
1442 (name "fuse-static")
1443 (source (origin (inherit (package-source fuse))
1444 (modules '((guix build utils)))
1446 ;; Normally libfuse invokes mount(8) so that /etc/mtab is
1447 ;; updated. Change calls to 'mtab_needs_update' to 0 so that
1448 ;; it doesn't do that, allowing us to remove the dependency on
1449 ;; util-linux (something that is useful in initrds.)
1450 '(substitute* '("lib/mount_util.c"
1451 "util/mount_util.c")
1452 (("mtab_needs_update[[:blank:]]*\\([a-z_]+\\)")
1457 (define-public unionfs-fuse/static
1458 (package (inherit unionfs-fuse)
1459 (synopsis "User-space union file system (statically linked)")
1460 (name (string-append (package-name unionfs-fuse) "-static"))
1461 (source (origin (inherit (package-source unionfs-fuse))
1462 (modules '((guix build utils)))
1464 ;; Add -ldl to the libraries, because libfuse.a needs that.
1465 '(substitute* "src/CMakeLists.txt"
1466 (("target_link_libraries(.*)\\)" _ libs)
1467 (string-append "target_link_libraries"
1471 #:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-static")
1472 #:phases (alist-cons-after
1473 'install 'post-install
1474 (lambda* (#:key outputs #:allow-other-keys)
1475 (let* ((out (assoc-ref outputs "out"))
1476 (exe (string-append out "/bin/unionfs")))
1477 ;; By default, 'unionfs' keeps references to
1478 ;; $glibc/share/locale and similar stuff. Remove them.
1479 (remove-store-references exe)))
1481 (inputs `(("fuse" ,fuse-static)))))
1483 (define-public sshfs-fuse
1489 (uri (string-append "https://github.com/libfuse/sshfs/releases/"
1490 "download/sshfs_" version
1491 "/sshfs-" version ".tar.gz"))
1494 "08mdd4rs7yys7hmyig6i08qlid76p17xlvrh64k7wsrfs1s92s3z"))))
1495 (build-system gnu-build-system)
1500 `(("pkg-config" ,pkg-config)))
1501 (home-page "http://fuse.sourceforge.net/sshfs.html")
1502 (synopsis "Mount remote file systems over SSH")
1504 "This is a file system client based on the SSH File Transfer Protocol.
1505 Since most SSH servers already support this protocol it is very easy to set
1506 up: on the server side there's nothing to do; on the client side mounting the
1507 file system is as easy as logging into the server with an SSH client.")
1508 (license license:gpl2+)))
1510 (define-public numactl
1517 "ftp://oss.sgi.com/www/projects/libnuma/download/numactl-"
1522 "0qbqa9gac2vlahrngi553hws2mqgqdwv2lc69a3yx4gq6l90j325"))))
1523 (build-system gnu-build-system)
1525 '(;; There's a 'test' target, but it requires NUMA support in the kernel
1526 ;; to run, which we can't assume to have.
1529 ;; NUMA is apparently not supported on armhf, see
1530 ;; http://www.spinics.net/lists/linux-numa/msg01157.html
1531 (supported-systems (delete "armhf-linux" %supported-systems))
1532 (home-page "http://oss.sgi.com/projects/libnuma/")
1533 (synopsis "Tools for non-uniform memory access (NUMA) machines")
1535 "NUMA stands for Non-Uniform Memory Access, in other words a system whose
1536 memory is not all in one place. The numactl program allows you to run your
1537 application program on specific CPU's and memory nodes. It does this by
1538 supplying a NUMA memory policy to the operating system before running your
1541 The package contains other commands, such as numademo, numastat and memhog.
1542 The numademo command provides a quick overview of NUMA performance on your
1544 (license (list license:gpl2 ;programs
1545 license:lgpl2.1)))) ;library
1553 (uri (string-append "mirror://kernel.org/linux/utils/kbd/kbd-"
1557 "0ppv953gn2zylcagr4z6zg5y2x93dxrml29plypg6xgbq3hrv2bs"))
1558 (modules '((guix build utils)))
1561 (substitute* "tests/Makefile.in"
1562 ;; The '%: %.in' rule incorrectly uses @VERSION@.
1565 (substitute* '("src/unicode_start" "src/unicode_stop")
1566 ;; Assume the Coreutils are in $PATH.
1569 (build-system gnu-build-system)
1572 (modify-phases %standard-phases
1573 (add-before 'build 'pre-build
1574 (lambda* (#:key inputs #:allow-other-keys)
1575 (let ((gzip (assoc-ref %build-inputs "gzip"))
1576 (bzip2 (assoc-ref %build-inputs "bzip2")))
1577 (substitute* "src/libkeymap/findfile.c"
1579 (string-append gzip "/bin/gzip"))
1581 (string-append bzip2 "/bin/bzip2"))))))
1582 (add-after 'install 'post-install
1583 (lambda* (#:key outputs #:allow-other-keys)
1584 ;; Make sure these programs find their comrades.
1585 (let* ((out (assoc-ref outputs "out"))
1586 (bin (string-append out "/bin")))
1587 (for-each (lambda (prog)
1588 (wrap-program (string-append bin "/" prog)
1589 `("PATH" ":" prefix (,bin))))
1590 '("unicode_start" "unicode_stop"))))))))
1591 (inputs `(("check" ,check)
1594 ("pam" ,linux-pam)))
1595 (native-inputs `(("pkg-config" ,pkg-config)))
1596 (home-page "ftp://ftp.kernel.org/pub/linux/utils/kbd/")
1597 (synopsis "Linux keyboard utilities and keyboard maps")
1599 "This package contains keytable files and keyboard utilities compatible
1600 for systems using the Linux kernel. This includes commands such as
1601 'loadkeys', 'setfont', 'kbdinfo', and 'chvt'.")
1602 (license license:gpl2+)))
1604 (define-public inotify-tools
1606 (name "inotify-tools")
1611 "mirror://sourceforge/inotify-tools/inotify-tools/"
1612 version "/inotify-tools-" version ".tar.gz"))
1615 "0icl4bx041axd5dvhg89kilfkysjj86hjakc7bk8n49cxjn4cha6"))))
1616 (build-system gnu-build-system)
1617 (home-page "http://inotify-tools.sourceforge.net/")
1618 (synopsis "Monitor file accesses")
1620 "The inotify-tools packages provides a C library and command-line tools
1621 to use Linux' inotify mechanism, which allows file accesses to be monitored.")
1622 (license license:gpl2+)))
1631 (string-append "mirror://kernel.org/linux/utils/kernel/kmod/"
1632 "kmod-" version ".tar.xz"))
1635 "10lzfkmnpq6a43a3gkx7x633njh216w0bjwz31rv8a1jlgg1sfxs"))
1636 (patches (search-patches "kmod-module-directory.patch"))))
1637 (build-system gnu-build-system)
1639 `(("pkg-config" ,pkg-config)))
1644 `(#:tests? #f ; FIXME: Investigate test failures
1645 #:configure-flags '("--with-xz" "--with-zlib")
1646 #:phases (alist-cons-after
1647 'install 'install-modprobe&co
1648 (lambda* (#:key outputs #:allow-other-keys)
1649 (let* ((out (assoc-ref outputs "out"))
1650 (bin (string-append out "/bin")))
1651 (for-each (lambda (tool)
1653 (string-append bin "/" tool)))
1654 '("insmod" "rmmod" "lsmod" "modprobe"
1655 "modinfo" "depmod"))))
1657 (home-page "https://www.kernel.org/")
1658 (synopsis "Kernel module tools")
1659 (description "Kmod is a set of tools to handle common tasks with Linux
1660 kernel modules like insert, remove, list, check properties, resolve
1661 dependencies and aliases.
1663 These tools are designed on top of libkmod, a library that is shipped with
1664 kmod. The aim is to be compatible with tools, configurations and indices
1665 from the module-init-tools project.")
1666 (license license:gpl2+))) ; library under lgpl2.1+
1668 (define-public eudev
1669 ;; The post-systemd fork, maintained by Gentoo.
1676 "http://dev.gentoo.org/~blueness/eudev/eudev-"
1680 "099w62ncq78nxpxizf910mx18hc8x4qvzw3azjd00fir89wmyjnq"))
1681 (patches (search-patches "eudev-rules-directory.patch"))))
1682 (build-system gnu-build-system)
1684 `(("pkg-config" ,pkg-config)
1688 ;; When linked against libblkid, eudev can populate /dev/disk/by-label
1689 ;; and similar; it also installs the '60-persistent-storage.rules' file,
1690 ;; which contains the rules to do that.
1691 `(("util-linux" ,util-linux) ;for blkid
1693 (home-page "https://wiki.gentoo.org/wiki/Project:Eudev")
1694 (synopsis "Userspace device management")
1695 (description "Udev is a daemon which dynamically creates and removes
1696 device nodes from /dev/, handles hotplug events and loads drivers at boot
1698 (license license:gpl2+)))
1703 (version "2.02.109")
1706 (uri (string-append "ftp://sources.redhat.com/pub/lvm2/releases/LVM2."
1710 "1rv5ivg0l1w3nwzwdkqixm96h5bzg7ib4rr196ysb2lw42jmpjbv"))
1711 (modules '((guix build utils)))
1714 (use-modules (guix build utils))
1716 ;; Honor sysconfdir.
1717 (substitute* "make.tmpl.in"
1719 "confdir = @sysconfdir@\n")
1720 (("DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@")
1721 "DEFAULT_SYS_DIR = @sysconfdir@"))))))
1722 (build-system gnu-build-system)
1724 `(("pkg-config" ,pkg-config)
1725 ("procps" ,procps))) ;tests use 'pgrep'
1729 '(#:phases (alist-cons-after
1730 'configure 'set-makefile-shell
1732 ;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as
1734 (setenv "SHELL" (which "sh"))
1736 ;; Replace /bin/sh with the right file name.
1737 (patch-makefile-SHELL "make.tmpl"))
1740 #:configure-flags (list (string-append "--sysconfdir="
1741 (assoc-ref %outputs "out")
1743 "--enable-udev_sync"
1744 "--enable-udev_rules"
1746 ;; Make sure programs such as 'dmsetup' can
1747 ;; find libdevmapper.so.
1748 (string-append "LDFLAGS=-Wl,-rpath="
1749 (assoc-ref %outputs "out")
1752 ;; The tests use 'mknod', which requires root access.
1754 (home-page "http://sourceware.org/lvm2/")
1755 (synopsis "Logical volume management for Linux")
1757 "LVM2 is the logical volume management tool set for Linux-based systems.
1758 This package includes the user-space libraries and tools, including the device
1759 mapper. Kernel components are part of Linux-libre.")
1761 ;; Libraries (liblvm2, libdevmapper) are LGPLv2.1.
1762 ;; Command-line tools are GPLv2.
1763 (license (list license:gpl2 license:lgpl2.1))))
1765 (define-public wireless-tools
1767 (name "wireless-tools")
1771 (uri (string-append "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools."
1775 "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb"))
1778 ;; Remove the older header files that are not free software.
1779 (for-each (lambda (n)
1780 (delete-file (format #f "wireless.~a.h" n)))
1781 '(10 11 12 13 14 15 16 17 18 19 20))
1783 (build-system gnu-build-system)
1786 (list (string-append "PREFIX=" %output)
1787 (string-append "INSTALL_MAN=" %output "/share/man")
1788 (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
1790 #:phases (modify-phases %standard-phases
1791 (delete 'configure))
1793 (synopsis "Tools for manipulating Linux Wireless Extensions")
1794 (description "Wireless Tools are used to manipulate the now-deprecated
1795 Linux Wireless Extensions; consider using 'iw' instead. The Wireless
1796 Extension was an interface allowing you to set Wireless LAN specific
1797 parameters and get the specific stats. It is deprecated in favor the nl80211
1799 (home-page "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html")
1800 ;; wireless.21.h and wireless.22.h are distributed under lgpl2.1+, the
1801 ;; other files are distributed under gpl2.
1802 (license (list license:gpl2 license:lgpl2.1+))))
1810 (uri (string-append "mirror://kernel.org/software/network/crda/"
1811 "crda-" version ".tar.xz"))
1814 "1gydiqgb08d9gbx4l6gv98zg3pljc984m50hmn3ysxcbkxkvkz23"))
1815 (patches (search-patches "crda-optional-gcrypt.patch"))))
1816 (build-system gnu-build-system)
1818 '(#:phases (modify-phases %standard-phases
1821 'build 'no-werror-no-ldconfig
1823 (substitute* "Makefile"
1825 (("ldconfig") "true"))
1828 'build 'set-regulator-db-file-name
1829 (lambda* (#:key inputs #:allow-other-keys)
1830 ;; Tell CRDA where to find our database.
1831 (let ((regdb (assoc-ref inputs "wireless-regdb")))
1832 (substitute* "crda.c"
1833 (("\"/lib/crda/regulatory.bin\"")
1834 (string-append "\"" regdb
1835 "/lib/crda/regulatory.bin\"")))
1837 #:test-target "verify"
1838 #:make-flags (let ((out (assoc-ref %outputs "out"))
1839 (regdb (assoc-ref %build-inputs "wireless-regdb")))
1840 (list "CC=gcc" "V=1"
1842 ;; Disable signature-checking on 'regulatory.bin'.
1843 ;; The reason is that this simplifies maintenance
1844 ;; on our side (no need to manage a distro key
1845 ;; pair), and we can guarantee integrity of
1846 ;; 'regulatory.bin' by other means anyway, such as
1847 ;; 'guix gc --verify'. See
1848 ;; <https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb>
1852 (string-append "PREFIX=" out)
1853 (string-append "SBINDIR=" out "/sbin/")
1854 (string-append "UDEV_RULE_DIR="
1855 out "/lib/udev/rules.d")
1856 (string-append "LDFLAGS=-Wl,-rpath="
1858 (string-append "REG_BIN=" regdb
1859 "/lib/crda/regulatory.bin")))))
1860 (native-inputs `(("pkg-config" ,pkg-config)
1861 ("python" ,python-2)
1862 ("wireless-regdb" ,wireless-regdb)))
1863 (inputs `(("libnl" ,libnl)))
1865 "https://wireless.wiki.kernel.org/en/developers/Regulatory/CRDA")
1866 (synopsis "Central regulatory domain agent (CRDA) for WiFi")
1868 "The Central Regulatory Domain Agent (CRDA) acts as the udev helper for
1869 communication between the kernel Linux and user space for regulatory
1871 (license license:copyleft-next)))
1873 (define-public wireless-regdb
1875 (name "wireless-regdb")
1876 (version "2016.05.02")
1880 "mirror://kernel.org/software/network/wireless-regdb/"
1881 "wireless-regdb-" version ".tar.xz"))
1884 "07n6gcwfbddz3awbdflv3dhxjszsqq2lrdwih0a0ahcliac4qry9"))
1886 ;; We're building 'regulatory.bin' by ourselves.
1887 (snippet '(delete-file "regulatory.bin"))))
1888 (build-system gnu-build-system)
1890 '(#:phases (modify-phases %standard-phases
1891 (delete 'configure))
1893 ;; The 'all' target of the makefile depends on $(REGDB_CHANGED), which
1894 ;; is computed and can be equal to 'maintainer-clean'; when that
1895 ;; happens, we can end up deleting the 'regulatory.bin' file that we
1896 ;; just built. Thus, build things sequentially.
1897 #:parallel-build? #f
1899 #:tests? #f ;no tests
1900 #:make-flags (let ((out (assoc-ref %outputs "out")))
1901 (list (string-append "PREFIX=" out)
1902 (string-append "LSB_ID=GuixSD")
1903 (string-append "DISTRO_PUBKEY=/dev/null")
1904 (string-append "DISTRO_PRIVKEY=/dev/null")
1905 (string-append "REGDB_PUBKEY=/dev/null")
1907 ;; Leave that empty so that db2bin.py doesn't try
1908 ;; to sign 'regulatory.bin'. This allows us to
1909 ;; avoid managing a key pair for the whole distro.
1910 (string-append "REGDB_PRIVKEY=")))))
1911 (native-inputs `(("python" ,python-2)))
1913 "https://wireless.wiki.kernel.org/en/developers/regulatory/wireless-regdb")
1914 (synopsis "Wireless regulatory database")
1916 "This package contains the wireless regulatory database Central
1917 Regulatory Database Agent (CRDA) daemon. The database contains information on
1918 country-specific regulations for the wireless spectrum.")
1919 (license license:isc)))
1921 (define-public lm-sensors
1927 (uri (list (string-append
1928 "ftp://ftp.netroedge.com/pub/lm-sensors/"
1929 "lm_sensors-" version ".tar.bz2")
1931 "http://pkgs.fedoraproject.org/repo/pkgs/"
1932 "lm_sensors/lm_sensors-3.3.5.tar.bz2/"
1933 "da506dedceb41822e64865f6ba34828a/"
1934 "lm_sensors-3.3.5.tar.bz2")))
1937 "1ksgrynxgrq590nb2fwxrl1gwzisjkqlyg3ljfd1al0ibrk6mbjx"))
1938 (patches (search-patches "lm-sensors-hwmon-attrs.patch"))))
1939 (build-system gnu-build-system)
1940 (inputs `(("rrdtool" ,rrdtool)
1943 ("gnuplot" ,gnuplot)))
1944 (native-inputs `(("pkg-config" ,pkg-config)
1949 `(#:tests? #f ; no 'check' target
1950 #:make-flags (list (string-append "PREFIX=" %output)
1951 (string-append "ETCDIR=" %output "/etc")
1952 (string-append "MANDIR=" %output "/share/man"))
1957 'build 'patch-exec-paths
1958 (lambda* (#:key inputs outputs #:allow-other-keys)
1959 (substitute* "prog/detect/sensors-detect"
1961 (string-append "`" (assoc-ref inputs "coreutils")
1963 (("(`|\")modprobe" all open-quote)
1964 (string-append open-quote
1965 (assoc-ref inputs "kmod")
1967 (substitute* '("prog/pwm/pwmconfig"
1968 "prog/pwm/fancontrol")
1970 (string-append (assoc-ref inputs "gnuplot")
1973 (string-append (assoc-ref inputs "coreutils")
1976 (string-append (assoc-ref inputs "grep")
1979 (string-append (assoc-ref inputs "sed")
1982 (string-append (assoc-ref inputs "coreutils")
1985 (string-append (assoc-ref inputs "coreutils")
1988 (string-append (assoc-ref inputs "coreutils")
1989 "/bin/readlink -f"))))
1990 %standard-phases))))
1991 (home-page "http://jdelvare.nerim.net/devel.html#lmsensors")
1992 (synopsis "Utilities to read temperature/voltage/fan sensors")
1994 "Lm-sensors is a hardware health monitoring package for Linux. It allows
1995 you to access information from temperature, voltage, and fan speed sensors.
1996 It works with most newer systems.")
1997 (license license:gpl2+)))
1999 (define-public i2c-tools
2006 "http://jdelvare.nerim.net/mirror/i2c-tools/i2c-tools-"
2007 version ".tar.bz2"))
2010 "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
2011 (build-system gnu-build-system)
2013 `(#:tests? #f ; no 'check' target
2014 #:make-flags (list (string-append "prefix=" %output)
2016 ;; no configure script
2017 #:phases (alist-delete 'configure %standard-phases)))
2020 (home-page "http://jdelvare.nerim.net/devel.html#i2ctools")
2021 (synopsis "I2C tools for Linux")
2023 "The i2c-tools package contains a heterogeneous set of I2C tools for
2024 Linux: a bus probing tool, a chip dumper, register-level SMBus access helpers,
2025 EEPROM decoding scripts, EEPROM programming tools, and a python module for
2027 (license license:gpl2+)))
2029 (define-public xsensors
2036 "http://www.linuxhardware.org/xsensors/xsensors-"
2040 "1siplsfgvcxamyqf44h71jx6jdfmvhfm7mh0y1q8ps4zs6pj2zwh"))))
2041 (build-system gnu-build-system)
2042 (inputs `(("lm-sensors" ,lm-sensors)
2044 (native-inputs `(("pkg-config" ,pkg-config)))
2046 `(#:phases (alist-cons-before
2047 'configure 'enable-deprecated
2049 (substitute* "src/Makefile.in"
2050 (("-DGDK_DISABLE_DEPRECATED") "")
2051 (("-DGTK_DISABLE_DEPRECATED") "")))
2053 'configure 'remove-Werror
2055 (substitute* '("configure" "src/Makefile.in")
2057 %standard-phases))))
2058 (home-page "http://www.linuxhardware.org/xsensors/")
2059 (synopsis "Hardware health information viewer")
2061 "Xsensors reads data from the libsensors library regarding hardware
2062 health such as temperature, voltage and fan speed and displays the information
2063 in a digital read-out.")
2064 (license license:gpl2+)))
2069 (version (package-version linux-libre))
2070 (source (package-source linux-libre))
2071 (build-system gnu-build-system)
2073 '(#:phases (alist-replace
2075 (lambda* (#:key inputs #:allow-other-keys)
2076 (setenv "SHELL_PATH" (which "bash"))
2077 (chdir "tools/perf"))
2079 #:make-flags (list (string-append "DESTDIR="
2080 (assoc-ref %outputs "out"))
2083 ;; By default, 'config/Makefile' uses lib64 on
2084 ;; x86_64. Work around that.
2086 #:tests? #f)) ;no tests
2088 `(("pkg-config" ,pkg-config)
2092 ;; There are build scripts written in these languages.
2094 ("python" ,python-2)))
2096 `(("slang" ,slang) ;for the interactive TUI
2098 ("python" ,python-2) ;'perf' links against libpython
2099 ("elfutils" ,elfutils)
2102 ("libxml2" ,libxml2) ;for $XML_CATALOG_FILES
2103 ("libxslt" ,libxslt)
2104 ("docbook-xml" ,docbook-xml)
2105 ("docbook-xsl" ,docbook-xsl)
2107 ("asciidoc" ,asciidoc)))
2108 (home-page "https://perf.wiki.kernel.org/")
2109 (synopsis "Linux profiling with performance counters")
2111 "perf is a tool suite for profiling using hardware performance counters,
2112 with support in the Linux kernel. perf can instrument CPU performance
2113 counters, tracepoints, kprobes, and uprobes (dynamic tracing). It is capable
2114 of lightweight profiling. This package contains the user-land tools and in
2115 particular the 'perf' command.")
2116 (license (package-license linux-libre))))
2118 (define-public pflask
2124 (uri (string-append "https://github.com/ghedo/pflask/archive/v"
2126 (file-name (string-append name "-" version ".tar.gz"))
2129 "1g8fjj67dfkc2s0852l9vqi1pm61gp4rxbpzbzg780f5s5hd1fys"))))
2130 (build-system cmake-build-system)
2132 '(#:tests? #f)) ; no tests
2133 (home-page "http://ghedo.github.io/pflask/")
2134 (synopsis "Simple tool for creating Linux namespace containers")
2135 (description "pflask is a simple tool for creating Linux namespace
2136 containers. It can be used for running a command or even booting an OS inside
2137 an isolated container, created with the help of Linux namespaces. It is
2138 similar in functionality to chroot, although pflask provides better isolation
2139 thanks to the use of namespaces.")
2140 (license license:bsd-2)))
2142 (define-public hdparm
2148 (uri (string-append "mirror://sourceforge/" name "/" name "/"
2149 name "-" version ".tar.gz"))
2152 "0sc6yf3k6sd7n6a2ig2my9fjlqpak3znlyw7jw4cz5d9asm1rc13"))))
2153 (build-system gnu-build-system)
2155 `(#:make-flags (let ((out (assoc-ref %outputs "out")))
2156 (list (string-append "binprefix=" out)
2157 (string-append "manprefix=" out)
2159 #:phases (alist-delete 'configure %standard-phases)
2160 #:tests? #f)) ; no test suite
2161 (home-page "http://sourceforge.net/projects/hdparm/")
2162 (synopsis "Tune hard disk parameters for high performance")
2164 "Get/set device parameters for Linux SATA/IDE drives. It's primary use
2165 is for enabling irq-unmasking and IDE multiple-mode.")
2166 (license (license:non-copyleft "file://LICENSE.TXT"))))
2168 (define-public rfkill
2174 (uri (string-append "mirror://kernel.org/software/network/"
2175 name "/" name "-" version ".tar.xz"))
2178 "0snqj5h0y991lszbigbyyqb8swj0hxajc1vfqg2scfay44231bp0"))))
2179 (build-system gnu-build-system)
2181 `(#:make-flags (list "CC=gcc"
2182 (string-append "PREFIX=" %output))
2183 #:phases (modify-phases %standard-phases
2184 (delete 'configure))
2186 (home-page "https://wireless.wiki.kernel.org/en/users/Documentation/rfkill")
2187 (synopsis "Tool for enabling and disabling wireless devices")
2189 "rfkill is a simple tool for accessing the rfkill device interface,
2190 which is used to enable and disable wireless networking devices, typically
2191 WLAN, Bluetooth and mobile broadband.")
2192 (license (license:non-copyleft "file://COPYING"
2193 "See COPYING in the distribution."))))
2201 (uri (string-append "mirror://sourceforge/acpiclient/acpiclient/"
2202 version "/" name "-" version ".tar.gz"))
2205 "01ahldvf0gc29dmbd5zi4rrnrw2i1ajnf30sx2vyaski3jv099fp"))))
2206 (build-system gnu-build-system)
2207 (home-page "http://acpiclient.sourceforge.net")
2208 (synopsis "Display information on ACPI devices")
2209 (description "@code{acpi} attempts to replicate the functionality of the
2210 \"old\" @code{apm} command on ACPI systems, including battery and thermal
2211 information. It does not support ACPI suspending, only displays information
2212 about ACPI devices.")
2213 (license license:gpl2+)))
2215 (define-public acpid
2221 (uri (string-append "mirror://sourceforge/acpid2/acpid-"
2225 "1vl7c6vc724v4jwki17czgj6lnrknnj1a6llm8gkl32i2gnam5j3"))))
2226 (build-system gnu-build-system)
2227 (home-page "http://sourceforge.net/projects/acpid2/")
2228 (synopsis "Daemon for delivering ACPI events to user-space programs")
2230 "acpid is designed to notify user-space programs of Advanced
2231 Configuration and Power Interface (ACPI) events. acpid should be started
2232 during the system boot, and will run as a background process. When an ACPI
2233 event is received from the kernel, acpid will examine the list of rules
2234 specified in /etc/acpi/events and execute the rules that match the event.")
2235 (license license:gpl2+)))
2237 (define-public sysfsutils
2246 "mirror://sourceforge/linux-diag/sysfsutils/" version "/sysfsutils-"
2249 (base32 "12i0ip11xbfcjzxz4r10cvz7mbzgq1hfcdn97w6zz7sm3wndwrg8"))))
2250 (build-system gnu-build-system)
2251 (home-page "http://linux-diag.sourceforge.net/Sysfsutils.html")
2252 (synopsis "System utilities based on Linux sysfs")
2254 "These are a set of utilities built upon sysfs, a virtual filesystem in
2255 Linux kernel versions 2.5+ that exposes a system's device tree. The package
2256 also contains the libsysfs library.")
2257 ;; The library is under lgpl2.1+ (all files say "or any later version").
2258 ;; The rest is mostly gpl2, with a few files indicating gpl2+.
2259 (license (list license:gpl2 license:gpl2+ license:lgpl2.1+))))
2261 (define-public sysfsutils-1
2263 (inherit sysfsutils)
2270 "mirror://sourceforge/linux-diag/sysfsutils/sysfsutils-" version
2271 "/sysfsutils-" version ".tar.gz"))
2273 (base32 "0kdhs07fm8263pxwd5blwn2x211cg4fk63fyf9ijcdkvzmwxrqq3"))
2274 (modules '((guix build utils)))
2277 (substitute* "Makefile.in"
2278 (("includedir = /usr/include/sysfs")
2279 "includedir = @includedir@"))
2280 (substitute* "configure"
2281 (("includedir='(\\$\\{prefix\\}/include)'" all orig)
2282 (string-append "includedir='" orig "/sysfs'")))))))
2283 (synopsis "System utilities based on Linux sysfs (version 1.x)")))
2285 (define-public cpufrequtils
2287 (name "cpufrequtils")
2294 "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-"
2297 (base32 "0qfqv7nqmjfr3p0bwrdlxkiqwqr7vmx053cadaa548ybqbghxmvm"))
2298 (patches (search-patches "cpufrequtils-fix-aclocal.patch"))))
2299 (build-system gnu-build-system)
2301 `(("sysfsutils" ,sysfsutils-1)))
2303 '(#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2304 (assoc-ref %outputs "out") "/lib"))))
2305 (home-page "https://www.kernel.org/pub/linux/utils/kernel/cpufreq/")
2306 (synopsis "Utilities to get and set CPU frequency on Linux")
2308 "The cpufrequtils suite contains utilities to retrieve CPU frequency
2309 information, and set the CPU frequency if supported, using the cpufreq
2310 capabilities of the Linux kernel.")
2311 (license license:gpl2)))
2313 (define-public libraw1394
2320 "mirror://kernel.org/linux/libs/ieee1394/"
2321 name "-" version ".tar.xz"))
2324 "0kwnf4ha45c04mhc4yla672aqmvqqihxix1gvblns5cd2pc2cc8b"))))
2325 (build-system gnu-build-system)
2326 (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page")
2327 (synopsis "Interface library for the Linux IEEE1394 drivers")
2329 "Libraw1394 is the only supported interface to the kernel side raw1394 of
2330 the Linux IEEE-1394 subsystem, which provides direct access to the connected
2331 1394 buses to user space. Through libraw1394/raw1394, applications can directly
2332 send to and receive from other nodes without requiring a kernel driver for the
2333 protocol in question.")
2334 (license license:lgpl2.1+)))
2336 (define-public libavc1394
2342 (uri (string-append "mirror://sourceforge/libavc1394/libavc1394/"
2343 name "-" version ".tar.gz"))
2346 "0lsv46jdqvdx5hx92v0z2cz3yh6212pz9gk0k3513sbaa04zzcbw"))))
2347 (build-system gnu-build-system)
2349 `(("pkg-config" ,pkg-config)))
2351 `(("libraw1394" ,libraw1394))) ; required by libavc1394.pc
2352 (home-page "http://sourceforge.net/projects/libavc1394/")
2353 (synopsis "AV/C protocol library for IEEE 1394")
2355 "Libavc1394 is a programming interface to the AV/C specification from
2356 the 1394 Trade Association. AV/C stands for Audio/Video Control.")
2357 (license license:lgpl2.1+)))
2359 (define-public libiec61883
2361 (name "libiec61883")
2366 "mirror://kernel.org/linux/libs/ieee1394/"
2367 name "-" version ".tar.xz"))
2370 "17ph458zya2l8dr2xwqnzy195qd9swrir31g78qkgb3g4xz2rq6i"))))
2371 (build-system gnu-build-system)
2373 `(("pkg-config" ,pkg-config)))
2375 `(("libraw1394" ,libraw1394))) ; required by libiec61883.pc
2376 (home-page "https://ieee1394.wiki.kernel.org/index.php/Main_Page")
2377 (synopsis "Isochronous streaming media library for IEEE 1394")
2379 "The libiec61883 library provides a higher level API for streaming DV,
2380 MPEG-2 and audio over Linux IEEE 1394.")
2381 (license license:lgpl2.1+)))
2383 (define-public mdadm
2390 "mirror://kernel.org/linux/utils/raid/mdadm/mdadm-"
2394 "0248v9f28mrbwabl94ck22gfim29sqhkf70wrpfi52nk4x3bxl17"))))
2395 (build-system gnu-build-system)
2399 `(#:make-flags (let ((out (assoc-ref %outputs "out")))
2400 (list "INSTALL=install"
2402 ;; TODO: tell it where to find 'sendmail'
2403 ;; (string-append "MAILCMD=" <???> "/sbin/sendmail")
2404 (string-append "BINDIR=" out "/sbin")
2405 (string-append "MANDIR=" out "/share/man")
2406 (string-append "UDEVDIR=" out "/lib/udev")))
2407 #:phases (alist-cons-before
2408 'build 'patch-program-paths
2409 (lambda* (#:key inputs #:allow-other-keys)
2410 (let ((coreutils (assoc-ref inputs "coreutils")))
2411 (substitute* "udev-md-raid-arrays.rules"
2412 (("/usr/bin/(readlink|basename)" all program)
2413 (string-append coreutils "/bin/" program)))))
2415 'build 'remove-W-error
2417 ;; We cannot build with -Werror on i686 due to a
2418 ;; 'sign-compare' warning in util.c.
2419 (substitute* "Makefile"
2422 (alist-delete 'configure %standard-phases)))
2423 ;;tests must be done as root
2425 (home-page "http://neil.brown.name/blog/mdadm")
2426 (synopsis "Tool for managing Linux Software RAID arrays")
2428 "mdadm is a tool for managing Linux Software RAID arrays. It can create,
2429 assemble, report on, and monitor arrays. It can also move spares between raid
2430 arrays when needed.")
2431 (license license:gpl2+)))
2433 (define-public libaio
2440 (string-append "mirror://debian/pool/main/liba/libaio/"
2441 name "_" version ".orig.tar.gz")
2442 (string-append "https://fedorahosted.org/releases/l/i/libaio/"
2443 name "-" version ".tar.gz")))
2446 "0zjzfkwd1kdvq6zpawhzisv7qbq1ffs343i5fs9p498pcf7046g0"))))
2447 (build-system gnu-build-system)
2450 (list "CC=gcc" (string-append "prefix=" %output))
2451 #:test-target "partcheck" ; need root for a full 'check'
2453 (alist-delete 'configure %standard-phases))) ; no configure script
2454 (home-page "http://lse.sourceforge.net/io/aio.html")
2455 (synopsis "Linux-native asynchronous I/O access library")
2457 "This library enables userspace to use Linux kernel asynchronous I/O
2458 system calls, important for the performance of databases and other advanced
2460 (license license:lgpl2.1+)))
2468 (uri (string-append "https://www.kernel.org/pub/linux/bluetooth/"
2469 name "-" version ".tar.xz"))
2472 "02ckd2z51z0h85qgv7x8vv8ybp5czm9if1z78411j53gaz7j4476"))))
2473 (build-system gnu-build-system)
2475 `(("libsndfile" ,libsndfile)))
2477 `(("pkg-config" ,pkg-config)))
2478 (home-page "https://www.kernel.org/pub/linux/bluetooth/")
2479 (synopsis "Bluetooth subband audio codec")
2481 "The SBC is a digital audio encoder and decoder used to transfer data to
2482 Bluetooth audio output devices like headphones or loudspeakers.")
2483 (license license:gpl2+)))
2485 (define-public bluez
2492 "mirror://kernel.org/linux/bluetooth/bluez-"
2496 "09ywk3lvgis0nbi0d5z8d4qp5r33lzwnd6bdakacmbsm420qpnns"))))
2497 (build-system gnu-build-system)
2500 (let ((out (assoc-ref %outputs "out")))
2501 (list "--sysconfdir=/etc"
2502 "--localstatedir=/var"
2505 ;; Install dbus/udev files to the correct location.
2506 (string-append "--with-dbusconfdir=" out "/etc")
2507 (string-append "--with-udevdir=" out "/lib/udev")))
2509 (modify-phases %standard-phases
2510 (add-after 'install 'post-install
2511 (lambda* (#:key inputs outputs #:allow-other-keys)
2512 (let* ((out (assoc-ref outputs "out"))
2513 (servicedir (string-append out "/share/dbus-1/services"))
2514 (service "obexd/src/org.bluez.obex.service")
2515 (rule (string-append
2516 out "/lib/udev/rules.d/97-hid2hci.rules")))
2517 ;; Install the obex dbus service file.
2518 (substitute* service
2520 (string-append out "/libexec/bluetooth/obexd")))
2521 (install-file service servicedir)
2522 ;; Fix paths in the udev rule.
2524 (("hid2hci --method")
2525 (string-append out "/lib/udev/hid2hci --method"))
2527 (string-append (assoc-ref inputs "eudev") "/bin/udevadm")))
2530 `(("pkg-config" ,pkg-config)
2531 ("gettext" ,gnu-gettext)))
2536 ("libical" ,libical)
2537 ("readline" ,readline)))
2538 (home-page "http://www.bluez.org/")
2539 (synopsis "Linux Bluetooth protocol stack")
2541 "BlueZ provides support for the core Bluetooth layers and protocols. It
2542 is flexible, efficient and uses a modular implementation.")
2543 (license license:gpl2+)))
2545 (define-public fuse-exfat
2551 (uri "https://docs.google.com/uc?export=download&\
2552 id=0B7CLI-REKbE3VTdaa0EzTkhYdU0")
2555 "0glmgwrf0nv09am54i6s35ksbvrywrwc51w6q32mv5by8475530r"))
2556 (file-name (string-append name "-" version ".tar.gz"))))
2557 (build-system gnu-build-system)
2560 ("pkg-config" ,pkg-config)))
2564 '(#:tests? #f ;no test suite
2566 ;; XXX: Factorize with 'exfat-utils'.
2567 #:phases (modify-phases %standard-phases
2569 (add-after 'unpack 'scons-propagate-environment
2571 ;; Modify the SConstruct file to arrange for
2572 ;; environment variables to be propagated.
2573 (substitute* "SConstruct"
2574 (("^env = Environment\\(")
2575 "env = Environment(ENV=os.environ, "))))
2578 (zero? (system* "scons"))))
2580 (lambda* (#:key outputs #:allow-other-keys)
2581 (let* ((out (assoc-ref outputs "out"))
2582 (bin (string-append out "/bin"))
2583 (man8 (string-append out
2584 "/share/man/man8")))
2587 (for-each (lambda (file)
2590 (string-append man8 "/"
2592 (find-files "." "\\.8$"))
2593 (zero? (system* "scons" "install"
2594 (string-append "DESTDIR="
2596 (home-page "http://code.google.com/p/exfat/")
2597 (synopsis "Mount exFAT file systems")
2599 "This package provides a FUSE-based file system that provides read and
2600 write access to exFAT devices.")
2601 (license license:gpl2+)))
2610 "http://www.nico.schottelius.org/software/gpm/archives/gpm-"
2611 version ".tar.bz2"))
2614 "13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh"))))
2615 (build-system gnu-build-system)
2617 '(#:phases (modify-phases %standard-phases
2618 (add-before 'configure 'bootstrap
2620 ;; The tarball was not generated with 'make dist' so we
2621 ;; need to bootstrap things ourselves.
2622 (and (zero? (system* "./autogen.sh"))
2624 (patch-makefile-SHELL "Makefile.include.in")
2627 ;; Make sure programs find libgpm.so.
2628 #:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
2629 (assoc-ref %outputs "out")
2632 `(("texinfo" ,texinfo)
2635 ("autoconf" ,autoconf)
2636 ("automake" ,automake)
2637 ("libtool" ,libtool)))
2638 (home-page "http://www.nico.schottelius.org/software/gpm/")
2639 (synopsis "Mouse support for the Linux console")
2641 "The GPM (general-purpose mouse) daemon is a mouse server for
2642 applications running on the Linux console. It allows users to select items
2643 and copy/paste text in the console and in xterm.")
2644 (license license:gpl2+)))
2646 (define-public btrfs-progs
2648 (name "btrfs-progs")
2652 (uri (string-append "mirror://kernel.org/linux/kernel/"
2653 "people/kdave/btrfs-progs/"
2654 "btrfs-progs-v" version ".tar.xz"))
2657 "15jsa12ijc6z49v1csc62x9zidrgcf307lwy1rbffdwk3gsrczww"))))
2658 (build-system gnu-build-system)
2660 "static")) ; static versions of binaries in "out" (~16MiB!)
2662 '(#:phases (modify-phases %standard-phases
2663 (add-after 'build 'build-static
2664 (lambda _ (zero? (system* "make" "static"))))
2665 (add-after 'install 'install-static
2666 (let ((staticbin (string-append (assoc-ref %outputs "static")
2669 (zero? (system* "make"
2670 (string-append "bindir=" staticbin)
2671 "install-static"))))))
2672 #:test-target "test"
2673 #:parallel-tests? #f)) ; tests fail when run in parallel
2674 (inputs `(("e2fsprogs" ,e2fsprogs)
2675 ("libblkid" ,util-linux)
2676 ("libblkid:static" ,util-linux "static")
2677 ("libuuid" ,util-linux)
2678 ("libuuid:static" ,util-linux "static")
2681 (native-inputs `(("pkg-config" ,pkg-config)
2682 ("asciidoc" ,asciidoc)
2684 ;; For building documentation
2685 ("libxml2" ,libxml2)
2686 ("docbook-xml" ,docbook-xml)
2687 ("docbook-xsl" ,docbook-xsl)
2690 (home-page "https://btrfs.wiki.kernel.org/")
2691 (synopsis "Create and manage btrfs copy-on-write file systems")
2692 (description "Btrfs is a copy-on-write (CoW) filesystem for Linux aimed at
2693 implementing advanced features while focusing on fault tolerance, repair and
2694 easy administration.")
2695 ;; GPL2+: crc32.c, radix-tree.c, raid6.c, rbtree.c.
2696 ;; GPL2: Everything else.
2697 (license (list license:gpl2 license:gpl2+))))
2699 (define-public freefall
2702 (version (package-version linux-libre))
2703 (source (package-source linux-libre))
2704 (build-system gnu-build-system)
2706 '(#:phases (modify-phases %standard-phases
2707 (add-after 'unpack 'enter-subdirectory
2709 (chdir "tools/laptop/freefall")))
2711 (add-before 'build 'increase-timeout
2713 ;; The default of 2 seconds is too low: it assumes an
2714 ;; open lid and AC power without actually checking.
2715 (substitute* "freefall.c"
2716 (("alarm\\(2\\)") "alarm(5)")))))
2717 #:make-flags (list (string-append "PREFIX="
2718 (assoc-ref %outputs "out")))
2719 #:tests? #f)) ;no tests
2720 (home-page (package-home-page linux-libre))
2721 (synopsis "Free-fall protection for spinning laptop hard drives")
2723 "Prevents shock damage to the internal spinning hard drive(s) of some
2724 HP and Dell laptops. When sudden movement is detected, all input/output
2725 operations on the drive are suspended and its heads are parked on the ramp,
2726 where they are less likely to cause damage to the spinning disc. Requires a
2727 drive that supports the ATA/ATAPI-7 IDLE IMMEDIATE command with unload
2728 feature, and a laptop with an accelerometer. It has no effect on SSDs.")
2729 (license license:gpl2)))
2731 (define-public thinkfan
2737 (uri (string-append "mirror://sourceforge/thinkfan/"
2738 "/thinkfan-" version ".tar.gz"))
2741 "0nz4c48f0i0dljpk5y33c188dnnwg8gz82s4grfl8l64jr4n675n"))
2742 (modules '((guix build utils)))
2743 ;; Fix erroneous man page location in Makefile leading to
2744 ;; a compilation failure.
2746 '(substitute* "CMakeLists.txt"
2747 (("thinkfan\\.1") "src/thinkfan.1")))))
2748 (build-system cmake-build-system)
2750 `(#:modules ((guix build cmake-build-system)
2753 #:tests? #f ;no test target
2755 ;; Enable reading temperatures from hard disks via S.M.A.R.T.
2756 `("-DUSE_ATASMART:BOOL=ON")
2758 (modify-phases %standard-phases
2759 ;; Install scripts for various foreign init systems. Also fix
2760 ;; hard-coded path for daemon.
2761 (add-after 'install 'install-rc-scripts
2762 (lambda* (#:key outputs #:allow-other-keys)
2763 (let ((out (assoc-ref outputs "out"))
2765 (string-append "../thinkfan-" ,version "/rcscripts")
2768 (("/usr/sbin/(\\$NAME|thinkfan)" _ name)
2769 (string-append out "/sbin/" name)))
2770 (for-each (cute install-file <>
2771 (string-append out "/share/thinkfan"))
2775 `(("libatasmart" ,libatasmart)))
2776 (home-page "http://thinkfan.sourceforge.net/")
2777 (synopsis "Simple fan control program")
2779 "Thinkfan is a simple fan control program. It reads temperatures,
2780 checks them against configured limits and switches to appropriate (also
2781 pre-configured) fan level. It requires a working @code{thinkpad_acpi} or any
2782 other @code{hwmon} driver that enables temperature reading and fan control
2784 (license license:gpl3+)))
2786 (define-public ntfs-3g
2789 (version "2016.2.22")
2792 (uri (string-append "https://tuxera.com/opensource/"
2793 "ntfs-3g_ntfsprogs-" version ".tgz"))
2796 "180y5y09h30ryf2vim8j30a2npwz1iv9ly5yjmh3wjdkwh2jrdyp"))
2797 (modules '((guix build utils)))
2799 ;; Install under $prefix.
2800 '(substitute* '("src/Makefile.in" "ntfsprogs/Makefile.in")
2803 (build-system gnu-build-system)
2804 (inputs `(("util-linux" ,util-linux)
2805 ("fuse" ,fuse))) ;libuuid
2806 (native-inputs `(("pkg-config" ,pkg-config)))
2808 '(#:configure-flags (list "--exec-prefix=${prefix}"
2809 "--with-fuse=external" ;use our own FUSE
2810 "--enable-mount-helper"
2811 "--enable-posix-acls"
2812 "--enable-xattr-mappings")))
2813 (home-page "http://www.tuxera.com/community/open-source-ntfs-3g/")
2814 (synopsis "Read-write access to NTFS file systems")
2816 "NTFS-3G provides read-write access to NTFS file systems, which are
2817 commonly found on Microsoft Windows. It is implemented as a FUSE file system.
2818 The package provides additional NTFS tools.")
2819 (license license:gpl2+)))
2821 (define-public rng-tools
2828 "http://downloads.sourceforge.net/sourceforge/gkernel/"
2829 "rng-tools-" version ".tar.gz"))
2832 "13h7lc8wl9khhvkr0i3bl5j9bapf8anhqis1lcnwxg1vc2v058b0"))))
2833 (build-system gnu-build-system)
2834 (synopsis "Random number generator daemon")
2836 "Monitor a hardware random number generator, and supply entropy
2837 from that to the system kernel's @file{/dev/random} machinery.")
2838 (home-page "http://sourceforge.net/projects/gkernel")
2839 ;; The source package is offered under the GPL2+, but the files
2840 ;; 'rngd_rdrand.c' and 'rdrand_asm.S' are only available under the GPL2.
2841 (license (list license:gpl2 license:gpl2+))))
2843 (define-public cpupower
2846 (version (package-version linux-libre))
2847 (source (package-source linux-libre))
2848 (build-system gnu-build-system)
2850 '(#:phases (modify-phases %standard-phases
2851 (add-after 'unpack 'enter-subdirectory
2853 (chdir "tools/power/cpupower")))
2855 (add-before 'build 'fix-makefiles
2857 (substitute* "Makefile"
2859 (("/bin/(install|pwd)" _ command) command))
2860 (substitute* "bench/Makefile"
2861 (("\\$\\(CC\\) -o") "$(CC) $(LDFLAGS) -o")))))
2862 #:make-flags (let ((out (assoc-ref %outputs "out")))
2863 (list (string-append "DESTDIR=" out)
2864 (string-append "LDFLAGS=-Wl,-rpath=" out "/lib")
2865 "docdir=/share/doc/cpupower"
2866 "confdir=$(docdir)/examples"
2867 ;; The Makefile recommends the following changes
2869 "PACKAGE_BUGREPORT=bug-guix@gnu.org"))
2870 #:tests? #f)) ;no tests
2871 (native-inputs `(("gettext" ,gnu-gettext)))
2872 (inputs `(("pciutils" ,pciutils)))
2873 (home-page (package-home-page linux-libre))
2874 (synopsis "CPU frequency and voltage scaling tools for Linux")
2876 "cpupower is a set of user-space tools that use the cpufreq feature of the
2877 Linux kernel to retrieve and control processor features related to power saving,
2878 such as frequency and voltage scaling.")
2879 (license license:gpl2)))
2881 (define-public haveged
2888 (uri (string-append "http://www.issihosts.com/haveged/haveged-"
2892 "059pxlfd4l5dqhd6r3lynzfz4wby2f17294fy17pi9j2jpnn68ww"))))
2893 (build-system gnu-build-system)
2894 (home-page "http://www.issihosts.com/haveged")
2895 (synopsis "Entropy source for the Linux random number generator")
2897 "haveged generates an unpredictable stream of random numbers for use by
2898 Linux's @file{/dev/random} and @file{/dev/urandom} devices. The kernel's
2899 standard mechanisms for filling the entropy pool may not be sufficient for
2900 systems with high needs or limited user interaction, such as headless servers.
2901 @command{haveged} runs as a privileged daemon, harvesting randomness from the
2902 indirect effects of hardware events on hidden processor state using the HArdware
2903 Volatile Entropy Gathering and Expansion (HAVEGE) algorithm. It tunes itself to
2904 its environment and provides the same built-in test suite for the output stream
2905 as used on certified hardware security devices.")
2906 (license (list (license:non-copyleft "file://nist/mconf.h")
2907 (license:non-copyleft "file://nist/packtest.c")
2908 license:public-domain ; nist/dfft.c
2909 license:gpl3+)))) ; everything else
2911 (define-public ecryptfs-utils
2913 (name "ecryptfs-utils")
2918 (uri (string-append "https://launchpad.net/ecryptfs/trunk/"
2919 version "/+download/ecryptfs-utils_"
2920 version ".orig.tar.gz"))
2923 "0zwq19siiwf09h7lwa7n7mgmrr8cxifp45lmwgcfr8c1gviv6b0i"))))
2924 (build-system gnu-build-system)
2926 `(#:configure-flags (list "--disable-pywrap")))
2928 `(("intltool" ,intltool)
2929 ("perl" ,perl) ; for pod2man
2930 ("pkg-config" ,pkg-config)))
2932 `(("keyutils" ,keyutils)
2933 ("linux-pam" ,linux-pam)
2935 (home-page "http://ecryptfs.org/")
2936 (synopsis "eCryptfs cryptographic file system utilities")
2938 "eCryptfs is a POSIX-compliant stacked cryptographic file system for Linux.
2939 Each file's cryptographic meta-data is stored inside the file itself, along
2940 with the encrypted contents. This allows individual encrypted files to be
2941 copied between hosts and still be decrypted with the proper key. eCryptfs is a
2942 native Linux file system, and has been part of the Linux kernel since version
2943 2.6.19. This package contains the userland utilities to manage it.")
2944 ;; The files src/key_mod/ecryptfs_key_mod_{openssl,pkcs11_helper,tspi}.c
2945 ;; grant additional permission to link with OpenSSL.
2946 (license license:gpl2+)))