1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2015, 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
7 ;;; Copyright © 2015 Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
8 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
9 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
11 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
13 ;;; Copyright © 2016 Peter Feigl <peter.feigl@nexoid.at>
14 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages admin)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix packages)
34 #:use-module (guix utils)
35 #:use-module (guix download)
36 #:use-module (guix git-download)
37 #:use-module (guix build-system cmake)
38 #:use-module (guix build-system gnu)
39 #:use-module (guix build-system python)
40 #:use-module (guix build-system trivial)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages base)
43 #:use-module (gnu packages cyrus-sasl)
44 #:use-module (gnu packages ncurses)
45 #:use-module (gnu packages readline)
46 #:use-module (gnu packages linux)
47 #:use-module (gnu packages lua)
48 #:use-module (gnu packages guile)
49 #:use-module (gnu packages gettext)
50 #:use-module (gnu packages pcre)
51 #:use-module (gnu packages perl)
52 #:use-module (gnu packages tcl)
53 #:use-module (gnu packages compression)
54 #:use-module (gnu packages tls)
55 #:use-module (gnu packages gnupg)
56 #:use-module (gnu packages bison)
57 #:use-module (gnu packages flex)
58 #:use-module (gnu packages glib)
59 #:use-module (gnu packages openldap)
60 #:use-module (gnu packages mcrypt)
61 #:use-module (gnu packages pkg-config)
62 #:use-module (gnu packages popt)
63 #:use-module (gnu packages python)
64 #:use-module (gnu packages texinfo)
65 #:use-module (gnu packages groff)
66 #:use-module (gnu packages pciutils)
67 #:use-module (gnu packages libusb)
68 #:use-module (gnu packages libftdi)
69 #:use-module (gnu packages image)
70 #:use-module (gnu packages xorg)
71 #:use-module (gnu packages python)
72 #:use-module (gnu packages man)
73 #:use-module (gnu packages autotools))
81 (uri (string-append "mirror://sourceforge/aide/aide/"
82 version "/aide-" version ".tar.gz"))
85 "1vsrc0s62kv1i84skm6k6zy868gayjck268qwj38rpspc8c5qgih"))))
86 (build-system gnu-build-system)
91 `(("libgcrypt" ,libgcrypt)
92 ("libgpg-error" ,libgpg-error)
93 ("libmhash" ,libmhash)
95 (synopsis "File and directory integrity checker")
97 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
98 integrity checker. It creates a database from the regular expression rules
99 that it finds from its configuration files. Once this database is initialized
100 it can be used to verify the integrity of the files. It has several message
101 digest algorithms that are used to check the integrity of files. All of the
102 usual file attributes can be checked for inconsistencies.")
103 (home-page "http://aide.sourceforge.net/")
104 (license license:gpl2+)))
106 (define-public progress
112 (uri (string-append "https://github.com/Xfennec/"
113 name "/archive/v" version ".tar.gz"))
115 (base32 "133iar4vq5vlklydb4cyazjy6slmpbndrws474mg738bd8avc30n"))
116 (file-name (string-append name "-" version ".tar.gz"))))
117 (build-system gnu-build-system)
119 `(("ncurses" ,ncurses)))
121 `(#:tests? #f ; There is no test suite.
122 #:make-flags (list "CC=gcc" "LDFLAGS+=-lncurses"
123 (string-append "PREFIX=" (assoc-ref %outputs "out")))
125 (modify-phases %standard-phases
126 (delete 'configure)))) ; There's no configure phase.
127 (home-page "https://github.com/Xfennec/progress")
128 (synopsis "Program to view the progress of the coreutils commands")
129 (description "A program that looks for coreutils basic commands (cp, mv,
130 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
131 the percentage of copied data. It can also show estimated time and throughput,
132 and provides a \"top-like\" mode (monitoring).")
133 (license license:gpl3+)))
136 ;; Deprecated. Kept around "just in case."
137 (let ((base-version "0.2")
141 (version (string-append base-version "." patch-level))
144 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/dmd-"
145 base-version ".tar.gz"))
148 "10fl4k96f17gqx2fv8iw9c61ld26gsk4bbrlfqckdmiimz1k175z"))
151 ;; This patch augments 'make-fork+exec-constructor' and
152 ;; is used by a bunch of services.
155 "http://git.savannah.gnu.org/cgit/shepherd.git/"
156 "patch?id=d1d0ff30b3ed2b86b0a3c9bc048d2a855f8e31e6"))
159 "1lqymypixfiyb72d6bn24m06ry2q1ljnnv0qrc89pbb4z9azaa4d"))
160 (file-name "dmd-user-group.patch"))))))
161 (build-system gnu-build-system)
163 '(#:configure-flags '("--localstatedir=/var")))
164 (native-inputs `(("pkg-config" ,pkg-config)))
165 (inputs `(("guile" ,guile-2.0)))
166 (synopsis "Daemon managing daemons")
168 "GNU DMD is a daemon-managing daemon, meaning that it manages the
169 execution of system services, replacing similar functionality found in
170 typical init systems. It provides dependency-handling through a convenient
171 interface and is based on GNU Guile.")
172 (license license:gpl3+)
173 (home-page "http://www.gnu.org/software/dmd/"))))
175 (define-public shepherd
181 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/shepherd-"
185 "0f3yi3n4sl9myiay95yhv2a9an338qddfjrbv7da753ip66dkfz6"))))
186 (build-system gnu-build-system)
188 '(#:configure-flags '("--localstatedir=/var")))
189 (native-inputs `(("pkg-config" ,pkg-config)))
190 (inputs `(("guile" ,guile-2.0)))
191 (synopsis "System service manager")
193 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
194 the execution of system services, replacing similar functionality found in
195 typical init systems. It provides dependency-handling through a convenient
196 interface and is based on GNU Guile.")
197 (license license:gpl3+)
198 (home-page "http://www.gnu.org/software/shepherd/")))
208 "http://projects.gw-computing.net/attachments/download/79/dfc-"
212 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
213 (build-system cmake-build-system)
214 (arguments '(#:tests? #f)) ; There are no tests.
215 (native-inputs `(("gettext" ,gnu-gettext)))
216 (home-page "http://projects.gw-computing.net/projects/dfc")
217 (synopsis "Display file system space usage using graphs and colors")
219 "dfc (df color) is a modern version of df. It uses colors, draws pretty
220 graphs and can export its output to different formats.")
221 (license license:bsd-3)))
229 (uri (string-append "http://hisham.hm/htop/releases/"
230 version "/htop-" version ".tar.gz"))
233 "0rjn9ybqx5sav7z4gn18f1q6k23nmqyb6yydfgghzdznz9nn447l"))))
234 (build-system gnu-build-system)
236 `(("ncurses" ,ncurses)))
237 (home-page "http://htop.sourceforge.net/")
238 (synopsis "Interactive process viewer")
240 "This is htop, an interactive process viewer. It is a text-mode
241 application (for console or X terminals) and requires ncurses.")
242 (license license:gpl2)))
251 (uri (string-append "mirror://gnu/pies/pies-"
255 "18w0dbg77i56cx1bwa789w0qi3l4xkkbascxcv2b6gbm0zmjg1g6"))))
256 (build-system gnu-build-system)
257 (home-page "http://www.gnu.org/software/pies/")
258 (synopsis "Program invocation and execution supervisor")
260 "GNU pies is a program that supervises the invocation and execution of
261 other programs. It reads the list of programs to be started from its
262 configuration file, executes them, and then monitors their status,
263 re-executing them as necessary.")
264 (license license:gpl3+)))
266 (define-public inetutils
272 (uri (string-append "mirror://gnu/inetutils/inetutils-"
276 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
277 (build-system gnu-build-system)
278 (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
279 ;; which is currently missing.
281 (inputs `(("ncurses" ,ncurses)
282 ("readline" ,readline))) ; for 'ftp'
283 (home-page "http://www.gnu.org/software/inetutils/")
284 (synopsis "Basic networking utilities")
286 "Inetutils is a collection of common network programs, such as an ftp
287 client and server, a telnet client and server, and an rsh client and server.")
288 (license license:gpl3+)))
290 (define-public shadow
297 "http://pkg-shadow.alioth.debian.org/releases/"
298 name "-" version ".tar.xz"))
301 "0h9x1zdbq0pqmygmc1x459jraiqw4gqz8849v268crk78z8r621v"))))
302 (build-system gnu-build-system)
304 '(;; Assume System V `setpgrp (void)', which is the default on GNU
305 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
306 #:configure-flags '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
308 #:phases (alist-cons-before
309 'build 'set-nscd-file-name
310 (lambda* (#:key inputs #:allow-other-keys)
311 ;; Use the right file name for nscd.
312 (let ((libc (assoc-ref inputs "libc")))
313 (substitute* "lib/nscd.c"
315 (string-append libc "/sbin/nscd")))))
317 'install 'remove-groups
318 (lambda* (#:key outputs #:allow-other-keys)
319 ;; Remove `groups', which is already provided by Coreutils.
320 (let* ((out (assoc-ref outputs "out"))
321 (bin (string-append out "/bin"))
322 (man (string-append out "/share/man")))
323 (delete-file (string-append bin "/groups"))
324 (for-each delete-file (find-files man "^groups\\."))
328 (inputs (if (string-suffix? "-linux"
329 (or (%current-target-system)
331 `(("linux-pam" ,linux-pam))
333 (home-page "http://pkg-shadow.alioth.debian.org/")
334 (synopsis "Authentication-related tools such as passwd, su, and login")
336 "Shadow provides a number of authentication-related tools, including:
337 login, passwd, su, groupadd, and useradd.")
339 ;; The `vipw' program is GPLv2+.
340 ;; libmisc/salt.c is public domain.
341 (license license:bsd-3)))
343 (define-public mingetty
349 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
350 version "/mingetty-" version ".tar.gz"))
353 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
354 (build-system gnu-build-system)
356 `(#:phases (alist-replace 'configure
357 (lambda* (#:key inputs outputs
359 (let* ((out (assoc-ref outputs "out"))
361 out "/share/man/man8"))
362 (sbin (string-append out "/sbin"))
363 (shadow (assoc-ref inputs "shadow"))
364 (login (string-append shadow
366 (substitute* "Makefile"
368 (string-append "SBINDIR = " out
371 (string-append "MANDIR = " out
372 "/share/man/man8\n")))
374 ;; Pick the right 'login' by default.
375 (substitute* "mingetty.c"
377 (string-append "\"" login "\"")))
382 #:tests? #f)) ; no tests
383 (inputs `(("shadow" ,shadow)))
385 (home-page "http://sourceforge.net/projects/mingetty")
386 (synopsis "Getty for the text console")
388 "Small console getty that is started on the Linux text console,
389 asks for a login name and then transfers over to 'login'. It is extended to
390 allow automatic login and starting any app.")
391 (license license:gpl2+)))
393 (define-public net-base
400 "mirror://debian/pool/main/n/netbase/netbase_"
404 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
405 (build-system trivial-build-system)
407 `(#:modules ((guix build utils))
409 (use-modules (guix build utils)
412 (let* ((source (assoc-ref %build-inputs "source"))
413 (tar (assoc-ref %build-inputs "tar"))
414 (xz (assoc-ref %build-inputs "xz"))
415 (output (assoc-ref %outputs "out"))
416 (etc (string-append output "/etc")))
417 (setenv "PATH" (string-append xz "/bin"))
418 (system* (string-append tar "/bin/tar") "xvf"
420 (chdir ,(string-append "netbase-" version))
423 '("etc-services" "etc-protocols" "etc-rpc")
424 (map (cut string-append etc "/" <>)
425 '("services" "protocols" "rpc")))
427 (native-inputs `(("tar" ,tar)
429 (synopsis "IANA protocol, port, and RPC number assignments")
431 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
432 files, which contain information about the IANA-assigned port, protocol, and
434 (home-page "http://packages.debian.org/sid/netbase")
435 (license license:gpl2)))
437 (define-public netcat
443 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
444 "/netcat-" version ".tar.bz2"))
447 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
448 (build-system gnu-build-system)
451 ;; By default, man and info pages are put in PREFIX/{man,info},
452 ;; but we want them in PREFIX/share/{man,info}.
453 (let ((out (assoc-ref %outputs "out")))
454 (list (string-append "--mandir=" out "/share/man")
455 (string-append "--infodir=" out "/share/info")))))
456 (home-page "http://netcat.sourceforge.net")
457 (synopsis "Read and write data over TCP/IP")
459 "Netcat is a featured networking utility which reads and writes data
460 across network connections, using the TCP/IP protocol. It is designed to be a
461 reliable \"back-end\" tool that can be used directly or easily driven by other
462 programs and scripts. At the same time, it is a feature-rich network debugging
463 and exploration tool, since it can create almost any kind of connection you
464 would need and has several interesting built-in capabilities.")
465 (license license:gpl2+)))
473 (uri (string-append "mirror://gnu/alive/alive-"
477 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
478 (build-system gnu-build-system)
479 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
480 (inputs `(("guile" ,guile-2.0)
481 ("inetutils" ,inetutils)))
482 (home-page "http://www.gnu.org/software/alive/")
483 (synopsis "Autologin and keep-alive daemon")
485 "GNU Alive sends periodic pings to a server, generally to keep a
487 (license license:gpl3+)))
489 (define-public isc-dhcp
490 (let* ((bind-major-version "9")
491 (bind-minor-version "9")
492 (bind-patch-version "9")
493 (bind-release-type "") ; for patch release, use "-P"
494 (bind-release-version "") ; for patch release, e.g. "4"
495 (bind-version (string-append bind-major-version
501 bind-release-version)))
507 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
508 version "/dhcp-" version ".tar.gz"))
511 "0zk0imll6bfyp9p4ndn8h6s4ifijnw5bhixswifr5rnk7pp5l4gm"))))
512 (build-system gnu-build-system)
514 `(#:parallel-build? #f
516 (modify-phases %standard-phases
517 (add-after 'unpack 'replace-bundled-bind
518 (lambda* (#:key inputs #:allow-other-keys)
519 (delete-file "bind/bind.tar.gz")
520 (copy-file (assoc-ref inputs "bind-source-tarball")
522 (chmod "bind/bind.tar.gz" #o644)
523 (substitute* "bind/version.tmp"
525 (format #f "MAJORVER=~a\n" ,bind-major-version))
527 (format #f "MINORVER=~a\n" ,bind-minor-version))
529 (format #f "PATCHVER=~a\n" ,bind-patch-version))
531 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
533 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
535 (add-after 'configure 'post-configure
536 (lambda* (#:key outputs #:allow-other-keys)
537 ;; Point to the right client script, which will be
538 ;; installed in a later phase.
539 (substitute* "includes/dhcpd.h"
540 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
541 (let ((out (assoc-ref outputs "out")))
542 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
543 out "/libexec/dhclient-script"
546 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
547 ;; we must patch shebangs in there and make sure the right
549 (with-directory-excursion "bind"
550 (substitute* "Makefile"
552 (let ((sh (which "sh")))
553 (string-append "./configure CONFIG_SHELL="
556 (let ((bind-directory (string-append "bind-" ,bind-version)))
557 (system* "tar" "xf" "bind.tar.gz")
558 (for-each patch-shebang
559 (find-files bind-directory ".*"))
560 (zero? (system* "tar" "cf" "bind.tar.gz"
562 ;; avoid non-determinism in the archive
566 "--group=root:0"))))))
567 (add-after 'install 'post-install
568 (lambda* (#:key inputs outputs #:allow-other-keys)
569 ;; Install the dhclient script for GNU/Linux and make sure
570 ;; if finds all the programs it needs.
571 (let* ((out (assoc-ref outputs "out"))
572 (libexec (string-append out "/libexec"))
573 (coreutils (assoc-ref inputs "coreutils"))
574 (inetutils (assoc-ref inputs "inetutils"))
575 (net-tools (assoc-ref inputs "net-tools"))
576 (sed (assoc-ref inputs "sed")))
577 (substitute* "client/scripts/linux"
579 (string-append (assoc-ref inputs "iproute")
583 (copy-file "client/scripts/linux"
584 (string-append libexec "/dhclient-script"))
587 (string-append libexec "/dhclient-script")
590 (string-append dir "/bin:"
592 (list inetutils net-tools coreutils sed))))))))))
594 (native-inputs `(("perl" ,perl)))
596 (inputs `(("inetutils" ,inetutils)
597 ("net-tools" ,net-tools)
600 ;; XXX isc-dhcp bundles a copy of bind that has security
601 ;; flaws, so we use a newer version.
602 ("bind-source-tarball"
605 (uri (string-append "http://ftp.isc.org/isc/bind9/"
607 "/bind-" bind-version ".tar.gz"))
610 "0w8qqm6p2y6x57j2l0a3278g173wd84dsr4py9z00191f3wra74q"))))
612 ;; When cross-compiling, we need the cross Coreutils and sed.
613 ;; Otherwise just use those from %FINAL-INPUTS.
614 ,@(if (%current-target-system)
615 `(("coreutils" ,coreutils)
619 (home-page "http://www.isc.org/products/DHCP/")
620 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
622 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
623 reference implementation of all aspects of DHCP, through a suite of DHCP
624 tools: server, client, and relay agent.")
625 (license license:isc)
626 (properties '((cpe-name . "dhcp"))))))
628 (define-public libpcap
634 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
638 "1c28ykkizd7jqgzrfkg7ivqjlqs9p6lygp26bsw2i0z8hwhi3lvs"))))
639 (build-system gnu-build-system)
640 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
641 (arguments '(#:configure-flags '("--with-pcap=linux")
642 #:tests? #f)) ; no 'check' target
643 (home-page "http://www.tcpdump.org")
644 (synopsis "Network packet capture library")
646 "libpcap is an interface for user-level packet capture. It provides a
647 portable framework for low-level network monitoring. Applications include
648 network statistics collection, security monitoring, network debugging, etc.")
650 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
651 (license license:bsd-3)))
653 (define-public tcpdump
659 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
663 "1byr8w6grk08fsq0444jmcz9ar89lq9nf4mjq2cny0w9k8k21rbb"))))
664 (build-system gnu-build-system)
665 (inputs `(("libpcap" ,libpcap)
666 ("openssl" ,openssl)))
667 (native-inputs `(("perl" ,perl))) ; for tests
668 (home-page "http://www.tcpdump.org/")
669 (synopsis "Network packet analyzer")
671 "Tcpdump is a command-line tool to analyze network traffic passing
672 through the network interface controller.")
673 (license license:bsd-3)))
675 (define-public jnettop
681 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
685 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
686 (build-system gnu-build-system)
688 `(("pkg-config" ,pkg-config)))
692 ("libpcap" ,libpcap)))
693 (home-page "http://jnettop.kubs.info/")
694 (synopsis "Visualize network traffic by bandwidth use")
696 "Jnettop is a traffic visualiser, which captures traffic going
697 through the host it is running from and displays streams sorted
698 by bandwidth they use.")
699 (license license:gpl2+)))
701 (define-public clusterssh
707 (uri (string-append "mirror://sourceforge/clusterssh/"
708 "1.%20ClusterSSH%20Series%203/" version
709 "/clusterssh-" version ".tar.gz"))
712 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
713 (build-system gnu-build-system)
714 (inputs `(("perl" ,perl)))
715 (propagated-inputs `(("xterm" ,xterm)
717 ("perl-x11-protocol" ,perl-x11-protocol)))
721 'install 'set-load-paths
722 (lambda* (#:key inputs outputs #:allow-other-keys)
723 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
725 (let* ((out (assoc-ref outputs "out"))
726 (prog (string-append out "/bin/cssh"))
727 (perl-ver ,(package-version perl))
728 (x11-inc (string-append
729 (assoc-ref inputs "perl-x11-protocol")
730 "/lib/perl5/site_perl/" perl-ver))
731 (tk-inc (string-append
732 (assoc-ref inputs "perl-tk")
733 "/lib/perl5/site_perl/" perl-ver
737 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
739 ;; The clusterssh.sourceforge.net address requires login to view
740 (home-page "http://sourceforge.net/projects/clusterssh/")
741 (synopsis "Secure concurrent multi-server terminal control")
743 "ClusterSSH controls a number of xterm windows via a single graphical
744 console window to allow commands to be interactively run on multiple servers
745 over ssh connections.")
746 (license license:gpl2+)))
748 (define-public rottlog
754 (uri (string-append "mirror://gnu/rottlog/rottlog-"
758 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
759 (modules '((guix build utils)))
761 '(substitute* "Makefile.in"
762 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
763 ;; Don't try to chown root.
765 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
766 ;; Don't attempt to create /var/lib/rottlog.
768 (build-system gnu-build-system)
770 '(#:configure-flags (list (string-append "ROTT_ETCDIR="
771 (assoc-ref %outputs "out")
773 "--localstatedir=/var")
774 #:phases (alist-cons-after
775 'install 'install-info
777 (zero? (system* "make" "install-info")))
779 (native-inputs `(("texinfo" ,texinfo)
780 ("util-linux" ,util-linux))) ; for 'cal'
781 (home-page "http://www.gnu.org/software/rottlog/")
782 (synopsis "Log rotation and management")
784 "GNU Rot[t]log is a program for managing log files. It is used to
785 automatically rotate out log files when they have reached a given size or
786 according to a given schedule. It can also be used to automatically compress
787 and archive such logs. Rot[t]log will mail reports of its activity to the
788 system administrator.")
789 (license license:gpl3+)))
798 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
800 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
804 "1k2mn65l1kmsxm8wh0gjxy496xhbpiimbpm6yv6kw6snzc3xg466"))))
805 (build-system gnu-build-system)
808 (list "--with-logpath=/var/log/sudo.log"
809 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
810 "--with-vardir=/var/db/sudo"
811 "--with-iologdir=/var/log/sudo-io"
813 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
815 (string-append "CPPFLAGS=-D_PATH_MV='\""
816 (assoc-ref %build-inputs "coreutils")
819 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
822 #:phases (alist-cons-before
823 'configure 'pre-configure
825 (substitute* "src/sudo_usage.h.in"
826 ;; Do not capture 'configure' arguments since we would
827 ;; unduly retain references, and also because the
828 ;; CPPFLAGS above would close the string literal
830 (("@CONFIGURE_ARGS@") "\"\""))
831 (substitute* (find-files "." "Makefile\\.in")
832 (("-o [[:graph:]]+ -g [[:graph:]]+")
833 ;; Allow installation as non-root.
835 (("^install: (.*)install-sudoers(.*)" _ before after)
836 ;; Don't try to create /etc/sudoers.
837 (string-append "install: " before after "\n"))
838 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
839 ;; Don't try to create /run/sudo.
841 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
842 ;; Don't try to create /var/db/sudo.
846 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
847 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
851 ("linux-pam" ,linux-pam)
852 ("coreutils" ,coreutils)))
853 (home-page "https://www.sudo.ws/")
854 (synopsis "Run commands as root")
856 "Sudo (su \"do\") allows a system administrator to delegate authority to
857 give certain users (or groups of users) the ability to run some (or all)
858 commands as root or another user while providing an audit trail of the
859 commands and their arguments.")
861 ;; See <http://www.sudo.ws/sudo/license.html>.
862 (license license:x11)))
864 (define-public wpa-supplicant-minimal
866 (name "wpa-supplicant-minimal")
871 "http://w1.fi/releases/wpa_supplicant-"
876 "05mkp5bx1c3z7h5biddsv0p49gkrq9ksany3anp4wdiv92p5prfc"))
878 (search-patches "wpa-supplicant-CVE-2015-5310.patch"
879 "wpa-supplicant-CVE-2015-5314.patch"
880 "wpa-supplicant-CVE-2015-5315.patch"
881 "wpa-supplicant-CVE-2015-5316.patch"
882 "wpa-supplicant-CVE-2016-4476.patch"
883 "wpa-supplicant-CVE-2016-4477-pt1.patch"
884 "wpa-supplicant-CVE-2016-4477-pt2.patch"
885 "wpa-supplicant-CVE-2016-4477-pt3.patch"
886 "wpa-supplicant-CVE-2016-4477-pt4.patch"))))
887 (build-system gnu-build-system)
889 '(#:phases (alist-replace
891 (lambda* (#:key outputs #:allow-other-keys)
892 (chdir "wpa_supplicant")
893 (copy-file "defconfig" ".config")
894 (let ((port (open-file ".config" "al")))
896 CONFIG_DEBUG_SYSLOG=y
898 # Choose GnuTLS (the default is OpenSSL.)
901 CONFIG_DRIVER_NL80211=y
902 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
904 CONFIG_READLINE=y\n" port)
908 'install 'install-man-pages
909 (lambda* (#:key outputs #:allow-other-keys)
910 (let* ((out (assoc-ref outputs "out"))
911 (man (string-append out "/share/man"))
912 (man5 (string-append man "/man5"))
913 (man8 (string-append man "/man8")))
914 (define (copy-man-page target)
917 (string-append target "/"
920 (mkdir-p man5) (mkdir man8)
921 (for-each (copy-man-page man5)
922 (find-files "doc/docbook" "\\.5"))
923 (for-each (copy-man-page man8)
924 (find-files "doc/docbook" "\\.8"))
928 #:make-flags (list "CC=gcc"
929 (string-append "BINDIR=" (assoc-ref %outputs "out")
931 (string-append "LIBDIR=" (assoc-ref %outputs "out")
935 `(("readline" ,readline)
938 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
940 `(("pkg-config" ,pkg-config)))
941 (home-page "http://w1.fi/wpa_supplicant/")
942 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
944 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
945 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
946 the client stations. It implements key negotiation with a WPA Authenticator
947 and it controls the roaming and IEEE 802.11 authentication/association of the
950 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
952 ;; In practice, this is linked against Readline, which makes it GPLv3+.
953 (license license:bsd-3)))
955 (define-public wpa-supplicant
956 (package (inherit wpa-supplicant-minimal)
957 (name "wpa-supplicant")
958 (inputs `(("dbus" ,dbus)
959 ,@(package-inputs wpa-supplicant-minimal)))
961 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
964 'configure 'configure-for-dbus
966 (let ((port (open-file ".config" "al")))
968 CONFIG_CTRL_IFACE_DBUS=y
969 CONFIG_CTRL_IFACE_DBUS_NEW=y
970 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
974 'install-man-pages 'install-dbus-conf
975 (lambda* (#:key outputs #:allow-other-keys)
976 (let* ((out (assoc-ref outputs "out"))
977 (dir (string-append out "/etc/dbus-1/system.d")))
979 (copy-file "dbus/dbus-wpa_supplicant.conf"
980 (string-append dir "/wpa_supplicant.conf"))))
983 (define-public wakelan
990 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
994 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
995 (build-system gnu-build-system)
997 '(#:phases (alist-replace
999 (lambda* (#:key outputs #:allow-other-keys)
1000 (let ((out (assoc-ref outputs "out")))
1001 (mkdir-p (string-append out "/bin"))
1002 (mkdir-p (string-append out "/share/man/man1"))
1004 ;; It's an old configure script that doesn't understand
1005 ;; the extra options we pass.
1006 (setenv "CONFIG_SHELL" (which "bash"))
1008 (system* "./configure"
1009 (string-append "--prefix=" out)
1010 (string-append "--mandir=" out
1014 (home-page "http://kernel.org") ; really, no home page
1015 (synopsis "Send a wake-on-LAN packet")
1017 "WakeLan broadcasts a properly formatted UDP packet across the local area
1018 network, which causes enabled computers to power on.")
1019 (license license:gpl2+)))
1021 (define-public dmidecode
1028 "mirror://savannah/dmidecode/dmidecode-"
1029 version ".tar.bz2"))
1032 "122hgaw8mpqdfra159lfl6pyk3837giqx6vq42j64fjnbl2z6gwi"))))
1033 (build-system gnu-build-system)
1035 '(#:phases (alist-delete 'configure %standard-phases)
1036 #:tests? #f ; no 'check' target
1037 #:make-flags (list (string-append "prefix="
1038 (assoc-ref %outputs "out")))))
1039 (home-page "http://www.nongnu.org/dmidecode/")
1040 (synopsis "Read hardware information from the BIOS")
1042 "Dmidecode reports information about your system's hardware as described
1043 in your system BIOS according to the SMBIOS/DMI standard. This typically
1044 includes system manufacturer, model name, serial number, BIOS version, asset
1045 tag as well as a lot of other details of varying level of interest and
1046 reliability depending on the manufacturer. This will often include usage
1047 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1048 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1049 (license license:gpl2+)))
1051 (define-public acpica
1054 (version "20150410")
1058 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1062 "0q1fjwkyw9x6gsva6fd0zbn7ly4fx0ha4853f416np9kf2irillw"))))
1063 (build-system gnu-build-system)
1064 (native-inputs `(("flex" ,flex)
1067 '(#:make-flags (list (string-append "PREFIX=" %output)
1069 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1070 #:tests? #f ; no 'check' target.
1071 #:phases (alist-delete 'configure %standard-phases)))
1072 (home-page "http://acpica.org/")
1073 (synopsis "Tools for the development and debug of ACPI tables")
1075 "The ACPI Component Architecture (ACPICA) project provides an
1076 OS-independent reference implementation of the Advanced Configuration and
1077 Power Interface Specification (ACPI). ACPICA code contains those portions of
1078 ACPI meant to be directly integrated into the host OS as a kernel-resident
1079 subsystem, and a small set of tools to assist in developing and debugging ACPI
1080 tables. This package contains only the user-space tools needed for ACPI table
1081 development, not the kernel implementation of ACPI.")
1082 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
1084 (define-public stress
1090 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1091 version ".orig.tar.gz"))
1094 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
1095 (build-system gnu-build-system)
1096 (home-page "http://packages.debian.org/wheezy/stress")
1097 (synopsis "Impose load on and stress test a computer system")
1099 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1100 or disk stress on a POSIX-compliant operating system and reports any errors it
1103 Stress is not a benchmark. It is a tool used by system administrators to
1104 evaluate how well their systems will scale, by kernel programmers to evaluate
1105 perceived performance characteristics, and by systems programmers to expose
1106 the classes of bugs which only or more frequently manifest themselves when the
1107 system is under heavy load.")
1108 (license license:gpl2+)))
1110 (define-public detox
1116 (uri (string-append "mirror://sourceforge/detox/detox/" version
1117 "/detox-" version ".tar.bz2"))
1120 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1121 (build-system gnu-build-system)
1122 ;; Both flex and popt are used in this case for their runtime libraries
1123 ;; (libfl and libpopt).
1128 `(#:configure-flags `(,(string-append "--with-popt="
1129 (assoc-ref %build-inputs "popt")))
1130 #:tests? #f)) ;no 'check' target
1131 (home-page "http://detox.sourceforge.net")
1132 (synopsis "Clean up file names")
1134 "Detox is a program that renames files to make them easier to work with
1135 under Unix and related operating systems. Spaces and various other unsafe
1136 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1137 characters can be replaced as well, as can UTF-8 characters.")
1138 (license license:bsd-3)))
1140 (define-public testdisk
1146 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1147 version ".tar.bz2"))
1150 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1151 (build-system gnu-build-system)
1153 `(("ntfs-3g" ,ntfs-3g)
1154 ("util-linux" ,util-linux)
1155 ("openssl" ,openssl)
1156 ;; FIXME: add reiserfs
1158 ("e2fsprogs" ,e2fsprogs)
1159 ("libjpeg" ,libjpeg)
1160 ("ncurses" ,ncurses)))
1161 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
1162 (synopsis "Data recovery tool")
1164 "TestDisk is a program for data recovery, primarily designed to help
1165 recover lost partitions and/or make non-booting disks bootable again.")
1166 (license license:gpl2+)))
1175 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1178 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1179 (build-system gnu-build-system)
1181 '(#:phases (alist-delete 'configure %standard-phases)
1182 #:tests? #f ; no check target
1183 #:make-flags (let ((out (assoc-ref %outputs "out")))
1184 (list (string-append "prefix=" out)))))
1185 (synopsis "Recursively list the contents of a directory")
1187 "Tree is a recursive directory listing command that produces a depth
1188 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1189 environment variable is set and output is to tty.")
1190 (home-page "http://mama.indstate.edu/users/ice/tree/")
1191 (license license:gpl2+)))
1193 (define-public direvent
1199 (uri (string-append "mirror://gnu/direvent/direvent-"
1203 "1i14131y6m8wvirz6piw4zxz2q1kbpl0lniv5kl55rx4k372dg8z"))
1204 (modules '((guix build utils)))
1205 (snippet '(substitute* "tests/testsuite"
1206 (("#![[:blank:]]?/bin/sh")
1208 (build-system gnu-build-system)
1210 '(#:phases (alist-cons-before
1211 'build 'patch-/bin/sh
1212 (lambda* (#:key inputs #:allow-other-keys)
1213 ;; Use the right shell when executing the watcher.
1214 (let ((bash (assoc-ref inputs "bash")))
1215 (substitute* "src/direvent.c"
1217 (string-append "\"" bash "/bin/sh\"")))))
1219 (home-page "http://www.gnu.org/software/direvent/")
1220 (synopsis "Daemon to monitor directories for events such as file removal")
1222 "A daemon that monitors directories for events, such as creating,
1223 deleting or modifying files. It can monitor different sets of directories for
1224 different events. When an event is detected, direvent calls a specified
1225 external program with information about the event, such as the location
1226 within the file system where it occurred. Thus, \"direvent\" provides an
1227 easy way to react immediately if given files undergo changes, for example, to
1228 track changes in important system configuration files.")
1229 (license license:gpl3+)))
1231 (define-public libcap-ng
1238 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1242 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1243 (build-system gnu-build-system)
1244 (inputs `(("python" ,python)))
1245 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1246 (synopsis "Library for more easily working with POSIX capabilities")
1248 "The libcap-ng library is intended to make programming with POSIX
1249 capabilities easier than the traditional libcap library. It includes
1250 utilities that can analyse all currently running applications and print out
1251 any capabilities and whether or not it has an open ended bounding set. The
1252 included utilities are designed to let admins and developers spot apps from
1253 various ways that may be running with too much privilege.")
1254 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1255 (license (list license:lgpl2.1+ license:gpl2+))))
1257 (define-public smartmontools
1259 (name "smartmontools")
1264 "mirror://sourceforge/smartmontools/smartmontools/"
1265 version "/smartmontools-" version ".tar.gz"))
1268 "1g25r6sx85b5lay5n6sbnqv05qxzj6xsafsp93hnrg1h044bps49"))))
1269 (build-system gnu-build-system)
1270 (inputs `(("libcap-ng" ,libcap-ng)))
1271 (home-page "http://www.smartmontools.org/")
1272 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1274 "The smartmontools package contains utility programs to control and
1275 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1276 Technology System (S.M.A.R.T.) built into most modern ATA and SCSI harddisks.
1277 In many cases, these utilities will provide advanced warning of disk
1278 degradation and failure.")
1279 (license license:gpl2+)))
1281 (define-public fdupes
1289 "https://github.com/adrianlopezroche/fdupes/archive/fdupes-"
1293 "11j96vxl9vg3jsnxqxskrv3gad6dh7hz2zpyc8n31xzyxka1c7kn"))))
1294 (build-system gnu-build-system)
1296 '(#:phases (alist-delete 'configure %standard-phases)
1297 #:tests? #f ; no 'check' target
1298 #:make-flags (list (string-append "PREFIX="
1299 (assoc-ref %outputs "out")))))
1300 (home-page "https://github.com/adrianlopezroche/fdupes")
1301 (synopsis "Identify duplicate files")
1303 "fdupes is a program for identifying duplicate files residing within
1304 specified directories.")
1305 (license license:expat)))
1307 (define-public graphios
1315 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1319 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1320 (build-system python-build-system)
1322 ;; Be warned: Building with Python 3 succeeds, but the build process
1323 ;; throws a syntax error that is ignored.
1324 `(#:python ,python-2
1326 (modify-phases %standard-phases
1327 (add-before 'build 'fix-setup.py
1328 (lambda* (#:key outputs #:allow-other-keys)
1329 ;; Fix hardcoded, unprefixed file names.
1330 (let ((out (assoc-ref outputs "out")))
1331 (substitute* '("setup.py")
1332 (("/etc") (string-append out "/etc"))
1334 (("distro_ver = .*") "distro_ver = ''"))
1337 `(("python-setuptools" ,python2-setuptools)))
1338 (home-page "https://github.com/shawn-sterling/graphios")
1339 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1341 "Graphios is a script to emit nagios perfdata to various upstream metrics
1342 processing and time-series systems. It's currently compatible with Graphite,
1343 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1344 of supported upstream metrics systems simultaneously.")
1345 (license license:gpl2+)))
1347 (define-public ansible
1354 (uri (pypi-uri "ansible" version))
1357 "1bfc2xiplpad6f2nwi48y0kps7xqnsll85dlz63cy8k5bysl6d20"))))
1358 (build-system python-build-system)
1360 `(("python2-setuptools" ,python2-setuptools)
1361 ("python2-pycrypto" ,python2-pycrypto)
1362 ("python2-httplib2" ,python2-httplib2)
1363 ("python2-passlib" ,python2-passlib)
1364 ("python2-nose" ,python2-nose)
1365 ("python2-mock" ,python2-mock)
1366 ("python2-jinja2" ,python2-jinja2)
1367 ("python2-pyyaml" ,python2-pyyaml)
1368 ("python2-paramiko" ,python2-paramiko)))
1370 `(("python2-pycrypto" ,python2-pycrypto)
1371 ("python2-jinja2" ,python2-jinja2)
1372 ("python2-pyyaml" ,python2-pyyaml)
1373 ("python2-paramiko" ,python2-paramiko)))
1375 `(#:python ,python-2)) ; incompatible with Python 3
1376 (home-page "http://ansible.com/")
1377 (synopsis "Radically simple IT automation")
1378 (description "Ansible is a radically simple IT automation system. It
1379 handles configuration-management, application deployment, cloud provisioning,
1380 ad-hoc task-execution, and multinode orchestration - including trivializing
1381 things like zero downtime rolling updates with load balancers.")
1382 (license license:gpl3+)))
1384 (define-public cpulimit
1391 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1393 (file-name (string-append name "-" version ".tar.gz"))
1396 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1397 (build-system gnu-build-system)
1399 `(#:phases (modify-phases %standard-phases
1404 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1408 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1411 (lambda* (#:key outputs #:allow-other-keys)
1412 (let* ((out (assoc-ref outputs "out"))
1413 (bin (string-append out "/bin")))
1414 (install-file "src/cpulimit" bin)))))))
1415 (home-page "https://github.com/opsengine/cpulimit")
1416 (synopsis "Limit CPU usage")
1418 "Cpulimit limits the CPU usage of a process. It does not change the nice
1419 value or other scheduling priority settings, but the real CPU usage, and is
1420 able to adapt itself dynamically to the overall system load. Children
1421 processes and threads of the specified process may optionally share the same
1423 (license license:gpl2+)))
1425 (define-public autojump
1432 (uri (string-append "https://github.com/wting/autojump/archive/"
1433 "release-v" version ".tar.gz"))
1434 (file-name (string-append name "-" version ".tar.gz"))
1437 "0xglj7nb8xczaqy2dhn78drqdwqj64rqpymxhqmmwwqzfaqassw1"))))
1438 (build-system gnu-build-system)
1439 (native-inputs ;for tests
1440 `(("python-mock" ,python-mock)
1441 ("python-pytest" ,python-pytest)))
1443 `(("python" ,python-wrapper)))
1445 `(#:phases (modify-phases %standard-phases
1451 (system* "python" "tests/autojump_utils_test.py"))))
1453 ;; The install.py script doesn't allow system installation
1454 ;; into an arbitrary prefix, so do our own install.
1455 (lambda* (#:key outputs #:allow-other-keys)
1456 (let* ((out (assoc-ref outputs "out"))
1457 (bin (string-append out "/bin"))
1458 (share (string-append out "/share/autojump"))
1459 (py (string-append out "/lib/python"
1460 ,(version-major+minor
1461 (package-version python-wrapper))
1463 (man (string-append out "/share/man/man1")))
1464 (install-file "bin/autojump" bin)
1465 (for-each (λ (f) (install-file f py))
1466 (find-files "bin" "\\.py$"))
1467 (for-each (λ (f) (install-file f share))
1468 (find-files "bin" "autojump\\..*$"))
1469 (substitute* (string-append share "/autojump.sh")
1470 (("/usr/local") out))
1471 (install-file "docs/autojump.1" man)
1472 (wrap-program (string-append bin "/autojump")
1473 `("PYTHONPATH" ":" prefix (,py)))
1475 (home-page "https://github.com/wting/autojump")
1476 (synopsis "Shell extension for filesystem navigation")
1478 "Autojump provides a faster way to navigate your filesystem, with a \"cd
1479 command that learns\". It works by maintaining a database of the directories
1480 you use the most from the command line and allows you to \"jump\" to
1481 frequently used directories by typing only a small pattern.")
1482 (license license:gpl3+)))
1484 (define-public iftop
1490 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1491 "/iftop-" version ".tar.gz"))
1494 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1495 (build-system gnu-build-system)
1497 `(("libpcap" ,libpcap)
1498 ("ncurses" ,ncurses)))
1499 (synopsis "Monitor network usage")
1500 (description "Iftop does for network usage what @command{top} does
1501 for CPU usage. It listens to network traffic on a named interface and
1502 displays a table of current bandwidth usage by pairs of hosts.")
1503 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1504 (license license:gpl2+)))
1506 (define-public munge
1512 (uri (string-append "https://github.com/dun/munge/releases/"
1513 "download/munge-" version "/munge-"
1517 "1s0vlwgm3hcx75vcmjf2y3icy5nv8y07bx93w2cmm6a7x71y6wp9"))))
1519 `(("openssl" ,openssl)
1520 ("libgcrypt" ,libgcrypt)))
1521 (build-system gnu-build-system)
1522 (home-page "https://dun.github.io/munge/")
1523 (synopsis "Cluster computing authentication service")
1525 "Munge is an authentication service for creating and validating
1526 credentials. It allows a process to authenticate the UID and GID of another
1527 local or remote process within a group of hosts having common users and
1528 groups. These hosts form a security realm that is defined by a shared
1529 cryptographic key. Clients within this security realm can create and validate
1530 credentials without the use of root privileges, reserved ports, or
1531 platform-specific methods.")
1532 (license license:gpl3+)))
1534 (define-public audit
1540 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1541 "audit-" version ".tar.gz"))
1544 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1545 (build-system gnu-build-system)
1546 (home-page "http://people.redhat.com/sgrubb/audit/")
1548 `(#:configure-flags (list "--with-python=no")
1550 (modify-phases %standard-phases
1551 (add-after 'unpack 'fix-tests
1553 ;; In the build environmnte /etc/passwd does not contain an entry
1554 ;; for root/0, so we have to patch the expected value.
1555 (substitute* "auparse/test/auparse_test.ref"
1556 (("=0 \\(root\\)") "=0 (unknown(0))"))
1559 `(("openldap" ,openldap)
1560 ("openssl" ,openssl)
1561 ("sasl" ,cyrus-sasl)))
1562 (synopsis "User-space component to the Linux auditing system")
1564 "auditd is the user-space component to the Linux auditing system, which
1565 allows logging of system calls made by user-land processes. It's responsible
1566 for writing audit records to the disk. Viewing the logs is done with the
1567 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1568 done with the @code{auditctl} utility.")
1569 (license license:gpl2+)))
1577 (uri (string-append "https://nmap.org/dist/nmap-" version
1581 "014vagh9ak10hidwzp9s6g30y5h5fhsh8wykcnc1hnn9hwm0ipv3"))
1582 (modules '((guix build utils)))
1584 '(map delete-file-recursively
1585 ;; Remove bundled lua, pcap, and pcre libraries.
1586 ;; FIXME: Remove bundled liblinear once packaged.
1590 ;; Remove pre-compiled binares.
1592 (build-system gnu-build-system)
1594 `(("openssl" ,openssl)
1595 ("libpcap" ,libpcap)
1599 ("python" ,python-2)))
1601 ;; TODO Add zenmap output.
1602 (outputs '("out" "ndiff"))
1604 '(#:configure-flags '("--without-zenmap")
1606 (modify-phases %standard-phases
1608 (lambda* (#:key outputs #:allow-other-keys)
1609 (define (make out . args)
1610 (unless (zero? (apply system* "make"
1611 (string-append "prefix=" out)
1613 (error "make failed")))
1614 (define (python-path dir)
1615 (string-append dir "/lib/python2.7/site-packages"))
1616 (let ((out (assoc-ref outputs "out"))
1617 (ndiff (assoc-ref outputs "ndiff")))
1618 (for-each mkdir-p (list out ndiff))
1624 (make ndiff "install-ndiff")
1625 (wrap-program (string-append ndiff "/bin/ndiff")
1626 `("PYTHONPATH" prefix
1627 (,(python-path ndiff)))))))
1628 ;; These are the tests that do not require network access.
1630 (lambda _ (zero? (system* "make"
1634 ;; Nmap can't cope with out-of-source building.
1635 #:out-of-source? #f))
1636 (home-page "https://nmap.org/")
1637 (synopsis "Network discovery and security auditing tool")
1639 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1640 tool. It is also useful for tasks such as network inventory, managing service
1641 upgrade schedules, and monitoring host or service uptime. It also provides an
1642 advanced netcat implementation (ncat), a utility for comparing scan
1643 results (ndiff), and a packet generation and response analysis tool (nping).")
1644 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1645 ;; both use a 3-clause BSD license.
1646 (license (list license:nmap license:bsd-3))))
1648 (define-public dstat
1655 "https://github.com/dagwieers/dstat/archive/"
1657 (file-name (string-append "dstat-" version ".tar.gz"))
1660 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1661 (build-system gnu-build-system)
1663 `(#:tests? #f ;; no make check
1664 #:make-flags (let ((out (assoc-ref %outputs "out")))
1665 (list (string-append "DESTDIR=" out)
1667 ;; no configure script
1668 #:phases (alist-delete 'configure %standard-phases)))
1669 (inputs `(("python-2" ,python-2)))
1670 (synopsis "Versatile resource statistics tool")
1671 (description "Dstat is a versatile replacement for @command{vmstat},
1672 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1673 some of their limitations and adds some extra features, more counters and
1674 flexibility. Dstat is handy for monitoring systems during performance tuning
1675 tests, benchmarks or troubleshooting.
1677 Dstat allows you to view all of your system resources in real-time, you can,
1678 e.g., compare disk utilization in combination with interrupts from your IDE
1679 controller, or compare the network bandwidth numbers directly with the disk
1680 throughput (in the same interval).")
1681 (home-page "http://dag.wiee.rs/home-made/dstat/")
1682 (license license:gpl2+)))
1684 (define-public thefuck
1690 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1692 (file-name (string-append name "-" version ".tar.gz"))
1695 "0g4s2vkpl0mqhkdkbzib07qr4xf0cq25fvhdhna52290qgd69pwf"))))
1696 (build-system python-build-system)
1698 `(("python-setuptools" ,python-setuptools)))
1700 `(("python-colorama" ,python-colorama)
1701 ("python-decorator" ,python-decorator)
1702 ("python-psutil" ,python-psutil)
1703 ("python-six" ,python-six)))
1704 (home-page "https://github.com/nvbn/thefuck")
1705 (synopsis "Correct mistyped console command")
1707 "The Fuck tries to match a rule for a previous, mistyped command, creates
1708 a new command using the matched rule, and runs it.")
1709 (license license:x11)))
1718 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1720 (base32 "1i6m9zdnidn8268q1lz9fd8payk7s4pgwh5zlam9rr4dy6h6a67n"))))
1721 (build-system gnu-build-system)
1723 `(#:tests? #f ; Obscure test failures.
1725 (modify-phases %standard-phases
1727 (add-before 'build 'setup-environment
1728 (lambda* (#:key outputs #:allow-other-keys)
1730 (setenv "prefix" (assoc-ref outputs "out"))
1732 #:make-flags (list "--environment-overrides")))
1733 (home-page "https://www.gentoo.com/di/")
1734 (synopsis "Advanced df like disk information utility")
1736 "'di' is a disk information utility, displaying everything
1737 (and more) that your @code{df} command does. It features the ability to
1738 display your disk usage in whatever format you prefer. It is designed to be
1739 highly portable. Great for heterogenous networks.")
1740 (license license:zlib)))