2013-01-06 00:47:50 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2013-01-12 16:51:16 +01:00
|
|
|
|
;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
|
2013-01-06 00:47:50 +01:00
|
|
|
|
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
|
2012-11-27 21:56:37 +01:00
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
|
;;; This file is part of GNU Guix.
|
2012-11-27 21:56:37 +01:00
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
2012-11-27 21:56:37 +01:00
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
2012-11-27 21:56:37 +01:00
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
2013-01-06 00:47:50 +01:00
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
2012-11-27 21:56:37 +01:00
|
|
|
|
|
2013-01-18 01:06:24 +01:00
|
|
|
|
(define-module (gnu packages linux)
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
|
#:use-module (guix licenses)
|
2013-01-18 01:06:47 +01:00
|
|
|
|
#:use-module (gnu packages)
|
2013-01-18 01:06:24 +01:00
|
|
|
|
#:use-module ((gnu packages compression)
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
|
#:renamer (symbol-prefix-proc 'guix:))
|
2013-01-18 01:06:24 +01:00
|
|
|
|
#:use-module (gnu packages flex)
|
2013-06-17 23:53:42 +02:00
|
|
|
|
#:use-module (gnu packages bison)
|
2013-01-18 01:06:24 +01:00
|
|
|
|
#:use-module (gnu packages libusb)
|
|
|
|
|
#:use-module (gnu packages ncurses)
|
2013-06-17 23:53:42 +02:00
|
|
|
|
#:use-module (gnu packages bdb)
|
2013-01-18 01:06:24 +01:00
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2013-09-08 01:30:54 +02:00
|
|
|
|
#:use-module (gnu packages algebra)
|
2013-09-26 20:54:32 +02:00
|
|
|
|
#:use-module ((gnu packages gettext)
|
|
|
|
|
#:renamer (symbol-prefix-proc 'g:))
|
2013-10-06 22:36:22 +02:00
|
|
|
|
#:use-module (gnu packages pulseaudio)
|
2013-10-05 16:47:12 +02:00
|
|
|
|
#:use-module (gnu packages attr)
|
2013-10-06 22:36:22 +02:00
|
|
|
|
#:use-module (gnu packages xml)
|
2012-12-04 00:13:02 +01:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2013-09-11 22:36:50 +02:00
|
|
|
|
#:use-module (guix build-system gnu))
|
2012-11-27 21:56:37 +01:00
|
|
|
|
|
2013-02-27 09:25:00 +01:00
|
|
|
|
(define-public (system->linux-architecture arch)
|
|
|
|
|
"Return the Linux architecture name for ARCH, a Guix system name such as
|
|
|
|
|
\"x86_64-linux\"."
|
2013-02-19 12:17:08 +01:00
|
|
|
|
(let ((arch (car (string-split arch #\-))))
|
|
|
|
|
(cond ((string=? arch "i686") "i386")
|
|
|
|
|
((string-prefix? "mips" arch) "mips")
|
2013-02-27 09:25:00 +01:00
|
|
|
|
((string-prefix? "arm" arch) "arm")
|
2013-02-19 12:17:08 +01:00
|
|
|
|
(else arch))))
|
|
|
|
|
|
2013-07-17 15:32:52 +02:00
|
|
|
|
(define (linux-libre-urls version)
|
|
|
|
|
"Return a list of URLs for Linux-Libre VERSION."
|
|
|
|
|
(list (string-append
|
|
|
|
|
"http://linux-libre.fsfla.org/pub/linux-libre/releases/"
|
|
|
|
|
version "-gnu/linux-libre-" version "-gnu.tar.xz")
|
|
|
|
|
|
|
|
|
|
;; XXX: Work around <http://bugs.gnu.org/14851>.
|
|
|
|
|
(string-append
|
|
|
|
|
"ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-"
|
|
|
|
|
version "-gnu.tar.xz")
|
|
|
|
|
|
|
|
|
|
;; Maybe this URL will become valid eventually.
|
|
|
|
|
(string-append
|
|
|
|
|
"mirror://gnu/linux-libre/" version "-gnu/linux-libre-"
|
|
|
|
|
version "-gnu.tar.xz")))
|
|
|
|
|
|
2012-11-27 22:04:57 +01:00
|
|
|
|
(define-public linux-libre-headers
|
|
|
|
|
(let* ((version* "3.3.8")
|
|
|
|
|
(build-phase
|
2013-02-19 12:17:08 +01:00
|
|
|
|
(lambda (arch)
|
|
|
|
|
`(lambda _
|
|
|
|
|
(setenv "ARCH" ,(system->linux-architecture arch))
|
|
|
|
|
(format #t "`ARCH' set to `~a'~%" (getenv "ARCH"))
|
2012-12-19 00:47:39 +01:00
|
|
|
|
|
2013-02-19 12:17:08 +01:00
|
|
|
|
(and (zero? (system* "make" "defconfig"))
|
|
|
|
|
(zero? (system* "make" "mrproper" "headers_check"))))))
|
2012-11-27 22:04:57 +01:00
|
|
|
|
(install-phase
|
|
|
|
|
`(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(and (zero? (system* "make"
|
|
|
|
|
(string-append "INSTALL_HDR_PATH=" out)
|
|
|
|
|
"headers_install"))
|
|
|
|
|
(mkdir (string-append out "/include/config"))
|
|
|
|
|
(call-with-output-file
|
|
|
|
|
(string-append out
|
|
|
|
|
"/include/config/kernel.release")
|
|
|
|
|
(lambda (p)
|
|
|
|
|
(format p "~a-default~%" ,version*))))))))
|
|
|
|
|
(package
|
|
|
|
|
(name "linux-libre-headers")
|
|
|
|
|
(version version*)
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2013-07-17 15:32:52 +02:00
|
|
|
|
(uri (linux-libre-urls version))
|
2012-11-27 22:04:57 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0jkfh0z1s6izvdnc3njm39dhzp1cg8i06jv06izwqz9w9qsprvnl"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs `(("perl" ,perl)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
build-system/gnu: Unify with (guix build-system gnu-cross-build).
* guix/build/gnu-build-system.scm (set-paths): Add `native-inputs' and
`native-search-paths' keyword parameters. Honor them.
(configure): Add `target' and `native-inputs' keyword parameters.
Look for Bash in NATIVE-INPUTS or INPUTS. Pass `--host' when TARGET
is true.
(strip): Add `strip-command' keyword parameter. Use it.
* guix/build/gnu-cross-build.scm: Remove.
* Makefile.am (MODULES): Adjust accordingly.
* gnu/packages/acl.scm, gnu/packages/attr.scm, gnu/packages/base.scm,
gnu/packages/bash.scm, gnu/packages/gawk.scm,
gnu/packages/gettext.scm, gnu/packages/guile.scm,
gnu/packages/libffi.scm, gnu/packages/libsigsegv.scm,
gnu/packages/linux.scm, gnu/packages/ncurses.scm,
gnu/packages/readline.scm, guix/build-system/gnu.scm: Replace
`%standard-cross-phases' by `%standard-phases'. Remove references
to (guix build gnu-cross-build).
2013-06-21 00:25:54 +02:00
|
|
|
|
(srfi srfi-1))
|
2012-11-27 22:04:57 +01:00
|
|
|
|
#:phases (alist-replace
|
2013-10-10 21:34:10 +02:00
|
|
|
|
'build ,(build-phase (or (%current-target-system)
|
|
|
|
|
(%current-system)))
|
2012-11-27 22:04:57 +01:00
|
|
|
|
(alist-replace
|
|
|
|
|
'install ,install-phase
|
build-system/gnu: Unify with (guix build-system gnu-cross-build).
* guix/build/gnu-build-system.scm (set-paths): Add `native-inputs' and
`native-search-paths' keyword parameters. Honor them.
(configure): Add `target' and `native-inputs' keyword parameters.
Look for Bash in NATIVE-INPUTS or INPUTS. Pass `--host' when TARGET
is true.
(strip): Add `strip-command' keyword parameter. Use it.
* guix/build/gnu-cross-build.scm: Remove.
* Makefile.am (MODULES): Adjust accordingly.
* gnu/packages/acl.scm, gnu/packages/attr.scm, gnu/packages/base.scm,
gnu/packages/bash.scm, gnu/packages/gawk.scm,
gnu/packages/gettext.scm, gnu/packages/guile.scm,
gnu/packages/libffi.scm, gnu/packages/libsigsegv.scm,
gnu/packages/linux.scm, gnu/packages/ncurses.scm,
gnu/packages/readline.scm, guix/build-system/gnu.scm: Replace
`%standard-cross-phases' by `%standard-phases'. Remove references
to (guix build gnu-cross-build).
2013-06-21 00:25:54 +02:00
|
|
|
|
(alist-delete 'configure %standard-phases)))
|
2012-11-27 22:04:57 +01:00
|
|
|
|
#:tests? #f))
|
|
|
|
|
(synopsis "GNU Linux-Libre kernel headers")
|
|
|
|
|
(description "Headers of the Linux-Libre kernel.")
|
2013-02-01 12:57:06 +01:00
|
|
|
|
(license gpl2)
|
2012-11-27 22:04:57 +01:00
|
|
|
|
(home-page "http://www.gnu.org/software/linux-libre/"))))
|
|
|
|
|
|
2013-02-11 11:39:57 +01:00
|
|
|
|
(define-public module-init-tools
|
|
|
|
|
(package
|
|
|
|
|
(name "module-init-tools")
|
|
|
|
|
(version "3.16")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://kernel.org/linux/utils/kernel/module-init-tools/module-init-tools-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0jxnz9ahfic79rp93l5wxcbgh4pkv85mwnjlbv1gz3jawv5cvwp1"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2013-09-27 08:41:19 +02:00
|
|
|
|
;; FIXME: The upstream tarball lacks man pages, and building them would
|
|
|
|
|
;; require DocBook & co. We used to use Gentoo's pre-built man pages,
|
|
|
|
|
;; but they vanished. In the meantime, fake it.
|
2013-02-11 11:39:57 +01:00
|
|
|
|
'(#:phases (alist-cons-before
|
2013-09-27 08:41:19 +02:00
|
|
|
|
'configure 'fake-docbook
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "Makefile.in"
|
|
|
|
|
(("^DOCBOOKTOMAN.*$")
|
|
|
|
|
"DOCBOOKTOMAN = true\n")))
|
2013-02-11 11:39:57 +01:00
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/")
|
|
|
|
|
(synopsis "Tools for loading and managing Linux kernel modules")
|
|
|
|
|
(description
|
|
|
|
|
"Tools for loading and managing Linux kernel modules, such as `modprobe',
|
|
|
|
|
`insmod', `lsmod', and more.")
|
|
|
|
|
(license gpl2+)))
|
|
|
|
|
|
2013-02-11 23:02:26 +01:00
|
|
|
|
(define-public linux-libre
|
2013-09-08 01:30:54 +02:00
|
|
|
|
(let* ((version* "3.11")
|
2013-02-11 23:02:26 +01:00
|
|
|
|
(build-phase
|
|
|
|
|
'(lambda* (#:key system #:allow-other-keys #:rest args)
|
|
|
|
|
(let ((arch (car (string-split system #\-))))
|
|
|
|
|
(setenv "ARCH"
|
|
|
|
|
(cond ((string=? arch "i686") "i386")
|
|
|
|
|
(else arch)))
|
|
|
|
|
(format #t "`ARCH' set to `~a'~%" (getenv "ARCH")))
|
|
|
|
|
|
|
|
|
|
(let ((build (assoc-ref %standard-phases 'build)))
|
2013-02-15 00:26:52 +01:00
|
|
|
|
(and (zero? (system* "make" "defconfig"))
|
|
|
|
|
(begin
|
|
|
|
|
(format #t "enabling additional modules...~%")
|
|
|
|
|
(substitute* ".config"
|
|
|
|
|
(("^# CONFIG_CIFS.*$")
|
|
|
|
|
"CONFIG_CIFS=m\n"))
|
|
|
|
|
(zero? (system* "make" "oldconfig")))
|
2013-02-11 23:02:26 +01:00
|
|
|
|
|
|
|
|
|
;; Call the default `build' phase so `-j' is correctly
|
|
|
|
|
;; passed.
|
|
|
|
|
(apply build #:make-flags "all" args)))))
|
|
|
|
|
(install-phase
|
|
|
|
|
`(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(moddir (string-append out "/lib/modules"))
|
|
|
|
|
(mit (assoc-ref inputs "module-init-tools")))
|
|
|
|
|
(mkdir-p moddir)
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(copy-file file
|
|
|
|
|
(string-append out "/" (basename file))))
|
|
|
|
|
(find-files "." "^(bzImage|System\\.map)$"))
|
|
|
|
|
(copy-file ".config" (string-append out "/config"))
|
|
|
|
|
(zero? (system* "make"
|
|
|
|
|
(string-append "DEPMOD=" mit "/sbin/depmod")
|
|
|
|
|
(string-append "MODULE_DIR=" moddir)
|
|
|
|
|
(string-append "INSTALL_PATH=" out)
|
|
|
|
|
(string-append "INSTALL_MOD_PATH=" out)
|
|
|
|
|
"modules_install"))))))
|
|
|
|
|
(package
|
|
|
|
|
(name "linux-libre")
|
|
|
|
|
(version version*)
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2013-07-17 15:32:52 +02:00
|
|
|
|
(uri (linux-libre-urls version))
|
2013-02-11 23:02:26 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2013-09-08 01:30:54 +02:00
|
|
|
|
"1vlk04xkvyy1kc9zz556md173rn1qzlnvhz7c9sljv4bpk3mdspl"))))
|
2013-02-11 23:02:26 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs `(("perl" ,perl)
|
2013-09-08 01:30:54 +02:00
|
|
|
|
("bc" ,bc)
|
2013-02-11 23:02:26 +01:00
|
|
|
|
("module-init-tools" ,module-init-tools)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(srfi srfi-1)
|
|
|
|
|
(ice-9 match))
|
|
|
|
|
#:phases (alist-replace
|
|
|
|
|
'build ,build-phase
|
|
|
|
|
(alist-replace
|
|
|
|
|
'install ,install-phase
|
|
|
|
|
(alist-delete 'configure %standard-phases)))
|
|
|
|
|
#:tests? #f))
|
gnu: Use synopses from the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/gawk.scm,
gnu/packages/gcc.scm,
packages/gcc.scm, b/gnu/packages/gcc.scm,
4b982 100644
s/gcc.scm,
s/gcc.scm,
@@
%standard-phases)))))
`((gcc-libc . ,(assoc-ref inputs "libc"))))
The GNU Compiler Collection")
GNU Compiler Collection")
n
ompiler Collection includes compiler front ends for C, C++,
tran, OpenMP for C/C++/Fortran, Java, and Ada, as well as
gnu/packages/gdb.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/glib.scm,
gnu/packages/global.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mailutils.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm: Use synopses from the Womb.
2013-04-17 18:04:25 +02:00
|
|
|
|
(synopsis "100% free redistribution of a cleaned Linux kernel")
|
Synchronize package descriptions with the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/freeipmi.scm,
gnu/packages/gawk.scm,
gnu/packages/gcal.scm,
gnu/packages/gcc.scm,
gnu/packages/gdb.scm,
gnu/packages/gdbm.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/global.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/gv.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/lightning.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mail.scm,
gnu/packages/maths.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/ocrad.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/plotutils.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/unrtf.scm,
gnu/packages/version-control.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm,
gnu/packages/xnee.scm,
gnu/packages/zile.scm: Change value of the 'description' field to that
of the Womb.
2013-10-09 16:14:23 +02:00
|
|
|
|
(description
|
|
|
|
|
"Linux Libre is a free (as in freedom) variant of the Linux kernel. It
|
|
|
|
|
has been modified to remove any non-free binary blobs.")
|
2013-02-11 23:02:26 +01:00
|
|
|
|
(license gpl2)
|
|
|
|
|
(home-page "http://www.gnu.org/software/linux-libre/"))))
|
|
|
|
|
|
2013-09-11 00:22:45 +02:00
|
|
|
|
|
|
|
|
|
;;;
|
|
|
|
|
;;; Pluggable authentication modules (PAM).
|
|
|
|
|
;;;
|
|
|
|
|
|
2012-11-27 21:56:37 +01:00
|
|
|
|
(define-public linux-pam
|
|
|
|
|
(package
|
|
|
|
|
(name "linux-pam")
|
|
|
|
|
(version "1.1.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (list (string-append "http://www.linux-pam.org/library/Linux-PAM-"
|
|
|
|
|
version ".tar.bz2")
|
|
|
|
|
(string-append "mirror://kernel.org/linux/libs/pam/library/Linux-PAM-"
|
|
|
|
|
version ".tar.bz2")))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1hlz2kqvbjisvwyicdincq7nz897b9rrafyzccwzqiqg53b8gf5s"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("flex" ,flex)
|
|
|
|
|
|
|
|
|
|
;; TODO: optional dependencies
|
|
|
|
|
;; ("libxcrypt" ,libxcrypt)
|
|
|
|
|
;; ("cracklib" ,cracklib)
|
|
|
|
|
))
|
|
|
|
|
(arguments
|
2013-08-17 15:44:43 +02:00
|
|
|
|
'(;; Most users, such as `shadow', expect the headers to be under
|
|
|
|
|
;; `security'.
|
|
|
|
|
#:configure-flags (list (string-append "--includedir="
|
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
|
"/include/security"))
|
|
|
|
|
|
|
|
|
|
;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
|
|
|
|
|
;; isn't available.
|
|
|
|
|
#:tests? #f))
|
2012-11-27 21:56:37 +01:00
|
|
|
|
(home-page "http://www.linux-pam.org/")
|
|
|
|
|
(synopsis "Pluggable authentication modules for Linux")
|
|
|
|
|
(description
|
|
|
|
|
"A *Free* project to implement OSF's RFC 86.0.
|
|
|
|
|
Pluggable authentication modules are small shared object files that can
|
|
|
|
|
be used through the PAM API to perform tasks, like authenticating a user
|
|
|
|
|
at login. Local and dynamic reconfiguration are its key features")
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
|
(license bsd-3)))
|
2012-12-04 00:17:49 +01:00
|
|
|
|
|
2013-09-11 00:22:45 +02:00
|
|
|
|
|
|
|
|
|
;;;
|
|
|
|
|
;;; Miscellaneous.
|
|
|
|
|
;;;
|
|
|
|
|
|
2012-12-04 00:17:49 +01:00
|
|
|
|
(define-public psmisc
|
|
|
|
|
(package
|
|
|
|
|
(name "psmisc")
|
|
|
|
|
(version "22.20")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/psmisc/psmisc/psmisc-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"052mfraykmxnavpi8s78aljx8w87hyvpx8mvzsgpjsjz73i28wmi"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs `(("ncurses" ,ncurses)))
|
|
|
|
|
(home-page "http://psmisc.sourceforge.net/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"set of utilities that use the proc filesystem, such as fuser, killall, and pstree")
|
|
|
|
|
(description
|
|
|
|
|
"This PSmisc package is a set of some small useful utilities that
|
|
|
|
|
use the proc filesystem. We're not about changing the world, but
|
|
|
|
|
providing the system administrator with some help in common tasks.")
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
|
(license gpl2+)))
|
2012-12-04 00:13:02 +01:00
|
|
|
|
|
|
|
|
|
(define-public util-linux
|
|
|
|
|
(package
|
|
|
|
|
(name "util-linux")
|
|
|
|
|
(version "2.21")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://kernel.org/linux/utils/"
|
|
|
|
|
name "/v" version "/"
|
|
|
|
|
name "-" version ".2" ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1rpgghf7n0zx0cdy8hibr41wvkm2qp1yvd8ab1rxr193l1jmgcir"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags '("--disable-use-tty-group")
|
|
|
|
|
#:phases (alist-cons-after
|
|
|
|
|
'install 'patch-chkdupexe
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(substitute* (string-append out "/bin/chkdupexe")
|
|
|
|
|
;; Allow 'patch-shebang' to do its work.
|
|
|
|
|
(("@PERL@") "/bin/perl"))))
|
|
|
|
|
%standard-phases)))
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
|
(inputs `(("zlib" ,guix:zlib)
|
2012-12-04 00:13:02 +01:00
|
|
|
|
("ncurses" ,ncurses)
|
|
|
|
|
("perl" ,perl)))
|
|
|
|
|
(home-page "https://www.kernel.org/pub/linux/utils/util-linux/")
|
2013-05-18 23:02:25 +02:00
|
|
|
|
(synopsis "Collection of utilities for the Linux kernel")
|
2012-12-04 00:13:02 +01:00
|
|
|
|
(description
|
|
|
|
|
"util-linux is a random collection of utilities for the Linux kernel.")
|
2013-01-12 16:51:45 +01:00
|
|
|
|
|
2012-12-04 00:13:02 +01:00
|
|
|
|
;; Note that util-linux doesn't use the same license for all the
|
2013-01-12 16:51:45 +01:00
|
|
|
|
;; code. GPLv2+ is the default license for a code without an
|
2012-12-04 00:13:02 +01:00
|
|
|
|
;; explicitly defined license.
|
2013-01-12 16:51:45 +01:00
|
|
|
|
(license (list gpl3+ gpl2+ gpl2 lgpl2.0+
|
|
|
|
|
bsd-4 public-domain))))
|
2012-12-17 21:29:06 +01:00
|
|
|
|
|
2013-01-12 16:51:16 +01:00
|
|
|
|
(define-public procps
|
|
|
|
|
(package
|
|
|
|
|
(name "procps")
|
|
|
|
|
(version "3.2.8")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://procps.sourceforge.net/procps-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
gnu: Use the 'patches' field of <origin>.
* gnu/packages/apr.scm,
gnu/packages/autotools.scm,
gnu/packages/avahi.scm,
gnu/packages/cdrom.scm,
gnu/packages/cmake.scm,
gnu/packages/cpio.scm,
gnu/packages/cross-base.scm,
gnu/packages/emacs.scm,
gnu/packages/flex.scm,
gnu/packages/fontutils.scm,
gnu/packages/glib.scm,
gnu/packages/grub.scm,
gnu/packages/guile.scm,
gnu/packages/idutils.scm,
gnu/packages/libevent.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/make-bootstrap.scm,
gnu/packages/mp3.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/pdf.scm,
gnu/packages/plotutils.scm,
gnu/packages/qemu.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/system.scm,
gnu/packages/tcsh.scm,
gnu/packages/valgrind.scm,
gnu/packages/vpn.scm,
gnu/packages/w3m: Use the 'patches' field of <origin> instead of
adding a patch as input plus using #:patches.
2013-10-09 00:09:04 +02:00
|
|
|
|
"0d8mki0q4yamnkk4533kx8mc0jd879573srxhg6r2fs3lkc6iv8i"))
|
|
|
|
|
(patches (list (search-patch "procps-make-3.82.patch")))))
|
2013-01-12 16:51:16 +01:00
|
|
|
|
(build-system gnu-build-system)
|
gnu: Use the 'patches' field of <origin>.
* gnu/packages/apr.scm,
gnu/packages/autotools.scm,
gnu/packages/avahi.scm,
gnu/packages/cdrom.scm,
gnu/packages/cmake.scm,
gnu/packages/cpio.scm,
gnu/packages/cross-base.scm,
gnu/packages/emacs.scm,
gnu/packages/flex.scm,
gnu/packages/fontutils.scm,
gnu/packages/glib.scm,
gnu/packages/grub.scm,
gnu/packages/guile.scm,
gnu/packages/idutils.scm,
gnu/packages/libevent.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/make-bootstrap.scm,
gnu/packages/mp3.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/pdf.scm,
gnu/packages/plotutils.scm,
gnu/packages/qemu.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/system.scm,
gnu/packages/tcsh.scm,
gnu/packages/valgrind.scm,
gnu/packages/vpn.scm,
gnu/packages/w3m: Use the 'patches' field of <origin> instead of
adding a patch as input plus using #:patches.
2013-10-09 00:09:04 +02:00
|
|
|
|
(inputs `(("ncurses" ,ncurses)))
|
2013-01-12 16:51:16 +01:00
|
|
|
|
(arguments
|
gnu: Use the 'patches' field of <origin>.
* gnu/packages/apr.scm,
gnu/packages/autotools.scm,
gnu/packages/avahi.scm,
gnu/packages/cdrom.scm,
gnu/packages/cmake.scm,
gnu/packages/cpio.scm,
gnu/packages/cross-base.scm,
gnu/packages/emacs.scm,
gnu/packages/flex.scm,
gnu/packages/fontutils.scm,
gnu/packages/glib.scm,
gnu/packages/grub.scm,
gnu/packages/guile.scm,
gnu/packages/idutils.scm,
gnu/packages/libevent.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/make-bootstrap.scm,
gnu/packages/mp3.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/pdf.scm,
gnu/packages/plotutils.scm,
gnu/packages/qemu.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/system.scm,
gnu/packages/tcsh.scm,
gnu/packages/valgrind.scm,
gnu/packages/vpn.scm,
gnu/packages/w3m: Use the 'patches' field of <origin> instead of
adding a patch as input plus using #:patches.
2013-10-09 00:09:04 +02:00
|
|
|
|
'(#:phases (alist-replace
|
2013-01-12 16:51:16 +01:00
|
|
|
|
'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
;; No `configure', just a single Makefile.
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("/usr/") "/")
|
|
|
|
|
(("--(owner|group) 0") "")
|
|
|
|
|
(("ldconfig") "true")
|
|
|
|
|
(("^LDFLAGS[[:blank:]]*:=(.*)$" _ value)
|
|
|
|
|
;; Add libproc to the RPATH.
|
|
|
|
|
(string-append "LDFLAGS := -Wl,-rpath="
|
|
|
|
|
out "/lib" value))))
|
|
|
|
|
(setenv "CC" "gcc"))
|
|
|
|
|
(alist-replace
|
|
|
|
|
'install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(and (zero?
|
|
|
|
|
(system* "make" "install"
|
|
|
|
|
(string-append "DESTDIR=" out)))
|
|
|
|
|
|
|
|
|
|
;; Sanity check.
|
|
|
|
|
(zero?
|
|
|
|
|
(system* (string-append out "/bin/ps")
|
|
|
|
|
"--version")))))
|
|
|
|
|
%standard-phases))
|
|
|
|
|
|
|
|
|
|
;; What did you expect? Tests?
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(home-page "http://procps.sourceforge.net/")
|
2013-05-18 23:02:25 +02:00
|
|
|
|
(synopsis "Utilities that give information about processes")
|
2013-01-12 16:51:16 +01:00
|
|
|
|
(description
|
|
|
|
|
"procps is the package that has a bunch of small useful utilities
|
|
|
|
|
that give information about processes using the Linux /proc file system.
|
|
|
|
|
The package includes the programs ps, top, vmstat, w, kill, free,
|
|
|
|
|
slabtop, and skill.")
|
|
|
|
|
(license gpl2)))
|
|
|
|
|
|
2012-12-17 21:29:06 +01:00
|
|
|
|
(define-public usbutils
|
|
|
|
|
(package
|
|
|
|
|
(name "usbutils")
|
|
|
|
|
(version "006")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://kernel.org/linux/utils/usb/usbutils/"
|
|
|
|
|
"usbutils-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"03pd57vv8c6x0hgjqcbrxnzi14h8hcghmapg89p8k5zpwpkvbdfr"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libusb" ,libusb) ("pkg-config" ,pkg-config)))
|
|
|
|
|
(home-page "http://www.linux-usb.org/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Tools for working with USB devices, such as lsusb")
|
|
|
|
|
(description
|
|
|
|
|
"Tools for working with USB devices, such as lsusb.")
|
2013-01-06 17:33:02 +01:00
|
|
|
|
(license gpl2+)))
|
2013-02-10 23:48:41 +01:00
|
|
|
|
|
|
|
|
|
(define-public e2fsprogs
|
|
|
|
|
(package
|
|
|
|
|
(name "e2fsprogs")
|
|
|
|
|
(version "1.42.7")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/e2fsprogs/e2fsprogs-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ibkkvp6kan0hn0d1anq4n2md70j5gcm7mwna515w82xwyr02rfw"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs `(("util-linux" ,util-linux)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (alist-cons-before
|
|
|
|
|
'configure 'patch-shells
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("/bin/sh (.*)parse-types.sh" _ dir)
|
|
|
|
|
(string-append (which "sh") " " dir
|
|
|
|
|
"parse-types.sh")))
|
|
|
|
|
(substitute* (find-files "." "^Makefile.in$")
|
|
|
|
|
(("#!/bin/sh")
|
|
|
|
|
(string-append "#!" (which "sh")))))
|
|
|
|
|
%standard-phases)
|
|
|
|
|
|
|
|
|
|
;; FIXME: Tests work by comparing the stdout/stderr of programs, that
|
|
|
|
|
;; they fail because we get an extra line that says "Can't check if
|
|
|
|
|
;; filesystem is mounted due to missing mtab file".
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(home-page "http://e2fsprogs.sourceforge.net/")
|
2013-05-18 23:02:25 +02:00
|
|
|
|
(synopsis "Creating and checking ext2/ext3/ext4 file systems")
|
2013-02-10 23:48:41 +01:00
|
|
|
|
(description
|
|
|
|
|
"This package provides tools for manipulating ext2/ext3/ext4 file systems.")
|
|
|
|
|
(license (list gpl2 ; programs
|
|
|
|
|
lgpl2.0 ; libext2fs
|
|
|
|
|
x11)))) ; libuuid
|
2013-05-18 23:31:14 +02:00
|
|
|
|
|
|
|
|
|
(define-public strace
|
|
|
|
|
(package
|
|
|
|
|
(name "strace")
|
|
|
|
|
(version "4.7")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/strace/strace-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"158iwk0pl2mfw93m1843xb7a2zb8p6lh0qim07rca6f1ff4dk764"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs `(("perl" ,perl)))
|
|
|
|
|
(home-page "http://strace.sourceforge.net/")
|
|
|
|
|
(synopsis "System call tracer for Linux")
|
|
|
|
|
(description
|
|
|
|
|
"strace is a system call tracer, i.e. a debugging tool which prints out a
|
|
|
|
|
trace of all the system calls made by a another process/program.")
|
|
|
|
|
(license bsd-3)))
|
2013-06-09 23:52:39 +02:00
|
|
|
|
|
|
|
|
|
(define-public alsa-lib
|
|
|
|
|
(package
|
|
|
|
|
(name "alsa-lib")
|
|
|
|
|
(version "1.0.27.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"ftp://ftp.alsa-project.org/pub/lib/alsa-lib-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0fx057746dj7rjdi0jnvx2m9b0y1lgdkh1hks87d8w32xyihf3k9"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "http://www.alsa-project.org/")
|
|
|
|
|
(synopsis "The Advanced Linux Sound Architecture libraries")
|
|
|
|
|
(description
|
|
|
|
|
"The Advanced Linux Sound Architecture (ALSA) provides audio and
|
|
|
|
|
MIDI functionality to the Linux-based operating system.")
|
|
|
|
|
(license lgpl2.1+)))
|
2013-06-17 22:33:35 +02:00
|
|
|
|
|
2013-10-06 22:36:22 +02:00
|
|
|
|
(define-public alsa-utils
|
|
|
|
|
(package
|
|
|
|
|
(name "alsa-utils")
|
|
|
|
|
(version "1.0.27.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1sjjngnq50jv5ilwsb4zys6smifni3bd6fn28gbnhfrg14wsrgq2"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; XXX: Disable man page creation until we have DocBook.
|
|
|
|
|
'(#:configure-flags (list "--disable-xmlto"
|
|
|
|
|
(string-append "--with-udev-rules-dir="
|
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
|
"/lib/udev/rules.d"))
|
|
|
|
|
#:phases (alist-cons-before
|
|
|
|
|
'install 'pre-install
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Don't try to mkdir /var/lib/alsa.
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("\\$\\(MKDIR_P\\) .*ASOUND_STATE_DIR.*")
|
|
|
|
|
"true\n")))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libsamplerate" ,libsamplerate)
|
|
|
|
|
("ncurses" ,ncurses)
|
|
|
|
|
("alsa-lib" ,alsa-lib)
|
|
|
|
|
("xmlto" ,xmlto)
|
|
|
|
|
("gettext" ,g:gettext)))
|
|
|
|
|
(home-page "http://www.alsa-project.org/")
|
|
|
|
|
(synopsis "Utilities for the Advanced Linux Sound Architecture (ALSA)")
|
|
|
|
|
(description
|
|
|
|
|
"The Advanced Linux Sound Architecture (ALSA) provides audio and
|
|
|
|
|
MIDI functionality to the Linux-based operating system.")
|
|
|
|
|
|
|
|
|
|
;; This is mostly GPLv2+ but a few files such as 'alsactl.c' are
|
|
|
|
|
;; GPLv2-only.
|
|
|
|
|
(license gpl2)))
|
|
|
|
|
|
2013-06-17 22:33:35 +02:00
|
|
|
|
(define-public iptables
|
|
|
|
|
(package
|
|
|
|
|
(name "iptables")
|
|
|
|
|
(version "1.4.16.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://www.netfilter.org/projects/iptables/files/iptables-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0vkg5lzkn4l3i1sm6v3x96zzvnv9g7mi0qgj6279ld383mzcws24"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; no test suite
|
|
|
|
|
(home-page "http://www.netfilter.org/projects/iptables/index.html")
|
|
|
|
|
(synopsis "Program to configure the Linux IP packet filtering rules")
|
|
|
|
|
(description
|
|
|
|
|
"iptables is the userspace command line program used to configure the
|
|
|
|
|
Linux 2.4.x and later IPv4 packet filtering ruleset. It is targeted towards
|
|
|
|
|
system administrators. Since Network Address Translation is also configured
|
|
|
|
|
from the packet filter ruleset, iptables is used for this, too. The iptables
|
|
|
|
|
package also includes ip6tables. ip6tables is used for configuring the IPv6
|
|
|
|
|
packet filter.")
|
|
|
|
|
(license gpl2+)))
|
2013-06-17 23:53:42 +02:00
|
|
|
|
|
|
|
|
|
(define-public iproute
|
|
|
|
|
(package
|
|
|
|
|
(name "iproute2")
|
|
|
|
|
(version "3.8.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://kernel.org/linux/utils/net/iproute2/iproute2-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0kqy30wz2krbg4y7750hjq5218hgy2vj9pm5qzkn1bqskxs4b4ap"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no test suite
|
|
|
|
|
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
|
|
|
|
(list "DESTDIR="
|
|
|
|
|
(string-append "LIBDIR=" out "/lib")
|
|
|
|
|
(string-append "SBINDIR=" out "/sbin")
|
|
|
|
|
(string-append "CONFDIR=" out "/etc")
|
|
|
|
|
(string-append "DOCDIR=" out "/share/doc/"
|
|
|
|
|
,name "-" ,version)
|
|
|
|
|
(string-append "MANDIR=" out "/share/man")))
|
|
|
|
|
#:phases (alist-cons-before
|
|
|
|
|
'install 'pre-install
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Don't attempt to create /var/lib/arpd.
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("^.*ARPDDIR.*$") "")))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("iptables" ,iptables)
|
|
|
|
|
("db4" ,bdb)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("flex" ,flex)
|
|
|
|
|
("bison" ,bison)))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2")
|
|
|
|
|
(synopsis
|
|
|
|
|
"A collection of utilities for controlling TCP/IP networking and traffic control in Linux")
|
|
|
|
|
(description
|
|
|
|
|
"Iproute2 is a collection of utilities for controlling TCP/IP
|
|
|
|
|
networking and traffic with the Linux kernel.
|
|
|
|
|
|
|
|
|
|
Most network configuration manuals still refer to ifconfig and route as the
|
|
|
|
|
primary network configuration tools, but ifconfig is known to behave
|
|
|
|
|
inadequately in modern network environments. They should be deprecated, but
|
|
|
|
|
most distros still include them. Most network configuration systems make use
|
|
|
|
|
of ifconfig and thus provide a limited feature set. The /etc/net project aims
|
|
|
|
|
to support most modern network technologies, as it doesn't use ifconfig and
|
|
|
|
|
allows a system administrator to make use of all iproute2 features, including
|
|
|
|
|
traffic control.
|
|
|
|
|
|
|
|
|
|
iproute2 is usually shipped in a package called iproute or iproute2 and
|
|
|
|
|
consists of several tools, of which the most important are ip and tc. ip
|
|
|
|
|
controls IPv4 and IPv6 configuration and tc stands for traffic control. Both
|
|
|
|
|
tools print detailed usage messages and are accompanied by a set of
|
|
|
|
|
manpages.")
|
|
|
|
|
(license gpl2+)))
|
2013-09-26 20:54:32 +02:00
|
|
|
|
|
|
|
|
|
(define-public net-tools
|
|
|
|
|
;; XXX: This package is basically unmaintained, but it provides a few
|
|
|
|
|
;; commands not yet provided by Inetutils, such as 'route', so we have to
|
|
|
|
|
;; live with it.
|
|
|
|
|
(package
|
|
|
|
|
(name "net-tools")
|
|
|
|
|
(version "1.60")
|
|
|
|
|
(home-page "http://www.tazenda.demon.co.uk/phil/net-tools/")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append home-page "/" name "-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0yvxrzk0mzmspr7sa34hm1anw6sif39gyn85w4c5ywfn8inxvr3s"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (alist-replace
|
|
|
|
|
'patch
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(define (apply-patch file)
|
|
|
|
|
(zero? (system* "patch" "-p1" "--batch"
|
|
|
|
|
"--input" file)))
|
|
|
|
|
|
|
|
|
|
(let ((patch.gz (assoc-ref inputs "patch")))
|
|
|
|
|
(format #t "applying Debian patch set '~a'...~%"
|
|
|
|
|
patch.gz)
|
|
|
|
|
(system (string-append "gunzip < " patch.gz " > the-patch"))
|
|
|
|
|
(pk 'here)
|
|
|
|
|
(and (apply-patch "the-patch")
|
|
|
|
|
(for-each apply-patch
|
|
|
|
|
(find-files "debian/patches"
|
|
|
|
|
"\\.patch")))))
|
|
|
|
|
(alist-replace
|
|
|
|
|
'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(mkdir-p (string-append out "/bin"))
|
|
|
|
|
(mkdir-p (string-append out "/sbin"))
|
|
|
|
|
|
|
|
|
|
;; Pretend we have everything...
|
|
|
|
|
(system "yes | make config")
|
|
|
|
|
|
|
|
|
|
;; ... except we don't have libdnet, so remove that
|
|
|
|
|
;; definition.
|
|
|
|
|
(substitute* '("config.make" "config.h")
|
|
|
|
|
(("^.*HAVE_AFDECnet.*$") ""))))
|
|
|
|
|
%standard-phases))
|
|
|
|
|
|
|
|
|
|
;; Binaries that depend on libnet-tools.a don't declare that
|
|
|
|
|
;; dependency, making it parallel-unsafe.
|
|
|
|
|
#:parallel-build? #f
|
|
|
|
|
|
|
|
|
|
#:tests? #f ; no test suite
|
|
|
|
|
#:make-flags (list "CC=gcc"
|
|
|
|
|
(string-append "BASEDIR="
|
|
|
|
|
(assoc-ref %outputs "out")))))
|
|
|
|
|
|
|
|
|
|
;; Use the big Debian patch set (the thing does not even compile out of
|
|
|
|
|
;; the box.)
|
|
|
|
|
(inputs `(("patch" ,(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
"http://ftp.de.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz")
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0p93lsqx23v5fv4hpbrydmfvw1ha2rgqpn2zqbs2jhxkzhjc030p"))))))
|
|
|
|
|
(native-inputs `(("gettext" ,g:gettext)))
|
|
|
|
|
|
|
|
|
|
(synopsis "Tools for controlling the network subsystem in Linux")
|
|
|
|
|
(description
|
|
|
|
|
"This package includes the important tools for controlling the network
|
|
|
|
|
subsystem of the Linux kernel. This includes arp, hostname, ifconfig,
|
|
|
|
|
netstat, rarp and route. Additionally, this package contains utilities
|
|
|
|
|
relating to particular network hardware types (plipconfig, slattach) and
|
|
|
|
|
advanced aspects of IP configuration (iptunnel, ipmaddr).")
|
|
|
|
|
(license gpl2+)))
|
2013-10-05 16:47:12 +02:00
|
|
|
|
|
|
|
|
|
(define-public libcap
|
|
|
|
|
(package
|
|
|
|
|
(name "libcap")
|
|
|
|
|
(version "2.22")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
|
|
|
|
|
;; Tarballs used to be available from
|
|
|
|
|
;; <https://www.kernel.org/pub/linux/libs/security/linux-privs/>
|
|
|
|
|
;; but they never came back after kernel.org was compromised.
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://debian/pool/main/libc/libcap2/libcap2_"
|
|
|
|
|
version ".orig.tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"07vjhkznm82p8dm4w6j8mmg7h5c70lp5s9bwwfdmgwpbixfydjp1"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments '(#:phases (alist-delete 'configure %standard-phases)
|
|
|
|
|
#:tests? #f ; no 'check' target
|
|
|
|
|
#:make-flags (list "lib=lib"
|
|
|
|
|
(string-append "prefix="
|
|
|
|
|
(assoc-ref %outputs "out"))
|
|
|
|
|
"RAISE_SETFCAP=no")))
|
|
|
|
|
(native-inputs `(("perl" ,perl)))
|
|
|
|
|
(inputs `(("attr" ,attr)))
|
|
|
|
|
(home-page "https://sites.google.com/site/fullycapable/")
|
|
|
|
|
(synopsis "Library for working with POSIX capabilities")
|
|
|
|
|
(description
|
|
|
|
|
"libcap2 provides a programming interface to POSIX capabilities on
|
|
|
|
|
Linux-based operating systems.")
|
|
|
|
|
|
|
|
|
|
;; License is BSD-3 or GPLv2, at the user's choice.
|
|
|
|
|
(license gpl2)))
|