1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages admin)
23 #:use-module (guix licenses)
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix git-download)
27 #:use-module (guix build-system cmake)
28 #:use-module (guix build-system gnu)
29 #:use-module (guix build-system trivial)
30 #:use-module (gnu packages)
31 #:use-module (gnu packages base)
32 #:use-module (gnu packages ncurses)
33 #:use-module (gnu packages readline)
34 #:use-module (gnu packages linux)
35 #:use-module (gnu packages guile)
36 #:use-module (gnu packages gettext)
37 #:use-module (gnu packages perl)
38 #:use-module (gnu packages tcl)
39 #:use-module ((gnu packages compression) #:prefix c:)
40 #:use-module ((gnu packages openssl) #:prefix o:)
41 #:use-module (gnu packages bison)
42 #:use-module (gnu packages flex)
43 #:use-module (gnu packages glib)
44 #:use-module (gnu packages pkg-config)
45 #:use-module (gnu packages popt)
46 #:use-module (gnu packages texinfo)
47 #:use-module (gnu packages groff)
48 #:use-module (gnu packages pciutils)
49 #:use-module (gnu packages libusb)
50 #:use-module (gnu packages libftdi)
51 #:use-module (gnu packages image)
52 #:use-module (gnu packages xorg))
60 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/dmd-"
64 "10fl4k96f17gqx2fv8iw9c61ld26gsk4bbrlfqckdmiimz1k175z"))))
65 (build-system gnu-build-system)
67 '(#:configure-flags '("--localstatedir=/var")))
68 (native-inputs `(("pkg-config" ,pkg-config)))
69 (inputs `(("guile" ,guile-2.0)))
70 (synopsis "Daemon managing daemons")
72 "GNU DMD is a daemon-managing daemon, meaning that it manages the
73 execution of system services, replacing similar functionality found in
74 typical init systems. It provides dependency-handling through a convenient
75 interface and is based on GNU Guile.")
77 (home-page "http://www.gnu.org/software/dmd/")))
87 "http://projects.gw-computing.net/attachments/download/79/dfc-"
91 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
92 (build-system cmake-build-system)
93 (arguments '(#:tests? #f)) ; There are no tests.
94 (native-inputs `(("gettext" ,gnu-gettext)))
95 (home-page "http://projects.gw-computing.net/projects/dfc")
96 (synopsis "Display file system space usage using graphs and colors")
98 "dfc (df color) is a modern version of df. It uses colors, draws pretty
99 graphs and can export its output to different formats.")
108 (uri (string-append "http://hisham.hm/htop/releases/"
109 version "/htop-" version ".tar.gz"))
112 "0a8qbpsifzjwc4f45xfwm48jhm59g6q5hlib4bf7z13mgy95fp05"))))
113 (build-system gnu-build-system)
115 `(("ncurses" ,ncurses)))
116 (home-page "http://htop.sourceforge.net/")
117 (synopsis "Interactive process viewer")
119 "This is htop, an interactive process viewer. It is a text-mode
120 application (for console or X terminals) and requires ncurses.")
130 (uri (string-append "mirror://gnu/pies/pies-"
134 "18w0dbg77i56cx1bwa789w0qi3l4xkkbascxcv2b6gbm0zmjg1g6"))))
135 (build-system gnu-build-system)
136 (home-page "http://www.gnu.org/software/pies/")
137 (synopsis "Program invocation and execution supervisor")
139 "GNU pies is a program that supervises the invocation and execution of
140 other programs. It reads the list of programs to be started from its
141 configuration file, executes them, and then monitors their status,
142 re-executing them as necessary.")
145 (define-public inetutils
151 (uri (string-append "mirror://gnu/inetutils/inetutils-"
155 "04wrm0v7l4890mmbaawd6wjwdv08bkglgqhpz0q4dkb0l50fl8q4"))))
156 (build-system gnu-build-system)
157 (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
158 ;; which is currently missing.
160 (inputs `(("ncurses" ,ncurses)
161 ("readline" ,readline))) ; for 'ftp'
162 (home-page "http://www.gnu.org/software/inetutils/")
163 (synopsis "Basic networking utilities")
165 "Inetutils is a collection of common network programs, such as an ftp
166 client and server, a telnet client and server, and an rsh client and server.")
169 (define-public shadow
174 ;; Shadow has no real upstream, and not even tarballs.
175 ;; See <https://lists.gnu.org/archive/html/guix-devel/2014-03/msg00233.html>.
178 (url "git://git.debian.org/git/pkg-shadow/shadow")
179 (commit (string-append "upstream/" version))))
182 "1xx85d83kmacmjzqbamgydcjkwsqd5fi1s2wgwx6myq5wa39qx0n"))))
183 (build-system gnu-build-system)
185 '(;; Assume System V `setpgrp (void)', which is the default on GNU
186 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
187 #:configure-flags '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
189 #:phases (alist-cons-before
190 'build 'set-nscd-file-name
191 (lambda* (#:key inputs #:allow-other-keys)
192 ;; Use the right file name for nscd.
193 (let ((libc (assoc-ref inputs "libc")))
194 (substitute* "lib/nscd.c"
196 (string-append libc "/sbin/nscd")))))
198 'install 'remove-groups
199 (lambda* (#:key outputs #:allow-other-keys)
200 ;; Remove `groups', which is already provided by Coreutils.
201 (let* ((out (assoc-ref outputs "out"))
202 (bin (string-append out "/bin"))
203 (man (string-append out "/share/man/man1")))
204 (delete-file (string-append bin "/groups"))
205 (for-each delete-file (find-files man "^groups\\."))
209 (inputs (if (string-suffix? "-linux"
210 (or (%current-target-system)
212 `(("linux-pam" ,linux-pam))
214 (home-page "http://pkg-shadow.alioth.debian.org/")
215 (synopsis "Authentication-related tools such as passwd, su, and login")
217 "Shadow provides a number of authentication-related tools, including:
218 login, passwd, su, groupadd, and useradd.")
220 ;; The `vipw' program is GPLv2+.
221 ;; libmisc/salt.c is public domain.
224 (define-public mingetty
230 (uri (string-append "mirror://sourceforge/mingetty/mingetty-"
234 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
235 (build-system gnu-build-system)
237 `(#:phases (alist-replace 'configure
238 (lambda* (#:key inputs outputs
240 (let* ((out (assoc-ref outputs "out"))
242 out "/share/man/man8"))
243 (sbin (string-append out "/sbin"))
244 (shadow (assoc-ref inputs "shadow"))
245 (login (string-append shadow
247 (substitute* "Makefile"
249 (string-append "SBINDIR = " out
252 (string-append "MANDIR = " out
253 "/share/man/man8\n")))
255 ;; Pick the right 'login' by default.
256 (substitute* "mingetty.c"
258 (string-append "\"" login "\"")))
263 #:tests? #f)) ; no tests
264 (inputs `(("shadow" ,shadow)))
266 (home-page "http://sourceforge.net/projects/mingetty")
267 (synopsis "Getty for the text console")
269 "Small console getty that is started on the Linux text console,
270 asks for a login name and then transfers over to 'login'. It is extended to
271 allow automatic login and starting any app.")
274 (define-public net-base
281 "mirror://debian/pool/main/n/netbase/netbase_"
285 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
286 (build-system trivial-build-system)
288 `(#:modules ((guix build utils))
290 (use-modules (guix build utils)
293 (let* ((source (assoc-ref %build-inputs "source"))
294 (tar (assoc-ref %build-inputs "tar"))
295 (xz (assoc-ref %build-inputs "xz"))
296 (output (assoc-ref %outputs "out"))
297 (etc (string-append output "/etc")))
298 (setenv "PATH" (string-append xz "/bin"))
299 (system* (string-append tar "/bin/tar") "xvf"
301 (chdir ,(string-append "netbase-" version))
304 '("etc-services" "etc-protocols" "etc-rpc")
305 (map (cut string-append etc "/" <>)
306 '("services" "protocols" "rpc")))
308 (native-inputs `(("tar" ,tar)
310 (synopsis "IANA protocol, port, and RPC number assignments")
312 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
313 files, which contain information about the IANA-assigned port, protocol, and
315 (home-page "http://packages.debian.org/sid/netbase")
318 (define-public netcat
324 (uri (string-append "mirror://sourceforge/netcat/netcat-"
328 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
329 (build-system gnu-build-system)
332 ;; By default, man and info pages are put in PREFIX/{man,info},
333 ;; but we want them in PREFIX/share/{man,info}.
334 (let ((out (assoc-ref %outputs "out")))
335 (list (string-append "--mandir=" out "/share/man")
336 (string-append "--infodir=" out "/share/info")))))
337 (home-page "http://netcat.sourceforge.net")
338 (synopsis "Read and write data over TCP/IP")
340 "Netcat is a featured networking utility which reads and writes data
341 across network connections, using the TCP/IP protocol. It is designed to be a
342 reliable \"back-end\" tool that can be used directly or easily driven by other
343 programs and scripts. At the same time, it is a feature-rich network debugging
344 and exploration tool, since it can create almost any kind of connection you
345 would need and has several interesting built-in capabilities.")
354 (uri (string-append "mirror://gnu/alive/alive-"
358 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
359 (build-system gnu-build-system)
360 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
361 (inputs `(("guile" ,guile-2.0)
362 ("inetutils" ,inetutils)))
363 (home-page "http://www.gnu.org/software/alive/")
364 (synopsis "Autologin and keep-alive daemon")
366 "GNU Alive sends periodic pings to a server, generally to keep a
370 (define-public isc-dhcp
376 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
377 version "/dhcp-" version ".tar.gz"))
380 "12mydvj6x3zcl3gla06bywfkkrgg03g66fijs94mwb7kbiym3dm7"))))
381 (build-system gnu-build-system)
383 '(#:phases (alist-cons-after
384 'configure 'post-configure
385 (lambda* (#:key outputs #:allow-other-keys)
386 ;; Point to the right client script, which will be
387 ;; installed in a later phase.
388 (substitute* "includes/dhcpd.h"
389 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
390 (let ((out (assoc-ref outputs "out")))
391 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
392 out "/libexec/dhclient-script"
395 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
396 ;; we must patch shebangs in there and make sure the right
398 (with-directory-excursion "bind"
399 (substitute* "Makefile"
401 (let ((sh (which "sh")))
402 (string-append "./configure CONFIG_SHELL="
405 (system* "tar" "xf" "bind.tar.gz")
406 (for-each patch-shebang
407 (find-files "bind-9.9.5" ".*"))
408 (zero? (system* "tar" "cf" "bind.tar.gz"
411 'install 'post-install
412 (lambda* (#:key inputs outputs #:allow-other-keys)
413 ;; Install the dhclient script for GNU/Linux and make sure
414 ;; if finds all the programs it needs.
415 (let* ((out (assoc-ref outputs "out"))
416 (libexec (string-append out "/libexec"))
417 (coreutils (assoc-ref inputs "coreutils"))
418 (net-tools (assoc-ref inputs "net-tools"))
419 (sed (assoc-ref inputs "sed")))
420 (substitute* "client/scripts/linux"
422 (string-append (assoc-ref inputs "iproute")
426 (copy-file "client/scripts/linux"
427 (string-append libexec "/dhclient-script"))
429 (wrap-program (string-append libexec "/dhclient-script")
432 (string-append dir "/bin:"
434 (list net-tools coreutils sed))))))
437 (native-inputs `(("perl" ,perl)))
439 (inputs `(("net-tools" ,net-tools)
442 ;; When cross-compiling, we need the cross Coreutils and sed.
443 ;; Otherwise just use those from %FINAL-INPUTS.
444 ,@(if (%current-target-system)
445 `(("coreutils" ,coreutils)
449 (home-page "http://www.isc.org/products/DHCP/")
450 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
452 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
453 reference implementation of all aspects of DHCP, through a suite of DHCP
454 tools: server, client, and relay agent.")
457 (define-public libpcap
463 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
467 "14wyjywrdi1ikaj6yc9c72m6m2r64z94lb0gm7k1a3q6q5cj3scs"))))
468 (build-system gnu-build-system)
469 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
470 (arguments '(#:tests? #f)) ; no 'check' target
471 (home-page "http://www.tcpdump.org")
472 (synopsis "Network packet capture library")
474 "libpcap is an interface for user-level packet capture. It provides a
475 portable framework for low-level network monitoring. Applications include
476 network statistics collection, security monitoring, network debugging, etc.")
478 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
481 (define-public tcpdump
487 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
491 "15hb7zkzd66nag102qbv100hcnf7frglbkylmr8adwr8f5jkkaql"))))
492 (build-system gnu-build-system)
493 (inputs `(("libpcap" ,libpcap)
494 ("openssl" ,o:openssl)))
495 (native-inputs `(("perl" ,perl))) ; for tests
496 (home-page "http://www.tcpdump.org/")
497 (synopsis "Network packet analyzer")
499 "Tcpdump is a command-line tool to analyze network traffic passing
500 through the network interface controller.")
503 (define-public jnettop
509 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
513 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
514 (build-system gnu-build-system)
516 `(("pkg-config" ,pkg-config)))
520 ("libpcap" ,libpcap)))
521 (home-page "http://jnettop.kubs.info/")
522 (synopsis "Visualize network traffic by bandwidth use")
524 "Jnettop is a traffic visualiser, which captures traffic going
525 through the host it is running from and displays streams sorted
526 by bandwidth they use.")
529 (define-public clusterssh
535 (uri (string-append "mirror://sourceforge/clusterssh/"
536 "clusterssh-" version ".tar.gz"))
539 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
540 (build-system gnu-build-system)
541 (inputs `(("perl" ,perl)))
542 (propagated-inputs `(("xterm" ,xterm)
544 ("perl-x11-protocol" ,perl-x11-protocol)))
548 'install 'set-load-paths
549 (lambda* (#:key inputs outputs #:allow-other-keys)
550 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
552 (let* ((out (assoc-ref outputs "out"))
553 (prog (string-append out "/bin/cssh"))
554 (perl-ver ,(package-version perl))
555 (x11-inc (string-append
556 (assoc-ref inputs "perl-x11-protocol")
557 "/lib/perl5/site_perl/" perl-ver))
558 (tk-inc (string-append
559 (assoc-ref inputs "perl-tk")
560 "/lib/perl5/site_perl/" perl-ver
564 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
566 ;; The clusterssh.sourceforge.net address requires login to view
567 (home-page "http://sourceforge.net/projects/clusterssh/")
568 (synopsis "Secure concurrent multi-server terminal control")
570 "ClusterSSH controls a number of xterm windows via a single graphical
571 console window to allow commands to be interactively run on multiple servers
572 over ssh connections.")
575 (define-public rottlog
581 (uri (string-append "mirror://gnu/rottlog/rottlog-"
585 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
586 (modules '((guix build utils)))
588 '(substitute* "Makefile.in"
589 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
590 ;; Don't try to chown root.
592 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
593 ;; Don't attempt to create /var/lib/rottlog.
595 (build-system gnu-build-system)
597 '(#:configure-flags (list (string-append "ROTT_ETCDIR="
598 (assoc-ref %outputs "out")
600 "--localstatedir=/var")
601 #:phases (alist-cons-after
602 'install 'install-info
604 (zero? (system* "make" "install-info")))
606 (native-inputs `(("texinfo" ,texinfo)
607 ("util-linux" ,util-linux))) ; for 'cal'
608 (home-page "http://www.gnu.org/software/rottlog/")
609 (synopsis "Log rotation and management")
611 "GNU Rot[t]log is a program for managing log files. It is used to
612 automatically rotate out log files when they have reached a given size or
613 according to a given schedule. It can also be used to automatically compress
614 and archive such logs. Rot[t]log will mail reports of its activity to the
615 system administrator.")
625 (list (string-append "http://www.sudo.ws/sudo/dist/sudo-"
627 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
631 "002l6h27pnhb77b65frhazbhknsxvrsnkpi43j7i0qw1lrgi7nkf"))))
632 (build-system gnu-build-system)
634 `(#:configure-flags '("--with-logpath=/var/log/sudo.log")
635 #:phases (alist-cons-before
636 'configure 'pre-configure
638 (substitute* "configure"
639 ;; Refer to the right executables.
640 (("/usr/bin/mv") (which "mv"))
641 (("/usr/bin/sh") (which "sh")))
642 (substitute* (find-files "." "Makefile\\.in")
643 (("-O [[:graph:]]+ -G [[:graph:]]+")
644 ;; Allow installation as non-root.
646 (("^install: (.*)install-sudoers(.*)" _ before after)
647 ;; Don't try to create /etc/sudoers.
648 (string-append "install: " before after "\n"))))
651 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
652 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
656 ("linux-pam" ,linux-pam)
657 ("coreutils" ,coreutils)))
658 (home-page "http://www.sudo.ws/")
659 (synopsis "Run commands as root")
661 "Sudo (su \"do\") allows a system administrator to delegate authority to
662 give certain users (or groups of users) the ability to run some (or all)
663 commands as root or another user while providing an audit trail of the
664 commands and their arguments.")
666 ;; See <http://www.sudo.ws/sudo/license.html>.
669 (define-public wpa-supplicant
671 (name "wpa-supplicant")
676 "http://hostap.epitest.fi/releases/wpa_supplicant-"
681 "1vf8jc4yyksbxf86narvsli3vxfbm8nbnim2mdp66nd6d3yvin70"))))
682 (build-system gnu-build-system)
684 '(#:phases (alist-replace
686 (lambda* (#:key outputs #:allow-other-keys)
687 (chdir "wpa_supplicant")
688 (copy-file "defconfig" ".config")
689 (let ((port (open-file ".config" "al")))
691 CONFIG_DEBUG_SYSLOG=y
693 # TODO: Add a variant of this package with DBus support.
694 #CONFIG_CTRL_IFACE_DBUS=y
695 #CONFIG_CTRL_IFACE_DBUS_NEW=y
696 #CONFIG_CTRL_IFACE_DBUS_INTRO=y
698 CONFIG_DRIVER_NL80211=y
699 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
701 CONFIG_READLINE=y\n" port)
705 #:make-flags (list "CC=gcc"
706 (string-append "BINDIR=" (assoc-ref %outputs "out")
708 (string-append "LIBDIR=" (assoc-ref %outputs "out")
712 `(("readline" ,readline)
714 ;; TODO: Add a variant with DBus support. This significantly increases
715 ;; the size of its closure since DBus depends on libx11.
717 ("openssl" ,o:openssl)))
719 `(("pkg-config" ,pkg-config)))
720 (home-page "http://hostap.epitest.fi/wpa_supplicant/")
721 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
723 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
724 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
725 the client stations. It implements key negotiation with a WPA Authenticator
726 and it controls the roaming and IEEE 802.11 authentication/association of the
729 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
731 ;; In practice, this is linked against Readline, which makes it GPLv3+.
734 (define-public wakelan
741 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
745 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
746 (build-system gnu-build-system)
748 '(#:phases (alist-replace
750 (lambda* (#:key outputs #:allow-other-keys)
751 (let ((out (assoc-ref outputs "out")))
752 (mkdir-p (string-append out "/bin"))
753 (mkdir-p (string-append out "/share/man/man1"))
755 ;; It's an old configure script that doesn't understand
756 ;; the extra options we pass.
757 (setenv "CONFIG_SHELL" (which "bash"))
759 (system* "./configure"
760 (string-append "--prefix=" out)
761 (string-append "--mandir=" out
765 (home-page "http://kernel.org") ; really, no home page
766 (synopsis "Send a wake-on-LAN packet")
768 "WakeLan broadcasts a properly formatted UDP packet across the local area
769 network, which causes enabled computers to power on.")
772 (define-public dmidecode
779 "mirror://savannah/dmidecode/dmidecode-"
783 "122hgaw8mpqdfra159lfl6pyk3837giqx6vq42j64fjnbl2z6gwi"))))
784 (build-system gnu-build-system)
786 '(#:phases (alist-delete 'configure %standard-phases)
787 #:tests? #f ; no 'check' target
788 #:make-flags (list (string-append "prefix="
789 (assoc-ref %outputs "out")))))
790 (home-page "http://www.nongnu.org/dmidecode/")
791 (synopsis "Read hardware information from the BIOS")
793 "Dmidecode reports information about your system's hardware as described
794 in your system BIOS according to the SMBIOS/DMI standard. This typically
795 includes system manufacturer, model name, serial number, BIOS version, asset
796 tag as well as a lot of other details of varying level of interest and
797 reliability depending on the manufacturer. This will often include usage
798 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
799 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
802 (define-public acpica
809 "https://acpica.org/sites/acpica/files/acpica-unix2-"
813 "01vdgrh7dsxrrvg5yd8sxm63cw8210pnsi5qg9g15ac53gn243ac"))))
814 (build-system gnu-build-system)
815 (native-inputs `(("flex" ,flex)
818 '(#:make-flags (list (string-append "PREFIX=" %output)
820 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
821 #:tests? #f ; no 'check' target.
822 #:phases (alist-delete 'configure %standard-phases)))
823 (home-page "http://acpica.org/")
824 (synopsis "Tools for the development and debug of ACPI tables")
826 "The ACPI Component Architecture (ACPICA) project provides an
827 OS-independent reference implementation of the Advanced Configuration and
828 Power Interface Specification (ACPI). ACPICA code contains those portions of
829 ACPI meant to be directly integrated into the host OS as a kernel-resident
830 subsystem, and a small set of tools to assist in developing and debugging ACPI
831 tables. This package contains only the user-space tools needed for ACPI table
832 development, not the kernel implementation of ACPI.")
833 (license gpl2))) ; Dual GPLv2/ACPICA Licence
835 (define-public stress
841 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
842 version ".orig.tar.gz"))
845 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
846 (build-system gnu-build-system)
847 (home-page "http://packages.debian.org/wheezy/stress")
848 (synopsis "Impose load on and stress test a computer system")
850 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
851 or disk stress on a POSIX-compliant operating system and reports any errors it
854 Stress is not a benchmark. It is a tool used by system administrators to
855 evaluate how well their systems will scale, by kernel programmers to evaluate
856 perceived performance characteristics, and by systems programmers to expose
857 the classes of bugs which only or more frequently manifest themselves when the
858 system is under heavy load.")
867 (uri (string-append "mirror://sourceforge/detox/detox-"
871 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
872 (build-system gnu-build-system)
873 ;; Both flex and popt are used in this case for their runtime libraries
874 ;; (libfl and libpopt).
879 `(#:configure-flags `(,(string-append "--with-popt="
880 (assoc-ref %build-inputs "popt")))
881 #:tests? #f)) ;no 'check' target
882 (home-page "http://detox.sourceforge.net")
883 (synopsis "Clean up filenames")
885 "Detox is a program that renames files to make them easier to work with
886 under Unix and related operating systems. Spaces and various other unsafe
887 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
888 characters can be replaced as well, as can UTF-8 characters.")
891 (define-public testdisk
897 (uri (string-append "http://www.cgsecurity.org/testdisk-"
901 "0v1jap83f5h99zv01v3qmqm160d36n4ysi0gyq7xzb3mqgmw75x5"))))
902 (build-system gnu-build-system)
905 ("util-linux" ,util-linux)
906 ("openssl" ,o:openssl)
908 ("e2fsprogs" ,e2fsprogs)
910 ("ncurses" ,ncurses)))
911 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
912 (synopsis "Data recovery tool")
914 "TestDisk is a program for data recovery, primarily designed to help
915 recover lost partitions and/or make non-booting disks bootable again.")
918 (define-public direvent
924 (uri (string-append "mirror://gnu/direvent/direvent-"
928 "1i14131y6m8wvirz6piw4zxz2q1kbpl0lniv5kl55rx4k372dg8z"))
929 (modules '((guix build utils)))
930 (snippet '(substitute* "tests/testsuite"
931 (("#![[:blank:]]?/bin/sh")
933 (build-system gnu-build-system)
935 '(#:phases (alist-cons-before
936 'build 'patch-/bin/sh
937 (lambda* (#:key inputs #:allow-other-keys)
938 ;; Use the right shell when executing the watcher.
939 (let ((bash (assoc-ref inputs "bash")))
940 (substitute* "src/direvent.c"
942 (string-append "\"" bash "/bin/sh\"")))))
944 (home-page "http://www.gnu.org/software/direvent/")
945 (synopsis "Daemon to monitor directories for events such as file removal")
947 "A daemon that monitors directories for events, such as creating,
948 deleting or modifying files. It can monitor different sets of directories for
949 different events. When an event is detected, direvent calls a specified
950 external program with information about the event, such as the location
951 within the file system where it occurred. Thus, \"direvent\" provides an
952 easy way to react immediately if given files undergo changes, for example, to
953 track changes in important system configuration files.")