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>
6 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
7 ;;; Copyright © 2015 Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
9 ;;; This file is part of GNU Guix.
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
12 ;;; under the terms of the GNU General Public License as published by
13 ;;; the Free Software Foundation; either version 3 of the License, or (at
14 ;;; your option) any later version.
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
17 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;;; GNU General Public License for more details.
21 ;;; You should have received a copy of the GNU General Public License
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24 (define-module (gnu packages admin)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (guix packages)
27 #:use-module (guix utils)
28 #:use-module (guix download)
29 #:use-module (guix git-download)
30 #:use-module (guix build-system cmake)
31 #:use-module (guix build-system gnu)
32 #:use-module (guix build-system trivial)
33 #:use-module (gnu packages)
34 #:use-module (gnu packages base)
35 #:use-module (gnu packages ncurses)
36 #:use-module (gnu packages readline)
37 #:use-module (gnu packages linux)
38 #:use-module (gnu packages guile)
39 #:use-module (gnu packages gettext)
40 #:use-module (gnu packages perl)
41 #:use-module (gnu packages tcl)
42 #:use-module (gnu packages compression)
43 #:use-module ((gnu packages openssl) #:prefix o:)
44 #:use-module (gnu packages gnutls)
45 #:use-module (gnu packages gnupg)
46 #:use-module (gnu packages bison)
47 #:use-module (gnu packages flex)
48 #:use-module (gnu packages glib)
49 #:use-module (gnu packages pkg-config)
50 #:use-module (gnu packages popt)
51 #:use-module (gnu packages texinfo)
52 #:use-module (gnu packages groff)
53 #:use-module (gnu packages pciutils)
54 #:use-module (gnu packages libusb)
55 #:use-module (gnu packages libftdi)
56 #:use-module (gnu packages image)
57 #:use-module (gnu packages xorg)
58 #:use-module (gnu packages python))
66 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/dmd-"
70 "10fl4k96f17gqx2fv8iw9c61ld26gsk4bbrlfqckdmiimz1k175z"))))
71 (build-system gnu-build-system)
73 '(#:configure-flags '("--localstatedir=/var")))
74 (native-inputs `(("pkg-config" ,pkg-config)))
75 (inputs `(("guile" ,guile-2.0)))
76 (synopsis "Daemon managing daemons")
78 "GNU DMD is a daemon-managing daemon, meaning that it manages the
79 execution of system services, replacing similar functionality found in
80 typical init systems. It provides dependency-handling through a convenient
81 interface and is based on GNU Guile.")
82 (license license:gpl3+)
83 (home-page "http://www.gnu.org/software/dmd/")))
93 "http://projects.gw-computing.net/attachments/download/79/dfc-"
97 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
98 (build-system cmake-build-system)
99 (arguments '(#:tests? #f)) ; There are no tests.
100 (native-inputs `(("gettext" ,gnu-gettext)))
101 (home-page "http://projects.gw-computing.net/projects/dfc")
102 (synopsis "Display file system space usage using graphs and colors")
104 "dfc (df color) is a modern version of df. It uses colors, draws pretty
105 graphs and can export its output to different formats.")
106 (license license:bsd-3)))
114 (uri (string-append "http://hisham.hm/htop/releases/"
115 version "/htop-" version ".tar.gz"))
118 "0a8qbpsifzjwc4f45xfwm48jhm59g6q5hlib4bf7z13mgy95fp05"))))
119 (build-system gnu-build-system)
121 `(("ncurses" ,ncurses)))
122 (home-page "http://htop.sourceforge.net/")
123 (synopsis "Interactive process viewer")
125 "This is htop, an interactive process viewer. It is a text-mode
126 application (for console or X terminals) and requires ncurses.")
127 (license license:gpl2)))
136 (uri (string-append "mirror://gnu/pies/pies-"
140 "18w0dbg77i56cx1bwa789w0qi3l4xkkbascxcv2b6gbm0zmjg1g6"))))
141 (build-system gnu-build-system)
142 (home-page "http://www.gnu.org/software/pies/")
143 (synopsis "Program invocation and execution supervisor")
145 "GNU pies is a program that supervises the invocation and execution of
146 other programs. It reads the list of programs to be started from its
147 configuration file, executes them, and then monitors their status,
148 re-executing them as necessary.")
149 (license license:gpl3+)))
151 (define-public inetutils
157 (uri (string-append "mirror://gnu/inetutils/inetutils-"
161 "04wrm0v7l4890mmbaawd6wjwdv08bkglgqhpz0q4dkb0l50fl8q4"))))
162 (build-system gnu-build-system)
163 (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
164 ;; which is currently missing.
166 (inputs `(("ncurses" ,ncurses)
167 ("readline" ,readline))) ; for 'ftp'
168 (home-page "http://www.gnu.org/software/inetutils/")
169 (synopsis "Basic networking utilities")
171 "Inetutils is a collection of common network programs, such as an ftp
172 client and server, a telnet client and server, and an rsh client and server.")
173 (license license:gpl3+)))
175 (define-public shadow
180 ;; Shadow has no real upstream, and not even tarballs.
181 ;; See <https://lists.gnu.org/archive/html/guix-devel/2014-03/msg00233.html>.
184 (url "git://git.debian.org/git/pkg-shadow/shadow")
185 (commit (string-append "upstream/" version))))
188 "1xx85d83kmacmjzqbamgydcjkwsqd5fi1s2wgwx6myq5wa39qx0n"))))
189 (build-system gnu-build-system)
191 '(;; Assume System V `setpgrp (void)', which is the default on GNU
192 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
193 #:configure-flags '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
195 #:phases (alist-cons-before
196 'build 'set-nscd-file-name
197 (lambda* (#:key inputs #:allow-other-keys)
198 ;; Use the right file name for nscd.
199 (let ((libc (assoc-ref inputs "libc")))
200 (substitute* "lib/nscd.c"
202 (string-append libc "/sbin/nscd")))))
204 'install 'remove-groups
205 (lambda* (#:key outputs #:allow-other-keys)
206 ;; Remove `groups', which is already provided by Coreutils.
207 (let* ((out (assoc-ref outputs "out"))
208 (bin (string-append out "/bin"))
209 (man (string-append out "/share/man/man1")))
210 (delete-file (string-append bin "/groups"))
211 (for-each delete-file (find-files man "^groups\\."))
215 (inputs (if (string-suffix? "-linux"
216 (or (%current-target-system)
218 `(("linux-pam" ,linux-pam))
220 (home-page "http://pkg-shadow.alioth.debian.org/")
221 (synopsis "Authentication-related tools such as passwd, su, and login")
223 "Shadow provides a number of authentication-related tools, including:
224 login, passwd, su, groupadd, and useradd.")
226 ;; The `vipw' program is GPLv2+.
227 ;; libmisc/salt.c is public domain.
228 (license license:bsd-3)))
230 (define-public mingetty
236 (uri (string-append "mirror://sourceforge/mingetty/mingetty-"
240 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
241 (build-system gnu-build-system)
243 `(#:phases (alist-replace 'configure
244 (lambda* (#:key inputs outputs
246 (let* ((out (assoc-ref outputs "out"))
248 out "/share/man/man8"))
249 (sbin (string-append out "/sbin"))
250 (shadow (assoc-ref inputs "shadow"))
251 (login (string-append shadow
253 (substitute* "Makefile"
255 (string-append "SBINDIR = " out
258 (string-append "MANDIR = " out
259 "/share/man/man8\n")))
261 ;; Pick the right 'login' by default.
262 (substitute* "mingetty.c"
264 (string-append "\"" login "\"")))
269 #:tests? #f)) ; no tests
270 (inputs `(("shadow" ,shadow)))
272 (home-page "http://sourceforge.net/projects/mingetty")
273 (synopsis "Getty for the text console")
275 "Small console getty that is started on the Linux text console,
276 asks for a login name and then transfers over to 'login'. It is extended to
277 allow automatic login and starting any app.")
278 (license license:gpl2+)))
280 (define-public net-base
287 "mirror://debian/pool/main/n/netbase/netbase_"
291 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
292 (build-system trivial-build-system)
294 `(#:modules ((guix build utils))
296 (use-modules (guix build utils)
299 (let* ((source (assoc-ref %build-inputs "source"))
300 (tar (assoc-ref %build-inputs "tar"))
301 (xz (assoc-ref %build-inputs "xz"))
302 (output (assoc-ref %outputs "out"))
303 (etc (string-append output "/etc")))
304 (setenv "PATH" (string-append xz "/bin"))
305 (system* (string-append tar "/bin/tar") "xvf"
307 (chdir ,(string-append "netbase-" version))
310 '("etc-services" "etc-protocols" "etc-rpc")
311 (map (cut string-append etc "/" <>)
312 '("services" "protocols" "rpc")))
314 (native-inputs `(("tar" ,tar)
316 (synopsis "IANA protocol, port, and RPC number assignments")
318 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
319 files, which contain information about the IANA-assigned port, protocol, and
321 (home-page "http://packages.debian.org/sid/netbase")
322 (license license:gpl2)))
324 (define-public netcat
330 (uri (string-append "mirror://sourceforge/netcat/netcat-"
334 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
335 (build-system gnu-build-system)
338 ;; By default, man and info pages are put in PREFIX/{man,info},
339 ;; but we want them in PREFIX/share/{man,info}.
340 (let ((out (assoc-ref %outputs "out")))
341 (list (string-append "--mandir=" out "/share/man")
342 (string-append "--infodir=" out "/share/info")))))
343 (home-page "http://netcat.sourceforge.net")
344 (synopsis "Read and write data over TCP/IP")
346 "Netcat is a featured networking utility which reads and writes data
347 across network connections, using the TCP/IP protocol. It is designed to be a
348 reliable \"back-end\" tool that can be used directly or easily driven by other
349 programs and scripts. At the same time, it is a feature-rich network debugging
350 and exploration tool, since it can create almost any kind of connection you
351 would need and has several interesting built-in capabilities.")
352 (license license:gpl2+)))
360 (uri (string-append "mirror://gnu/alive/alive-"
364 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
365 (build-system gnu-build-system)
366 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
367 (inputs `(("guile" ,guile-2.0)
368 ("inetutils" ,inetutils)))
369 (home-page "http://www.gnu.org/software/alive/")
370 (synopsis "Autologin and keep-alive daemon")
372 "GNU Alive sends periodic pings to a server, generally to keep a
374 (license license:gpl3+)))
376 (define-public isc-dhcp
382 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
383 version "/dhcp-" version ".tar.gz"))
386 "1w4s7sni1m9223ya8m2a64lr62845c6xlraprjf8zfx6lylbqv16"))))
387 (build-system gnu-build-system)
389 '(#:phases (alist-cons-after
390 'configure 'post-configure
391 (lambda* (#:key outputs #:allow-other-keys)
392 ;; Point to the right client script, which will be
393 ;; installed in a later phase.
394 (substitute* "includes/dhcpd.h"
395 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
396 (let ((out (assoc-ref outputs "out")))
397 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
398 out "/libexec/dhclient-script"
401 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
402 ;; we must patch shebangs in there and make sure the right
404 (with-directory-excursion "bind"
405 (substitute* "Makefile"
407 (let ((sh (which "sh")))
408 (string-append "./configure CONFIG_SHELL="
411 (system* "tar" "xf" "bind.tar.gz")
412 (for-each patch-shebang
413 (find-files "bind-9.9.5-P1" ".*"))
414 (zero? (system* "tar" "cf" "bind.tar.gz"
417 'install 'post-install
418 (lambda* (#:key inputs outputs #:allow-other-keys)
419 ;; Install the dhclient script for GNU/Linux and make sure
420 ;; if finds all the programs it needs.
421 (let* ((out (assoc-ref outputs "out"))
422 (libexec (string-append out "/libexec"))
423 (coreutils (assoc-ref inputs "coreutils"))
424 (inetutils (assoc-ref inputs "inetutils"))
425 (net-tools (assoc-ref inputs "net-tools"))
426 (sed (assoc-ref inputs "sed")))
427 (substitute* "client/scripts/linux"
429 (string-append (assoc-ref inputs "iproute")
433 (copy-file "client/scripts/linux"
434 (string-append libexec "/dhclient-script"))
437 (string-append libexec "/dhclient-script")
440 (string-append dir "/bin:"
442 (list inetutils net-tools coreutils sed))))))
445 (native-inputs `(("perl" ,perl)))
447 (inputs `(("inetutils" ,inetutils)
448 ("net-tools" ,net-tools)
451 ;; When cross-compiling, we need the cross Coreutils and sed.
452 ;; Otherwise just use those from %FINAL-INPUTS.
453 ,@(if (%current-target-system)
454 `(("coreutils" ,coreutils)
458 (home-page "http://www.isc.org/products/DHCP/")
459 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
461 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
462 reference implementation of all aspects of DHCP, through a suite of DHCP
463 tools: server, client, and relay agent.")
464 (license license:isc)))
466 (define-public libpcap
472 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
476 "14wyjywrdi1ikaj6yc9c72m6m2r64z94lb0gm7k1a3q6q5cj3scs"))))
477 (build-system gnu-build-system)
478 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
479 (arguments '(#:tests? #f)) ; no 'check' target
480 (home-page "http://www.tcpdump.org")
481 (synopsis "Network packet capture library")
483 "libpcap is an interface for user-level packet capture. It provides a
484 portable framework for low-level network monitoring. Applications include
485 network statistics collection, security monitoring, network debugging, etc.")
487 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
488 (license license:bsd-3)))
490 (define-public tcpdump
496 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
500 "15hb7zkzd66nag102qbv100hcnf7frglbkylmr8adwr8f5jkkaql"))))
501 (build-system gnu-build-system)
502 (inputs `(("libpcap" ,libpcap)
503 ("openssl" ,o:openssl)))
504 (native-inputs `(("perl" ,perl))) ; for tests
505 (home-page "http://www.tcpdump.org/")
506 (synopsis "Network packet analyzer")
508 "Tcpdump is a command-line tool to analyze network traffic passing
509 through the network interface controller.")
510 (license license:bsd-3)))
512 (define-public jnettop
518 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
522 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
523 (build-system gnu-build-system)
525 `(("pkg-config" ,pkg-config)))
529 ("libpcap" ,libpcap)))
530 (home-page "http://jnettop.kubs.info/")
531 (synopsis "Visualize network traffic by bandwidth use")
533 "Jnettop is a traffic visualiser, which captures traffic going
534 through the host it is running from and displays streams sorted
535 by bandwidth they use.")
536 (license license:gpl2+)))
538 (define-public clusterssh
544 (uri (string-append "mirror://sourceforge/clusterssh/"
545 "clusterssh-" version ".tar.gz"))
548 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
549 (build-system gnu-build-system)
550 (inputs `(("perl" ,perl)))
551 (propagated-inputs `(("xterm" ,xterm)
553 ("perl-x11-protocol" ,perl-x11-protocol)))
557 'install 'set-load-paths
558 (lambda* (#:key inputs outputs #:allow-other-keys)
559 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
561 (let* ((out (assoc-ref outputs "out"))
562 (prog (string-append out "/bin/cssh"))
563 (perl-ver ,(package-version perl))
564 (x11-inc (string-append
565 (assoc-ref inputs "perl-x11-protocol")
566 "/lib/perl5/site_perl/" perl-ver))
567 (tk-inc (string-append
568 (assoc-ref inputs "perl-tk")
569 "/lib/perl5/site_perl/" perl-ver
573 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
575 ;; The clusterssh.sourceforge.net address requires login to view
576 (home-page "http://sourceforge.net/projects/clusterssh/")
577 (synopsis "Secure concurrent multi-server terminal control")
579 "ClusterSSH controls a number of xterm windows via a single graphical
580 console window to allow commands to be interactively run on multiple servers
581 over ssh connections.")
582 (license license:gpl2+)))
584 (define-public rottlog
590 (uri (string-append "mirror://gnu/rottlog/rottlog-"
594 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
595 (modules '((guix build utils)))
597 '(substitute* "Makefile.in"
598 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
599 ;; Don't try to chown root.
601 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
602 ;; Don't attempt to create /var/lib/rottlog.
604 (build-system gnu-build-system)
606 '(#:configure-flags (list (string-append "ROTT_ETCDIR="
607 (assoc-ref %outputs "out")
609 "--localstatedir=/var")
610 #:phases (alist-cons-after
611 'install 'install-info
613 (zero? (system* "make" "install-info")))
615 (native-inputs `(("texinfo" ,texinfo)
616 ("util-linux" ,util-linux))) ; for 'cal'
617 (home-page "http://www.gnu.org/software/rottlog/")
618 (synopsis "Log rotation and management")
620 "GNU Rot[t]log is a program for managing log files. It is used to
621 automatically rotate out log files when they have reached a given size or
622 according to a given schedule. It can also be used to automatically compress
623 and archive such logs. Rot[t]log will mail reports of its activity to the
624 system administrator.")
625 (license license:gpl3+)))
634 (list (string-append "http://www.sudo.ws/sudo/dist/sudo-"
636 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
640 "002l6h27pnhb77b65frhazbhknsxvrsnkpi43j7i0qw1lrgi7nkf"))))
641 (build-system gnu-build-system)
643 `(#:configure-flags '("--with-logpath=/var/log/sudo.log"
644 "--with-rundir=/run/sudo"
645 "--with-vardir=/var/db/sudo"
646 "--with-iologdir=/var/log/sudo-io")
647 #:phases (alist-cons-before
648 'configure 'pre-configure
650 (substitute* "configure"
651 ;; Refer to the right executables.
652 (("/usr/bin/mv") (which "mv"))
653 (("/usr/bin/sh") (which "sh")))
654 (substitute* (find-files "." "Makefile\\.in")
655 (("-O [[:graph:]]+ -G [[:graph:]]+")
656 ;; Allow installation as non-root.
658 (("^install: (.*)install-sudoers(.*)" _ before after)
659 ;; Don't try to create /etc/sudoers.
660 (string-append "install: " before after "\n"))
661 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
662 ;; Don't try to create /run/sudo.
664 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
665 ;; Don't try to create /var/db/sudo.
669 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
670 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
674 ("linux-pam" ,linux-pam)
675 ("coreutils" ,coreutils)))
676 (home-page "http://www.sudo.ws/")
677 (synopsis "Run commands as root")
679 "Sudo (su \"do\") allows a system administrator to delegate authority to
680 give certain users (or groups of users) the ability to run some (or all)
681 commands as root or another user while providing an audit trail of the
682 commands and their arguments.")
684 ;; See <http://www.sudo.ws/sudo/license.html>.
685 (license license:x11)))
687 (define-public wpa-supplicant-light
689 (name "wpa-supplicant-light")
694 "http://w1.fi/releases/wpa_supplicant-"
699 "0skvkl6c10ls4s48b2wmf47h9j1y40nlzxnzn8hyaw2j0prmpapa"))))
700 (build-system gnu-build-system)
702 '(#:phases (alist-replace
704 (lambda* (#:key outputs #:allow-other-keys)
705 (chdir "wpa_supplicant")
706 (copy-file "defconfig" ".config")
707 (let ((port (open-file ".config" "al")))
709 CONFIG_DEBUG_SYSLOG=y
711 # Choose GnuTLS (the default is OpenSSL.)
714 CONFIG_DRIVER_NL80211=y
715 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
717 CONFIG_READLINE=y\n" port)
721 'install 'install-man-pages
722 (lambda* (#:key outputs #:allow-other-keys)
723 (let* ((out (assoc-ref outputs "out"))
724 (man (string-append out "/share/man"))
725 (man5 (string-append man "/man5"))
726 (man8 (string-append man "/man8")))
727 (define (copy-man-page target)
730 (string-append target "/"
733 (mkdir-p man5) (mkdir man8)
734 (for-each (copy-man-page man5)
735 (find-files "doc/docbook" "\\.5"))
736 (for-each (copy-man-page man8)
737 (find-files "doc/docbook" "\\.8"))
741 #:make-flags (list "CC=gcc"
742 (string-append "BINDIR=" (assoc-ref %outputs "out")
744 (string-append "LIBDIR=" (assoc-ref %outputs "out")
748 `(("readline" ,readline)
751 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
753 `(("pkg-config" ,pkg-config)))
754 (home-page "http://w1.fi/wpa_supplicant/")
755 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
757 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
758 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
759 the client stations. It implements key negotiation with a WPA Authenticator
760 and it controls the roaming and IEEE 802.11 authentication/association of the
763 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
765 ;; In practice, this is linked against Readline, which makes it GPLv3+.
766 (license license:bsd-3)))
768 (define-public wpa-supplicant
769 (package (inherit wpa-supplicant-light)
770 (name "wpa-supplicant")
771 (inputs `(("dbus" ,dbus)
772 ,@(package-inputs wpa-supplicant-light)))
774 (substitute-keyword-arguments (package-arguments wpa-supplicant-light)
777 'configure 'configure-for-dbus
779 (let ((port (open-file ".config" "al")))
781 CONFIG_CTRL_IFACE_DBUS=y
782 CONFIG_CTRL_IFACE_DBUS_NEW=y
783 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
788 (define-public wakelan
795 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
799 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
800 (build-system gnu-build-system)
802 '(#:phases (alist-replace
804 (lambda* (#:key outputs #:allow-other-keys)
805 (let ((out (assoc-ref outputs "out")))
806 (mkdir-p (string-append out "/bin"))
807 (mkdir-p (string-append out "/share/man/man1"))
809 ;; It's an old configure script that doesn't understand
810 ;; the extra options we pass.
811 (setenv "CONFIG_SHELL" (which "bash"))
813 (system* "./configure"
814 (string-append "--prefix=" out)
815 (string-append "--mandir=" out
819 (home-page "http://kernel.org") ; really, no home page
820 (synopsis "Send a wake-on-LAN packet")
822 "WakeLan broadcasts a properly formatted UDP packet across the local area
823 network, which causes enabled computers to power on.")
824 (license license:gpl2+)))
826 (define-public dmidecode
833 "mirror://savannah/dmidecode/dmidecode-"
837 "122hgaw8mpqdfra159lfl6pyk3837giqx6vq42j64fjnbl2z6gwi"))))
838 (build-system gnu-build-system)
840 '(#:phases (alist-delete 'configure %standard-phases)
841 #:tests? #f ; no 'check' target
842 #:make-flags (list (string-append "prefix="
843 (assoc-ref %outputs "out")))))
844 (home-page "http://www.nongnu.org/dmidecode/")
845 (synopsis "Read hardware information from the BIOS")
847 "Dmidecode reports information about your system's hardware as described
848 in your system BIOS according to the SMBIOS/DMI standard. This typically
849 includes system manufacturer, model name, serial number, BIOS version, asset
850 tag as well as a lot of other details of varying level of interest and
851 reliability depending on the manufacturer. This will often include usage
852 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
853 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
854 (license license:gpl2+)))
856 (define-public acpica
863 "https://acpica.org/sites/acpica/files/acpica-unix2-"
867 "01vdgrh7dsxrrvg5yd8sxm63cw8210pnsi5qg9g15ac53gn243ac"))))
868 (build-system gnu-build-system)
869 (native-inputs `(("flex" ,flex)
872 '(#:make-flags (list (string-append "PREFIX=" %output)
874 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
875 #:tests? #f ; no 'check' target.
876 #:phases (alist-delete 'configure %standard-phases)))
877 (home-page "http://acpica.org/")
878 (synopsis "Tools for the development and debug of ACPI tables")
880 "The ACPI Component Architecture (ACPICA) project provides an
881 OS-independent reference implementation of the Advanced Configuration and
882 Power Interface Specification (ACPI). ACPICA code contains those portions of
883 ACPI meant to be directly integrated into the host OS as a kernel-resident
884 subsystem, and a small set of tools to assist in developing and debugging ACPI
885 tables. This package contains only the user-space tools needed for ACPI table
886 development, not the kernel implementation of ACPI.")
887 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
889 (define-public stress
895 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
896 version ".orig.tar.gz"))
899 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
900 (build-system gnu-build-system)
901 (home-page "http://packages.debian.org/wheezy/stress")
902 (synopsis "Impose load on and stress test a computer system")
904 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
905 or disk stress on a POSIX-compliant operating system and reports any errors it
908 Stress is not a benchmark. It is a tool used by system administrators to
909 evaluate how well their systems will scale, by kernel programmers to evaluate
910 perceived performance characteristics, and by systems programmers to expose
911 the classes of bugs which only or more frequently manifest themselves when the
912 system is under heavy load.")
913 (license license:gpl2+)))
921 (uri (string-append "mirror://sourceforge/detox/detox-"
925 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
926 (build-system gnu-build-system)
927 ;; Both flex and popt are used in this case for their runtime libraries
928 ;; (libfl and libpopt).
933 `(#:configure-flags `(,(string-append "--with-popt="
934 (assoc-ref %build-inputs "popt")))
935 #:tests? #f)) ;no 'check' target
936 (home-page "http://detox.sourceforge.net")
937 (synopsis "Clean up filenames")
939 "Detox is a program that renames files to make them easier to work with
940 under Unix and related operating systems. Spaces and various other unsafe
941 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
942 characters can be replaced as well, as can UTF-8 characters.")
943 (license license:bsd-3)))
945 (define-public testdisk
951 (uri (string-append "http://www.cgsecurity.org/testdisk-"
955 "0v1jap83f5h99zv01v3qmqm160d36n4ysi0gyq7xzb3mqgmw75x5"))))
956 (build-system gnu-build-system)
959 ("util-linux" ,util-linux)
960 ("openssl" ,o:openssl)
962 ("e2fsprogs" ,e2fsprogs)
964 ("ncurses" ,ncurses)))
965 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
966 (synopsis "Data recovery tool")
968 "TestDisk is a program for data recovery, primarily designed to help
969 recover lost partitions and/or make non-booting disks bootable again.")
970 (license license:gpl2+)))
979 "http://mama.indstate.edu/users/ice/tree/src/tree-"
982 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
983 (build-system gnu-build-system)
985 '(#:phases (alist-delete 'configure %standard-phases)
986 #:tests? #f ; no check target
987 #:make-flags (let ((out (assoc-ref %outputs "out")))
988 (list (string-append "prefix=" out)))))
989 (synopsis "Recursively list the contents of a directory")
991 "Tree is a recursive directory listing command that produces a depth
992 indented listing of files, which is colorized ala dircolors if the LS_COLORS
993 environment variable is set and output is to tty.")
994 (home-page "http://mama.indstate.edu/users/ice/tree/")
995 (license license:gpl2+)))
997 (define-public direvent
1003 (uri (string-append "mirror://gnu/direvent/direvent-"
1007 "1i14131y6m8wvirz6piw4zxz2q1kbpl0lniv5kl55rx4k372dg8z"))
1008 (modules '((guix build utils)))
1009 (snippet '(substitute* "tests/testsuite"
1010 (("#![[:blank:]]?/bin/sh")
1012 (build-system gnu-build-system)
1014 '(#:phases (alist-cons-before
1015 'build 'patch-/bin/sh
1016 (lambda* (#:key inputs #:allow-other-keys)
1017 ;; Use the right shell when executing the watcher.
1018 (let ((bash (assoc-ref inputs "bash")))
1019 (substitute* "src/direvent.c"
1021 (string-append "\"" bash "/bin/sh\"")))))
1023 (home-page "http://www.gnu.org/software/direvent/")
1024 (synopsis "Daemon to monitor directories for events such as file removal")
1026 "A daemon that monitors directories for events, such as creating,
1027 deleting or modifying files. It can monitor different sets of directories for
1028 different events. When an event is detected, direvent calls a specified
1029 external program with information about the event, such as the location
1030 within the file system where it occurred. Thus, \"direvent\" provides an
1031 easy way to react immediately if given files undergo changes, for example, to
1032 track changes in important system configuration files.")
1033 (license license:gpl3+)))
1035 (define-public libcap-ng
1042 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1046 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1047 (build-system gnu-build-system)
1048 (inputs `(("python" ,python)))
1049 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1050 (synopsis "Library for more easily working with POSIX capabilities")
1052 "The libcap-ng library is intended to make programming with POSIX
1053 capabilities easier than the traditional libcap library. It includes
1054 utilities that can analyse all currently running applications and print out
1055 any capabilities and whether or not it has an open ended bounding set. The
1056 included utilities are designed to let admins and developers spot apps from
1057 various ways that may be running with too much privilege.")
1058 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1059 (license (list license:lgpl2.1+ license:gpl2+))))
1061 (define-public smartmontools
1063 (name "smartmontools")
1068 "mirror://sourceforge/smartmontools/smartmontools/"
1069 version "/smartmontools-" version ".tar.gz"))
1072 "06gy71jh2d3gcfmlbbrsqw7215knkfq59q3j6qdxfrar39fhcxx7"))))
1073 (build-system gnu-build-system)
1074 (inputs `(("libcap-ng" ,libcap-ng)))
1075 (home-page "http://www.smartmontools.org/")
1076 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1078 "The smartmontools package contains utility programs to control and
1079 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1080 Technology System (S.M.A.R.T.) built into most modern ATA and SCSI harddisks.
1081 In many cases, these utilities will provide advanced warning of disk
1082 degradation and failure.")
1083 (license license:gpl2+)))
1085 (define-public fdupes
1093 "https://github.com/adrianlopezroche/fdupes/archive/fdupes-"
1097 "11j96vxl9vg3jsnxqxskrv3gad6dh7hz2zpyc8n31xzyxka1c7kn"))))
1098 (build-system gnu-build-system)
1100 '(#:phases (alist-delete 'configure %standard-phases)
1101 #:tests? #f ; no 'check' target
1102 #:make-flags (list (string-append "PREFIX="
1103 (assoc-ref %outputs "out")))))
1104 (home-page "https://github.com/adrianlopezroche/fdupes")
1105 (synopsis "Identify duplicate files")
1107 "fdupes is a program for identifying duplicate files residing within
1108 specified directories.")
1109 (license license:expat)))