1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016, 2018 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018 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, 2017 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
11 ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017 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 ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
16 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
18 ;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
19 ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
20 ;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
21 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
22 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages admin)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (guix packages)
42 #:use-module (guix utils)
43 #:use-module (guix download)
44 #:use-module (guix git-download)
45 #:use-module (guix build-system cmake)
46 #:use-module (guix build-system gnu)
47 #:use-module (guix build-system perl)
48 #:use-module (guix build-system python)
49 #:use-module (guix build-system trivial)
50 #:use-module (gnu packages)
51 #:use-module (gnu packages base)
52 #:use-module (gnu packages check)
53 #:use-module (gnu packages cyrus-sasl)
54 #:use-module (gnu packages ncurses)
55 #:use-module (gnu packages readline)
56 #:use-module (gnu packages linux)
57 #:use-module (gnu packages lua)
58 #:use-module (gnu packages guile)
59 #:use-module (gnu packages gettext)
60 #:use-module (gnu packages pcre)
61 #:use-module (gnu packages perl)
62 #:use-module (gnu packages perl-check)
63 #:use-module (gnu packages tcl)
64 #:use-module (gnu packages compression)
65 #:use-module (gnu packages cross-base)
66 #:use-module (gnu packages tls)
67 #:use-module (gnu packages gnupg)
68 #:use-module (gnu packages bison)
69 #:use-module (gnu packages flex)
70 #:use-module (gnu packages glib)
71 #:use-module (gnu packages openldap)
72 #:use-module (gnu packages mcrypt)
73 #:use-module (gnu packages pkg-config)
74 #:use-module (gnu packages popt)
75 #:use-module (gnu packages python)
76 #:use-module (gnu packages python-crypto)
77 #:use-module (gnu packages python-web)
78 #:use-module (gnu packages terminals)
79 #:use-module (gnu packages texinfo)
80 #:use-module (gnu packages groff)
81 #:use-module (gnu packages pciutils)
82 #:use-module (gnu packages libunwind)
83 #:use-module (gnu packages libusb)
84 #:use-module (gnu packages libftdi)
85 #:use-module (gnu packages image)
86 #:use-module (gnu packages xorg)
87 #:use-module (gnu packages xdisorg)
88 #:use-module (gnu packages man)
89 #:use-module (gnu packages autotools)
90 #:use-module (gnu packages gnome)
91 #:use-module (gnu packages kerberos)
92 #:use-module (gnu packages gtk)
93 #:use-module (gnu packages xml))
101 (uri (string-append "mirror://sourceforge/aide/aide/"
102 version "/aide-" version ".tar.gz"))
105 "0ibkv4z2gk14fn014kq13rp2ysiq6nn2cflv2q5i7zf466hm6758"))))
106 (build-system gnu-build-system)
111 `(("libgcrypt" ,libgcrypt)
112 ("libgpg-error" ,libgpg-error)
113 ("libmhash" ,libmhash)
116 (synopsis "File and directory integrity checker")
118 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
119 integrity checker. It creates a database from the regular expression rules
120 that it finds from its configuration files. Once this database is initialized
121 it can be used to verify the integrity of the files. It has several message
122 digest algorithms that are used to check the integrity of files. All of the
123 usual file attributes can be checked for inconsistencies.")
124 (home-page "http://aide.sourceforge.net/")
125 (license license:gpl2+)))
127 (define-public progress
133 (uri (string-append "https://github.com/Xfennec/"
134 name "/archive/v" version ".tar.gz"))
136 (base32 "199rk6608q9m6l0fbjm0xl2w1c5krf8245dqnksdp4rqp7l9ak06"))
137 (file-name (string-append name "-" version ".tar.gz"))))
138 (build-system gnu-build-system)
140 `(("pkg-config" ,pkg-config)
143 `(("ncurses" ,ncurses)))
145 `(#:tests? #f ; There is no test suite.
146 #:make-flags (list "CC=gcc"
147 (string-append "PREFIX=" (assoc-ref %outputs "out")))
149 (modify-phases %standard-phases
150 (delete 'configure)))) ; There's no configure phase.
151 (home-page "https://github.com/Xfennec/progress")
152 (synopsis "Program to view the progress of the coreutils commands")
153 (description "A program that looks for coreutils basic commands (cp, mv,
154 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
155 the percentage of copied data. It can also show estimated time and throughput,
156 and provides a \"top-like\" mode (monitoring).")
157 (license license:gpl3+)))
159 (define-public shepherd
165 (uri (string-append "ftp://alpha.gnu.org/gnu/dmd/shepherd-"
169 "174q1qg7yg6w1hfvlfv720hr6hid4h5xzw15y3ycfpspllzldhcb"))
170 (patches (search-patches "shepherd-close-fds.patch"
171 "shepherd-herd-status-sorted.patch"))))
172 (build-system gnu-build-system)
174 '(#:configure-flags '("--localstatedir=/var")))
176 `(("pkg-config" ,pkg-config)
178 ;; This is the Guile we use as a cross-compiler...
179 ("guile" ,guile-2.2)))
181 ;; ... and this is the one that appears in shebangs when cross-compiling.
182 `(("guile" ,guile-2.2)
184 ;; The 'shepherd' command uses Readline when used interactively. It's
185 ;; an unusual use case though, so we don't propagate it.
186 ("guile-readline" ,guile-readline)))
187 (synopsis "System service manager")
189 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
190 the execution of system services, replacing similar functionality found in
191 typical init systems. It provides dependency-handling through a convenient
192 interface and is based on GNU Guile.")
193 (license license:gpl3+)
194 (home-page "https://www.gnu.org/software/shepherd/")
195 (properties '((ftp-server . "alpha.gnu.org")))))
197 (define-public daemontools
204 "https://cr.yp.to/" name "/"
205 name "-" version ".tar.gz"))
208 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
209 (build-system gnu-build-system)
211 `(#:tests? #f ;; No tests as far as I can tell.
213 (modify-phases %standard-phases
214 (add-after 'unpack 'chdir
216 (chdir ,(string-append name "-" version))))
218 (add-before 'build 'patch
220 (substitute* "src/error.h"
221 (("extern int errno;")
222 "#include <errno.h>"))))
225 (invoke "package/compile")))
227 (lambda* (#:key outputs #:allow-other-keys)
228 (let* ((out (assoc-ref outputs "out"))
229 (bin (string-append out "/bin")))
230 (for-each (lambda (file)
231 (install-file file bin))
232 (find-files "command"))))))))
233 (synopsis "Tools for managing UNIX style services")
235 "@code{daemontools} is a collection of tools for managing UNIX
237 (license license:public-domain)
238 (home-page "https://cr.yp.to/daemontools.html")))
248 "http://projects.gw-computing.net/attachments/download/79/dfc-"
252 "0zk1ppx93ijimf4sbgqilxxikpsa2gmpbynknyh41xy7jbdjxp0b"))))
253 (build-system cmake-build-system)
254 (arguments '(#:tests? #f)) ; There are no tests.
255 (native-inputs `(("gettext" ,gettext-minimal)))
256 (home-page "http://projects.gw-computing.net/projects/dfc")
257 (synopsis "Display file system space usage using graphs and colors")
259 "dfc (df color) is a modern version of df. It uses colors, draws pretty
260 graphs and can export its output to different formats.")
261 (license license:bsd-3)))
269 (uri (string-append "http://hisham.hm/htop/releases/"
270 version "/htop-" version ".tar.gz"))
273 "0j07z0xm2gj1vzvbgh4323k4db9mr7drd7gw95mmpqi61ncvwq1j"))
274 (patches (search-patches "htop-fix-process-tree.patch"))))
275 (build-system gnu-build-system)
277 `(("ncurses" ,ncurses)))
279 `(("python" ,python-minimal-wrapper))) ; for scripts/MakeHeader.py
280 (home-page "https://hisham.hm/htop/")
281 (synopsis "Interactive process viewer")
283 "This is htop, an interactive process viewer. It is a text-mode
284 application (for console or X terminals) and requires ncurses.")
285 (license license:gpl2)))
294 (uri (string-append "mirror://gnu/pies/pies-"
298 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
299 (build-system gnu-build-system)
301 '(#:phases (modify-phases %standard-phases
302 (add-before 'build 'patch-/bin/sh
303 (lambda* (#:key inputs #:allow-other-keys)
304 ;; Use the right shell when executing user-provided
306 (let ((bash (assoc-ref inputs "bash")))
307 (substitute* "src/progman.c"
309 (string-append "\"" bash "/bin/sh\"")))
311 (home-page "https://www.gnu.org/software/pies/")
312 (synopsis "Program invocation and execution supervisor")
314 "GNU pies is a program that supervises the invocation and execution of
315 other programs. It reads the list of programs to be started from its
316 configuration file, executes them, and then monitors their status,
317 re-executing them as necessary.")
318 (license license:gpl3+)))
320 (define-public inetutils
326 (uri (string-append "mirror://gnu/inetutils/inetutils-"
330 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
331 (build-system gnu-build-system)
333 `(#:configure-flags '("--localstatedir=/var"
335 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
336 ;; cross-compiling (by default it does not.)
337 ,@(if (%current-target-system)
338 '("--with-path-procnet-dev=/proc/net/dev")
340 ;; On some systems, 'libls.sh' may fail with an error such as:
341 ;; "Failed to tell switch -a apart from -A".
342 #:parallel-tests? #f))
343 (inputs `(("ncurses" ,ncurses)
344 ("readline" ,readline))) ;for 'ftp'
345 (native-inputs `(("netstat" ,net-tools))) ;for tests
346 (home-page "https://www.gnu.org/software/inetutils/")
347 (synopsis "Basic networking utilities")
349 "Inetutils is a collection of common network programs, such as an ftp
350 client and server, a telnet client and server, an rsh client and server, and
352 (license license:gpl3+)))
354 (define-public shadow
361 "https://github.com/shadow-maint/shadow/releases/"
362 "download/" version "/shadow-" version ".tar.xz"))
363 (patches (search-patches "shadow-CVE-2018-7169.patch"))
366 "0hdpai78n63l3v3fgr3kkiqzhd0awrpfnnzz4mf7lmxdh61qb37w"))))
367 (build-system gnu-build-system)
369 `(;; Assume System V `setpgrp (void)', which is the default on GNU
370 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
372 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
375 (modify-phases %standard-phases
376 (add-before 'build 'set-nscd-file-name
377 (lambda* (#:key inputs #:allow-other-keys)
378 ;; Use the right file name for nscd.
379 (let ((libc (assoc-ref inputs
380 ,(if (%current-target-system)
383 (substitute* "lib/nscd.c"
385 (string-append libc "/sbin/nscd"))))))
386 (add-after 'install 'remove-groups
387 (lambda* (#:key outputs #:allow-other-keys)
388 ;; Remove `groups', which is already provided by Coreutils.
389 (let* ((out (assoc-ref outputs "out"))
390 (bin (string-append out "/bin"))
391 (man (string-append out "/share/man")))
392 (delete-file (string-append bin "/groups"))
393 (for-each delete-file (find-files man "^groups\\."))
396 (inputs (if (string-contains (or (%current-target-system)
399 `(("linux-pam" ,linux-pam))
401 (home-page "http://pkg-shadow.alioth.debian.org/")
402 (synopsis "Authentication-related tools such as passwd, su, and login")
404 "Shadow provides a number of authentication-related tools, including:
405 login, passwd, su, groupadd, and useradd.")
407 ;; The `vipw' program is GPLv2+.
408 ;; libmisc/salt.c is public domain.
409 (license license:bsd-3)))
411 (define-public mingetty
417 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
418 version "/mingetty-" version ".tar.gz"))
421 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
422 (build-system gnu-build-system)
425 (modify-phases %standard-phases
427 (lambda* (#:key inputs outputs #:allow-other-keys)
428 (let* ((out (assoc-ref outputs "out"))
429 (man8 (string-append out "/share/man/man8"))
430 (sbin (string-append out "/sbin"))
431 (shadow (assoc-ref inputs "shadow"))
432 (login (string-append shadow "/bin/login")))
433 (substitute* "Makefile"
435 (string-append "SBINDIR = " out
438 (string-append "MANDIR = " out
439 "/share/man/man8\n")))
441 ;; Pick the right 'login' by default.
442 (substitute* "mingetty.c"
444 (string-append "\"" login "\"")))
449 #:tests? #f)) ; no tests
450 (inputs `(("shadow" ,shadow)))
452 (home-page "https://sourceforge.net/projects/mingetty")
453 (synopsis "Getty for the text console")
455 "Small console getty that is started on the Linux text console,
456 asks for a login name and then transfers over to 'login'. It is extended to
457 allow automatic login and starting any app.")
458 (license license:gpl2+)))
460 (define-public net-base
467 "mirror://debian/pool/main/n/netbase/netbase_"
471 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
472 (build-system trivial-build-system)
474 `(#:modules ((guix build utils))
476 (use-modules (guix build utils)
479 (let* ((source (assoc-ref %build-inputs "source"))
480 (tar (assoc-ref %build-inputs "tar"))
481 (xz (assoc-ref %build-inputs "xz"))
482 (output (assoc-ref %outputs "out"))
483 (etc (string-append output "/etc")))
484 (setenv "PATH" (string-append xz "/bin"))
485 (system* (string-append tar "/bin/tar") "xvf"
487 (chdir ,(string-append "netbase-" version))
490 '("etc-services" "etc-protocols" "etc-rpc")
491 (map (cut string-append etc "/" <>)
492 '("services" "protocols" "rpc")))
494 (native-inputs `(("tar" ,tar)
496 (synopsis "IANA protocol, port, and RPC number assignments")
498 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
499 files, which contain information about the IANA-assigned port, protocol, and
501 (home-page "http://packages.debian.org/sid/netbase")
502 (license license:gpl2)))
504 (define-public netcat
510 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
511 "/netcat-" version ".tar.bz2"))
514 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
515 (build-system gnu-build-system)
518 ;; By default, man and info pages are put in PREFIX/{man,info},
519 ;; but we want them in PREFIX/share/{man,info}.
520 (let ((out (assoc-ref %outputs "out")))
521 (list (string-append "--mandir=" out "/share/man")
522 (string-append "--infodir=" out "/share/info")))))
523 (home-page "http://netcat.sourceforge.net")
524 (synopsis "Read and write data over TCP/IP")
526 "Netcat is a featured networking utility which reads and writes data
527 across network connections, using the TCP/IP protocol. It is designed to be a
528 reliable \"back-end\" tool that can be used directly or easily driven by other
529 programs and scripts. At the same time, it is a feature-rich network debugging
530 and exploration tool, since it can create almost any kind of connection you
531 would need and has several interesting built-in capabilities.")
532 (license license:gpl2+)))
534 (define-public sipcalc
541 (uri (string-append "http://www.routemeister.net/projects"
542 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
545 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
546 (build-system gnu-build-system)
547 (home-page "http://www.routemeister.net/projects/sipcalc/")
548 (synopsis "Command-line IP subnet calculator")
550 "Sipcalc is an advanced command-line IP subnet calculator. It can take
551 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
552 of information about a given subnet.
559 @item Retrieving of address information from interfaces.
560 @item Classfull and CIDR output.
561 @item Multiple address and netmask input and output formats (dotted quad, hex,
563 @item Output of broadcast address, network class, Cisco wildcard,
564 hosts/range, network range.
565 @item The ability to split a network based on a smaller netmask, now also with
566 recursive runs on the generated subnets. (also IPv6)
570 @item Compressed and expanded input and output addresses.
571 @item Standard IPv6 network output.
572 @item v4 in v6 output.
573 @item Reverse DNS address generation.
576 (license license:bsd-3)))
584 (uri (string-append "mirror://gnu/alive/alive-"
588 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
589 (build-system gnu-build-system)
590 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
591 (inputs `(("guile" ,guile-2.0)
592 ("inetutils" ,inetutils)))
593 (home-page "https://www.gnu.org/software/alive/")
594 (synopsis "Autologin and keep-alive daemon")
596 "GNU Alive sends periodic pings to a server, generally to keep a
598 (license license:gpl3+)))
600 (define-public isc-dhcp
601 (let* ((bind-major-version "9")
602 (bind-minor-version "9")
603 (bind-patch-version "11")
604 (bind-release-type "-P") ; for patch release, use "-P"
605 (bind-release-version "1") ; for patch release, e.g. "6"
606 (bind-version (string-append bind-major-version
612 bind-release-version)))
618 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
619 version "/dhcp-" version ".tar.gz"))
622 "1hx3az6ckvgvybr1ag4k9kqr8zfcpzcww4vpw5gz0mi8y2z7gl9g"))))
623 (build-system gnu-build-system)
625 `(#:parallel-build? #f
627 (modify-phases %standard-phases
628 (add-after 'unpack 'replace-bundled-bind
629 (lambda* (#:key inputs #:allow-other-keys)
630 (delete-file "bind/bind.tar.gz")
631 (copy-file (assoc-ref inputs "bind-source-tarball")
633 (chmod "bind/bind.tar.gz" #o644)
634 (substitute* "bind/version.tmp"
636 (format #f "MAJORVER=~a\n" ,bind-major-version))
638 (format #f "MINORVER=~a\n" ,bind-minor-version))
640 (format #f "PATCHVER=~a\n" ,bind-patch-version))
642 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
644 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
646 (add-after 'configure 'post-configure
647 (lambda* (#:key outputs #:allow-other-keys)
648 ;; Point to the right client script, which will be
649 ;; installed in a later phase.
650 (substitute* "includes/dhcpd.h"
651 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
652 (let ((out (assoc-ref outputs "out")))
653 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
654 out "/libexec/dhclient-script"
657 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
658 ;; we must patch shebangs in there and make sure the right
660 (with-directory-excursion "bind"
661 (substitute* "Makefile"
663 (let ((sh (which "sh")))
664 (string-append "./configure CONFIG_SHELL="
667 (let ((bind-directory (string-append "bind-" ,bind-version)))
668 (system* "tar" "xf" "bind.tar.gz")
669 (for-each patch-shebang
670 (find-files bind-directory ".*"))
671 (zero? (system* "tar" "cf" "bind.tar.gz"
673 ;; avoid non-determinism in the archive
677 "--group=root:0"))))))
678 (add-after 'install 'post-install
679 (lambda* (#:key inputs outputs #:allow-other-keys)
680 ;; Install the dhclient script for GNU/Linux and make sure
681 ;; if finds all the programs it needs.
682 (let* ((out (assoc-ref outputs "out"))
683 (libexec (string-append out "/libexec"))
684 (coreutils (assoc-ref inputs "coreutils"))
685 (inetutils (assoc-ref inputs "inetutils"))
686 (net-tools (assoc-ref inputs "net-tools"))
687 (sed (assoc-ref inputs "sed")))
688 (substitute* "client/scripts/linux"
690 (string-append (assoc-ref inputs "iproute")
694 (copy-file "client/scripts/linux"
695 (string-append libexec "/dhclient-script"))
698 (string-append libexec "/dhclient-script")
701 (string-append dir "/bin:"
703 (list inetutils net-tools coreutils sed))))))))))
705 (native-inputs `(("perl" ,perl)))
707 (inputs `(("inetutils" ,inetutils)
708 ("net-tools" ,net-tools)
711 ;; XXX isc-dhcp bundles a copy of bind that has security
712 ;; flaws, so we use a newer version.
713 ("bind-source-tarball"
716 (uri (string-append "http://ftp.isc.org/isc/bind9/"
718 "/bind-" bind-version ".tar.gz"))
721 "1a4g6nzzrbmhngdgvgv1jjq4fm06m8fwc2a0gskkchplxl7dva20"))))
723 ;; When cross-compiling, we need the cross Coreutils and sed.
724 ;; Otherwise just use those from %FINAL-INPUTS.
725 ,@(if (%current-target-system)
726 `(("coreutils" ,coreutils)
730 (home-page "http://www.isc.org/products/DHCP/")
731 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
733 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
734 reference implementation of all aspects of DHCP, through a suite of DHCP
735 tools: server, client, and relay agent.")
736 (license license:isc)
737 (properties '((cpe-name . "dhcp"))))))
739 (define-public libpcap
745 (uri (string-append "http://www.tcpdump.org/release/libpcap-"
749 "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7"))))
750 (build-system gnu-build-system)
751 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
752 (arguments '(#:configure-flags '("--with-pcap=linux")
753 #:tests? #f)) ; no 'check' target
754 (home-page "http://www.tcpdump.org")
755 (synopsis "Network packet capture library")
757 "libpcap is an interface for user-level packet capture. It provides a
758 portable framework for low-level network monitoring. Applications include
759 network statistics collection, security monitoring, network debugging, etc.")
761 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
762 (license license:bsd-3)))
764 (define-public tcpdump
770 (uri (string-append "http://www.tcpdump.org/release/tcpdump-"
774 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
775 (build-system gnu-build-system)
776 (inputs `(("libpcap" ,libpcap)
777 ("openssl" ,openssl)))
778 (native-inputs `(("perl" ,perl))) ; for tests
779 (home-page "http://www.tcpdump.org/")
780 (synopsis "Network packet analyzer")
782 "Tcpdump is a command-line tool to analyze network traffic passing
783 through the network interface controller.")
784 (license license:bsd-3)))
786 (define-public jnettop
792 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
796 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
797 (build-system gnu-build-system)
799 `(("pkg-config" ,pkg-config)))
803 ("libpcap" ,libpcap)))
804 (home-page "http://jnettop.kubs.info/")
805 (synopsis "Visualize network traffic by bandwidth use")
807 "Jnettop is a traffic visualiser, which captures traffic going
808 through the host it is running from and displays streams sorted
809 by bandwidth they use.")
810 (license license:gpl2+)))
812 (define-public clusterssh
818 (uri (string-append "mirror://sourceforge/clusterssh/"
819 "1.%20ClusterSSH%20Series%203/" version
820 "/clusterssh-" version ".tar.gz"))
823 "1bwggpvaj2al5blg1ynapviv2kpydffpzq2zkhi81najnvzc1rr7"))))
824 (build-system gnu-build-system)
825 (inputs `(("perl" ,perl)))
826 (propagated-inputs `(("xterm" ,xterm)
828 ("perl-x11-protocol" ,perl-x11-protocol)))
831 (modify-phases %standard-phases
832 (add-after 'install 'set-load-paths
833 (lambda* (#:key inputs outputs #:allow-other-keys)
834 ;; Put the perl-tk and perl-x11-protocol modules in the perl inc
836 (let* ((out (assoc-ref outputs "out"))
837 (prog (string-append out "/bin/cssh"))
838 (perl-ver ,(package-version perl))
839 (x11-inc (string-append
840 (assoc-ref inputs "perl-x11-protocol")
841 "/lib/perl5/site_perl/" perl-ver))
842 (tk-inc (string-append
843 (assoc-ref inputs "perl-tk")
844 "/lib/perl5/site_perl/" perl-ver
848 `("PERL5LIB" ":" prefix (,x11-inc ,tk-inc))))
850 ;; The clusterssh.sourceforge.net address requires login to view
851 (home-page "https://sourceforge.net/projects/clusterssh/")
852 (synopsis "Secure concurrent multi-server terminal control")
854 "ClusterSSH controls a number of xterm windows via a single graphical
855 console window to allow commands to be interactively run on multiple servers
856 over ssh connections.")
857 (license license:gpl2+)))
859 (define-public rename
866 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
870 "1cf6xx2hiy1xalp35fh8g73j67r0w0g66jpcbc6971x9jbm7bvjy"))))
871 (build-system perl-build-system)
873 `(("perl-module-build" ,perl-module-build)
874 ("perl-test-pod" ,perl-test-pod)
875 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
876 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
877 (synopsis "Perl extension for renaming multiple files")
879 "This package provides a Perl interface (@code{Perl::Rename}) as well
880 as a command-line utility (@command{rename}) that can rename multiple files
881 at once based on a Perl regular expression.")
882 (license license:perl-license)))
884 (define-public rottlog
890 (uri (string-append "mirror://gnu/rottlog/rottlog-"
894 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
895 (modules '((guix build utils)))
897 '(substitute* "Makefile.in"
898 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
899 ;; Don't try to chown root.
901 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
902 ;; Don't attempt to create /var/lib/rottlog.
904 (build-system gnu-build-system)
906 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
907 "--localstatedir=/var")
909 ;; Install example config files in OUT/etc.
910 #:make-flags (list (string-append "ROTT_ETCDIR="
911 (assoc-ref %outputs "out")
914 #:phases (modify-phases %standard-phases
915 (add-after 'unpack 'patch-paths
918 (("/usr/sbin/sendmail") "sendmail"))
920 (add-after 'build 'set-packdir
922 ;; Set a default location for archived logs.
925 "packdir=\"/var/log\""))
927 (add-before 'install 'tweak-rc-weekly
929 (substitute* "rc/weekly"
933 ;; The file is called 'syslog.pid' (no 'd').
936 (add-after 'install 'install-info
938 (zero? (system* "make" "install-info")))))))
939 (native-inputs `(("texinfo" ,texinfo)
940 ("util-linux" ,util-linux))) ; for 'cal'
941 (home-page "https://www.gnu.org/software/rottlog/")
942 (synopsis "Log rotation and management")
944 "GNU Rot[t]log is a program for managing log files. It is used to
945 automatically rotate out log files when they have reached a given size or
946 according to a given schedule. It can also be used to automatically compress
947 and archive such logs. Rot[t]log will mail reports of its activity to the
948 system administrator.")
949 (license license:gpl3+)))
958 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
960 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
964 "00pxp74xkwdcmrjwy55j0k8p684jk1zx3nzdc11v30q8q8kwnmkj"))
965 (modules '((guix build utils)))
967 '(delete-file-recursively "lib/zlib"))))
968 (build-system gnu-build-system)
971 (list "--with-logpath=/var/log/sudo.log"
972 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
973 "--with-vardir=/var/db/sudo"
974 "--with-iologdir=/var/log/sudo-io"
976 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
978 (string-append "CPPFLAGS=-D_PATH_MV='\""
979 (assoc-ref %build-inputs "coreutils")
982 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
986 (modify-phases %standard-phases
987 (add-before 'configure 'pre-configure
989 (substitute* "src/sudo_usage.h.in"
990 ;; Do not capture 'configure' arguments since we would
991 ;; unduly retain references, and also because the
992 ;; CPPFLAGS above would close the string literal
994 (("@CONFIGURE_ARGS@") "\"\""))
995 (substitute* (find-files "." "Makefile\\.in")
996 (("-o [[:graph:]]+ -g [[:graph:]]+")
997 ;; Allow installation as non-root.
999 (("^install: (.*)install-sudoers(.*)" _ before after)
1000 ;; Don't try to create /etc/sudoers.
1001 (string-append "install: " before after "\n"))
1002 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1003 ;; Don't try to create /run/sudo.
1005 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1006 ;; Don't try to create /var/db/sudo.
1010 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1011 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1015 ("linux-pam" ,linux-pam)
1017 ("coreutils" ,coreutils)))
1018 (home-page "https://www.sudo.ws/")
1019 (synopsis "Run commands as root")
1021 "Sudo (su \"do\") allows a system administrator to delegate authority to
1022 give certain users (or groups of users) the ability to run some (or all)
1023 commands as root or another user while providing an audit trail of the
1024 commands and their arguments.")
1026 ;; See <http://www.sudo.ws/sudo/license.html>.
1027 (license license:x11)))
1029 (define-public wpa-supplicant-minimal
1031 (name "wpa-supplicant-minimal")
1036 "http://w1.fi/releases/wpa_supplicant-"
1039 (patches (search-patches "wpa-supplicant-CVE-2017-13082.patch"
1040 "wpa-supplicant-fix-key-reuse.patch"
1041 "wpa-supplicant-fix-zeroed-keys.patch"
1042 "wpa-supplicant-fix-nonce-reuse.patch"
1043 "wpa-supplicant-krack-followups.patch"))
1046 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
1047 (build-system gnu-build-system)
1050 (modify-phases %standard-phases
1052 (lambda* (#:key outputs #:allow-other-keys)
1053 (chdir "wpa_supplicant")
1054 (copy-file "defconfig" ".config")
1055 (let ((port (open-file ".config" "al")))
1057 CONFIG_DEBUG_SYSLOG=y
1059 # Choose GnuTLS (the default is OpenSSL.)
1062 CONFIG_DRIVER_NL80211=y
1063 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1065 CONFIG_READLINE=y\n" port)
1066 (close-port port))))
1067 (add-after 'install 'install-man-pages
1068 (lambda* (#:key outputs #:allow-other-keys)
1069 (let* ((out (assoc-ref outputs "out"))
1070 (man (string-append out "/share/man"))
1071 (man5 (string-append man "/man5"))
1072 (man8 (string-append man "/man8")))
1073 (define (copy-man-page target)
1075 (install-file file target)))
1077 (mkdir-p man5) (mkdir man8)
1078 (for-each (copy-man-page man5)
1079 (find-files "doc/docbook" "\\.5"))
1080 (for-each (copy-man-page man8)
1081 (find-files "doc/docbook" "\\.8"))
1084 #:make-flags (list "CC=gcc"
1085 (string-append "BINDIR=" (assoc-ref %outputs "out")
1087 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1091 `(("readline" ,readline)
1094 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
1096 `(("pkg-config" ,pkg-config)))
1097 (home-page "http://w1.fi/wpa_supplicant/")
1098 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1100 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1101 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1102 the client stations. It implements key negotiation with a WPA Authenticator
1103 and it controls the roaming and IEEE 802.11 authentication/association of the
1106 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
1108 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1109 (license license:bsd-3)))
1111 (define-public wpa-supplicant
1112 (package (inherit wpa-supplicant-minimal)
1113 (name "wpa-supplicant")
1114 (inputs `(("dbus" ,dbus)
1115 ,@(package-inputs wpa-supplicant-minimal)))
1117 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1119 `(modify-phases ,phases
1120 (add-after 'configure 'configure-for-dbus
1122 (let ((port (open-file ".config" "al")))
1124 CONFIG_CTRL_IFACE_DBUS=y
1125 CONFIG_CTRL_IFACE_DBUS_NEW=y
1126 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1129 (add-after 'install-man-pages 'install-dbus-conf
1130 (lambda* (#:key outputs #:allow-other-keys)
1131 (let* ((out (assoc-ref outputs "out"))
1132 (dir (string-append out "/etc/dbus-1/system.d")))
1134 (copy-file "dbus/dbus-wpa_supplicant.conf"
1135 (string-append dir "/wpa_supplicant.conf")))
1138 (define-public wakelan
1145 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1149 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1150 (build-system gnu-build-system)
1153 (modify-phases %standard-phases
1155 (lambda* (#:key outputs #:allow-other-keys)
1156 (let ((out (assoc-ref outputs "out")))
1157 (mkdir-p (string-append out "/bin"))
1158 (mkdir-p (string-append out "/share/man/man1"))
1160 ;; It's an old configure script that doesn't understand
1161 ;; the extra options we pass.
1162 (setenv "CONFIG_SHELL" (which "bash"))
1164 (system* "./configure"
1165 (string-append "--prefix=" out)
1166 (string-append "--mandir=" out
1169 (home-page "http://kernel.org") ; really, no home page
1170 (synopsis "Send a wake-on-LAN packet")
1172 "WakeLan broadcasts a properly formatted UDP packet across the local area
1173 network, which causes enabled computers to power on.")
1174 (license license:gpl2+)))
1176 (define-public dmidecode
1183 "mirror://savannah/dmidecode/dmidecode-"
1187 "1h0sg0lxa15nzf8s7884p6q7p6md9idm0c79wyqmk32l4ndwwrnp"))))
1188 (build-system gnu-build-system)
1190 '(#:phases (modify-phases %standard-phases (delete 'configure))
1191 #:tests? #f ; no 'check' target
1192 #:make-flags (list (string-append "prefix="
1193 (assoc-ref %outputs "out")))))
1194 (home-page "https://www.nongnu.org/dmidecode/")
1195 (synopsis "Read hardware information from the BIOS")
1197 "Dmidecode reports information about your system's hardware as described
1198 in your system BIOS according to the SMBIOS/DMI standard. This typically
1199 includes system manufacturer, model name, serial number, BIOS version, asset
1200 tag as well as a lot of other details of varying level of interest and
1201 reliability depending on the manufacturer. This will often include usage
1202 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1203 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1204 (license license:gpl2+)))
1206 (define-public acpica
1209 (version "20180313")
1213 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1217 "16galaadmr37q2pvk2gyxrm8d1xldzk31djfxfq9v1c9yq4i425h"))))
1218 (build-system gnu-build-system)
1219 (native-inputs `(("flex" ,flex)
1222 '(#:make-flags (list (string-append "PREFIX=" %output)
1225 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1226 #:tests? #f ; no 'check' target.
1227 #:phases (modify-phases %standard-phases (delete 'configure))))
1228 (home-page "https://acpica.org/")
1229 (synopsis "Tools for the development and debug of ACPI tables")
1231 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1232 OS-independent reference implementation of the Advanced Configuration and
1233 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1234 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1235 subsystem, and a small set of tools to assist in developing and debugging ACPI
1236 tables. This package contains only the user-space tools needed for ACPI table
1237 development, not the kernel implementation of ACPI.")
1238 (license license:gpl2))) ; Dual GPLv2/ACPICA Licence
1240 (define-public stress
1246 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1247 version ".orig.tar.gz"))
1250 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1251 (build-system gnu-build-system)
1252 (home-page "https://packages.debian.org/sid/stress")
1253 (synopsis "Impose load on and stress test a computer system")
1255 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1256 or disk stress on a POSIX-compliant operating system and reports any errors it
1259 Stress is not a benchmark. It is a tool used by system administrators to
1260 evaluate how well their systems will scale, by kernel programmers to evaluate
1261 perceived performance characteristics, and by systems programmers to expose
1262 the classes of bugs which only or more frequently manifest themselves when the
1263 system is under heavy load.")
1264 (license license:gpl2+)))
1266 (define-public detox
1272 (uri (string-append "mirror://sourceforge/detox/detox/" version
1273 "/detox-" version ".tar.bz2"))
1276 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1277 (build-system gnu-build-system)
1278 ;; Both flex and popt are used in this case for their runtime libraries
1279 ;; (libfl and libpopt).
1284 `(#:configure-flags `(,(string-append "--with-popt="
1285 (assoc-ref %build-inputs "popt")))
1286 #:tests? #f)) ;no 'check' target
1287 (home-page "http://detox.sourceforge.net")
1288 (synopsis "Clean up file names")
1290 "Detox is a program that renames files to make them easier to work with
1291 under Unix and related operating systems. Spaces and various other unsafe
1292 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1293 characters can be replaced as well, as can UTF-8 characters.")
1294 (license license:bsd-3)))
1296 (define-public testdisk
1302 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1303 version ".tar.bz2"))
1306 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1307 (build-system gnu-build-system)
1309 `(("ntfs-3g" ,ntfs-3g)
1310 ("util-linux" ,util-linux)
1311 ("openssl" ,openssl)
1312 ;; FIXME: add reiserfs
1314 ("e2fsprogs" ,e2fsprogs)
1315 ("libjpeg" ,libjpeg)
1316 ("ncurses" ,ncurses)))
1317 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1318 (synopsis "Data recovery tool")
1320 "TestDisk is a program for data recovery, primarily designed to help
1321 recover lost partitions and/or make non-booting disks bootable again.")
1322 (license license:gpl2+)))
1331 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1334 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1335 (build-system gnu-build-system)
1337 '(#:phases (modify-phases %standard-phases (delete 'configure))
1338 #:tests? #f ; no check target
1339 #:make-flags (let ((out (assoc-ref %outputs "out")))
1340 (list (string-append "prefix=" out)))))
1341 (synopsis "Recursively list the contents of a directory")
1343 "Tree is a recursive directory listing command that produces a depth
1344 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1345 environment variable is set and output is to tty.")
1346 (home-page "http://mama.indstate.edu/users/ice/tree/")
1347 (license license:gpl2+)))
1349 (define-public direvent
1355 (uri (string-append "mirror://gnu/direvent/direvent-"
1359 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1360 (modules '((guix build utils)))
1361 (snippet '(substitute* "tests/testsuite"
1362 (("#![[:blank:]]?/bin/sh")
1364 (build-system gnu-build-system)
1367 (modify-phases %standard-phases
1368 (add-before 'build 'patch-/bin/sh
1369 (lambda* (#:key inputs #:allow-other-keys)
1370 ;; Use the right shell when executing the watcher and
1371 ;; user-provided shell commands.
1372 (let ((bash (assoc-ref inputs "bash")))
1373 (substitute* '("src/direvent.c" "src/progman.c")
1375 (string-append "\"" bash "/bin/sh\"")))
1377 ;; Adjust the 'shell.at' test accordingly.
1378 (substitute* "tests/testsuite"
1380 (string-append "SHELL=" bash "/bin/sh")))
1383 (home-page "https://www.gnu.org/software/direvent/")
1384 (synopsis "Daemon to monitor directories for events such as file removal")
1386 "A daemon that monitors directories for events, such as creating,
1387 deleting or modifying files. It can monitor different sets of directories for
1388 different events. When an event is detected, direvent calls a specified
1389 external program with information about the event, such as the location
1390 within the file system where it occurred. Thus, \"direvent\" provides an
1391 easy way to react immediately if given files undergo changes, for example, to
1392 track changes in important system configuration files.")
1393 (license license:gpl3+)))
1395 (define-public libcap-ng
1402 "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1406 "0a0k484kwv0zilry2mbl9k56cnpdhsjxdxin17jas6kkyfy345aa"))))
1407 (build-system gnu-build-system)
1410 (list "--without-python")))
1411 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1412 (synopsis "Library for more easily working with POSIX capabilities")
1414 "The libcap-ng library is intended to make programming with POSIX
1415 capabilities easier than the traditional libcap library. It includes
1416 utilities that can analyse all currently running applications and print out
1417 any capabilities and whether or not it has an open ended bounding set. The
1418 included utilities are designed to let admins and developers spot apps from
1419 various ways that may be running with too much privilege.")
1420 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1421 (license (list license:lgpl2.1+ license:gpl2+))))
1423 (define-public smartmontools
1425 (name "smartmontools")
1430 "mirror://sourceforge/smartmontools/smartmontools/"
1431 version "/smartmontools-" version ".tar.gz"))
1434 "0m1hllbb78rr6cxkbalmz1gqkl0psgq8rrmv4gwcmz34n07kvx2i"))))
1435 (build-system gnu-build-system)
1436 (inputs `(("libcap-ng" ,libcap-ng)))
1437 (home-page "https://www.smartmontools.org/")
1438 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1440 "The smartmontools package contains utility programs to control and
1441 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1442 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1443 disks. In many cases, these utilities will provide advanced warning of disk
1444 degradation and failure.")
1445 (license license:gpl2+)))
1447 (define-public fdupes
1455 "https://github.com/adrianlopezroche/fdupes/archive/v"
1457 (file-name (string-append name "-" version ".tar.gz"))
1460 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1461 (build-system gnu-build-system)
1463 '(#:phases (modify-phases %standard-phases
1464 (delete 'configure))
1465 #:tests? #f ; no 'check' target
1466 #:make-flags (list "CC=gcc"
1467 (string-append "PREFIX="
1468 (assoc-ref %outputs "out")))))
1469 (home-page "https://github.com/adrianlopezroche/fdupes")
1470 (synopsis "Identify duplicate files")
1472 "fdupes is a program for identifying duplicate files residing within
1473 specified directories.")
1474 (license license:expat)))
1476 (define-public graphios
1484 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1488 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1489 (build-system python-build-system)
1491 ;; Be warned: Building with Python 3 succeeds, but the build process
1492 ;; throws a syntax error that is ignored.
1493 `(#:python ,python-2
1495 (modify-phases %standard-phases
1496 (add-before 'build 'fix-setup.py
1497 (lambda* (#:key outputs #:allow-other-keys)
1498 ;; Fix hardcoded, unprefixed file names.
1499 (let ((out (assoc-ref outputs "out")))
1500 (substitute* '("setup.py")
1501 (("/etc") (string-append out "/etc"))
1503 (("distro_ver = .*") "distro_ver = ''"))
1505 (home-page "https://github.com/shawn-sterling/graphios")
1506 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1508 "Graphios is a script to emit nagios perfdata to various upstream metrics
1509 processing and time-series systems. It's currently compatible with Graphite,
1510 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1511 of supported upstream metrics systems simultaneously.")
1512 (license license:gpl2+)))
1514 (define-public ansible
1521 (uri (pypi-uri "ansible" version))
1524 "0n3n9py4s3aykiii31xq8g4wmd6693jvby0424pjrg0bna01apri"))
1525 (patches (search-patches "ansible-wrap-program-hack.patch"))))
1526 (build-system python-build-system)
1528 `(("python2-pycrypto" ,python2-pycrypto)
1529 ("python2-httplib2" ,python2-httplib2)
1530 ("python2-passlib" ,python2-passlib)
1531 ("python2-nose" ,python2-nose)
1532 ("python2-mock" ,python2-mock)
1533 ("python2-jinja2" ,python2-jinja2)
1534 ("python2-pyyaml" ,python2-pyyaml)
1535 ("python2-paramiko" ,python2-paramiko)))
1537 `(("python2-pycrypto" ,python2-pycrypto)
1538 ("python2-jinja2" ,python2-jinja2)
1539 ("python2-pyyaml" ,python2-pyyaml)
1540 ("python2-paramiko" ,python2-paramiko)))
1542 `(#:python ,python-2)) ; incompatible with Python 3
1543 (home-page "https://www.ansible.com/")
1544 (synopsis "Radically simple IT automation")
1545 (description "Ansible is a radically simple IT automation system. It
1546 handles configuration management, application deployment, cloud provisioning,
1547 ad hoc task execution, and multinode orchestration---including trivializing
1548 things like zero-downtime rolling updates with load balancers.")
1549 (license license:gpl3+)))
1551 (define-public cpulimit
1558 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1560 (file-name (string-append name "-" version ".tar.gz"))
1563 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1564 (build-system gnu-build-system)
1566 `(#:phases (modify-phases %standard-phases
1571 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1575 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1578 (lambda* (#:key outputs #:allow-other-keys)
1579 (let* ((out (assoc-ref outputs "out"))
1580 (bin (string-append out "/bin")))
1581 (install-file "src/cpulimit" bin)))))))
1582 (home-page "https://github.com/opsengine/cpulimit")
1583 (synopsis "Limit CPU usage")
1585 "Cpulimit limits the CPU usage of a process. It does not change the nice
1586 value or other scheduling priority settings, but the real CPU usage, and is
1587 able to adapt itself dynamically to the overall system load. Children
1588 processes and threads of the specified process may optionally share the same
1590 (license license:gpl2+)))
1592 (define-public autojump
1599 (uri (string-append "https://github.com/wting/autojump/archive/"
1600 "release-v" version ".tar.gz"))
1601 (file-name (string-append name "-" version ".tar.gz"))
1604 "113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
1605 (build-system gnu-build-system)
1606 (native-inputs ;for tests
1607 `(("python-mock" ,python-mock)
1608 ("python-pytest" ,python-pytest)))
1610 `(("python" ,python-wrapper)))
1612 `(#:phases (modify-phases %standard-phases
1618 (system* "python" "tests/unit/autojump_utils_test.py"))))
1620 ;; The install.py script doesn't allow system installation
1621 ;; into an arbitrary prefix, so do our own install.
1622 (lambda* (#:key outputs #:allow-other-keys)
1623 (let* ((out (assoc-ref outputs "out"))
1624 (bin (string-append out "/bin"))
1625 (share (string-append out "/share/autojump"))
1626 (py (string-append out "/lib/python"
1627 ,(version-major+minor
1628 (package-version python-wrapper))
1630 (man (string-append out "/share/man/man1")))
1631 (install-file "bin/autojump" bin)
1632 (for-each (λ (f) (install-file f py))
1633 (find-files "bin" "\\.py$"))
1634 (for-each (λ (f) (install-file f share))
1635 (find-files "bin" "autojump\\..*$"))
1636 (substitute* (string-append share "/autojump.sh")
1637 (("/usr/local") out))
1638 (install-file "docs/autojump.1" man)
1639 (wrap-program (string-append bin "/autojump")
1640 `("PYTHONPATH" ":" prefix (,py)))
1642 (home-page "https://github.com/wting/autojump")
1643 (synopsis "Shell extension for file system navigation")
1645 "Autojump provides a faster way to navigate your file system, with a \"cd
1646 command that learns\". It works by maintaining a database of the directories
1647 you use the most from the command line and allows you to \"jump\" to
1648 frequently used directories by typing only a small pattern.")
1649 (license license:gpl3+)))
1651 (define-public iftop
1657 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1658 "/iftop-" version ".tar.gz"))
1661 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1662 (build-system gnu-build-system)
1664 `(("libpcap" ,libpcap)
1665 ("ncurses" ,ncurses)))
1666 (synopsis "Monitor network usage")
1667 (description "Iftop does for network usage what @command{top} does
1668 for CPU usage. It listens to network traffic on a named interface and
1669 displays a table of current bandwidth usage by pairs of hosts.")
1670 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1671 (license license:gpl2+)))
1673 (define-public munge
1679 (uri (string-append "https://github.com/dun/munge/releases/"
1680 "download/munge-" version "/munge-"
1684 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
1686 `(("openssl" ,openssl)
1687 ("libgcrypt" ,libgcrypt)))
1688 (build-system gnu-build-system)
1689 (home-page "https://dun.github.io/munge/")
1690 (synopsis "Cluster computing authentication service")
1692 "Munge is an authentication service for creating and validating
1693 credentials. It allows a process to authenticate the UID and GID of another
1694 local or remote process within a group of hosts having common users and
1695 groups. These hosts form a security realm that is defined by a shared
1696 cryptographic key. Clients within this security realm can create and validate
1697 credentials without the use of root privileges, reserved ports, or
1698 platform-specific methods.")
1699 (license license:gpl3+)))
1701 (define-public audit
1707 (uri (string-append "http://people.redhat.com/sgrubb/audit/"
1708 "audit-" version ".tar.gz"))
1711 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1712 (build-system gnu-build-system)
1713 (home-page "http://people.redhat.com/sgrubb/audit/")
1715 `(#:configure-flags (list "--with-python=no")
1717 (modify-phases %standard-phases
1718 (add-after 'unpack 'fix-tests
1720 ;; In the build environmnte /etc/passwd does not contain an entry
1721 ;; for root/0, so we have to patch the expected value.
1722 (substitute* "auparse/test/auparse_test.ref"
1723 (("=0 \\(root\\)") "=0 (unknown(0))"))
1726 `(("openldap" ,openldap)
1728 ("sasl" ,cyrus-sasl)))
1729 (synopsis "User-space component to the Linux auditing system")
1731 "auditd is the user-space component to the Linux auditing system, which
1732 allows logging of system calls made by user-land processes. It's responsible
1733 for writing audit records to the disk. Viewing the logs is done with the
1734 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1735 done with the @code{auditctl} utility.")
1736 (license license:gpl2+)))
1744 (uri (string-append "https://nmap.org/dist/nmap-" version
1748 "08bga42ipymmbxd7wy4x5sl26c0ir1fm3n9rc6nqmhx69z66wyd8"))
1749 (modules '((guix build utils)))
1751 '(map delete-file-recursively
1752 ;; Remove bundled lua, pcap, and pcre libraries.
1753 ;; FIXME: Remove bundled liblinear once packaged.
1757 ;; Remove pre-compiled binares.
1759 (build-system gnu-build-system)
1761 `(("openssl" ,openssl)
1762 ("libpcap" ,libpcap)
1766 ("python" ,python-2)))
1768 ;; TODO Add zenmap output.
1769 (outputs '("out" "ndiff"))
1771 '(#:configure-flags '("--without-zenmap")
1773 (modify-phases %standard-phases
1774 (add-after 'configure 'patch-Makefile
1776 (substitute* "Makefile"
1777 ;; Do not attempt to build lua.
1778 (("build-dnet build-lua") "build-dnet"))
1781 (lambda* (#:key outputs #:allow-other-keys)
1782 (define (make out . args)
1783 (unless (zero? (apply system* "make"
1784 (string-append "prefix=" out)
1786 (error "make failed")))
1787 (define (python-path dir)
1788 (string-append dir "/lib/python2.7/site-packages"))
1789 (let ((out (assoc-ref outputs "out"))
1790 (ndiff (assoc-ref outputs "ndiff")))
1791 (for-each mkdir-p (list out ndiff))
1797 (make ndiff "install-ndiff")
1798 (wrap-program (string-append ndiff "/bin/ndiff")
1799 `("PYTHONPATH" prefix
1800 (,(python-path ndiff)))))))
1801 ;; These are the tests that do not require network access.
1803 (lambda _ (zero? (system* "make"
1807 ;; Nmap can't cope with out-of-source building.
1808 #:out-of-source? #f))
1809 (home-page "https://nmap.org/")
1810 (synopsis "Network discovery and security auditing tool")
1812 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1813 tool. It is also useful for tasks such as network inventory, managing service
1814 upgrade schedules, and monitoring host or service uptime. It also provides an
1815 advanced netcat implementation (ncat), a utility for comparing scan
1816 results (ndiff), and a packet generation and response analysis tool (nping).")
1817 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1818 ;; both use a 3-clause BSD license.
1819 (license (list license:nmap license:bsd-3))))
1821 (define-public dstat
1828 "https://github.com/dagwieers/dstat/archive/"
1830 (file-name (string-append "dstat-" version ".tar.gz"))
1833 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1834 (build-system gnu-build-system)
1836 `(#:tests? #f ;; no make check
1837 #:make-flags (let ((out (assoc-ref %outputs "out")))
1838 (list (string-append "DESTDIR=" out)
1840 ;; no configure script
1841 #:phases (modify-phases %standard-phases (delete 'configure))))
1842 (inputs `(("python-2" ,python-2)))
1843 (synopsis "Versatile resource statistics tool")
1844 (description "Dstat is a versatile replacement for @command{vmstat},
1845 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1846 some of their limitations and adds some extra features, more counters and
1847 flexibility. Dstat is handy for monitoring systems during performance tuning
1848 tests, benchmarks or troubleshooting.
1850 Dstat allows you to view all of your system resources in real-time, you can,
1851 e.g., compare disk utilization in combination with interrupts from your IDE
1852 controller, or compare the network bandwidth numbers directly with the disk
1853 throughput (in the same interval).")
1854 (home-page "http://dag.wiee.rs/home-made/dstat/")
1855 (license license:gpl2+)))
1857 (define-public thefuck
1863 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1865 (file-name (string-append name "-" version ".tar.gz"))
1868 "088bn2l1376qlndbpnjya4q1x3913nj3yj3wc7s2w3bz66d23skk"))
1869 (patches (search-patches "thefuck-test-environ.patch"))))
1870 (build-system python-build-system)
1873 (modify-phases %standard-phases
1875 (add-after 'install 'check
1876 (lambda* (#:key inputs outputs #:allow-other-keys)
1877 ;; Tests look for installed package
1878 (add-installed-pythonpath inputs outputs)
1879 ;; Some tests need write access to $HOME.
1880 (setenv "HOME" "/tmp")
1881 (zero? (system* "py.test" "-v")))))))
1883 `(("python-colorama" ,python-colorama)
1884 ("python-decorator" ,python-decorator)
1885 ("python-psutil" ,python-psutil)
1886 ("python-pyte" ,python-pyte)
1887 ("python-six" ,python-six)))
1889 `(("python-mock" ,python-mock)
1890 ("python-pytest" ,python-pytest)
1891 ("python-pytest-mock" ,python-pytest-mock)))
1892 (home-page "https://github.com/nvbn/thefuck")
1893 (synopsis "Correct mistyped console command")
1895 "The Fuck tries to match a rule for a previous, mistyped command, creates
1896 a new command using the matched rule, and runs it.")
1897 (license license:x11)))
1906 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1908 (base32 "0803lp8kd3mp1jcm17i019xiqxdy85hhs6xk67zib8gmvg500gcn"))))
1909 (build-system gnu-build-system)
1911 `(#:tests? #f ; Obscure test failures.
1913 (modify-phases %standard-phases
1915 (add-before 'build 'setup-environment
1916 (lambda* (#:key outputs #:allow-other-keys)
1918 (setenv "prefix" (assoc-ref outputs "out"))
1920 #:make-flags (list "--environment-overrides")))
1921 (home-page "https://www.gentoo.com/di/")
1922 (synopsis "Advanced df like disk information utility")
1924 "'di' is a disk information utility, displaying everything that your
1925 @code{df} command does and more. It features the ability to display your disk
1926 usage in whatever format you prefer. It is designed to be highly portable and
1927 produce uniform output across heterogeneous networks.")
1928 (license license:zlib)))
1930 (define-public cbatticon
1936 (uri (string-append "https://github.com/valr/"
1937 name "/archive/" version ".tar.gz"))
1940 "1s2n49ydh7pznnf02fak4yy0wqkgi9ag7yiw1zg1lhp4m0h37hyh"))
1941 (file-name (string-append name "-" version ".tar.gz"))))
1942 (build-system gnu-build-system)
1944 `(#:tests? #f ; no tests
1946 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1949 (modify-phases %standard-phases
1950 (delete 'configure)))) ; no configure script
1953 ("gettext" ,gettext-minimal)
1954 ("libnotify" ,libnotify)))
1956 `(("pkg-config" ,pkg-config)))
1957 (synopsis "Lightweight battery icon for the system tray")
1958 (description "cbatticon is a lightweight battery icon that displays
1959 the status of your battery in the system tray.")
1960 (home-page "https://github.com/valr/cbatticon")
1961 (license license:gpl2+)))
1963 (define-public interrobang
1964 (let ((revision "1")
1965 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
1967 (name "interrobang")
1968 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1972 (url "https://github.com/TrilbyWhite/interrobang")
1974 (file-name (string-append name "-" version))
1977 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
1978 (build-system gnu-build-system)
1980 `(#:tests? #f ; no tests
1982 (modify-phases %standard-phases
1983 (delete 'configure)) ; no configure script
1984 #:make-flags (list (string-append "PREFIX="
1985 (assoc-ref %outputs "out")))))
1987 `(("libx11" ,libx11)))
1989 `(("pkg-config" ,pkg-config)))
1990 (synopsis "Scriptable launcher menu")
1991 (description "Interrobang is a scriptable launcher menu with a customizable
1992 shortcut syntax and completion options.")
1993 (home-page "https://github.com/TrilbyWhite/interrobang")
1994 (license license:gpl3+))))
1996 (define-public pam-krb5
2003 "https://archives.eyrie.org/software/kerberos/" name "-"
2007 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2008 (build-system gnu-build-system)
2011 (modify-phases %standard-phases
2012 (add-before 'configure 'disable-tests
2014 ;; The build container seems to interfere with some tests.
2015 (substitute* "tests/TESTS"
2016 (("module/basic\n") ""))
2017 (substitute* "tests/TESTS"
2018 (("pam-util/vector\n") ""))
2021 `(("linux-pam" ,linux-pam)
2022 ("mit-krb5" ,mit-krb5)))
2025 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2026 (synopsis "Kerberos PAM module")
2028 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2029 It supports ticket refreshing by screen savers, configurable
2030 authorization handling, authentication of non-local accounts for network
2031 services, password changing, and password expiration, as well as all the
2032 standard expected PAM features. It works correctly with OpenSSH, even
2033 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2034 enabled, and supports extensive configuration either by PAM options or in
2035 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2036 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2037 (home-page "http://www.eyrie.org/~eagle/software/pam-krb5")
2038 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2039 ;; However, the tarball does not contain a copy of the GPL, so unless
2040 ;; we put one in, we cannot distribute it under GPL without violating
2041 ;; clause requiring us to give all recipients a copy.
2042 (license license:gpl1+)))
2044 (define-public sunxi-tools
2046 (name "sunxi-tools")
2051 (uri (string-append "https://github.com/linux-sunxi/"
2052 "sunxi-tools/archive/v" version ".tar.gz"))
2054 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
2055 (modules '((guix build utils)))
2057 ;; Remove binaries contained in the tarball which are only for the
2058 ;; target and can be regenerated anyway.
2059 '(delete-file-recursively "bin"))
2060 (file-name (string-append name "-" version ".tar.gz"))))
2062 `(("pkg-config" ,pkg-config)
2063 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2064 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2065 #:libc (cross-libc "arm-linux-gnueabihf")))
2066 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2067 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2069 `(("libusb" ,libusb)))
2070 (build-system gnu-build-system)
2072 `(#:tests? #f ; no tests exist
2073 #:make-flags (list (string-append "PREFIX="
2074 (assoc-ref %outputs "out"))
2075 (string-append "CROSS_COMPILE="
2076 "arm-linux-gnueabihf-")
2079 (modify-phases %standard-phases
2081 (add-before 'build 'set-environment-up
2082 (lambda* (#:key make-flags #:allow-other-keys)
2084 (string-contains x "cross-arm-linux"))
2085 (define (filter-environment! filter-predicate
2086 environment-variable-names)
2089 (let* ((env-value (getenv env-name))
2090 (search-path (search-path-as-string->list env-value))
2091 (new-search-path (filter filter-predicate
2093 (new-env-value (list->search-path-as-string
2094 new-search-path ":")))
2095 (setenv env-name new-env-value)))
2096 environment-variable-names))
2097 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2098 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2099 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2100 (filter-environment! cross?
2101 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2102 "CROSS_LIBRARY_PATH"))
2103 (filter-environment! (lambda (e) (not (cross? e)))
2104 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2108 (lambda* (#:key make-flags #:allow-other-keys)
2109 (zero? (apply system* "make" "tools" "misc" make-flags))))
2110 (add-after 'build 'build-armhf
2111 (lambda* (#:key make-flags #:allow-other-keys)
2112 (setenv "LIBRARY_PATH" #f)
2113 (zero? (apply system* "make" "target-tools" make-flags))))
2115 (lambda* (#:key make-flags #:allow-other-keys)
2116 (zero? (apply system* "make" "install-all" "install-misc"
2118 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2119 (synopsis "Hardware management tools for Allwinner computers")
2120 (description "This package contains tools for Allwinner devices:
2122 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2123 a textual description of a board (.fex) to a binary representation (.bin).
2124 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2125 makes it register as a special USB device (rather than USB host).
2126 You can then connect it to another computer and flash it from there.
2127 @item @command{sunxi-nand-part}: Partitions NAND flash.
2128 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2129 bootloader) parameters.
2130 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2131 in order to be able to find it.
2132 @item @command{sunxi-meminfo}: Prints memory bus settings.
2133 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2135 (license license:gpl2+)))
2137 (define-public sedsed
2144 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2145 "archive/v" version ".tar.gz"))
2146 (file-name (string-append name "-" version ".tar.gz"))
2149 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2150 (build-system python-build-system)
2152 `(#:tests? #f ; No tests.
2155 (modify-phases %standard-phases
2156 (add-after 'unpack 'patch-sed-in
2158 (substitute* "sedsed.py"
2160 (string-append "sedbin = '" (which "sed") "'")))
2164 (lambda* (#:key outputs #:allow-other-keys)
2165 (let* ((out (assoc-ref outputs "out"))
2166 (bin (string-append out "/bin")))
2167 ;; Just one file to copy around
2168 (install-file "sedsed.py" bin)
2170 (add-after 'install 'symlink
2171 ;; Create 'sedsed' symlink to "sedsed.py".
2172 (lambda* (#:key outputs #:allow-other-keys)
2173 (let* ((out (assoc-ref outputs "out"))
2174 (bin (string-append out "/bin"))
2175 (sed (string-append bin "/sedsed"))
2176 (sedpy (string-append bin "/sedsed.py")))
2179 (home-page "http://aurelio.net/projects/sedsed")
2180 (synopsis "Sed sed scripts")
2182 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2184 In debug mode it reads your script and add extra commands to it. When
2185 executed you can see the data flow between the commands, revealing all the
2186 magic sed does on its internal buffers.
2188 In indent mode your script is reformatted with standard spacing.
2190 In tokenize mode you can see the elements of every command you use.
2192 In HTMLize mode your script is converted to a beautiful colored HTML file,
2193 with all the commands and parameters identified for your viewing pleasure.
2195 With sedsed you can master any sed script. No more secrets, no more hidden
2197 (license license:expat)))
2199 (define-public intel-gpu-tools
2201 (name "intel-gpu-tools")
2205 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2206 "intel-gpu-tools/snapshot/"
2207 "intel-gpu-tools-" version ".tar.gz"))
2210 "1jx5w5fr6jp67rcrlp5v79cn8kp9n0wgd5pbfgzamlah5cx6j3yd"))))
2211 (build-system gnu-build-system)
2213 `(#:tests? #f ; many of the tests try to load kernel modules
2215 (modify-phases %standard-phases
2216 (add-after 'unpack 'autogen
2218 ;; Don't run configure in this phase.
2219 (setenv "NOCONFIGURE" "1")
2220 (invoke "sh" "autogen.sh"))))))
2223 ("util-macros" ,util-macros)
2225 ("libpciaccess" ,libpciaccess)
2229 ("libunwind" ,libunwind)
2230 ("libxrandr" ,libxrandr)
2233 `(("autoconf" ,autoconf)
2234 ("automake" ,automake)
2235 ("libtool" ,libtool)
2236 ("pkg-config" ,pkg-config)))
2237 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2238 (synopsis "Tools for development and testing of the Intel DRM driver")
2239 (description "Intel GPU Tools is a collection of tools for development and
2240 testing of the Intel DRM driver. There are many macro-level test suites that
2241 get used against the driver, including xtest, rendercheck, piglit, and
2242 oglconform, but failures from those can be difficult to track down to kernel
2243 changes, and many require complicated build procedures or specific testing
2244 environments to get useful results. Therefore, Intel GPU Tools includes
2245 low-level tools and tests specifically for development and testing of the
2247 (supported-systems '("i686-linux" "x86_64-linux"))
2248 (license license:expat)))
2250 (define-public fabric
2257 (uri (pypi-uri "Fabric" version))
2260 "0k944dxr41whw7ib6380q9x15wyskx7fqni656icdn8rzshn9bwq"))))
2261 (build-system python-build-system)
2263 `(#:python ,python-2)) ; Python 2 only
2265 `(("python2-fudge" ,python2-fudge)
2266 ("python2-jinja2" ,python2-jinja2)
2267 ("python2-nose" ,python2-nose)))
2269 `(("python2-paramiko" ,python2-paramiko)))
2270 (home-page "http://fabfile.org")
2271 (synopsis "Simple Pythonic remote execution and deployment tool")
2273 "Fabric is designed to upload files and run shell commands on a number of
2274 servers in parallel or serially. These commands are grouped in tasks (which
2275 are regular Python functions) and specified in a @dfn{fabfile}.
2277 It is similar to Capistrano, except it's implemented in Python and doesn't
2278 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2279 tool for remote execution and deployment.")
2280 (license license:bsd-2)))
2282 (define-public neofetch
2288 (uri (string-append "https://github.com/dylanaraps/neofetch/"
2289 "archive/" version ".tar.gz"))
2290 (file-name (string-append name "-" version ".tar.gz"))
2293 "15p69q0jchfms1fpb4i7kq8b28w2xpgh2zmynln618qxv1myf228"))))
2294 (build-system gnu-build-system)
2296 `(#:tests? #f ; there are no tests
2298 (list (string-append "PREFIX=" %output))
2300 (modify-phases %standard-phases
2301 (add-after 'unpack 'patch-target-directories
2302 (lambda* (#:key outputs #:allow-other-keys)
2303 (let ((out (assoc-ref outputs "out")))
2304 (substitute* "Makefile"
2305 (("\\$\\(DESTDIR\\)/etc/")
2307 (substitute* "neofetch"
2308 (("\"/etc/neofetch")
2309 (string-append "\"" out "/etc/neofetch"))
2310 (("\"/usr/share/neofetch")
2311 (string-append "\"" out "/share/neofetch"))))
2313 (delete 'configure) ; no configure script
2315 (lambda* (#:key make-flags outputs #:allow-other-keys)
2316 (let* ((out (assoc-ref outputs "out"))
2317 (doc (string-append out "/share/doc/" ,name "-" ,version))
2318 (etc (string-append doc "/examples/etc")))
2319 (zero? (apply system* `("make" ,@make-flags
2320 ,(string-append "SYSCONFDIR=" etc)
2322 (home-page "https://github.com/dylanaraps/neofetch")
2323 (synopsis "System info script")
2324 (description "Neofetch is a CLI system information tool written in Bash.
2325 Neofetch displays information about your system next to an image, your OS
2326 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2327 used in screenshots to show other users what operating system or distribution
2328 you are running, what theme or icon set you are using, etc.")
2329 (license license:expat)))
2337 (uri (string-append "https://github.com/jarun/nnn/"
2338 "archive/v" version ".tar.gz"))
2339 (file-name (string-append name "-" version ".tar.gz"))
2342 "0zswf8lb29zr1z642i1d0zi1y2mxal8qjqdrpdiqjh197jamj3zm"))))
2343 (build-system gnu-build-system)
2344 (inputs `(("ncurses" ,ncurses)
2345 ("readline" ,readline)))
2347 '(#:tests? #f ; no tests
2349 ;; We do not provide `ncurses.h' within an `ncursesw'
2350 ;; sub-directory, so patch the source accordingly. See
2351 ;; <http://bugs.gnu.org/19018>.
2352 ;; Thanks to gtypist maintainer.
2353 (modify-phases %standard-phases
2354 (add-after 'unpack 'patch-curses-lib
2355 (lambda* (#:key outputs #:allow-other-keys)
2356 (let ((out (assoc-ref outputs "out")))
2357 (substitute* "Makefile"
2360 (substitute* "nnn.c"
2361 (("ncursesw\\/curses.h")
2364 (delete 'configure))
2367 (string-append "PREFIX="
2368 (assoc-ref %outputs "out"))
2369 (string-append "-Wl,-rpath="
2372 (home-page "https://github.com/jarun/nnn")
2373 (synopsis "Terminal file browser")
2374 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2375 lightweight terminal file browser with easy keyboard shortcuts for
2376 navigation, opening files and running tasks. There is no config file and
2377 mime associations are hard-coded. The incredible user-friendliness and speed
2378 make it a perfect utility on modern distros.")
2379 (license license:bsd-2)))
2381 (define-public thermald
2388 (uri (string-append "https://github.com/01org/thermal_daemon/archive/v"
2390 (file-name (string-append name "-" version ".tar.gz"))
2392 "0isgmav3z3nb5bsdya8m3haqhzj1lyfjx7i812cqfjrh2a9msin4"))))
2393 (build-system gnu-build-system)
2395 `(#:phases (modify-phases %standard-phases
2397 'unpack 'autogen.sh-and-fix-paths
2398 (lambda* (#:key outputs #:allow-other-keys)
2399 (let ((out (assoc-ref outputs "out")))
2400 ;; XXX this can probably be removed after version 1.7.1.
2401 ;; upstartconfir is hardcoded to /etc/init and the build
2402 ;; system tries to mkdir that. We don't even need upstart
2403 ;; files at all; this is a fast and kludgy workaround
2404 (substitute* "data/Makefile.am"
2405 (("upstartconfdir = /etc/init")
2406 (string-append "upstartconfdir = "
2409 (invoke "sh" "autogen.sh")
2412 (let ((out (assoc-ref %outputs "out")))
2413 (list (string-append "--sysconfdir="
2415 (string-append "--with-udev-dir="
2417 (string-append "--with-dbus-sys-dir="
2418 out "/etc/dbus-1/system.d")
2419 "--localstatedir=/var"))))
2421 `(("autoconf" ,autoconf)
2422 ("automake" ,automake)
2423 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2424 ("pkg-config" ,pkg-config)))
2426 `(("dbus-glib" ,dbus-glib)
2427 ("libxml2" ,libxml2)))
2428 (home-page "https://01.org/linux-thermal-daemon/")
2429 (synopsis "CPU scaling for thermal management")
2430 (description "The Linux Thermal Daemon helps monitor and control temperature
2431 on systems running the Linux kernel.")
2432 ;; arm and aarch64 don't have cpuid.h
2433 (supported-systems '("i686-linux" "x86_64-linux"))
2434 (license license:gpl2+)))
2436 (define-public masscan
2442 (uri (string-append "https://github.com/robertdavidgraham/masscan"
2443 "/archive/" version ".tar.gz"))
2444 (file-name (string-append name "-" version ".tar.gz"))
2447 "0wxddsgyx27z45906icdhdbfsvfj8ij805208qpqjx46i0lnjs50"))))
2448 (build-system gnu-build-system)
2450 `(("libpcap" ,libpcap)))
2452 '(#:test-target "regress"
2455 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2457 (modify-phases %standard-phases
2458 (delete 'configure) ; no ./configure script
2459 (add-after 'unpack 'patch-path
2460 (lambda* (#:key outputs inputs #:allow-other-keys)
2461 (let* ((out (assoc-ref outputs "out"))
2462 (pcap (assoc-ref inputs "libpcap")))
2463 (substitute* "src/rawsock-pcap.c"
2464 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2466 (synopsis "TCP port scanner")
2467 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2468 open ports, and also complete the TCP connection and interact with the remote
2469 application, collecting the information received.")
2470 (home-page "https://github.com/robertdavidgraham/masscan")
2471 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2472 ;; bears a CC0 Public Domain Dedication.
2473 (license license:agpl3+)))
2475 (define-public hungrycat
2481 (uri (string-append "https://github.com/jwilk/hungrycat/"
2482 "releases/download/" version "/"
2483 name "-" version ".tar.gz"))
2486 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2487 (build-system gnu-build-system)
2490 `(("python" ,python-wrapper)
2491 ("python-nose" ,python-nose)))
2493 `(#:test-target "test"))
2494 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2496 "hungrycat prints the contents of a file to standard output, while
2497 simultaneously freeing the disk space it occupied. It is useful if you need
2498 to process a large file, don't have enough space to store both the input and
2499 output files, and don't need the input file afterwards.
2500 While similar in principle to running @command{cat} immediately followed by
2501 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2502 printed instead of after the entire file has been read, which is often too
2504 (home-page "https://jwilk.net/software/hungrycat")
2505 (license license:expat)))