1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015 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 gnutls)
42 #:use-module (gnu packages gnupg)
43 #:use-module (gnu packages bison)
44 #:use-module (gnu packages flex)
45 #:use-module (gnu packages glib)
46 #:use-module (gnu packages pkg-config)
47 #:use-module (gnu packages popt)
48 #:use-module (gnu packages texinfo)
49 #:use-module (gnu packages groff)
50 #:use-module (gnu packages pciutils)
51 #:use-module (gnu packages libusb)
52 #:use-module (gnu packages libftdi)
53 #:use-module (gnu packages image)
54 #:use-module (gnu packages xorg))
62 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/dmd-"
66 "10fl4k96f17gqx2fv8iw9c61ld26gsk4bbrlfqckdmiimz1k175z"))))
67 (build-system gnu-build-system)
69 '(#:configure-flags '("--localstatedir=/var")))
70 (native-inputs `(("pkg-config" ,pkg-config)))
71 (inputs `(("guile" ,guile-2.0)))
72 (synopsis "Daemon managing daemons")
74 "GNU DMD is a daemon-managing daemon, meaning that it manages the
75 execution of system services, replacing similar functionality found in
76 typical init systems. It provides dependency-handling through a convenient
77 interface and is based on GNU Guile.")
79 (home-page "http://www.gnu.org/software/dmd/")))
89 "http://projects.gw-computing.net/attachments/download/79/dfc-"
93 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
94 (build-system cmake-build-system)
95 (arguments '(#:tests? #f)) ; There are no tests.
96 (native-inputs `(("gettext" ,gnu-gettext)))
97 (home-page "http://projects.gw-computing.net/projects/dfc")
98 (synopsis "Display file system space usage using graphs and colors")
100 "dfc (df color) is a modern version of df. It uses colors, draws pretty
101 graphs and can export its output to different formats.")
110 (uri (string-append "http://hisham.hm/htop/releases/"
111 version "/htop-" version ".tar.gz"))
114 "0a8qbpsifzjwc4f45xfwm48jhm59g6q5hlib4bf7z13mgy95fp05"))))
115 (build-system gnu-build-system)
117 `(("ncurses" ,ncurses)))
118 (home-page "http://htop.sourceforge.net/")
119 (synopsis "Interactive process viewer")
121 "This is htop, an interactive process viewer. It is a text-mode
122 application (for console or X terminals) and requires ncurses.")
132 (uri (string-append "mirror://gnu/pies/pies-"
136 "18w0dbg77i56cx1bwa789w0qi3l4xkkbascxcv2b6gbm0zmjg1g6"))))
137 (build-system gnu-build-system)
138 (home-page "http://www.gnu.org/software/pies/")
139 (synopsis "Program invocation and execution supervisor")
141 "GNU pies is a program that supervises the invocation and execution of
142 other programs. It reads the list of programs to be started from its
143 configuration file, executes them, and then monitors their status,
144 re-executing them as necessary.")
147 (define-public inetutils
153 (uri (string-append "mirror://gnu/inetutils/inetutils-"
157 "04wrm0v7l4890mmbaawd6wjwdv08bkglgqhpz0q4dkb0l50fl8q4"))))
158 (build-system gnu-build-system)
159 (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
160 ;; which is currently missing.
162 (inputs `(("ncurses" ,ncurses)
163 ("readline" ,readline))) ; for 'ftp'
164 (home-page "http://www.gnu.org/software/inetutils/")
165 (synopsis "Basic networking utilities")
167 "Inetutils is a collection of common network programs, such as an ftp
168 client and server, a telnet client and server, and an rsh client and server.")
171 (define-public shadow
176 ;; Shadow has no real upstream, and not even tarballs.
177 ;; See <https://lists.gnu.org/archive/html/guix-devel/2014-03/msg00233.html>.
180 (url "git://git.debian.org/git/pkg-shadow/shadow")
181 (commit (string-append "upstream/" version))))
184 "1xx85d83kmacmjzqbamgydcjkwsqd5fi1s2wgwx6myq5wa39qx0n"))))
185 (build-system gnu-build-system)
187 '(;; Assume System V `setpgrp (void)', which is the default on GNU
188 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
189 #:configure-flags '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
191 #:phases (alist-cons-before
192 'build 'set-nscd-file-name
193 (lambda* (#:key inputs #:allow-other-keys)
194 ;; Use the right file name for nscd.
195 (let ((libc (assoc-ref inputs "libc")))
196 (substitute* "lib/nscd.c"
198 (string-append libc "/sbin/nscd")))))
200 'install 'remove-groups
201 (lambda* (#:key outputs #:allow-other-keys)
202 ;; Remove `groups', which is already provided by Coreutils.
203 (let* ((out (assoc-ref outputs "out"))
204 (bin (string-append out "/bin"))
205 (man (string-append out "/share/man/man1")))
206 (delete-file (string-append bin "/groups"))
207 (for-each delete-file (find-files man "^groups\\."))
211 (inputs (if (string-suffix? "-linux"
212 (or (%current-target-system)
214 `(("linux-pam" ,linux-pam))
216 (home-page "http://pkg-shadow.alioth.debian.org/")
217 (synopsis "Authentication-related tools such as passwd, su, and login")
219 "Shadow provides a number of authentication-related tools, including:
220 login, passwd, su, groupadd, and useradd.")
222 ;; The `vipw' program is GPLv2+.
223 ;; libmisc/salt.c is public domain.
226 (define-public mingetty
232 (uri (string-append "mirror://sourceforge/mingetty/mingetty-"
236 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
237 (build-system gnu-build-system)
239 `(#:phases (alist-replace 'configure
240 (lambda* (#:key inputs outputs
242 (let* ((out (assoc-ref outputs "out"))
244 out "/share/man/man8"))
245 (sbin (string-append out "/sbin"))
246 (shadow (assoc-ref inputs "shadow"))
247 (login (string-append shadow
249 (substitute* "Makefile"
251 (string-append "SBINDIR = " out
254 (string-append "MANDIR = " out
255 "/share/man/man8\n")))
257 ;; Pick the right 'login' by default.
258 (substitute* "mingetty.c"
260 (string-append "\"" login "\"")))
265 #:tests? #f)) ; no tests
266 (inputs `(("shadow" ,shadow)))
268 (home-page "http://sourceforge.net/projects/mingetty")
269 (synopsis "Getty for the text console")
271 "Small console getty that is started on the Linux text console,
272 asks for a login name and then transfers over to 'login'. It is extended to
273 allow automatic login and starting any app.")
276 (define-public net-base
283 "mirror://debian/pool/main/n/netbase/netbase_"
287 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
288 (build-system trivial-build-system)
290 `(#:modules ((guix build utils))
292 (use-modules (guix build utils)
295 (let* ((source (assoc-ref %build-inputs "source"))
296 (tar (assoc-ref %build-inputs "tar"))
297 (xz (assoc-ref %build-inputs "xz"))
298 (output (assoc-ref %outputs "out"))
299 (etc (string-append output "/etc")))
300 (setenv "PATH" (string-append xz "/bin"))
301 (system* (string-append tar "/bin/tar") "xvf"
303 (chdir ,(string-append "netbase-" version))
306 '("etc-services" "etc-protocols" "etc-rpc")
307 (map (cut string-append etc "/" <>)
308 '("services" "protocols" "rpc")))
310 (native-inputs `(("tar" ,tar)
312 (synopsis "IANA protocol, port, and RPC number assignments")
314 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
315 files, which contain information about the IANA-assigned port, protocol, and
317 (home-page "http://packages.debian.org/sid/netbase")
320 (define-public netcat
326 (uri (string-append "mirror://sourceforge/netcat/netcat-"
330 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
331 (build-system gnu-build-system)
334 ;; By default, man and info pages are put in PREFIX/{man,info},
335 ;; but we want them in PREFIX/share/{man,info}.
336 (let ((out (assoc-ref %outputs "out")))
337 (list (string-append "--mandir=" out "/share/man")
338 (string-append "--infodir=" out "/share/info")))))
339 (home-page "http://netcat.sourceforge.net")
340 (synopsis "Read and write data over TCP/IP")
342 "Netcat is a featured networking utility which reads and writes data
343 across network connections, using the TCP/IP protocol. It is designed to be a
344 reliable \"back-end\" tool that can be used directly or easily driven by other
345 programs and scripts. At the same time, it is a feature-rich network debugging
346 and exploration tool, since it can create almost any kind of connection you
347 would need and has several interesting built-in capabilities.")
356 (uri (string-append "mirror://gnu/alive/alive-"
360 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
361 (build-system gnu-build-system)
362 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
363 (inputs `(("guile" ,guile-2.0)
364 ("inetutils" ,inetutils)))
365 (home-page "http://www.gnu.org/software/alive/")
366 (synopsis "Autologin and keep-alive daemon")
368 "GNU Alive sends periodic pings to a server, generally to keep a
372 (define-public isc-dhcp
378 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
379 version "/dhcp-" version ".tar.gz"))
382 "12mydvj6x3zcl3gla06bywfkkrgg03g66fijs94mwb7kbiym3dm7"))))
383 (build-system gnu-build-system)
385 '(#:phases (alist-cons-after
386 'configure 'post-configure
387 (lambda* (#:key outputs #:allow-other-keys)
388 ;; Point to the right client script, which will be
389 ;; installed in a later phase.
390 (substitute* "includes/dhcpd.h"
391 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
392 (let ((out (assoc-ref outputs "out")))
393 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
394 out "/libexec/dhclient-script"
397 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
398 ;; we must patch shebangs in there and make sure the right
400 (with-directory-excursion "bind"
401 (substitute* "Makefile"
403 (let ((sh (which "sh")))
404 (string-append "./configure CONFIG_SHELL="
407 (system* "tar" "xf" "bind.tar.gz")
408 (for-each patch-shebang
409 (find-files "bind-9.9.5" ".*"))
410 (zero? (system* "tar" "cf" "bind.tar.gz"
413 'install 'post-install
414 (lambda* (#:key inputs outputs #:allow-other-keys)
415 ;; Install the dhclient script for GNU/Linux and make sure
416 ;; if finds all the programs it needs.
417 (let* ((out (assoc-ref outputs "out"))
418 (libexec (string-append out "/libexec"))
419 (coreutils (assoc-ref inputs "coreutils"))
420 (net-tools (assoc-ref inputs "net-tools"))
421 (sed (assoc-ref inputs "sed")))
422 (substitute* "client/scripts/linux"
424 (string-append (assoc-ref inputs "iproute")
428 (copy-file "client/scripts/linux"
429 (string-append libexec "/dhclient-script"))
431 (wrap-program (string-append libexec "/dhclient-script")
434 (string-append dir "/bin:"
436 (list net-tools coreutils sed))))))
439 (native-inputs `(("perl" ,perl)))
441 (inputs `(("net-tools" ,net-tools)
444 ;; When cross-compiling, we need the cross Coreutils and sed.
445 ;; Otherwise just use those from %FINAL-INPUTS.
446 ,@(if (%current-target-system)
447 `(("coreutils" ,coreutils)
451 (home-page "http://www.isc.org/products/DHCP/")
452 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
454 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
455 reference implementation of all aspects of DHCP, through a suite of DHCP
456 tools: server, client, and relay agent.")
459 (define-public libpcap
465 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
469 "14wyjywrdi1ikaj6yc9c72m6m2r64z94lb0gm7k1a3q6q5cj3scs"))))
470 (build-system gnu-build-system)
471 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
472 (arguments '(#:tests? #f)) ; no 'check' target
473 (home-page "http://www.tcpdump.org")
474 (synopsis "Network packet capture library")
476 "libpcap is an interface for user-level packet capture. It provides a
477 portable framework for low-level network monitoring. Applications include
478 network statistics collection, security monitoring, network debugging, etc.")
480 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
483 (define-public tcpdump
489 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
493 "15hb7zkzd66nag102qbv100hcnf7frglbkylmr8adwr8f5jkkaql"))))
494 (build-system gnu-build-system)
495 (inputs `(("libpcap" ,libpcap)
496 ("openssl" ,o:openssl)))
497 (native-inputs `(("perl" ,perl))) ; for tests
498 (home-page "http://www.tcpdump.org/")
499 (synopsis "Network packet analyzer")
501 "Tcpdump is a command-line tool to analyze network traffic passing
502 through the network interface controller.")
505 (define-public jnettop
511 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
515 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
516 (build-system gnu-build-system)
518 `(("pkg-config" ,pkg-config)))
522 ("libpcap" ,libpcap)))
523 (home-page "http://jnettop.kubs.info/")
524 (synopsis "Visualize network traffic by bandwidth use")
526 "Jnettop is a traffic visualiser, which captures traffic going
527 through the host it is running from and displays streams sorted
528 by bandwidth they use.")
531 (define-public clusterssh
537 (uri (string-append "mirror://sourceforge/clusterssh/"
538 "clusterssh-" version ".tar.gz"))
541 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
542 (build-system gnu-build-system)
543 (inputs `(("perl" ,perl)))
544 (propagated-inputs `(("xterm" ,xterm)
546 ("perl-x11-protocol" ,perl-x11-protocol)))
550 'install 'set-load-paths
551 (lambda* (#:key inputs outputs #:allow-other-keys)
552 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
554 (let* ((out (assoc-ref outputs "out"))
555 (prog (string-append out "/bin/cssh"))
556 (perl-ver ,(package-version perl))
557 (x11-inc (string-append
558 (assoc-ref inputs "perl-x11-protocol")
559 "/lib/perl5/site_perl/" perl-ver))
560 (tk-inc (string-append
561 (assoc-ref inputs "perl-tk")
562 "/lib/perl5/site_perl/" perl-ver
566 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
568 ;; The clusterssh.sourceforge.net address requires login to view
569 (home-page "http://sourceforge.net/projects/clusterssh/")
570 (synopsis "Secure concurrent multi-server terminal control")
572 "ClusterSSH controls a number of xterm windows via a single graphical
573 console window to allow commands to be interactively run on multiple servers
574 over ssh connections.")
577 (define-public rottlog
583 (uri (string-append "mirror://gnu/rottlog/rottlog-"
587 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
588 (modules '((guix build utils)))
590 '(substitute* "Makefile.in"
591 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
592 ;; Don't try to chown root.
594 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
595 ;; Don't attempt to create /var/lib/rottlog.
597 (build-system gnu-build-system)
599 '(#:configure-flags (list (string-append "ROTT_ETCDIR="
600 (assoc-ref %outputs "out")
602 "--localstatedir=/var")
603 #:phases (alist-cons-after
604 'install 'install-info
606 (zero? (system* "make" "install-info")))
608 (native-inputs `(("texinfo" ,texinfo)
609 ("util-linux" ,util-linux))) ; for 'cal'
610 (home-page "http://www.gnu.org/software/rottlog/")
611 (synopsis "Log rotation and management")
613 "GNU Rot[t]log is a program for managing log files. It is used to
614 automatically rotate out log files when they have reached a given size or
615 according to a given schedule. It can also be used to automatically compress
616 and archive such logs. Rot[t]log will mail reports of its activity to the
617 system administrator.")
627 (list (string-append "http://www.sudo.ws/sudo/dist/sudo-"
629 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
633 "002l6h27pnhb77b65frhazbhknsxvrsnkpi43j7i0qw1lrgi7nkf"))))
634 (build-system gnu-build-system)
636 `(#:configure-flags '("--with-logpath=/var/log/sudo.log"
637 "--with-rundir=/run/sudo"
638 "--with-vardir=/var/db/sudo"
639 "--with-iologdir=/var/log/sudo-io")
640 #:phases (alist-cons-before
641 'configure 'pre-configure
643 (substitute* "configure"
644 ;; Refer to the right executables.
645 (("/usr/bin/mv") (which "mv"))
646 (("/usr/bin/sh") (which "sh")))
647 (substitute* (find-files "." "Makefile\\.in")
648 (("-O [[:graph:]]+ -G [[:graph:]]+")
649 ;; Allow installation as non-root.
651 (("^install: (.*)install-sudoers(.*)" _ before after)
652 ;; Don't try to create /etc/sudoers.
653 (string-append "install: " before after "\n"))
654 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
655 ;; Don't try to create /run/sudo.
657 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
658 ;; Don't try to create /var/db/sudo.
662 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
663 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
667 ("linux-pam" ,linux-pam)
668 ("coreutils" ,coreutils)))
669 (home-page "http://www.sudo.ws/")
670 (synopsis "Run commands as root")
672 "Sudo (su \"do\") allows a system administrator to delegate authority to
673 give certain users (or groups of users) the ability to run some (or all)
674 commands as root or another user while providing an audit trail of the
675 commands and their arguments.")
677 ;; See <http://www.sudo.ws/sudo/license.html>.
680 (define-public wpa-supplicant
682 (name "wpa-supplicant")
687 "http://w1.fi/releases/wpa_supplicant-"
692 "0skvkl6c10ls4s48b2wmf47h9j1y40nlzxnzn8hyaw2j0prmpapa"))))
693 (build-system gnu-build-system)
695 '(#:phases (alist-replace
697 (lambda* (#:key outputs #:allow-other-keys)
698 (chdir "wpa_supplicant")
699 (copy-file "defconfig" ".config")
700 (let ((port (open-file ".config" "al")))
702 CONFIG_DEBUG_SYSLOG=y
704 # Choose GnuTLS (the default is OpenSSL.)
707 # TODO: Add a variant of this package with DBus support.
708 #CONFIG_CTRL_IFACE_DBUS=y
709 #CONFIG_CTRL_IFACE_DBUS_NEW=y
710 #CONFIG_CTRL_IFACE_DBUS_INTRO=y
712 CONFIG_DRIVER_NL80211=y
713 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
715 CONFIG_READLINE=y\n" port)
719 'install 'install-man-pages
720 (lambda* (#:key outputs #:allow-other-keys)
721 (let* ((out (assoc-ref outputs "out"))
722 (man (string-append out "/share/man"))
723 (man5 (string-append man "/man5"))
724 (man8 (string-append man "/man8")))
725 (define (copy-man-page target)
728 (string-append target "/"
731 (mkdir-p man5) (mkdir man8)
732 (for-each (copy-man-page man5)
733 (find-files "doc/docbook" "\\.5"))
734 (for-each (copy-man-page man8)
735 (find-files "doc/docbook" "\\.8"))
739 #:make-flags (list "CC=gcc"
740 (string-append "BINDIR=" (assoc-ref %outputs "out")
742 (string-append "LIBDIR=" (assoc-ref %outputs "out")
746 `(("readline" ,readline)
748 ;; TODO: Add a variant with DBus support. This significantly increases
749 ;; the size of its closure since DBus depends on libx11.
752 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
754 `(("pkg-config" ,pkg-config)))
755 (home-page "http://w1.fi/wpa_supplicant/")
756 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
758 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
759 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
760 the client stations. It implements key negotiation with a WPA Authenticator
761 and it controls the roaming and IEEE 802.11 authentication/association of the
764 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
766 ;; In practice, this is linked against Readline, which makes it GPLv3+.
769 (define-public wakelan
776 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
780 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
781 (build-system gnu-build-system)
783 '(#:phases (alist-replace
785 (lambda* (#:key outputs #:allow-other-keys)
786 (let ((out (assoc-ref outputs "out")))
787 (mkdir-p (string-append out "/bin"))
788 (mkdir-p (string-append out "/share/man/man1"))
790 ;; It's an old configure script that doesn't understand
791 ;; the extra options we pass.
792 (setenv "CONFIG_SHELL" (which "bash"))
794 (system* "./configure"
795 (string-append "--prefix=" out)
796 (string-append "--mandir=" out
800 (home-page "http://kernel.org") ; really, no home page
801 (synopsis "Send a wake-on-LAN packet")
803 "WakeLan broadcasts a properly formatted UDP packet across the local area
804 network, which causes enabled computers to power on.")
807 (define-public dmidecode
814 "mirror://savannah/dmidecode/dmidecode-"
818 "122hgaw8mpqdfra159lfl6pyk3837giqx6vq42j64fjnbl2z6gwi"))))
819 (build-system gnu-build-system)
821 '(#:phases (alist-delete 'configure %standard-phases)
822 #:tests? #f ; no 'check' target
823 #:make-flags (list (string-append "prefix="
824 (assoc-ref %outputs "out")))))
825 (home-page "http://www.nongnu.org/dmidecode/")
826 (synopsis "Read hardware information from the BIOS")
828 "Dmidecode reports information about your system's hardware as described
829 in your system BIOS according to the SMBIOS/DMI standard. This typically
830 includes system manufacturer, model name, serial number, BIOS version, asset
831 tag as well as a lot of other details of varying level of interest and
832 reliability depending on the manufacturer. This will often include usage
833 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
834 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
837 (define-public acpica
844 "https://acpica.org/sites/acpica/files/acpica-unix2-"
848 "01vdgrh7dsxrrvg5yd8sxm63cw8210pnsi5qg9g15ac53gn243ac"))))
849 (build-system gnu-build-system)
850 (native-inputs `(("flex" ,flex)
853 '(#:make-flags (list (string-append "PREFIX=" %output)
855 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
856 #:tests? #f ; no 'check' target.
857 #:phases (alist-delete 'configure %standard-phases)))
858 (home-page "http://acpica.org/")
859 (synopsis "Tools for the development and debug of ACPI tables")
861 "The ACPI Component Architecture (ACPICA) project provides an
862 OS-independent reference implementation of the Advanced Configuration and
863 Power Interface Specification (ACPI). ACPICA code contains those portions of
864 ACPI meant to be directly integrated into the host OS as a kernel-resident
865 subsystem, and a small set of tools to assist in developing and debugging ACPI
866 tables. This package contains only the user-space tools needed for ACPI table
867 development, not the kernel implementation of ACPI.")
868 (license gpl2))) ; Dual GPLv2/ACPICA Licence
870 (define-public stress
876 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
877 version ".orig.tar.gz"))
880 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
881 (build-system gnu-build-system)
882 (home-page "http://packages.debian.org/wheezy/stress")
883 (synopsis "Impose load on and stress test a computer system")
885 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
886 or disk stress on a POSIX-compliant operating system and reports any errors it
889 Stress is not a benchmark. It is a tool used by system administrators to
890 evaluate how well their systems will scale, by kernel programmers to evaluate
891 perceived performance characteristics, and by systems programmers to expose
892 the classes of bugs which only or more frequently manifest themselves when the
893 system is under heavy load.")
902 (uri (string-append "mirror://sourceforge/detox/detox-"
906 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
907 (build-system gnu-build-system)
908 ;; Both flex and popt are used in this case for their runtime libraries
909 ;; (libfl and libpopt).
914 `(#:configure-flags `(,(string-append "--with-popt="
915 (assoc-ref %build-inputs "popt")))
916 #:tests? #f)) ;no 'check' target
917 (home-page "http://detox.sourceforge.net")
918 (synopsis "Clean up filenames")
920 "Detox is a program that renames files to make them easier to work with
921 under Unix and related operating systems. Spaces and various other unsafe
922 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
923 characters can be replaced as well, as can UTF-8 characters.")
926 (define-public testdisk
932 (uri (string-append "http://www.cgsecurity.org/testdisk-"
936 "0v1jap83f5h99zv01v3qmqm160d36n4ysi0gyq7xzb3mqgmw75x5"))))
937 (build-system gnu-build-system)
940 ("util-linux" ,util-linux)
941 ("openssl" ,o:openssl)
943 ("e2fsprogs" ,e2fsprogs)
945 ("ncurses" ,ncurses)))
946 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
947 (synopsis "Data recovery tool")
949 "TestDisk is a program for data recovery, primarily designed to help
950 recover lost partitions and/or make non-booting disks bootable again.")
953 (define-public direvent
959 (uri (string-append "mirror://gnu/direvent/direvent-"
963 "1i14131y6m8wvirz6piw4zxz2q1kbpl0lniv5kl55rx4k372dg8z"))
964 (modules '((guix build utils)))
965 (snippet '(substitute* "tests/testsuite"
966 (("#![[:blank:]]?/bin/sh")
968 (build-system gnu-build-system)
970 '(#:phases (alist-cons-before
971 'build 'patch-/bin/sh
972 (lambda* (#:key inputs #:allow-other-keys)
973 ;; Use the right shell when executing the watcher.
974 (let ((bash (assoc-ref inputs "bash")))
975 (substitute* "src/direvent.c"
977 (string-append "\"" bash "/bin/sh\"")))))
979 (home-page "http://www.gnu.org/software/direvent/")
980 (synopsis "Daemon to monitor directories for events such as file removal")
982 "A daemon that monitors directories for events, such as creating,
983 deleting or modifying files. It can monitor different sets of directories for
984 different events. When an event is detected, direvent calls a specified
985 external program with information about the event, such as the location
986 within the file system where it occurred. Thus, \"direvent\" provides an
987 easy way to react immediately if given files undergo changes, for example, to
988 track changes in important system configuration files.")