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>
15 ;;; Coypright © 2016 ng0 <ng0@we.make.ritual.n0.is>
16 ;;; Coypright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
18 ;;; This file is part of GNU Guix.
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33 (define-module (gnu packages admin)
34 #:use-module ((guix licenses) #:prefix license:)
35 #:use-module (guix packages)
36 #:use-module (guix utils)
37 #:use-module (guix download)
38 #:use-module (guix git-download)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system gnu)
41 #:use-module (guix build-system python)
42 #:use-module (guix build-system trivial)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages base)
45 #:use-module (gnu packages cyrus-sasl)
46 #:use-module (gnu packages ncurses)
47 #:use-module (gnu packages readline)
48 #:use-module (gnu packages linux)
49 #:use-module (gnu packages lua)
50 #:use-module (gnu packages guile)
51 #:use-module (gnu packages gettext)
52 #:use-module (gnu packages pcre)
53 #:use-module (gnu packages perl)
54 #:use-module (gnu packages tcl)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages tls)
57 #:use-module (gnu packages gnupg)
58 #:use-module (gnu packages bison)
59 #:use-module (gnu packages flex)
60 #:use-module (gnu packages glib)
61 #:use-module (gnu packages openldap)
62 #:use-module (gnu packages mcrypt)
63 #:use-module (gnu packages pkg-config)
64 #:use-module (gnu packages popt)
65 #:use-module (gnu packages python)
66 #:use-module (gnu packages texinfo)
67 #:use-module (gnu packages groff)
68 #:use-module (gnu packages pciutils)
69 #:use-module (gnu packages libusb)
70 #:use-module (gnu packages libftdi)
71 #:use-module (gnu packages image)
72 #:use-module (gnu packages xorg)
73 #:use-module (gnu packages python)
74 #:use-module (gnu packages man)
75 #:use-module (gnu packages autotools)
76 #:use-module (gnu packages gnome)
77 #:use-module (gnu packages gtk))
85 (uri (string-append "mirror://sourceforge/aide/aide/"
86 version "/aide-" version ".tar.gz"))
89 "1vsrc0s62kv1i84skm6k6zy868gayjck268qwj38rpspc8c5qgih"))))
90 (build-system gnu-build-system)
95 `(("libgcrypt" ,libgcrypt)
96 ("libgpg-error" ,libgpg-error)
97 ("libmhash" ,libmhash)
99 (synopsis "File and directory integrity checker")
101 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
102 integrity checker. It creates a database from the regular expression rules
103 that it finds from its configuration files. Once this database is initialized
104 it can be used to verify the integrity of the files. It has several message
105 digest algorithms that are used to check the integrity of files. All of the
106 usual file attributes can be checked for inconsistencies.")
107 (home-page "http://aide.sourceforge.net/")
108 (license license:gpl2+)))
110 (define-public progress
116 (uri (string-append "https://github.com/Xfennec/"
117 name "/archive/v" version ".tar.gz"))
119 (base32 "133iar4vq5vlklydb4cyazjy6slmpbndrws474mg738bd8avc30n"))
120 (file-name (string-append name "-" version ".tar.gz"))))
121 (build-system gnu-build-system)
123 `(("ncurses" ,ncurses)))
125 `(#:tests? #f ; There is no test suite.
126 #:make-flags (list "CC=gcc" "LDFLAGS+=-lncurses"
127 (string-append "PREFIX=" (assoc-ref %outputs "out")))
129 (modify-phases %standard-phases
130 (delete 'configure)))) ; There's no configure phase.
131 (home-page "https://github.com/Xfennec/progress")
132 (synopsis "Program to view the progress of the coreutils commands")
133 (description "A program that looks for coreutils basic commands (cp, mv,
134 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
135 the percentage of copied data. It can also show estimated time and throughput,
136 and provides a \"top-like\" mode (monitoring).")
137 (license license:gpl3+)))
139 (define-public shepherd
145 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/shepherd-"
149 "0f3yi3n4sl9myiay95yhv2a9an338qddfjrbv7da753ip66dkfz6"))))
150 (build-system gnu-build-system)
152 '(#:configure-flags '("--localstatedir=/var")))
153 (native-inputs `(("pkg-config" ,pkg-config)))
154 (inputs `(("guile" ,guile-2.0)))
155 (synopsis "System service manager")
157 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
158 the execution of system services, replacing similar functionality found in
159 typical init systems. It provides dependency-handling through a convenient
160 interface and is based on GNU Guile.")
161 (license license:gpl3+)
162 (home-page "http://www.gnu.org/software/shepherd/")))
172 "http://projects.gw-computing.net/attachments/download/79/dfc-"
176 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
177 (build-system cmake-build-system)
178 (arguments '(#:tests? #f)) ; There are no tests.
179 (native-inputs `(("gettext" ,gnu-gettext)))
180 (home-page "http://projects.gw-computing.net/projects/dfc")
181 (synopsis "Display file system space usage using graphs and colors")
183 "dfc (df color) is a modern version of df. It uses colors, draws pretty
184 graphs and can export its output to different formats.")
185 (license license:bsd-3)))
193 (uri (string-append "http://hisham.hm/htop/releases/"
194 version "/htop-" version ".tar.gz"))
197 "11zlwadm6dpkrlfvf3z3xll26yyffa7qrxd1w72y1kl0rgffk6qp"))))
198 (build-system gnu-build-system)
200 `(("ncurses" ,ncurses)))
201 (home-page "http://htop.sourceforge.net/")
202 (synopsis "Interactive process viewer")
204 "This is htop, an interactive process viewer. It is a text-mode
205 application (for console or X terminals) and requires ncurses.")
206 (license license:gpl2)))
215 (uri (string-append "mirror://gnu/pies/pies-"
219 "18w0dbg77i56cx1bwa789w0qi3l4xkkbascxcv2b6gbm0zmjg1g6"))))
220 (build-system gnu-build-system)
221 (home-page "http://www.gnu.org/software/pies/")
222 (synopsis "Program invocation and execution supervisor")
224 "GNU pies is a program that supervises the invocation and execution of
225 other programs. It reads the list of programs to be started from its
226 configuration file, executes them, and then monitors their status,
227 re-executing them as necessary.")
228 (license license:gpl3+)))
230 (define-public inetutils
236 (uri (string-append "mirror://gnu/inetutils/inetutils-"
240 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
241 (build-system gnu-build-system)
242 (arguments `(;; FIXME: `tftp.sh' relies on `netstat' from utils-linux,
243 ;; which is currently missing.
245 (inputs `(("ncurses" ,ncurses)
246 ("readline" ,readline))) ; for 'ftp'
247 (home-page "http://www.gnu.org/software/inetutils/")
248 (synopsis "Basic networking utilities")
250 "Inetutils is a collection of common network programs, such as an ftp
251 client and server, a telnet client and server, and an rsh client and server.")
252 (license license:gpl3+)))
254 (define-public shadow
261 "http://pkg-shadow.alioth.debian.org/releases/"
262 name "-" version ".tar.xz"))
265 "0h9x1zdbq0pqmygmc1x459jraiqw4gqz8849v268crk78z8r621v"))))
266 (build-system gnu-build-system)
268 '(;; Assume System V `setpgrp (void)', which is the default on GNU
269 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
270 #:configure-flags '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
272 #:phases (alist-cons-before
273 'build 'set-nscd-file-name
274 (lambda* (#:key inputs #:allow-other-keys)
275 ;; Use the right file name for nscd.
276 (let ((libc (assoc-ref inputs "libc")))
277 (substitute* "lib/nscd.c"
279 (string-append libc "/sbin/nscd")))))
281 'install 'remove-groups
282 (lambda* (#:key outputs #:allow-other-keys)
283 ;; Remove `groups', which is already provided by Coreutils.
284 (let* ((out (assoc-ref outputs "out"))
285 (bin (string-append out "/bin"))
286 (man (string-append out "/share/man")))
287 (delete-file (string-append bin "/groups"))
288 (for-each delete-file (find-files man "^groups\\."))
292 (inputs (if (string-suffix? "-linux"
293 (or (%current-target-system)
295 `(("linux-pam" ,linux-pam))
297 (home-page "http://pkg-shadow.alioth.debian.org/")
298 (synopsis "Authentication-related tools such as passwd, su, and login")
300 "Shadow provides a number of authentication-related tools, including:
301 login, passwd, su, groupadd, and useradd.")
303 ;; The `vipw' program is GPLv2+.
304 ;; libmisc/salt.c is public domain.
305 (license license:bsd-3)))
307 (define-public mingetty
313 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
314 version "/mingetty-" version ".tar.gz"))
317 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
318 (build-system gnu-build-system)
320 `(#:phases (alist-replace 'configure
321 (lambda* (#:key inputs outputs
323 (let* ((out (assoc-ref outputs "out"))
325 out "/share/man/man8"))
326 (sbin (string-append out "/sbin"))
327 (shadow (assoc-ref inputs "shadow"))
328 (login (string-append shadow
330 (substitute* "Makefile"
332 (string-append "SBINDIR = " out
335 (string-append "MANDIR = " out
336 "/share/man/man8\n")))
338 ;; Pick the right 'login' by default.
339 (substitute* "mingetty.c"
341 (string-append "\"" login "\"")))
346 #:tests? #f)) ; no tests
347 (inputs `(("shadow" ,shadow)))
349 (home-page "http://sourceforge.net/projects/mingetty")
350 (synopsis "Getty for the text console")
352 "Small console getty that is started on the Linux text console,
353 asks for a login name and then transfers over to 'login'. It is extended to
354 allow automatic login and starting any app.")
355 (license license:gpl2+)))
357 (define-public net-base
364 "mirror://debian/pool/main/n/netbase/netbase_"
368 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
369 (build-system trivial-build-system)
371 `(#:modules ((guix build utils))
373 (use-modules (guix build utils)
376 (let* ((source (assoc-ref %build-inputs "source"))
377 (tar (assoc-ref %build-inputs "tar"))
378 (xz (assoc-ref %build-inputs "xz"))
379 (output (assoc-ref %outputs "out"))
380 (etc (string-append output "/etc")))
381 (setenv "PATH" (string-append xz "/bin"))
382 (system* (string-append tar "/bin/tar") "xvf"
384 (chdir ,(string-append "netbase-" version))
387 '("etc-services" "etc-protocols" "etc-rpc")
388 (map (cut string-append etc "/" <>)
389 '("services" "protocols" "rpc")))
391 (native-inputs `(("tar" ,tar)
393 (synopsis "IANA protocol, port, and RPC number assignments")
395 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
396 files, which contain information about the IANA-assigned port, protocol, and
398 (home-page "http://packages.debian.org/sid/netbase")
399 (license license:gpl2)))
401 (define-public netcat
407 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
408 "/netcat-" version ".tar.bz2"))
411 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
412 (build-system gnu-build-system)
415 ;; By default, man and info pages are put in PREFIX/{man,info},
416 ;; but we want them in PREFIX/share/{man,info}.
417 (let ((out (assoc-ref %outputs "out")))
418 (list (string-append "--mandir=" out "/share/man")
419 (string-append "--infodir=" out "/share/info")))))
420 (home-page "http://netcat.sourceforge.net")
421 (synopsis "Read and write data over TCP/IP")
423 "Netcat is a featured networking utility which reads and writes data
424 across network connections, using the TCP/IP protocol. It is designed to be a
425 reliable \"back-end\" tool that can be used directly or easily driven by other
426 programs and scripts. At the same time, it is a feature-rich network debugging
427 and exploration tool, since it can create almost any kind of connection you
428 would need and has several interesting built-in capabilities.")
429 (license license:gpl2+)))
437 (uri (string-append "mirror://gnu/alive/alive-"
441 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
442 (build-system gnu-build-system)
443 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
444 (inputs `(("guile" ,guile-2.0)
445 ("inetutils" ,inetutils)))
446 (home-page "http://www.gnu.org/software/alive/")
447 (synopsis "Autologin and keep-alive daemon")
449 "GNU Alive sends periodic pings to a server, generally to keep a
451 (license license:gpl3+)))
453 (define-public isc-dhcp
454 (let* ((bind-major-version "9")
455 (bind-minor-version "9")
456 (bind-patch-version "9")
457 (bind-release-type "") ; for patch release, use "-P"
458 (bind-release-version "") ; for patch release, e.g. "4"
459 (bind-version (string-append bind-major-version
465 bind-release-version)))
471 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
472 version "/dhcp-" version ".tar.gz"))
475 "0zk0imll6bfyp9p4ndn8h6s4ifijnw5bhixswifr5rnk7pp5l4gm"))))
476 (build-system gnu-build-system)
478 `(#:parallel-build? #f
480 (modify-phases %standard-phases
481 (add-after 'unpack 'replace-bundled-bind
482 (lambda* (#:key inputs #:allow-other-keys)
483 (delete-file "bind/bind.tar.gz")
484 (copy-file (assoc-ref inputs "bind-source-tarball")
486 (chmod "bind/bind.tar.gz" #o644)
487 (substitute* "bind/version.tmp"
489 (format #f "MAJORVER=~a\n" ,bind-major-version))
491 (format #f "MINORVER=~a\n" ,bind-minor-version))
493 (format #f "PATCHVER=~a\n" ,bind-patch-version))
495 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
497 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
499 (add-after 'configure 'post-configure
500 (lambda* (#:key outputs #:allow-other-keys)
501 ;; Point to the right client script, which will be
502 ;; installed in a later phase.
503 (substitute* "includes/dhcpd.h"
504 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
505 (let ((out (assoc-ref outputs "out")))
506 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
507 out "/libexec/dhclient-script"
510 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
511 ;; we must patch shebangs in there and make sure the right
513 (with-directory-excursion "bind"
514 (substitute* "Makefile"
516 (let ((sh (which "sh")))
517 (string-append "./configure CONFIG_SHELL="
520 (let ((bind-directory (string-append "bind-" ,bind-version)))
521 (system* "tar" "xf" "bind.tar.gz")
522 (for-each patch-shebang
523 (find-files bind-directory ".*"))
524 (zero? (system* "tar" "cf" "bind.tar.gz"
526 ;; avoid non-determinism in the archive
530 "--group=root:0"))))))
531 (add-after 'install 'post-install
532 (lambda* (#:key inputs outputs #:allow-other-keys)
533 ;; Install the dhclient script for GNU/Linux and make sure
534 ;; if finds all the programs it needs.
535 (let* ((out (assoc-ref outputs "out"))
536 (libexec (string-append out "/libexec"))
537 (coreutils (assoc-ref inputs "coreutils"))
538 (inetutils (assoc-ref inputs "inetutils"))
539 (net-tools (assoc-ref inputs "net-tools"))
540 (sed (assoc-ref inputs "sed")))
541 (substitute* "client/scripts/linux"
543 (string-append (assoc-ref inputs "iproute")
547 (copy-file "client/scripts/linux"
548 (string-append libexec "/dhclient-script"))
551 (string-append libexec "/dhclient-script")
554 (string-append dir "/bin:"
556 (list inetutils net-tools coreutils sed))))))))))
558 (native-inputs `(("perl" ,perl)))
560 (inputs `(("inetutils" ,inetutils)
561 ("net-tools" ,net-tools)
564 ;; XXX isc-dhcp bundles a copy of bind that has security
565 ;; flaws, so we use a newer version.
566 ("bind-source-tarball"
569 (uri (string-append "http://ftp.isc.org/isc/bind9/"
571 "/bind-" bind-version ".tar.gz"))
574 "0w8qqm6p2y6x57j2l0a3278g173wd84dsr4py9z00191f3wra74q"))))
576 ;; When cross-compiling, we need the cross Coreutils and sed.
577 ;; Otherwise just use those from %FINAL-INPUTS.
578 ,@(if (%current-target-system)
579 `(("coreutils" ,coreutils)
583 (home-page "http://www.isc.org/products/DHCP/")
584 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
586 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
587 reference implementation of all aspects of DHCP, through a suite of DHCP
588 tools: server, client, and relay agent.")
589 (license license:isc)
590 (properties '((cpe-name . "dhcp"))))))
592 (define-public libpcap
598 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
602 "1c28ykkizd7jqgzrfkg7ivqjlqs9p6lygp26bsw2i0z8hwhi3lvs"))))
603 (build-system gnu-build-system)
604 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
605 (arguments '(#:configure-flags '("--with-pcap=linux")
606 #:tests? #f)) ; no 'check' target
607 (home-page "http://www.tcpdump.org")
608 (synopsis "Network packet capture library")
610 "libpcap is an interface for user-level packet capture. It provides a
611 portable framework for low-level network monitoring. Applications include
612 network statistics collection, security monitoring, network debugging, etc.")
614 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
615 (license license:bsd-3)))
617 (define-public tcpdump
623 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
627 "1byr8w6grk08fsq0444jmcz9ar89lq9nf4mjq2cny0w9k8k21rbb"))))
628 (build-system gnu-build-system)
629 (inputs `(("libpcap" ,libpcap)
630 ("openssl" ,openssl)))
631 (native-inputs `(("perl" ,perl))) ; for tests
632 (home-page "http://www.tcpdump.org/")
633 (synopsis "Network packet analyzer")
635 "Tcpdump is a command-line tool to analyze network traffic passing
636 through the network interface controller.")
637 (license license:bsd-3)))
639 (define-public jnettop
645 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
649 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
650 (build-system gnu-build-system)
652 `(("pkg-config" ,pkg-config)))
656 ("libpcap" ,libpcap)))
657 (home-page "http://jnettop.kubs.info/")
658 (synopsis "Visualize network traffic by bandwidth use")
660 "Jnettop is a traffic visualiser, which captures traffic going
661 through the host it is running from and displays streams sorted
662 by bandwidth they use.")
663 (license license:gpl2+)))
665 (define-public clusterssh
671 (uri (string-append "mirror://sourceforge/clusterssh/"
672 "1.%20ClusterSSH%20Series%203/" version
673 "/clusterssh-" version ".tar.gz"))
676 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
677 (build-system gnu-build-system)
678 (inputs `(("perl" ,perl)))
679 (propagated-inputs `(("xterm" ,xterm)
681 ("perl-x11-protocol" ,perl-x11-protocol)))
685 'install 'set-load-paths
686 (lambda* (#:key inputs outputs #:allow-other-keys)
687 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
689 (let* ((out (assoc-ref outputs "out"))
690 (prog (string-append out "/bin/cssh"))
691 (perl-ver ,(package-version perl))
692 (x11-inc (string-append
693 (assoc-ref inputs "perl-x11-protocol")
694 "/lib/perl5/site_perl/" perl-ver))
695 (tk-inc (string-append
696 (assoc-ref inputs "perl-tk")
697 "/lib/perl5/site_perl/" perl-ver
701 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc)))))
703 ;; The clusterssh.sourceforge.net address requires login to view
704 (home-page "http://sourceforge.net/projects/clusterssh/")
705 (synopsis "Secure concurrent multi-server terminal control")
707 "ClusterSSH controls a number of xterm windows via a single graphical
708 console window to allow commands to be interactively run on multiple servers
709 over ssh connections.")
710 (license license:gpl2+)))
712 (define-public rottlog
718 (uri (string-append "mirror://gnu/rottlog/rottlog-"
722 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
723 (modules '((guix build utils)))
725 '(substitute* "Makefile.in"
726 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
727 ;; Don't try to chown root.
729 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
730 ;; Don't attempt to create /var/lib/rottlog.
732 (build-system gnu-build-system)
734 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
735 "--localstatedir=/var")
737 ;; Install example config files in OUT/etc.
738 #:make-flags (list (string-append "ROTT_ETCDIR="
739 (assoc-ref %outputs "out")
742 #:phases (modify-phases %standard-phases
743 (add-after 'build 'set-packdir
745 ;; Set a default location for archived logs.
748 "packdir=\"/var/log\""))
750 (add-before 'install 'tweak-rc-weekly
752 (substitute* "rc/weekly"
756 ;; The file is called 'syslog.pid' (no 'd').
759 (add-after 'install 'install-info
761 (zero? (system* "make" "install-info")))))))
762 (native-inputs `(("texinfo" ,texinfo)
763 ("util-linux" ,util-linux))) ; for 'cal'
764 (home-page "http://www.gnu.org/software/rottlog/")
765 (synopsis "Log rotation and management")
767 "GNU Rot[t]log is a program for managing log files. It is used to
768 automatically rotate out log files when they have reached a given size or
769 according to a given schedule. It can also be used to automatically compress
770 and archive such logs. Rot[t]log will mail reports of its activity to the
771 system administrator.")
772 (license license:gpl3+)))
781 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
783 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
787 "1k2mn65l1kmsxm8wh0gjxy496xhbpiimbpm6yv6kw6snzc3xg466"))))
788 (build-system gnu-build-system)
791 (list "--with-logpath=/var/log/sudo.log"
792 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
793 "--with-vardir=/var/db/sudo"
794 "--with-iologdir=/var/log/sudo-io"
796 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
798 (string-append "CPPFLAGS=-D_PATH_MV='\""
799 (assoc-ref %build-inputs "coreutils")
802 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
805 #:phases (alist-cons-before
806 'configure 'pre-configure
808 (substitute* "src/sudo_usage.h.in"
809 ;; Do not capture 'configure' arguments since we would
810 ;; unduly retain references, and also because the
811 ;; CPPFLAGS above would close the string literal
813 (("@CONFIGURE_ARGS@") "\"\""))
814 (substitute* (find-files "." "Makefile\\.in")
815 (("-o [[:graph:]]+ -g [[:graph:]]+")
816 ;; Allow installation as non-root.
818 (("^install: (.*)install-sudoers(.*)" _ before after)
819 ;; Don't try to create /etc/sudoers.
820 (string-append "install: " before after "\n"))
821 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
822 ;; Don't try to create /run/sudo.
824 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
825 ;; Don't try to create /var/db/sudo.
829 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
830 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
834 ("linux-pam" ,linux-pam)
835 ("coreutils" ,coreutils)))
836 (home-page "https://www.sudo.ws/")
837 (synopsis "Run commands as root")
839 "Sudo (su \"do\") allows a system administrator to delegate authority to
840 give certain users (or groups of users) the ability to run some (or all)
841 commands as root or another user while providing an audit trail of the
842 commands and their arguments.")
844 ;; See <http://www.sudo.ws/sudo/license.html>.
845 (license license:x11)))
847 (define-public wpa-supplicant-minimal
849 (name "wpa-supplicant-minimal")
854 "http://w1.fi/releases/wpa_supplicant-"
859 "05mkp5bx1c3z7h5biddsv0p49gkrq9ksany3anp4wdiv92p5prfc"))
861 (search-patches "wpa-supplicant-CVE-2015-5310.patch"
862 "wpa-supplicant-CVE-2015-5314.patch"
863 "wpa-supplicant-CVE-2015-5315.patch"
864 "wpa-supplicant-CVE-2015-5316.patch"
865 "wpa-supplicant-CVE-2016-4476.patch"
866 "wpa-supplicant-CVE-2016-4477-pt1.patch"
867 "wpa-supplicant-CVE-2016-4477-pt2.patch"
868 "wpa-supplicant-CVE-2016-4477-pt3.patch"
869 "wpa-supplicant-CVE-2016-4477-pt4.patch"))))
870 (build-system gnu-build-system)
872 '(#:phases (alist-replace
874 (lambda* (#:key outputs #:allow-other-keys)
875 (chdir "wpa_supplicant")
876 (copy-file "defconfig" ".config")
877 (let ((port (open-file ".config" "al")))
879 CONFIG_DEBUG_SYSLOG=y
881 # Choose GnuTLS (the default is OpenSSL.)
884 CONFIG_DRIVER_NL80211=y
885 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
887 CONFIG_READLINE=y\n" port)
891 'install 'install-man-pages
892 (lambda* (#:key outputs #:allow-other-keys)
893 (let* ((out (assoc-ref outputs "out"))
894 (man (string-append out "/share/man"))
895 (man5 (string-append man "/man5"))
896 (man8 (string-append man "/man8")))
897 (define (copy-man-page target)
900 (string-append target "/"
903 (mkdir-p man5) (mkdir man8)
904 (for-each (copy-man-page man5)
905 (find-files "doc/docbook" "\\.5"))
906 (for-each (copy-man-page man8)
907 (find-files "doc/docbook" "\\.8"))
911 #:make-flags (list "CC=gcc"
912 (string-append "BINDIR=" (assoc-ref %outputs "out")
914 (string-append "LIBDIR=" (assoc-ref %outputs "out")
918 `(("readline" ,readline)
921 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
923 `(("pkg-config" ,pkg-config)))
924 (home-page "http://w1.fi/wpa_supplicant/")
925 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
927 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
928 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
929 the client stations. It implements key negotiation with a WPA Authenticator
930 and it controls the roaming and IEEE 802.11 authentication/association of the
933 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
935 ;; In practice, this is linked against Readline, which makes it GPLv3+.
936 (license license:bsd-3)))
938 (define-public wpa-supplicant
939 (package (inherit wpa-supplicant-minimal)
940 (name "wpa-supplicant")
941 (inputs `(("dbus" ,dbus)
942 ,@(package-inputs wpa-supplicant-minimal)))
944 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
947 'configure 'configure-for-dbus
949 (let ((port (open-file ".config" "al")))
951 CONFIG_CTRL_IFACE_DBUS=y
952 CONFIG_CTRL_IFACE_DBUS_NEW=y
953 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
957 'install-man-pages 'install-dbus-conf
958 (lambda* (#:key outputs #:allow-other-keys)
959 (let* ((out (assoc-ref outputs "out"))
960 (dir (string-append out "/etc/dbus-1/system.d")))
962 (copy-file "dbus/dbus-wpa_supplicant.conf"
963 (string-append dir "/wpa_supplicant.conf"))))
966 (define-public wakelan
973 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
977 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
978 (build-system gnu-build-system)
980 '(#:phases (alist-replace
982 (lambda* (#:key outputs #:allow-other-keys)
983 (let ((out (assoc-ref outputs "out")))
984 (mkdir-p (string-append out "/bin"))
985 (mkdir-p (string-append out "/share/man/man1"))
987 ;; It's an old configure script that doesn't understand
988 ;; the extra options we pass.
989 (setenv "CONFIG_SHELL" (which "bash"))
991 (system* "./configure"
992 (string-append "--prefix=" out)
993 (string-append "--mandir=" out
997 (home-page "http://kernel.org") ; really, no home page
998 (synopsis "Send a wake-on-LAN packet")
1000 "WakeLan broadcasts a properly formatted UDP packet across the local area
1001 network, which causes enabled computers to power on.")
1002 (license license:gpl2+)))
1004 (define-public dmidecode
1011 "mirror://savannah/dmidecode/dmidecode-"
1015 "0iby0xfk5x3cdr0x0gxj5888jjyjhafvaq0l79civ73jjfqmphvy"))))
1016 (build-system gnu-build-system)
1018 '(#:phases (modify-phases %standard-phases (delete 'configure))
1019 #:tests? #f ; no 'check' target
1020 #:make-flags (list (string-append "prefix="
1021 (assoc-ref %outputs "out")))))
1022 (home-page "http://www.nongnu.org/dmidecode/")
1023 (synopsis "Read hardware information from the BIOS")
1025 "Dmidecode reports information about your system's hardware as described
1026 in your system BIOS according to the SMBIOS/DMI standard. This typically
1027 includes system manufacturer, model name, serial number, BIOS version, asset
1028 tag as well as a lot of other details of varying level of interest and
1029 reliability depending on the manufacturer. This will often include usage
1030 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1031 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1032 (license license:gpl2+)))
1034 (define-public acpica
1037 (version "20150410")
1041 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1045 "0q1fjwkyw9x6gsva6fd0zbn7ly4fx0ha4853f416np9kf2irillw"))))
1046 (build-system gnu-build-system)
1047 (native-inputs `(("flex" ,flex)
1050 '(#:make-flags (list (string-append "PREFIX=" %output)
1052 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1053 #:tests? #f ; no 'check' target.
1054 #:phases (alist-delete 'configure %standard-phases)))
1055 (home-page "http://acpica.org/")
1056 (synopsis "Tools for the development and debug of ACPI tables")
1058 "The ACPI Component Architecture (ACPICA) project provides an
1059 OS-independent reference implementation of the Advanced Configuration and
1060 Power Interface Specification (ACPI). ACPICA code contains those portions of
1061 ACPI meant to be directly integrated into the host OS as a kernel-resident
1062 subsystem, and a small set of tools to assist in developing and debugging ACPI
1063 tables. This package contains only the user-space tools needed for ACPI table
1064 development, not the kernel implementation of ACPI.")
1065 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
1067 (define-public stress
1073 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1074 version ".orig.tar.gz"))
1077 "1v9vnzlihqfjsxa93hdbrq72pqqk00dkylmlg8jpxhm7s1w9qfl1"))))
1078 (build-system gnu-build-system)
1079 (home-page "http://packages.debian.org/wheezy/stress")
1080 (synopsis "Impose load on and stress test a computer system")
1082 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1083 or disk stress on a POSIX-compliant operating system and reports any errors it
1086 Stress is not a benchmark. It is a tool used by system administrators to
1087 evaluate how well their systems will scale, by kernel programmers to evaluate
1088 perceived performance characteristics, and by systems programmers to expose
1089 the classes of bugs which only or more frequently manifest themselves when the
1090 system is under heavy load.")
1091 (license license:gpl2+)))
1093 (define-public detox
1099 (uri (string-append "mirror://sourceforge/detox/detox/" version
1100 "/detox-" version ".tar.bz2"))
1103 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1104 (build-system gnu-build-system)
1105 ;; Both flex and popt are used in this case for their runtime libraries
1106 ;; (libfl and libpopt).
1111 `(#:configure-flags `(,(string-append "--with-popt="
1112 (assoc-ref %build-inputs "popt")))
1113 #:tests? #f)) ;no 'check' target
1114 (home-page "http://detox.sourceforge.net")
1115 (synopsis "Clean up file names")
1117 "Detox is a program that renames files to make them easier to work with
1118 under Unix and related operating systems. Spaces and various other unsafe
1119 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1120 characters can be replaced as well, as can UTF-8 characters.")
1121 (license license:bsd-3)))
1123 (define-public testdisk
1129 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1130 version ".tar.bz2"))
1133 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1134 (build-system gnu-build-system)
1136 `(("ntfs-3g" ,ntfs-3g)
1137 ("util-linux" ,util-linux)
1138 ("openssl" ,openssl)
1139 ;; FIXME: add reiserfs
1141 ("e2fsprogs" ,e2fsprogs)
1142 ("libjpeg" ,libjpeg)
1143 ("ncurses" ,ncurses)))
1144 (home-page "http://www.cgsecurity.org/wiki/TestDisk")
1145 (synopsis "Data recovery tool")
1147 "TestDisk is a program for data recovery, primarily designed to help
1148 recover lost partitions and/or make non-booting disks bootable again.")
1149 (license license:gpl2+)))
1158 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1161 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1162 (build-system gnu-build-system)
1164 '(#:phases (alist-delete 'configure %standard-phases)
1165 #:tests? #f ; no check target
1166 #:make-flags (let ((out (assoc-ref %outputs "out")))
1167 (list (string-append "prefix=" out)))))
1168 (synopsis "Recursively list the contents of a directory")
1170 "Tree is a recursive directory listing command that produces a depth
1171 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1172 environment variable is set and output is to tty.")
1173 (home-page "http://mama.indstate.edu/users/ice/tree/")
1174 (license license:gpl2+)))
1176 (define-public direvent
1182 (uri (string-append "mirror://gnu/direvent/direvent-"
1186 "1i14131y6m8wvirz6piw4zxz2q1kbpl0lniv5kl55rx4k372dg8z"))
1187 (modules '((guix build utils)))
1188 (snippet '(substitute* "tests/testsuite"
1189 (("#![[:blank:]]?/bin/sh")
1191 (build-system gnu-build-system)
1193 '(#:phases (alist-cons-before
1194 'build 'patch-/bin/sh
1195 (lambda* (#:key inputs #:allow-other-keys)
1196 ;; Use the right shell when executing the watcher.
1197 (let ((bash (assoc-ref inputs "bash")))
1198 (substitute* "src/direvent.c"
1200 (string-append "\"" bash "/bin/sh\"")))))
1202 (home-page "http://www.gnu.org/software/direvent/")
1203 (synopsis "Daemon to monitor directories for events such as file removal")
1205 "A daemon that monitors directories for events, such as creating,
1206 deleting or modifying files. It can monitor different sets of directories for
1207 different events. When an event is detected, direvent calls a specified
1208 external program with information about the event, such as the location
1209 within the file system where it occurred. Thus, \"direvent\" provides an
1210 easy way to react immediately if given files undergo changes, for example, to
1211 track changes in important system configuration files.")
1212 (license license:gpl3+)))
1214 (define-public libcap-ng
1221 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1225 "0ssvnh4cvhya0c1j6k6192zvqcq7nc0x01fb5nwhr0prfqr0i8j8"))))
1226 (build-system gnu-build-system)
1227 (inputs `(("python" ,python)))
1228 (home-page "http://people.redhat.com/sgrubb/libcap-ng/")
1229 (synopsis "Library for more easily working with POSIX capabilities")
1231 "The libcap-ng library is intended to make programming with POSIX
1232 capabilities easier than the traditional libcap library. It includes
1233 utilities that can analyse all currently running applications and print out
1234 any capabilities and whether or not it has an open ended bounding set. The
1235 included utilities are designed to let admins and developers spot apps from
1236 various ways that may be running with too much privilege.")
1237 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1238 (license (list license:lgpl2.1+ license:gpl2+))))
1240 (define-public smartmontools
1242 (name "smartmontools")
1247 "mirror://sourceforge/smartmontools/smartmontools/"
1248 version "/smartmontools-" version ".tar.gz"))
1251 "1g25r6sx85b5lay5n6sbnqv05qxzj6xsafsp93hnrg1h044bps49"))))
1252 (build-system gnu-build-system)
1253 (inputs `(("libcap-ng" ,libcap-ng)))
1254 (home-page "http://www.smartmontools.org/")
1255 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1257 "The smartmontools package contains utility programs to control and
1258 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1259 Technology System (S.M.A.R.T.) built into most modern ATA and SCSI harddisks.
1260 In many cases, these utilities will provide advanced warning of disk
1261 degradation and failure.")
1262 (license license:gpl2+)))
1264 (define-public fdupes
1272 "https://github.com/adrianlopezroche/fdupes/archive/v"
1274 (file-name (string-append name "-" version ".tar.gz"))
1277 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1278 (build-system gnu-build-system)
1280 '(#:phases (modify-phases %standard-phases
1281 (delete 'configure))
1282 #:tests? #f ; no 'check' target
1283 #:make-flags (list "CC=gcc"
1284 (string-append "PREFIX="
1285 (assoc-ref %outputs "out")))))
1286 (home-page "https://github.com/adrianlopezroche/fdupes")
1287 (synopsis "Identify duplicate files")
1289 "fdupes is a program for identifying duplicate files residing within
1290 specified directories.")
1291 (license license:expat)))
1293 (define-public graphios
1301 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1305 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1306 (build-system python-build-system)
1308 ;; Be warned: Building with Python 3 succeeds, but the build process
1309 ;; throws a syntax error that is ignored.
1310 `(#:python ,python-2
1312 (modify-phases %standard-phases
1313 (add-before 'build 'fix-setup.py
1314 (lambda* (#:key outputs #:allow-other-keys)
1315 ;; Fix hardcoded, unprefixed file names.
1316 (let ((out (assoc-ref outputs "out")))
1317 (substitute* '("setup.py")
1318 (("/etc") (string-append out "/etc"))
1320 (("distro_ver = .*") "distro_ver = ''"))
1323 `(("python-setuptools" ,python2-setuptools)))
1324 (home-page "https://github.com/shawn-sterling/graphios")
1325 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1327 "Graphios is a script to emit nagios perfdata to various upstream metrics
1328 processing and time-series systems. It's currently compatible with Graphite,
1329 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1330 of supported upstream metrics systems simultaneously.")
1331 (license license:gpl2+)))
1333 (define-public ansible
1340 (uri (pypi-uri "ansible" version))
1343 "1bfc2xiplpad6f2nwi48y0kps7xqnsll85dlz63cy8k5bysl6d20"))))
1344 (build-system python-build-system)
1346 `(("python2-setuptools" ,python2-setuptools)
1347 ("python2-pycrypto" ,python2-pycrypto)
1348 ("python2-httplib2" ,python2-httplib2)
1349 ("python2-passlib" ,python2-passlib)
1350 ("python2-nose" ,python2-nose)
1351 ("python2-mock" ,python2-mock)
1352 ("python2-jinja2" ,python2-jinja2)
1353 ("python2-pyyaml" ,python2-pyyaml)
1354 ("python2-paramiko" ,python2-paramiko)))
1356 `(("python2-pycrypto" ,python2-pycrypto)
1357 ("python2-jinja2" ,python2-jinja2)
1358 ("python2-pyyaml" ,python2-pyyaml)
1359 ("python2-paramiko" ,python2-paramiko)))
1361 `(#:python ,python-2)) ; incompatible with Python 3
1362 (home-page "http://ansible.com/")
1363 (synopsis "Radically simple IT automation")
1364 (description "Ansible is a radically simple IT automation system. It
1365 handles configuration-management, application deployment, cloud provisioning,
1366 ad-hoc task-execution, and multinode orchestration - including trivializing
1367 things like zero downtime rolling updates with load balancers.")
1368 (license license:gpl3+)))
1370 (define-public cpulimit
1377 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1379 (file-name (string-append name "-" version ".tar.gz"))
1382 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1383 (build-system gnu-build-system)
1385 `(#:phases (modify-phases %standard-phases
1390 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1394 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1397 (lambda* (#:key outputs #:allow-other-keys)
1398 (let* ((out (assoc-ref outputs "out"))
1399 (bin (string-append out "/bin")))
1400 (install-file "src/cpulimit" bin)))))))
1401 (home-page "https://github.com/opsengine/cpulimit")
1402 (synopsis "Limit CPU usage")
1404 "Cpulimit limits the CPU usage of a process. It does not change the nice
1405 value or other scheduling priority settings, but the real CPU usage, and is
1406 able to adapt itself dynamically to the overall system load. Children
1407 processes and threads of the specified process may optionally share the same
1409 (license license:gpl2+)))
1411 (define-public autojump
1418 (uri (string-append "https://github.com/wting/autojump/archive/"
1419 "release-v" version ".tar.gz"))
1420 (file-name (string-append name "-" version ".tar.gz"))
1423 "113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
1424 (build-system gnu-build-system)
1425 (native-inputs ;for tests
1426 `(("python-mock" ,python-mock)
1427 ("python-pytest" ,python-pytest)))
1429 `(("python" ,python-wrapper)))
1431 `(#:phases (modify-phases %standard-phases
1437 (system* "python" "tests/unit/autojump_utils_test.py"))))
1439 ;; The install.py script doesn't allow system installation
1440 ;; into an arbitrary prefix, so do our own install.
1441 (lambda* (#:key outputs #:allow-other-keys)
1442 (let* ((out (assoc-ref outputs "out"))
1443 (bin (string-append out "/bin"))
1444 (share (string-append out "/share/autojump"))
1445 (py (string-append out "/lib/python"
1446 ,(version-major+minor
1447 (package-version python-wrapper))
1449 (man (string-append out "/share/man/man1")))
1450 (install-file "bin/autojump" bin)
1451 (for-each (λ (f) (install-file f py))
1452 (find-files "bin" "\\.py$"))
1453 (for-each (λ (f) (install-file f share))
1454 (find-files "bin" "autojump\\..*$"))
1455 (substitute* (string-append share "/autojump.sh")
1456 (("/usr/local") out))
1457 (install-file "docs/autojump.1" man)
1458 (wrap-program (string-append bin "/autojump")
1459 `("PYTHONPATH" ":" prefix (,py)))
1461 (home-page "https://github.com/wting/autojump")
1462 (synopsis "Shell extension for filesystem navigation")
1464 "Autojump provides a faster way to navigate your filesystem, with a \"cd
1465 command that learns\". It works by maintaining a database of the directories
1466 you use the most from the command line and allows you to \"jump\" to
1467 frequently used directories by typing only a small pattern.")
1468 (license license:gpl3+)))
1470 (define-public iftop
1476 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1477 "/iftop-" version ".tar.gz"))
1480 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1481 (build-system gnu-build-system)
1483 `(("libpcap" ,libpcap)
1484 ("ncurses" ,ncurses)))
1485 (synopsis "Monitor network usage")
1486 (description "Iftop does for network usage what @command{top} does
1487 for CPU usage. It listens to network traffic on a named interface and
1488 displays a table of current bandwidth usage by pairs of hosts.")
1489 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1490 (license license:gpl2+)))
1492 (define-public munge
1498 (uri (string-append "https://github.com/dun/munge/releases/"
1499 "download/munge-" version "/munge-"
1503 "1s0vlwgm3hcx75vcmjf2y3icy5nv8y07bx93w2cmm6a7x71y6wp9"))))
1505 `(("openssl" ,openssl)
1506 ("libgcrypt" ,libgcrypt)))
1507 (build-system gnu-build-system)
1508 (home-page "https://dun.github.io/munge/")
1509 (synopsis "Cluster computing authentication service")
1511 "Munge is an authentication service for creating and validating
1512 credentials. It allows a process to authenticate the UID and GID of another
1513 local or remote process within a group of hosts having common users and
1514 groups. These hosts form a security realm that is defined by a shared
1515 cryptographic key. Clients within this security realm can create and validate
1516 credentials without the use of root privileges, reserved ports, or
1517 platform-specific methods.")
1518 (license license:gpl3+)))
1520 (define-public audit
1526 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1527 "audit-" version ".tar.gz"))
1530 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1531 (build-system gnu-build-system)
1532 (home-page "http://people.redhat.com/sgrubb/audit/")
1534 `(#:configure-flags (list "--with-python=no")
1536 (modify-phases %standard-phases
1537 (add-after 'unpack 'fix-tests
1539 ;; In the build environmnte /etc/passwd does not contain an entry
1540 ;; for root/0, so we have to patch the expected value.
1541 (substitute* "auparse/test/auparse_test.ref"
1542 (("=0 \\(root\\)") "=0 (unknown(0))"))
1545 `(("openldap" ,openldap)
1546 ("openssl" ,openssl)
1547 ("sasl" ,cyrus-sasl)))
1548 (synopsis "User-space component to the Linux auditing system")
1550 "auditd is the user-space component to the Linux auditing system, which
1551 allows logging of system calls made by user-land processes. It's responsible
1552 for writing audit records to the disk. Viewing the logs is done with the
1553 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1554 done with the @code{auditctl} utility.")
1555 (license license:gpl2+)))
1563 (uri (string-append "https://nmap.org/dist/nmap-" version
1567 "014vagh9ak10hidwzp9s6g30y5h5fhsh8wykcnc1hnn9hwm0ipv3"))
1568 (modules '((guix build utils)))
1570 '(map delete-file-recursively
1571 ;; Remove bundled lua, pcap, and pcre libraries.
1572 ;; FIXME: Remove bundled liblinear once packaged.
1576 ;; Remove pre-compiled binares.
1578 (build-system gnu-build-system)
1580 `(("openssl" ,openssl)
1581 ("libpcap" ,libpcap)
1585 ("python" ,python-2)))
1587 ;; TODO Add zenmap output.
1588 (outputs '("out" "ndiff"))
1590 '(#:configure-flags '("--without-zenmap")
1592 (modify-phases %standard-phases
1594 (lambda* (#:key outputs #:allow-other-keys)
1595 (define (make out . args)
1596 (unless (zero? (apply system* "make"
1597 (string-append "prefix=" out)
1599 (error "make failed")))
1600 (define (python-path dir)
1601 (string-append dir "/lib/python2.7/site-packages"))
1602 (let ((out (assoc-ref outputs "out"))
1603 (ndiff (assoc-ref outputs "ndiff")))
1604 (for-each mkdir-p (list out ndiff))
1610 (make ndiff "install-ndiff")
1611 (wrap-program (string-append ndiff "/bin/ndiff")
1612 `("PYTHONPATH" prefix
1613 (,(python-path ndiff)))))))
1614 ;; These are the tests that do not require network access.
1616 (lambda _ (zero? (system* "make"
1620 ;; Nmap can't cope with out-of-source building.
1621 #:out-of-source? #f))
1622 (home-page "https://nmap.org/")
1623 (synopsis "Network discovery and security auditing tool")
1625 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1626 tool. It is also useful for tasks such as network inventory, managing service
1627 upgrade schedules, and monitoring host or service uptime. It also provides an
1628 advanced netcat implementation (ncat), a utility for comparing scan
1629 results (ndiff), and a packet generation and response analysis tool (nping).")
1630 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1631 ;; both use a 3-clause BSD license.
1632 (license (list license:nmap license:bsd-3))))
1634 (define-public dstat
1641 "https://github.com/dagwieers/dstat/archive/"
1643 (file-name (string-append "dstat-" version ".tar.gz"))
1646 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1647 (build-system gnu-build-system)
1649 `(#:tests? #f ;; no make check
1650 #:make-flags (let ((out (assoc-ref %outputs "out")))
1651 (list (string-append "DESTDIR=" out)
1653 ;; no configure script
1654 #:phases (alist-delete 'configure %standard-phases)))
1655 (inputs `(("python-2" ,python-2)))
1656 (synopsis "Versatile resource statistics tool")
1657 (description "Dstat is a versatile replacement for @command{vmstat},
1658 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1659 some of their limitations and adds some extra features, more counters and
1660 flexibility. Dstat is handy for monitoring systems during performance tuning
1661 tests, benchmarks or troubleshooting.
1663 Dstat allows you to view all of your system resources in real-time, you can,
1664 e.g., compare disk utilization in combination with interrupts from your IDE
1665 controller, or compare the network bandwidth numbers directly with the disk
1666 throughput (in the same interval).")
1667 (home-page "http://dag.wiee.rs/home-made/dstat/")
1668 (license license:gpl2+)))
1670 (define-public thefuck
1676 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1678 (file-name (string-append name "-" version ".tar.gz"))
1681 "04q2cn8c83f6z6wn1scla1ilrpi5ssjc64987hvmwfvwvb82bvkp"))))
1682 (build-system python-build-system)
1684 `(("python-setuptools" ,python-setuptools)))
1686 `(("python-colorama" ,python-colorama)
1687 ("python-decorator" ,python-decorator)
1688 ("python-psutil" ,python-psutil)
1689 ("python-six" ,python-six)))
1690 (home-page "https://github.com/nvbn/thefuck")
1691 (synopsis "Correct mistyped console command")
1693 "The Fuck tries to match a rule for a previous, mistyped command, creates
1694 a new command using the matched rule, and runs it.")
1695 (license license:x11)))
1704 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1706 (base32 "1i6m9zdnidn8268q1lz9fd8payk7s4pgwh5zlam9rr4dy6h6a67n"))))
1707 (build-system gnu-build-system)
1709 `(#:tests? #f ; Obscure test failures.
1711 (modify-phases %standard-phases
1713 (add-before 'build 'setup-environment
1714 (lambda* (#:key outputs #:allow-other-keys)
1716 (setenv "prefix" (assoc-ref outputs "out"))
1718 #:make-flags (list "--environment-overrides")))
1719 (home-page "https://www.gentoo.com/di/")
1720 (synopsis "Advanced df like disk information utility")
1722 "'di' is a disk information utility, displaying everything
1723 (and more) that your @code{df} command does. It features the ability to
1724 display your disk usage in whatever format you prefer. It is designed to be
1725 highly portable. Great for heterogenous networks.")
1726 (license license:zlib)))
1728 (define-public cbatticon
1734 (uri (string-append "https://github.com/valr/"
1735 name "/archive/" version ".tar.gz"))
1738 "023fvsa4q7rl98rqgwrb1shyzaybdkkbyz5sywd0s5p7ixkksxqx"))
1739 (file-name (string-append name "-" version ".tar.gz"))))
1740 (build-system gnu-build-system)
1742 `(#:tests? #f ; no tests
1744 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1747 (modify-phases %standard-phases
1748 (delete 'configure)))) ; no configure script
1751 ("gnu-gettext" ,gnu-gettext)
1752 ("libnotify" ,libnotify)))
1754 `(("pkg-config" ,pkg-config)))
1755 (synopsis "Lightweight battery icon for the system tray")
1756 (description "cbatticon is a lightweight battery icon that displays
1757 the status of your battery in the system tray.")
1758 (home-page "https://github.com/valr/cbatticon")
1759 (license license:gpl2+)))
1761 (define-public interrobang
1762 (let ((revision "1")
1763 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
1765 (name "interrobang")
1766 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1770 (url "git://github.com/TrilbyWhite/interrobang")
1772 (file-name (string-append name "-" version))
1775 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
1776 (build-system gnu-build-system)
1778 `(#:tests? #f ; no tests
1780 (modify-phases %standard-phases
1781 (delete 'configure)) ; no configure script
1782 #:make-flags (list (string-append "PREFIX="
1783 (assoc-ref %outputs "out")))))
1785 `(("libx11" ,libx11)))
1787 `(("pkg-config" ,pkg-config)))
1788 (synopsis "Scriptable launcher menu")
1789 (description "Interrobang is a scriptable launcher menu with a customizable
1790 shortcut syntax and completion options.")
1791 (home-page "https://github.com/TrilbyWhite/interrobang")
1792 (license license:gpl3+))))