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, 2018 Marius Bakke <mbakke@fastmail.com>
22 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
23 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
24 ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
26 ;;; This file is part of GNU Guix.
28 ;;; GNU Guix is free software; you can redistribute it and/or modify it
29 ;;; under the terms of the GNU General Public License as published by
30 ;;; the Free Software Foundation; either version 3 of the License, or (at
31 ;;; your option) any later version.
33 ;;; GNU Guix is distributed in the hope that it will be useful, but
34 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
35 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 ;;; GNU General Public License for more details.
38 ;;; You should have received a copy of the GNU General Public License
39 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41 (define-module (gnu packages admin)
42 #:use-module ((guix licenses) #:prefix license:)
43 #:use-module (guix packages)
44 #:use-module (guix utils)
45 #:use-module (guix download)
46 #:use-module (guix git-download)
47 #:use-module (guix build-system cmake)
48 #:use-module (guix build-system gnu)
49 #:use-module (guix build-system perl)
50 #:use-module (guix build-system python)
51 #:use-module (guix build-system trivial)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages base)
54 #:use-module (gnu packages bash)
55 #:use-module (gnu packages check)
56 #:use-module (gnu packages cyrus-sasl)
57 #:use-module (gnu packages dns)
58 #:use-module (gnu packages file)
59 #:use-module (gnu packages ncurses)
60 #:use-module (gnu packages readline)
61 #:use-module (gnu packages linux)
62 #:use-module (gnu packages lua)
63 #:use-module (gnu packages guile)
64 #:use-module (gnu packages gettext)
65 #:use-module (gnu packages imagemagick)
66 #:use-module (gnu packages inkscape)
67 #:use-module (gnu packages pcre)
68 #:use-module (gnu packages perl)
69 #:use-module (gnu packages perl-check)
70 #:use-module (gnu packages tcl)
71 #:use-module (gnu packages compression)
72 #:use-module (gnu packages cross-base)
73 #:use-module (gnu packages tls)
74 #:use-module (gnu packages gnupg)
75 #:use-module (gnu packages bison)
76 #:use-module (gnu packages flex)
77 #:use-module (gnu packages gl)
78 #:use-module (gnu packages glib)
79 #:use-module (gnu packages openldap)
80 #:use-module (gnu packages mcrypt)
81 #:use-module (gnu packages pkg-config)
82 #:use-module (gnu packages popt)
83 #:use-module (gnu packages python)
84 #:use-module (gnu packages python-crypto)
85 #:use-module (gnu packages python-web)
86 #:use-module (gnu packages qt)
87 #:use-module (gnu packages terminals)
88 #:use-module (gnu packages texinfo)
89 #:use-module (gnu packages groff)
90 #:use-module (gnu packages pciutils)
91 #:use-module (gnu packages libunwind)
92 #:use-module (gnu packages libusb)
93 #:use-module (gnu packages libftdi)
94 #:use-module (gnu packages image)
95 #:use-module (gnu packages xorg)
96 #:use-module (gnu packages xdisorg)
97 #:use-module (gnu packages man)
98 #:use-module (gnu packages autotools)
99 #:use-module (gnu packages gnome)
100 #:use-module (gnu packages kerberos)
101 #:use-module (gnu packages gtk)
102 #:use-module (gnu packages xml)
103 #:use-module (gnu packages boost)
104 #:use-module (gnu packages elf)
105 #:use-module (gnu packages mpi)
106 #:use-module (gnu packages web))
114 (uri (string-append "mirror://sourceforge/aide/aide/"
115 version "/aide-" version ".tar.gz"))
118 "0ibkv4z2gk14fn014kq13rp2ysiq6nn2cflv2q5i7zf466hm6758"))))
119 (build-system gnu-build-system)
124 `(("libgcrypt" ,libgcrypt)
125 ("libgpg-error" ,libgpg-error)
126 ("libmhash" ,libmhash)
129 (synopsis "File and directory integrity checker")
131 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
132 integrity checker. It creates a database from the regular expression rules
133 that it finds from its configuration files. Once this database is initialized
134 it can be used to verify the integrity of the files. It has several message
135 digest algorithms that are used to check the integrity of files. All of the
136 usual file attributes can be checked for inconsistencies.")
137 (home-page "http://aide.sourceforge.net/")
138 (license license:gpl2+)))
140 (define-public progress
146 (uri (string-append "https://github.com/Xfennec/"
147 name "/archive/v" version ".tar.gz"))
149 (base32 "1wcanixfsi5k4i9h5vrnncgjdncalsdfqllrxibxwpgfnf20sji1"))
150 (file-name (string-append name "-" version ".tar.gz"))))
151 (build-system gnu-build-system)
153 `(("pkg-config" ,pkg-config)
156 `(("ncurses" ,ncurses)))
158 `(#:tests? #f ; There is no test suite.
159 #:make-flags (list "CC=gcc"
160 (string-append "PREFIX=" (assoc-ref %outputs "out")))
162 (modify-phases %standard-phases
163 (delete 'configure)))) ; There's no configure phase.
164 (home-page "https://github.com/Xfennec/progress")
165 (synopsis "Program to view the progress of the coreutils commands")
166 (description "A program that looks for coreutils basic commands (cp, mv,
167 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
168 the percentage of copied data. It can also show estimated time and throughput,
169 and provides a \"top-like\" mode (monitoring).")
170 (license license:gpl3+)))
172 (define-public shepherd
178 (uri (string-append "https://alpha.gnu.org/gnu/shepherd/shepherd-"
182 "1lgmsbxn8i8xdasxzkdp2cml75n128pplw6icvmspl6s0n9xmw8n"))))
183 (build-system gnu-build-system)
185 '(#:configure-flags '("--localstatedir=/var")))
187 `(("pkg-config" ,pkg-config)
189 ;; This is the Guile we use as a cross-compiler...
190 ("guile" ,guile-2.2)))
192 ;; ... and this is the one that appears in shebangs when cross-compiling.
193 `(("guile" ,guile-2.2)
195 ;; The 'shepherd' command uses Readline when used interactively. It's
196 ;; an unusual use case though, so we don't propagate it.
197 ("guile-readline" ,guile-readline)))
198 (synopsis "System service manager")
200 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
201 the execution of system services, replacing similar functionality found in
202 typical init systems. It provides dependency-handling through a convenient
203 interface and is based on GNU Guile.")
204 (license license:gpl3+)
205 (home-page "https://www.gnu.org/software/shepherd/")
206 (properties '((ftp-server . "alpha.gnu.org")))))
208 (define-public daemontools
215 "https://cr.yp.to/" name "/"
216 name "-" version ".tar.gz"))
219 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
220 (build-system gnu-build-system)
222 `(#:tests? #f ;; No tests as far as I can tell.
224 (modify-phases %standard-phases
225 (add-after 'unpack 'chdir
227 (chdir ,(string-append name "-" version))))
229 (add-before 'build 'patch
231 (substitute* "src/error.h"
232 (("extern int errno;")
233 "#include <errno.h>"))))
236 (invoke "package/compile")))
238 (lambda* (#:key outputs #:allow-other-keys)
239 (let* ((out (assoc-ref outputs "out"))
240 (bin (string-append out "/bin")))
241 (for-each (lambda (file)
242 (install-file file bin))
243 (find-files "command"))))))))
244 (synopsis "Tools for managing UNIX style services")
246 "@code{daemontools} is a collection of tools for managing UNIX
248 (license license:public-domain)
249 (home-page "https://cr.yp.to/daemontools.html")))
259 "https://projects.gw-computing.net/attachments/download/615/dfc-"
263 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
264 (build-system cmake-build-system)
265 (arguments '(#:tests? #f)) ; There are no tests.
266 (native-inputs `(("gettext" ,gettext-minimal)))
267 (home-page "https://projects.gw-computing.net/projects/dfc")
268 (synopsis "Display file system space usage using graphs and colors")
270 "dfc (df color) is a modern version of df. It uses colors, draws pretty
271 graphs and can export its output to different formats.")
272 (license license:bsd-3)))
280 (uri (string-append "http://hisham.hm/htop/releases/"
281 version "/htop-" version ".tar.gz"))
284 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
285 (build-system gnu-build-system)
287 `(("ncurses" ,ncurses)))
289 `(("python" ,python-minimal-wrapper))) ; for scripts/MakeHeader.py
290 (home-page "https://hisham.hm/htop/")
291 (synopsis "Interactive process viewer")
293 "This is htop, an interactive process viewer. It is a text-mode
294 application (for console or X terminals) and requires ncurses.")
295 (license license:gpl2)))
304 (uri (string-append "mirror://gnu/pies/pies-"
308 "12r7rjjyibjdj08dvwbp0iflfpzl4s0zhn6cr6zj3hwf9gbzgl1g"))))
309 (build-system gnu-build-system)
311 '(#:phases (modify-phases %standard-phases
312 (add-before 'build 'patch-/bin/sh
313 (lambda* (#:key inputs #:allow-other-keys)
314 ;; Use the right shell when executing user-provided
316 (let ((bash (assoc-ref inputs "bash")))
317 (substitute* "src/progman.c"
319 (string-append "\"" bash "/bin/sh\"")))
321 (home-page "https://www.gnu.org/software/pies/")
322 (synopsis "Program invocation and execution supervisor")
324 "GNU pies is a program that supervises the invocation and execution of
325 other programs. It reads the list of programs to be started from its
326 configuration file, executes them, and then monitors their status,
327 re-executing them as necessary.")
328 (license license:gpl3+)))
330 (define-public inetutils
336 (uri (string-append "mirror://gnu/inetutils/inetutils-"
340 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
341 (build-system gnu-build-system)
343 `(#:configure-flags '("--localstatedir=/var"
345 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
346 ;; cross-compiling (by default it does not.)
347 ,@(if (%current-target-system)
348 '("--with-path-procnet-dev=/proc/net/dev")
350 ;; On some systems, 'libls.sh' may fail with an error such as:
351 ;; "Failed to tell switch -a apart from -A".
352 #:parallel-tests? #f))
353 (inputs `(("ncurses" ,ncurses)
354 ("readline" ,readline))) ;for 'ftp'
355 (native-inputs `(("netstat" ,net-tools))) ;for tests
356 (home-page "https://www.gnu.org/software/inetutils/")
357 (synopsis "Basic networking utilities")
359 "Inetutils is a collection of common network programs, such as an ftp
360 client and server, a telnet client and server, an rsh client and server, and
362 (license license:gpl3+)))
364 (define-public shadow
371 "https://github.com/shadow-maint/shadow/releases/"
372 "download/" version "/shadow-" version ".tar.xz"))
375 "10smy01km2bqjjvsd2jz17zvrxbzj89qczyb1amk38j28bcci609"))))
376 (build-system gnu-build-system)
378 `(;; Assume System V `setpgrp (void)', which is the default on GNU
379 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
381 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
384 (modify-phases %standard-phases
385 (add-before 'build 'set-nscd-file-name
386 (lambda* (#:key inputs #:allow-other-keys)
387 ;; Use the right file name for nscd.
388 (let ((libc (assoc-ref inputs
389 ,(if (%current-target-system)
392 (substitute* "lib/nscd.c"
394 (string-append libc "/sbin/nscd")))
396 (add-after 'install 'remove-groups
397 (lambda* (#:key outputs #:allow-other-keys)
398 ;; Remove `groups', which is already provided by Coreutils.
399 (let* ((out (assoc-ref outputs "out"))
400 (bin (string-append out "/bin"))
401 (man (string-append out "/share/man")))
402 (delete-file (string-append bin "/groups"))
403 (for-each delete-file (find-files man "^groups\\."))
406 (inputs (if (string-contains (or (%current-target-system)
409 `(("linux-pam" ,linux-pam))
411 (home-page "http://pkg-shadow.alioth.debian.org/")
412 (synopsis "Authentication-related tools such as passwd, su, and login")
414 "Shadow provides a number of authentication-related tools, including:
415 login, passwd, su, groupadd, and useradd.")
417 ;; The `vipw' program is GPLv2+.
418 ;; libmisc/salt.c is public domain.
419 (license license:bsd-3)))
421 (define-public mingetty
427 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
428 version "/mingetty-" version ".tar.gz"))
431 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
432 (build-system gnu-build-system)
435 (modify-phases %standard-phases
437 (lambda* (#:key inputs outputs #:allow-other-keys)
438 (let* ((out (assoc-ref outputs "out"))
439 (man8 (string-append out "/share/man/man8"))
440 (sbin (string-append out "/sbin"))
441 (shadow (assoc-ref inputs "shadow"))
442 (login (string-append shadow "/bin/login")))
443 (substitute* "Makefile"
445 (string-append "SBINDIR = " out
448 (string-append "MANDIR = " out
449 "/share/man/man8\n")))
451 ;; Pick the right 'login' by default.
452 (substitute* "mingetty.c"
454 (string-append "\"" login "\"")))
459 #:tests? #f)) ; no tests
460 (inputs `(("shadow" ,shadow)))
462 (home-page "https://sourceforge.net/projects/mingetty")
463 (synopsis "Getty for the text console")
465 "Small console getty that is started on the Linux text console,
466 asks for a login name and then transfers over to 'login'. It is extended to
467 allow automatic login and starting any app.")
468 (license license:gpl2+)))
470 (define-public net-base
477 "mirror://debian/pool/main/n/netbase/netbase_"
481 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
482 (build-system trivial-build-system)
484 `(#:modules ((guix build utils))
486 (use-modules (guix build utils)
489 (let* ((source (assoc-ref %build-inputs "source"))
490 (tar (assoc-ref %build-inputs "tar"))
491 (xz (assoc-ref %build-inputs "xz"))
492 (output (assoc-ref %outputs "out"))
493 (etc (string-append output "/etc")))
494 (setenv "PATH" (string-append xz "/bin"))
495 (invoke (string-append tar "/bin/tar") "xvf"
497 (chdir ,(string-append "netbase-" version))
500 '("etc-services" "etc-protocols" "etc-rpc")
501 (map (cut string-append etc "/" <>)
502 '("services" "protocols" "rpc")))
504 (native-inputs `(("tar" ,tar)
506 (synopsis "IANA protocol, port, and RPC number assignments")
508 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
509 files, which contain information about the IANA-assigned port, protocol, and
511 (home-page "https://packages.debian.org/sid/netbase")
512 (license license:gpl2)))
514 (define-public netcat
520 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
521 "/netcat-" version ".tar.bz2"))
524 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
525 (build-system gnu-build-system)
528 ;; By default, man and info pages are put in PREFIX/{man,info},
529 ;; but we want them in PREFIX/share/{man,info}.
530 (let ((out (assoc-ref %outputs "out")))
531 (list (string-append "--mandir=" out "/share/man")
532 (string-append "--infodir=" out "/share/info")))))
533 (home-page "http://netcat.sourceforge.net")
534 (synopsis "Read and write data over TCP/IP")
536 "Netcat is a featured networking utility which reads and writes data
537 across network connections, using the TCP/IP protocol. It is designed to be a
538 reliable \"back-end\" tool that can be used directly or easily driven by other
539 programs and scripts. At the same time, it is a feature-rich network debugging
540 and exploration tool, since it can create almost any kind of connection you
541 would need and has several interesting built-in capabilities.")
542 (license license:gpl2+)))
544 (define-public sipcalc
551 (uri (string-append "http://www.routemeister.net/projects"
552 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
555 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
556 (build-system gnu-build-system)
557 (home-page "http://www.routemeister.net/projects/sipcalc/")
558 (synopsis "Command-line IP subnet calculator")
560 "Sipcalc is an advanced command-line IP subnet calculator. It can take
561 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
562 of information about a given subnet.
569 @item Retrieving of address information from interfaces.
570 @item Classfull and CIDR output.
571 @item Multiple address and netmask input and output formats (dotted quad, hex,
573 @item Output of broadcast address, network class, Cisco wildcard,
574 hosts/range, network range.
575 @item The ability to split a network based on a smaller netmask, now also with
576 recursive runs on the generated subnets. (also IPv6)
580 @item Compressed and expanded input and output addresses.
581 @item Standard IPv6 network output.
582 @item v4 in v6 output.
583 @item Reverse DNS address generation.
586 (license license:bsd-3)))
594 (uri (string-append "mirror://gnu/alive/alive-"
598 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
599 (build-system gnu-build-system)
600 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
601 (inputs `(("guile" ,guile-2.0)
602 ("inetutils" ,inetutils)))
603 (home-page "https://www.gnu.org/software/alive/")
604 (synopsis "Autologin and keep-alive daemon")
606 "GNU Alive sends periodic pings to a server, generally to keep a
608 (license license:gpl3+)))
610 (define-public isc-dhcp
611 (let* ((bind-major-version "9")
612 (bind-minor-version "11")
613 (bind-patch-version "3")
614 (bind-release-type "") ; for patch release, use "-P"
615 (bind-release-version "") ; for patch release, e.g. "6"
616 (bind-version (string-append bind-major-version
622 bind-release-version)))
628 (uri (string-append "http://ftp.isc.org/isc/dhcp/"
629 version "/dhcp-" version ".tar.gz"))
632 "025nfqx4zwdgv4b3rkw26ihcj312vir08jk6yi57ndmb4a4m08ia"))))
633 (build-system gnu-build-system)
635 `(#:parallel-build? #f
637 (modify-phases %standard-phases
638 (add-after 'unpack 'replace-bundled-bind
639 (lambda* (#:key inputs #:allow-other-keys)
640 (delete-file "bind/bind.tar.gz")
641 (copy-file (assoc-ref inputs "bind-source-tarball")
643 (chmod "bind/bind.tar.gz" #o644)
644 (substitute* "bind/version.tmp"
646 (format #f "MAJORVER=~a\n" ,bind-major-version))
648 (format #f "MINORVER=~a\n" ,bind-minor-version))
650 (format #f "PATCHVER=~a\n" ,bind-patch-version))
652 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
654 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
656 (add-after 'configure 'post-configure
657 (lambda* (#:key outputs #:allow-other-keys)
658 ;; Point to the right client script, which will be
659 ;; installed in a later phase.
660 (substitute* "includes/dhcpd.h"
661 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
662 (let ((out (assoc-ref outputs "out")))
663 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
664 out "/libexec/dhclient-script"
667 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
668 ;; we must patch shebangs in there and make sure the right
670 (with-directory-excursion "bind"
671 (substitute* "Makefile"
673 (let ((sh (which "sh")))
674 (string-append "./configure CONFIG_SHELL="
677 (let ((bind-directory (string-append "bind-" ,bind-version)))
678 (invoke "tar" "xf" "bind.tar.gz")
679 (for-each patch-shebang
680 (find-files bind-directory ".*"))
681 (invoke "tar" "cf" "bind.tar.gz"
683 ;; avoid non-determinism in the archive
687 "--group=root:0")))))
688 (add-after 'install 'post-install
689 (lambda* (#:key inputs outputs #:allow-other-keys)
690 ;; Install the dhclient script for GNU/Linux and make sure
691 ;; if finds all the programs it needs.
692 (let* ((out (assoc-ref outputs "out"))
693 (libexec (string-append out "/libexec"))
694 (coreutils (assoc-ref inputs "coreutils"))
695 (inetutils (assoc-ref inputs "inetutils"))
696 (net-tools (assoc-ref inputs "net-tools"))
697 (sed (assoc-ref inputs "sed")))
698 (substitute* "client/scripts/linux"
700 (string-append (assoc-ref inputs "iproute")
704 (copy-file "client/scripts/linux"
705 (string-append libexec "/dhclient-script"))
708 (string-append libexec "/dhclient-script")
711 (string-append dir "/bin:"
713 (list inetutils net-tools coreutils sed))))
716 (native-inputs `(("perl" ,perl)))
718 (inputs `(("inetutils" ,inetutils)
719 ("net-tools" ,net-tools)
722 ;; XXX isc-dhcp bundles a copy of bind that has security
723 ;; flaws, so we use a newer version.
724 ("bind-source-tarball"
727 (uri (string-append "http://ftp.isc.org/isc/bind9/"
729 "/bind-" bind-version ".tar.gz"))
732 "1xbnb2b11274z9frc9y7nvkyxr52qx09bwb97gf9qzzcn8adx78d"))))
734 ;; When cross-compiling, we need the cross Coreutils and sed.
735 ;; Otherwise just use those from %FINAL-INPUTS.
736 ,@(if (%current-target-system)
737 `(("coreutils" ,coreutils)
741 (home-page "http://www.isc.org/products/DHCP/")
742 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
744 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
745 reference implementation of all aspects of DHCP, through a suite of DHCP
746 tools: server, client, and relay agent.")
747 (license license:mpl2.0)
748 (properties '((cpe-name . "dhcp"))))))
750 (define-public libpcap
756 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
760 "07jlhc66z76dipj4j5v3dig8x6h3k6cb36kmnmpsixf3zmlvqgb7"))))
761 (build-system gnu-build-system)
762 (native-inputs `(("bison" ,bison) ("flex" ,flex)))
763 (arguments '(#:configure-flags '("--with-pcap=linux")
764 #:tests? #f)) ; no 'check' target
765 (home-page "https://www.tcpdump.org")
766 (synopsis "Network packet capture library")
768 "libpcap is an interface for user-level packet capture. It provides a
769 portable framework for low-level network monitoring. Applications include
770 network statistics collection, security monitoring, network debugging, etc.")
772 ;; fad-*.c and a couple other files are BSD-4, but the rest is BSD-3.
773 (license license:bsd-3)))
775 (define-public tcpdump
781 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
785 "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr"))))
786 (build-system gnu-build-system)
787 (inputs `(("libpcap" ,libpcap)
788 ("openssl" ,openssl)))
789 (native-inputs `(("perl" ,perl))) ; for tests
790 (home-page "https://www.tcpdump.org/")
791 (synopsis "Network packet analyzer")
793 "Tcpdump is a command-line tool to analyze network traffic passing
794 through the network interface controller.")
795 (license license:bsd-3)))
797 (define-public jnettop
803 (uri (string-append "http://jnettop.kubs.info/dist/jnettop-"
807 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
808 (build-system gnu-build-system)
810 `(("pkg-config" ,pkg-config)))
814 ("libpcap" ,libpcap)))
815 (home-page "http://jnettop.kubs.info/")
816 (synopsis "Visualize network traffic by bandwidth use")
818 "Jnettop is a traffic visualiser, which captures traffic going
819 through the host it is running from and displays streams sorted
820 by bandwidth they use.")
821 (license license:gpl2+)))
823 (define-public clusterssh
829 (uri (string-append "mirror://sourceforge/clusterssh/"
830 "2.%20ClusterSSH%20Series%204/"
831 "App-ClusterSSH-v" version ".tar.gz"))
834 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
835 (build-system perl-build-system)
837 `(("perl-cpan-changes" ,perl-cpan-changes)
838 ("perl-file-slurp" ,perl-file-slurp)
839 ("perl-file-which" ,perl-file-which)
840 ("perl-module-build" ,perl-module-build)
841 ("perl-readonly" ,perl-readonly)
842 ("perl-test-differences" ,perl-test-differences)
843 ("perl-test-distmanifest" ,perl-test-distmanifest)
844 ("perl-test-perltidy" ,perl-test-perltidy)
845 ("perl-test-pod" ,perl-test-pod)
846 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
847 ("perl-test-trap" ,perl-test-trap)
848 ("perltidy" ,perltidy)))
851 ("perl-exception-class" ,perl-exception-class)
853 ("perl-try-tiny" ,perl-try-tiny)
854 ("perl-x11-protocol" ,perl-x11-protocol)
855 ("perl-x11-protocol-other" ,perl-x11-protocol-other)))
856 ;; The clusterssh.sourceforge.net address requires login to view
857 (home-page "https://sourceforge.net/projects/clusterssh/")
858 (synopsis "Secure concurrent multi-server terminal control")
860 "ClusterSSH controls a number of xterm windows via a single graphical
861 console window to allow commands to be interactively run on multiple servers
862 over ssh connections.")
863 (license license:gpl2+)))
865 (define-public rename
872 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
876 "052iqmn7ya3w1nadpiyavmr3rx566r0lbflx94y8b5wx9q5c16rq"))))
877 (build-system perl-build-system)
879 `(("perl-module-build" ,perl-module-build)
880 ("perl-test-pod" ,perl-test-pod)
881 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
882 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
883 (synopsis "Perl extension for renaming multiple files")
885 "This package provides a Perl interface (@code{Perl::Rename}) as well
886 as a command-line utility (@command{rename}) that can rename multiple files
887 at once based on a Perl regular expression.")
888 (license license:perl-license)))
890 (define-public rottlog
896 (uri (string-append "mirror://gnu/rottlog/rottlog-"
900 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
901 (modules '((guix build utils)))
904 (substitute* "Makefile.in"
905 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
906 ;; Don't try to chown root.
908 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
909 ;; Don't attempt to create /var/lib/rottlog.
912 (build-system gnu-build-system)
914 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
915 "--localstatedir=/var")
917 ;; Install example config files in OUT/etc.
918 #:make-flags (list (string-append "ROTT_ETCDIR="
919 (assoc-ref %outputs "out")
922 #:phases (modify-phases %standard-phases
923 (add-after 'unpack 'patch-paths
926 (("/usr/sbin/sendmail") "sendmail"))
928 (add-after 'build 'set-packdir
930 ;; Set a default location for archived logs.
933 "packdir=\"/var/log\""))
935 (add-before 'install 'tweak-rc-weekly
937 (substitute* "rc/weekly"
941 ;; The file is called 'syslog.pid' (no 'd').
944 (add-after 'install 'install-info
946 (zero? (system* "make" "install-info")))))))
947 (native-inputs `(("texinfo" ,texinfo)
948 ("util-linux" ,util-linux))) ; for 'cal'
949 (home-page "https://www.gnu.org/software/rottlog/")
950 (synopsis "Log rotation and management")
952 "GNU Rot[t]log is a program for managing log files. It is used to
953 automatically rotate out log files when they have reached a given size or
954 according to a given schedule. It can also be used to automatically compress
955 and archive such logs. Rot[t]log will mail reports of its activity to the
956 system administrator.")
957 (license license:gpl3+)))
966 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
968 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
972 "0yg62wq8rcrbr7qvh3wgfg2g4bwanbi50cr2lf2cfyy8dydx4qyq"))
973 (modules '((guix build utils)))
976 (delete-file-recursively "lib/zlib")
978 (build-system gnu-build-system)
981 (list "--with-logpath=/var/log/sudo.log"
982 "--with-rundir=/var/run/sudo" ;must be cleaned up at boot time
983 "--with-vardir=/var/db/sudo"
984 "--with-iologdir=/var/log/sudo-io"
986 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
988 (string-append "CPPFLAGS=-D_PATH_MV='\""
989 (assoc-ref %build-inputs "coreutils")
992 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
996 (modify-phases %standard-phases
997 (add-before 'configure 'pre-configure
999 (substitute* "src/sudo_usage.h.in"
1000 ;; Do not capture 'configure' arguments since we would
1001 ;; unduly retain references, and also because the
1002 ;; CPPFLAGS above would close the string literal
1004 (("@CONFIGURE_ARGS@") "\"\""))
1005 (substitute* (find-files "." "Makefile\\.in")
1006 (("-o [[:graph:]]+ -g [[:graph:]]+")
1007 ;; Allow installation as non-root.
1009 (("^install: (.*)install-sudoers(.*)" _ before after)
1010 ;; Don't try to create /etc/sudoers.
1011 (string-append "install: " before after "\n"))
1012 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1013 ;; Don't try to create /run/sudo.
1015 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1016 ;; Don't try to create /var/db/sudo.
1020 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1021 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1025 ("linux-pam" ,linux-pam)
1027 ("coreutils" ,coreutils)))
1028 (home-page "https://www.sudo.ws/")
1029 (synopsis "Run commands as root")
1031 "Sudo (su \"do\") allows a system administrator to delegate authority to
1032 give certain users (or groups of users) the ability to run some (or all)
1033 commands as root or another user while providing an audit trail of the
1034 commands and their arguments.")
1036 ;; See <http://www.sudo.ws/sudo/license.html>.
1037 (license license:x11)))
1039 (define-public wpa-supplicant-minimal
1041 (name "wpa-supplicant-minimal")
1046 "https://w1.fi/releases/wpa_supplicant-"
1049 (patches (search-patches "wpa-supplicant-CVE-2017-13082.patch"
1050 "wpa-supplicant-fix-key-reuse.patch"
1051 "wpa-supplicant-fix-zeroed-keys.patch"
1052 "wpa-supplicant-fix-nonce-reuse.patch"
1053 "wpa-supplicant-krack-followups.patch"))
1056 "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl"))))
1057 (build-system gnu-build-system)
1060 (modify-phases %standard-phases
1062 (lambda* (#:key outputs #:allow-other-keys)
1063 (chdir "wpa_supplicant")
1064 (copy-file "defconfig" ".config")
1065 (let ((port (open-file ".config" "al")))
1067 CONFIG_DEBUG_SYSLOG=y
1069 # Choose GnuTLS (the default is OpenSSL.)
1072 CONFIG_DRIVER_NL80211=y
1073 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1075 CONFIG_READLINE=y\n" port)
1076 (close-port port))))
1077 (add-after 'install 'install-man-pages
1078 (lambda* (#:key outputs #:allow-other-keys)
1079 (let* ((out (assoc-ref outputs "out"))
1080 (man (string-append out "/share/man"))
1081 (man5 (string-append man "/man5"))
1082 (man8 (string-append man "/man8")))
1083 (define (copy-man-page target)
1085 (install-file file target)))
1087 (mkdir-p man5) (mkdir man8)
1088 (for-each (copy-man-page man5)
1089 (find-files "doc/docbook" "\\.5"))
1090 (for-each (copy-man-page man8)
1091 (find-files "doc/docbook" "\\.8"))
1094 #:make-flags (list "CC=gcc"
1095 (string-append "BINDIR=" (assoc-ref %outputs "out")
1097 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1101 `(("readline" ,readline)
1104 ("libgcrypt" ,libgcrypt))) ;needed by crypto_gnutls.c
1106 `(("pkg-config" ,pkg-config)))
1107 (home-page "https://w1.fi/wpa_supplicant/")
1108 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1110 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1111 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1112 the client stations. It implements key negotiation with a WPA Authenticator
1113 and it controls the roaming and IEEE 802.11 authentication/association of the
1116 This package provides the 'wpa_supplicant' daemon and the 'wpa_cli' command.")
1118 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1119 (license license:bsd-3)))
1121 (define-public wpa-supplicant
1122 (package (inherit wpa-supplicant-minimal)
1123 (name "wpa-supplicant")
1124 (inputs `(("dbus" ,dbus)
1125 ,@(package-inputs wpa-supplicant-minimal)))
1127 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1129 `(modify-phases ,phases
1130 (add-after 'configure 'configure-for-dbus
1132 (let ((port (open-file ".config" "al")))
1134 CONFIG_CTRL_IFACE_DBUS=y
1135 CONFIG_CTRL_IFACE_DBUS_NEW=y
1136 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1139 (add-after 'install-man-pages 'install-dbus-conf
1140 (lambda* (#:key outputs #:allow-other-keys)
1141 (let* ((out (assoc-ref outputs "out"))
1142 (dir (string-append out "/etc/dbus-1/system.d")))
1144 (copy-file "dbus/dbus-wpa_supplicant.conf"
1145 (string-append dir "/wpa_supplicant.conf")))
1148 (define-public wpa-supplicant-gui
1150 (inherit wpa-supplicant)
1151 (name "wpa-supplicant-gui")
1152 (inputs `(("qtbase" ,qtbase)
1154 ,@(package-inputs wpa-supplicant)))
1157 `(("imagemagick" ,imagemagick)
1158 ("inkscape" ,inkscape)
1159 ,@(package-native-inputs wpa-supplicant)))
1161 `(#:phases (modify-phases %standard-phases
1162 (add-after 'unpack 'chdir
1164 (chdir "wpa_supplicant/wpa_gui-qt4")
1169 (invoke "qmake" "wpa_gui.pro")
1170 (invoke "make" "-j" (number->string (parallel-job-count)))
1171 (invoke "make" "-C" "icons")))
1173 (lambda* (#:key inputs outputs #:allow-other-keys)
1174 (let ((out (assoc-ref outputs "out"))
1175 (qt '("qtbase" "qtsvg")))
1176 (substitute* "wpa_gui.desktop"
1178 (string-append "Exec=" out "/bin/wpa_gui")))
1179 (install-file "wpa_gui" (string-append out "/bin"))
1180 (install-file "wpa_gui.desktop"
1181 (string-append out "/share/applications"))
1182 (copy-recursively "icons/hicolor"
1183 (string-append out "/share/icons/hicolor"))
1184 (wrap-program (string-append out "/bin/wpa_gui")
1185 `("QT_PLUGIN_PATH" ":" prefix
1186 ,(map (lambda (label)
1187 (string-append (assoc-ref inputs label)
1188 "/lib/qt5/plugins/"))
1191 (synopsis "Graphical user interface for WPA supplicant")))
1193 (define-public wakelan
1200 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1204 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1205 (build-system gnu-build-system)
1208 (modify-phases %standard-phases
1210 (lambda* (#:key outputs #:allow-other-keys)
1211 (let ((out (assoc-ref outputs "out")))
1212 (mkdir-p (string-append out "/bin"))
1213 (mkdir-p (string-append out "/share/man/man1"))
1215 ;; It's an old configure script that doesn't understand
1216 ;; the extra options we pass.
1217 (setenv "CONFIG_SHELL" (which "bash"))
1219 (system* "./configure"
1220 (string-append "--prefix=" out)
1221 (string-append "--mandir=" out
1224 (home-page "https://www.kernel.org") ; really, no home page
1225 (synopsis "Send a wake-on-LAN packet")
1227 "WakeLan broadcasts a properly formatted UDP packet across the local area
1228 network, which causes enabled computers to power on.")
1229 (license license:gpl2+)))
1231 (define-public dmidecode
1238 "mirror://savannah/dmidecode/dmidecode-"
1242 "1h0sg0lxa15nzf8s7884p6q7p6md9idm0c79wyqmk32l4ndwwrnp"))))
1243 (build-system gnu-build-system)
1245 '(#:phases (modify-phases %standard-phases (delete 'configure))
1246 #:tests? #f ; no 'check' target
1247 #:make-flags (list (string-append "prefix="
1248 (assoc-ref %outputs "out")))))
1249 (home-page "https://www.nongnu.org/dmidecode/")
1250 (synopsis "Read hardware information from the BIOS")
1252 "Dmidecode reports information about your system's hardware as described
1253 in your system BIOS according to the SMBIOS/DMI standard. This typically
1254 includes system manufacturer, model name, serial number, BIOS version, asset
1255 tag as well as a lot of other details of varying level of interest and
1256 reliability depending on the manufacturer. This will often include usage
1257 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1258 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1259 (license license:gpl2+)))
1261 (define-public acpica
1264 (version "20180629")
1268 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1272 "0rsh7ya5brpbsj7y44k1z77cvgv3zahiy8hvwvl61d6fh3db7pdp"))))
1273 (build-system gnu-build-system)
1274 (native-inputs `(("flex" ,flex)
1277 '(#:make-flags (list (string-append "PREFIX=" %output)
1280 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1281 #:tests? #f ; no 'check' target
1282 #:phases (modify-phases %standard-phases (delete 'configure))))
1283 (home-page "https://acpica.org/")
1284 (synopsis "Tools for the development and debug of ACPI tables")
1286 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1287 OS-independent reference implementation of the Advanced Configuration and
1288 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1289 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1290 subsystem, and a small set of tools to assist in developing and debugging ACPI
1291 tables. This package contains only the user-space tools needed for ACPI table
1292 development, not the kernel implementation of ACPI.")
1293 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1295 (define-public stress
1301 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1302 version ".orig.tar.gz"))
1305 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1306 (build-system gnu-build-system)
1307 (home-page "https://packages.debian.org/sid/stress")
1308 (synopsis "Impose load on and stress test a computer system")
1310 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1311 or disk stress on a POSIX-compliant operating system and reports any errors it
1314 Stress is not a benchmark. It is a tool used by system administrators to
1315 evaluate how well their systems will scale, by kernel programmers to evaluate
1316 perceived performance characteristics, and by systems programmers to expose
1317 the classes of bugs which only or more frequently manifest themselves when the
1318 system is under heavy load.")
1319 (license license:gpl2+)))
1321 (define-public detox
1327 (uri (string-append "mirror://sourceforge/detox/detox/" version
1328 "/detox-" version ".tar.bz2"))
1331 "1y6vvjqsg54kl49cry73jbfhr04s7wjs779vrr9zrq6kww7dkymb"))))
1332 (build-system gnu-build-system)
1333 ;; Both flex and popt are used in this case for their runtime libraries
1334 ;; (libfl and libpopt).
1339 `(#:configure-flags `(,(string-append "--with-popt="
1340 (assoc-ref %build-inputs "popt")))
1341 #:tests? #f)) ;no 'check' target
1342 (home-page "http://detox.sourceforge.net")
1343 (synopsis "Clean up file names")
1345 "Detox is a program that renames files to make them easier to work with
1346 under Unix and related operating systems. Spaces and various other unsafe
1347 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1348 characters can be replaced as well, as can UTF-8 characters.")
1349 (license license:bsd-3)))
1351 (define-public testdisk
1357 (uri (string-append "http://www.cgsecurity.org/testdisk-"
1358 version ".tar.bz2"))
1361 "0ba4wfz2qrf60vwvb1qsq9l6j0pgg81qgf7fh22siaz649mkpfq0"))))
1362 (build-system gnu-build-system)
1364 `(("ntfs-3g" ,ntfs-3g)
1365 ("util-linux" ,util-linux)
1366 ("openssl" ,openssl)
1367 ;; FIXME: add reiserfs
1369 ("e2fsprogs" ,e2fsprogs)
1370 ("libjpeg" ,libjpeg)
1371 ("ncurses" ,ncurses)))
1372 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1373 (synopsis "Data recovery tool")
1375 "TestDisk is a program for data recovery, primarily designed to help
1376 recover lost partitions and/or make non-booting disks bootable again.")
1377 (license license:gpl2+)))
1386 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1389 (base32 "04kviw799qxly08zb8n5mgxfd96gyis6x69q2qiw86jnh87c4mv9"))))
1390 (build-system gnu-build-system)
1392 '(#:phases (modify-phases %standard-phases (delete 'configure))
1393 #:tests? #f ; no check target
1394 #:make-flags (let ((out (assoc-ref %outputs "out")))
1395 (list (string-append "prefix=" out)))))
1396 (synopsis "Recursively list the contents of a directory")
1398 "Tree is a recursive directory listing command that produces a depth
1399 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1400 environment variable is set and output is to tty.")
1401 (home-page "http://mama.indstate.edu/users/ice/tree/")
1402 (license license:gpl2+)))
1404 (define-public direvent
1410 (uri (string-append "mirror://gnu/direvent/direvent-"
1414 "1nwvjmx7kb14ni34c0b8x9a3791pc20gvhj7xaj66d8q4h6n0qf4"))
1415 (modules '((guix build utils)))
1417 (substitute* "tests/testsuite"
1418 (("#![[:blank:]]?/bin/sh")
1421 (build-system gnu-build-system)
1424 (modify-phases %standard-phases
1425 (add-before 'build 'patch-/bin/sh
1426 (lambda* (#:key inputs #:allow-other-keys)
1427 ;; Use the right shell when executing the watcher and
1428 ;; user-provided shell commands.
1429 (let ((bash (assoc-ref inputs "bash")))
1430 (substitute* '("src/direvent.c" "src/progman.c")
1432 (string-append "\"" bash "/bin/sh\"")))
1434 ;; Adjust the 'shell.at' test accordingly.
1435 (substitute* "tests/testsuite"
1437 (string-append "SHELL=" bash "/bin/sh")))
1440 (home-page "https://www.gnu.org/software/direvent/")
1441 (synopsis "Daemon to monitor directories for events such as file removal")
1443 "A daemon that monitors directories for events, such as creating,
1444 deleting or modifying files. It can monitor different sets of directories for
1445 different events. When an event is detected, direvent calls a specified
1446 external program with information about the event, such as the location
1447 within the file system where it occurred. Thus, \"direvent\" provides an
1448 easy way to react immediately if given files undergo changes, for example, to
1449 track changes in important system configuration files.")
1450 (license license:gpl3+)))
1452 (define-public libcap-ng
1459 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1463 "0a0k484kwv0zilry2mbl9k56cnpdhsjxdxin17jas6kkyfy345aa"))))
1464 (build-system gnu-build-system)
1467 (list "--without-python")))
1468 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1469 (synopsis "Library for more easily working with POSIX capabilities")
1471 "The libcap-ng library is intended to make programming with POSIX
1472 capabilities easier than the traditional libcap library. It includes
1473 utilities that can analyse all currently running applications and print out
1474 any capabilities and whether or not it has an open ended bounding set. The
1475 included utilities are designed to let admins and developers spot apps from
1476 various ways that may be running with too much privilege.")
1477 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1478 (license (list license:lgpl2.1+ license:gpl2+))))
1480 (define-public smartmontools
1482 (name "smartmontools")
1487 "mirror://sourceforge/smartmontools/smartmontools/"
1488 version "/smartmontools-" version ".tar.gz"))
1491 "0m1hllbb78rr6cxkbalmz1gqkl0psgq8rrmv4gwcmz34n07kvx2i"))))
1492 (build-system gnu-build-system)
1493 (inputs `(("libcap-ng" ,libcap-ng)))
1494 (home-page "https://www.smartmontools.org/")
1495 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1497 "The smartmontools package contains utility programs to control and
1498 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1499 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1500 disks. In many cases, these utilities will provide advanced warning of disk
1501 degradation and failure.")
1502 (license license:gpl2+)))
1504 (define-public fdupes
1512 "https://github.com/adrianlopezroche/fdupes/archive/v"
1514 (file-name (string-append name "-" version ".tar.gz"))
1517 "1sj9pa40pbz6xdwbxfwhdhkvhdf1xc5gvggk9mdq26c41gdnyswx"))))
1518 (build-system gnu-build-system)
1520 '(#:phases (modify-phases %standard-phases
1521 (delete 'configure))
1522 #:tests? #f ; no 'check' target
1523 #:make-flags (list "CC=gcc"
1524 (string-append "PREFIX="
1525 (assoc-ref %outputs "out")))))
1526 (home-page "https://github.com/adrianlopezroche/fdupes")
1527 (synopsis "Identify duplicate files")
1529 "fdupes is a program for identifying duplicate files residing within
1530 specified directories.")
1531 (license license:expat)))
1533 (define-public graphios
1541 "https://pypi.python.org/packages/source/g/graphios/graphios-"
1545 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1546 (build-system python-build-system)
1548 ;; Be warned: Building with Python 3 succeeds, but the build process
1549 ;; throws a syntax error that is ignored.
1550 `(#:python ,python-2
1552 (modify-phases %standard-phases
1553 (add-before 'build 'fix-setup.py
1554 (lambda* (#:key outputs #:allow-other-keys)
1555 ;; Fix hardcoded, unprefixed file names.
1556 (let ((out (assoc-ref outputs "out")))
1557 (substitute* '("setup.py")
1558 (("/etc") (string-append out "/etc"))
1560 (("distro_ver = .*") "distro_ver = ''"))
1562 (home-page "https://github.com/shawn-sterling/graphios")
1563 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1565 "Graphios is a script to emit nagios perfdata to various upstream metrics
1566 processing and time-series systems. It's currently compatible with Graphite,
1567 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1568 of supported upstream metrics systems simultaneously.")
1569 (license license:gpl2+)))
1571 (define-public ansible
1578 (uri (pypi-uri "ansible" version))
1581 "0n3n9py4s3aykiii31xq8g4wmd6693jvby0424pjrg0bna01apri"))
1582 (patches (search-patches "ansible-wrap-program-hack.patch"))))
1583 (build-system python-build-system)
1585 `(("python2-bcrypt" ,python2-bcrypt)
1586 ("python2-pycrypto" ,python2-pycrypto)
1587 ("python2-pynacl" ,python2-pynacl)
1588 ("python2-httplib2" ,python2-httplib2)
1589 ("python2-passlib" ,python2-passlib)
1590 ("python2-nose" ,python2-nose)
1591 ("python2-mock" ,python2-mock)
1592 ("python2-jinja2" ,python2-jinja2)
1593 ("python2-pyyaml" ,python2-pyyaml)
1594 ("python2-paramiko" ,python2-paramiko)))
1596 `(("python2-pycrypto" ,python2-pycrypto)
1597 ("python2-jinja2" ,python2-jinja2)
1598 ("python2-pyyaml" ,python2-pyyaml)
1599 ("python2-paramiko" ,python2-paramiko)))
1601 `(#:python ,python-2)) ; incompatible with Python 3
1602 (home-page "https://www.ansible.com/")
1603 (synopsis "Radically simple IT automation")
1604 (description "Ansible is a radically simple IT automation system. It
1605 handles configuration management, application deployment, cloud provisioning,
1606 ad hoc task execution, and multinode orchestration---including trivializing
1607 things like zero-downtime rolling updates with load balancers.")
1608 (license license:gpl3+)))
1610 (define-public cpulimit
1617 (uri (string-append "https://github.com/opsengine/cpulimit/archive/v"
1619 (file-name (string-append name "-" version ".tar.gz"))
1622 "1nn2w849xd5bw4y5sqnll29nxdwl5h0cv4smc7dwmpb9qnd2ycb4"))))
1623 (build-system gnu-build-system)
1625 `(#:phases (modify-phases %standard-phases
1630 (zero? (system* "make" "CC=gcc" "-Csrc"))))
1634 (zero? (system* "make" "CC=gcc" "-Ctests"))))
1637 (lambda* (#:key outputs #:allow-other-keys)
1638 (let* ((out (assoc-ref outputs "out"))
1639 (bin (string-append out "/bin")))
1640 (install-file "src/cpulimit" bin)))))))
1641 (home-page "https://github.com/opsengine/cpulimit")
1642 (synopsis "Limit CPU usage")
1644 "Cpulimit limits the CPU usage of a process. It does not change the nice
1645 value or other scheduling priority settings, but the real CPU usage, and is
1646 able to adapt itself dynamically to the overall system load. Children
1647 processes and threads of the specified process may optionally share the same
1649 (license license:gpl2+)))
1651 (define-public autojump
1658 (uri (string-append "https://github.com/wting/autojump/archive/"
1659 "release-v" version ".tar.gz"))
1660 (file-name (string-append name "-" version ".tar.gz"))
1663 "17z9j9936x0nizwrzf664bngh60x5qbvrrf1s5qdzd0f2gdanpvn"))))
1664 (build-system gnu-build-system)
1665 (native-inputs ;for tests
1666 `(("python-mock" ,python-mock)
1667 ("python-pytest" ,python-pytest)))
1669 `(("python" ,python-wrapper)))
1672 (modify-phases %standard-phases
1677 (invoke "python" "tests/unit/autojump_utils_test.py")))
1679 (lambda* (#:key outputs #:allow-other-keys)
1680 (setenv "SHELL" (which "bash"))
1681 (invoke "python" "install.py"
1682 (string-append "--destdir="
1683 (assoc-ref outputs "out"))))))))
1684 (home-page "https://github.com/wting/autojump")
1685 (synopsis "Shell extension for file system navigation")
1687 "Autojump provides a faster way to navigate your file system, with a \"cd
1688 command that learns\". It works by maintaining a database of the directories
1689 you use the most from the command line and allows you to \"jump\" to
1690 frequently used directories by typing only a small pattern.")
1691 (license license:gpl3+)))
1700 (url "https://github.com/clvv/fasd.git")
1702 (file-name (git-file-name name version))
1705 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
1706 (build-system gnu-build-system)
1708 `(#:phases (modify-phases %standard-phases
1709 (delete 'configure)) ;no configuration
1710 #:tests? #f ;no tests
1711 #:make-flags (list (string-append "PREFIX=" %output))))
1712 (home-page "https://github.com/clvv/fasd")
1713 (synopsis "Quick access to files and directories for shells")
1715 "Fasd (pronounced similar to \"fast\") is a command-line productivity
1716 booster. Fasd offers quick access to files and directories for POSIX shells.
1717 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
1718 and directories you have accessed so that you can quickly reference them in
1720 (license license:x11)))
1722 (define-public iftop
1728 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
1729 "/iftop-" version ".tar.gz"))
1732 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
1733 (build-system gnu-build-system)
1735 `(("libpcap" ,libpcap)
1736 ("ncurses" ,ncurses)))
1737 (synopsis "Monitor network usage")
1738 (description "Iftop does for network usage what @command{top} does
1739 for CPU usage. It listens to network traffic on a named interface and
1740 displays a table of current bandwidth usage by pairs of hosts.")
1741 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
1742 (license license:gpl2+)))
1744 (define-public munge
1750 (uri (string-append "https://github.com/dun/munge/releases/"
1751 "download/munge-" version "/munge-"
1755 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))))
1757 `(("openssl" ,openssl)
1758 ("libgcrypt" ,libgcrypt)))
1759 (build-system gnu-build-system)
1760 (home-page "https://dun.github.io/munge/")
1761 (synopsis "Cluster computing authentication service")
1763 "Munge is an authentication service for creating and validating
1764 credentials. It allows a process to authenticate the UID and GID of another
1765 local or remote process within a group of hosts having common users and
1766 groups. These hosts form a security realm that is defined by a shared
1767 cryptographic key. Clients within this security realm can create and validate
1768 credentials without the use of root privileges, reserved ports, or
1769 platform-specific methods.")
1770 (license license:gpl3+)))
1772 (define-public audit
1778 (uri (string-append "https://people.redhat.com/sgrubb/audit/"
1779 "audit-" version ".tar.gz"))
1782 "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77"))))
1783 (build-system gnu-build-system)
1784 (home-page "https://people.redhat.com/sgrubb/audit/")
1786 `(#:configure-flags (list "--with-python=no")
1788 (modify-phases %standard-phases
1789 (add-after 'unpack 'fix-tests
1791 ;; In the build environmnte /etc/passwd does not contain an entry
1792 ;; for root/0, so we have to patch the expected value.
1793 (substitute* "auparse/test/auparse_test.ref"
1794 (("=0 \\(root\\)") "=0 (unknown(0))"))
1797 `(("openldap" ,openldap)
1799 ("sasl" ,cyrus-sasl)))
1800 (synopsis "User-space component to the Linux auditing system")
1802 "auditd is the user-space component to the Linux auditing system, which
1803 allows logging of system calls made by user-land processes. It's responsible
1804 for writing audit records to the disk. Viewing the logs is done with the
1805 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
1806 done with the @code{auditctl} utility.")
1807 (license license:gpl2+)))
1815 (uri (string-append "https://nmap.org/dist/nmap-" version
1819 "063fg8adx23l4irrh5kn57hsmi1xvjkar4vm4k6g94ppan4hcyw4"))
1820 (modules '((guix build utils)))
1823 (for-each delete-file-recursively
1824 ;; Remove bundled lua, pcap, and pcre libraries.
1825 ;; FIXME: Remove bundled liblinear once packaged.
1829 ;; Remove pre-compiled binares.
1832 (build-system gnu-build-system)
1834 `(("openssl" ,openssl)
1835 ("libpcap" ,libpcap)
1838 ("zlib" ,zlib) ;for NSE compression support
1841 ("python" ,python-2)))
1843 ;; TODO Add zenmap output.
1844 (outputs '("out" "ndiff"))
1846 '(#:configure-flags '("--without-zenmap")
1848 (modify-phases %standard-phases
1849 (add-after 'configure 'patch-Makefile
1851 (substitute* "Makefile"
1852 ;; Do not attempt to build lua.
1853 (("build-dnet build-lua") "build-dnet"))
1856 (lambda* (#:key outputs #:allow-other-keys)
1857 (define (make out . args)
1858 (unless (zero? (apply system* "make"
1859 (string-append "prefix=" out)
1861 (error "make failed")))
1862 (define (python-path dir)
1863 (string-append dir "/lib/python2.7/site-packages"))
1864 (let ((out (assoc-ref outputs "out"))
1865 (ndiff (assoc-ref outputs "ndiff")))
1866 (for-each mkdir-p (list out ndiff))
1872 (make ndiff "install-ndiff")
1873 (wrap-program (string-append ndiff "/bin/ndiff")
1874 `("PYTHONPATH" prefix
1875 (,(python-path ndiff)))))))
1876 ;; These are the tests that do not require network access.
1878 (lambda _ (zero? (system* "make"
1882 ;; Nmap can't cope with out-of-source building.
1883 #:out-of-source? #f))
1884 (home-page "https://nmap.org/")
1885 (synopsis "Network discovery and security auditing tool")
1887 "Nmap (\"Network Mapper\") is a network discovery and security auditing
1888 tool. It is also useful for tasks such as network inventory, managing service
1889 upgrade schedules, and monitoring host or service uptime. It also provides an
1890 advanced netcat implementation (ncat), a utility for comparing scan
1891 results (ndiff), and a packet generation and response analysis tool (nping).")
1892 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
1893 ;; both use a 3-clause BSD license.
1894 (license (list license:nmap license:bsd-3))))
1896 (define-public dstat
1903 "https://github.com/dagwieers/dstat/archive/"
1905 (file-name (string-append "dstat-" version ".tar.gz"))
1908 "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6"))))
1909 (build-system gnu-build-system)
1911 `(#:tests? #f ;; no make check
1912 #:make-flags (let ((out (assoc-ref %outputs "out")))
1913 (list (string-append "DESTDIR=" out)
1915 ;; no configure script
1916 #:phases (modify-phases %standard-phases (delete 'configure))))
1917 (inputs `(("python-2" ,python-2)))
1918 (synopsis "Versatile resource statistics tool")
1919 (description "Dstat is a versatile replacement for @command{vmstat},
1920 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
1921 some of their limitations and adds some extra features, more counters and
1922 flexibility. Dstat is handy for monitoring systems during performance tuning
1923 tests, benchmarks or troubleshooting.
1925 Dstat allows you to view all of your system resources in real-time, you can,
1926 e.g., compare disk utilization in combination with interrupts from your IDE
1927 controller, or compare the network bandwidth numbers directly with the disk
1928 throughput (in the same interval).")
1929 (home-page "http://dag.wiee.rs/home-made/dstat/")
1930 (license license:gpl2+)))
1932 (define-public thefuck
1938 (uri (string-append "https://github.com/nvbn/thefuck/archive/"
1940 (file-name (string-append name "-" version ".tar.gz"))
1943 "0my32n2x8x0f0wr8ql7qgk9qhb6ibv5b1rqs5b2r4nadv0gpiv96"))
1944 (patches (search-patches "thefuck-test-environ.patch"))))
1945 (build-system python-build-system)
1948 (modify-phases %standard-phases
1950 (add-after 'install 'check
1951 (lambda* (#:key inputs outputs #:allow-other-keys)
1952 ;; Tests look for installed package
1953 (add-installed-pythonpath inputs outputs)
1954 ;; Some tests need write access to $HOME.
1955 (setenv "HOME" "/tmp")
1956 (invoke "py.test" "-v")
1959 `(("python-colorama" ,python-colorama)
1960 ("python-decorator" ,python-decorator)
1961 ("python-psutil" ,python-psutil)
1962 ("python-pyte" ,python-pyte)
1963 ("python-six" ,python-six)))
1965 `(("python-mock" ,python-mock)
1966 ("python-pytest" ,python-pytest)
1967 ("python-pytest-mock" ,python-pytest-mock)))
1968 (home-page "https://github.com/nvbn/thefuck")
1969 (synopsis "Correct mistyped console command")
1971 "The Fuck tries to match a rule for a previous, mistyped command, creates
1972 a new command using the matched rule, and runs it.")
1973 (license license:x11)))
1982 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
1984 (base32 "0cskiqywiqkw44zdg4q78bjns6jjp1dz5lzdxrhpnpldc6075irw"))))
1985 (build-system gnu-build-system)
1987 `(#:tests? #f ; Obscure test failures.
1989 (modify-phases %standard-phases
1991 (add-before 'build 'setup-environment
1992 (lambda* (#:key outputs #:allow-other-keys)
1994 (setenv "prefix" (assoc-ref outputs "out"))
1996 #:make-flags (list "--environment-overrides")))
1997 (home-page "https://www.gentoo.com/di/")
1998 (synopsis "Advanced df like disk information utility")
2000 "'di' is a disk information utility, displaying everything that your
2001 @code{df} command does and more. It features the ability to display your disk
2002 usage in whatever format you prefer. It is designed to be highly portable and
2003 produce uniform output across heterogeneous networks.")
2004 (license license:zlib)))
2006 (define-public cbatticon
2012 (uri (string-append "https://github.com/valr/"
2013 name "/archive/" version ".tar.gz"))
2016 "185lzvaijvyq7y8r7dvizhri0rf9lpc1anfgbbn4lznr1fr3z7rn"))
2017 (file-name (string-append name "-" version ".tar.gz"))))
2018 (build-system gnu-build-system)
2020 `(#:tests? #f ; no tests
2022 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2025 (modify-phases %standard-phases
2026 (delete 'configure)))) ; no configure script
2029 ("gettext" ,gettext-minimal)
2030 ("libnotify" ,libnotify)))
2032 `(("pkg-config" ,pkg-config)))
2033 (synopsis "Lightweight battery icon for the system tray")
2034 (description "cbatticon is a lightweight battery icon that displays
2035 the status of your battery in the system tray.")
2036 (home-page "https://github.com/valr/cbatticon")
2037 (license license:gpl2+)))
2039 (define-public interrobang
2040 (let ((revision "1")
2041 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2043 (name "interrobang")
2044 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
2048 (url "https://github.com/TrilbyWhite/interrobang")
2050 (file-name (string-append name "-" version))
2053 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2054 (build-system gnu-build-system)
2056 `(#:tests? #f ; no tests
2058 (modify-phases %standard-phases
2059 (delete 'configure)) ; no configure script
2060 #:make-flags (list (string-append "PREFIX="
2061 (assoc-ref %outputs "out")))))
2063 `(("libx11" ,libx11)))
2065 `(("pkg-config" ,pkg-config)))
2066 (synopsis "Scriptable launcher menu")
2067 (description "Interrobang is a scriptable launcher menu with a customizable
2068 shortcut syntax and completion options.")
2069 (home-page "https://github.com/TrilbyWhite/interrobang")
2070 (license license:gpl3+))))
2072 (define-public pam-krb5
2079 "https://archives.eyrie.org/software/kerberos/" name "-"
2083 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2084 (build-system gnu-build-system)
2087 (modify-phases %standard-phases
2088 (add-before 'configure 'disable-tests
2090 ;; The build container seems to interfere with some tests.
2091 (substitute* "tests/TESTS"
2092 (("module/basic\n") ""))
2093 (substitute* "tests/TESTS"
2094 (("pam-util/vector\n") ""))
2097 `(("linux-pam" ,linux-pam)
2098 ("mit-krb5" ,mit-krb5)))
2101 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2102 (synopsis "Kerberos PAM module")
2104 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2105 It supports ticket refreshing by screen savers, configurable
2106 authorization handling, authentication of non-local accounts for network
2107 services, password changing, and password expiration, as well as all the
2108 standard expected PAM features. It works correctly with OpenSSH, even
2109 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2110 enabled, and supports extensive configuration either by PAM options or in
2111 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2112 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2113 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2114 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2115 ;; However, the tarball does not contain a copy of the GPL, so unless
2116 ;; we put one in, we cannot distribute it under GPL without violating
2117 ;; clause requiring us to give all recipients a copy.
2118 (license license:gpl1+)))
2120 (define-public sunxi-tools
2122 (name "sunxi-tools")
2127 (uri (string-append "https://github.com/linux-sunxi/"
2128 "sunxi-tools/archive/v" version ".tar.gz"))
2130 (base32 "08iqwj95qw2s7ilhrdi2lkbc8dx64zk5lzz1qk587jr0lla81x41"))
2131 (modules '((guix build utils)))
2133 ;; Remove binaries contained in the tarball which are only for the
2134 ;; target and can be regenerated anyway.
2136 (delete-file-recursively "bin")
2138 (file-name (string-append name "-" version ".tar.gz"))))
2140 `(("pkg-config" ,pkg-config)
2141 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2142 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2143 #:libc (cross-libc "arm-linux-gnueabihf")))
2144 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2145 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2147 `(("libusb" ,libusb)))
2148 (build-system gnu-build-system)
2150 `(#:tests? #f ; no tests exist
2151 #:make-flags (list (string-append "PREFIX="
2152 (assoc-ref %outputs "out"))
2153 (string-append "CROSS_COMPILE="
2154 "arm-linux-gnueabihf-")
2157 (modify-phases %standard-phases
2159 (add-before 'build 'set-environment-up
2160 (lambda* (#:key make-flags #:allow-other-keys)
2162 (string-contains x "cross-arm-linux"))
2163 (define (filter-environment! filter-predicate
2164 environment-variable-names)
2167 (let* ((env-value (getenv env-name))
2168 (search-path (search-path-as-string->list env-value))
2169 (new-search-path (filter filter-predicate
2171 (new-env-value (list->search-path-as-string
2172 new-search-path ":")))
2173 (setenv env-name new-env-value)))
2174 environment-variable-names))
2175 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2176 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2177 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2178 (filter-environment! cross?
2179 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2180 "CROSS_LIBRARY_PATH"))
2181 (filter-environment! (lambda (e) (not (cross? e)))
2182 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2186 (lambda* (#:key make-flags #:allow-other-keys)
2187 (zero? (apply system* "make" "tools" "misc" make-flags))))
2188 (add-after 'build 'build-armhf
2189 (lambda* (#:key make-flags #:allow-other-keys)
2190 (setenv "LIBRARY_PATH" #f)
2191 (zero? (apply system* "make" "target-tools" make-flags))))
2193 (lambda* (#:key make-flags #:allow-other-keys)
2194 (zero? (apply system* "make" "install-all" "install-misc"
2196 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2197 (synopsis "Hardware management tools for Allwinner computers")
2198 (description "This package contains tools for Allwinner devices:
2200 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2201 a textual description of a board (.fex) to a binary representation (.bin).
2202 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2203 makes it register as a special USB device (rather than USB host).
2204 You can then connect it to another computer and flash it from there.
2205 @item @command{sunxi-nand-part}: Partitions NAND flash.
2206 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2207 bootloader) parameters.
2208 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2209 in order to be able to find it.
2210 @item @command{sunxi-meminfo}: Prints memory bus settings.
2211 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2213 (license license:gpl2+)))
2215 (define-public sedsed
2222 (uri (string-append "https://github.com/aureliojargas/sedsed/"
2223 "archive/v" version ".tar.gz"))
2224 (file-name (string-append name "-" version ".tar.gz"))
2227 "0139jkqvm8ipiwfj7k69ry2f9b1ffgpk79arpz4r7w9kf6h23bnh"))))
2228 (build-system python-build-system)
2230 `(#:tests? #f ; No tests.
2233 (modify-phases %standard-phases
2234 (add-after 'unpack 'patch-sed-in
2236 (substitute* "sedsed.py"
2238 (string-append "sedbin = '" (which "sed") "'")))
2242 (lambda* (#:key outputs #:allow-other-keys)
2243 (let* ((out (assoc-ref outputs "out"))
2244 (bin (string-append out "/bin")))
2245 ;; Just one file to copy around
2246 (install-file "sedsed.py" bin)
2248 (add-after 'install 'symlink
2249 ;; Create 'sedsed' symlink to "sedsed.py".
2250 (lambda* (#:key outputs #:allow-other-keys)
2251 (let* ((out (assoc-ref outputs "out"))
2252 (bin (string-append out "/bin"))
2253 (sed (string-append bin "/sedsed"))
2254 (sedpy (string-append bin "/sedsed.py")))
2257 (home-page "http://aurelio.net/projects/sedsed")
2258 (synopsis "Sed sed scripts")
2260 "@code{sedsed} can debug, indent, tokenize and HTMLize your sed(1) script.
2262 In debug mode it reads your script and add extra commands to it. When
2263 executed you can see the data flow between the commands, revealing all the
2264 magic sed does on its internal buffers.
2266 In indent mode your script is reformatted with standard spacing.
2268 In tokenize mode you can see the elements of every command you use.
2270 In HTMLize mode your script is converted to a beautiful colored HTML file,
2271 with all the commands and parameters identified for your viewing pleasure.
2273 With sedsed you can master any sed script. No more secrets, no more hidden
2275 (license license:expat)))
2277 (define-public intel-gpu-tools
2279 (name "intel-gpu-tools")
2283 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2284 "intel-gpu-tools/snapshot/"
2285 "intel-gpu-tools-" version ".tar.gz"))
2288 "1jx5w5fr6jp67rcrlp5v79cn8kp9n0wgd5pbfgzamlah5cx6j3yd"))))
2289 (build-system gnu-build-system)
2291 `(#:tests? #f ; many of the tests try to load kernel modules
2293 (modify-phases %standard-phases
2294 (add-after 'unpack 'autogen
2296 ;; Don't run configure in this phase.
2297 (setenv "NOCONFIGURE" "1")
2298 (invoke "sh" "autogen.sh"))))))
2301 ("util-macros" ,util-macros)
2303 ("libpciaccess" ,libpciaccess)
2307 ("libunwind" ,libunwind)
2308 ("libxrandr" ,libxrandr)
2311 `(("autoconf" ,autoconf)
2312 ("automake" ,automake)
2313 ("libtool" ,libtool)
2314 ("pkg-config" ,pkg-config)))
2315 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2316 (synopsis "Tools for development and testing of the Intel DRM driver")
2317 (description "Intel GPU Tools is a collection of tools for development and
2318 testing of the Intel DRM driver. There are many macro-level test suites that
2319 get used against the driver, including xtest, rendercheck, piglit, and
2320 oglconform, but failures from those can be difficult to track down to kernel
2321 changes, and many require complicated build procedures or specific testing
2322 environments to get useful results. Therefore, Intel GPU Tools includes
2323 low-level tools and tests specifically for development and testing of the
2325 (supported-systems '("i686-linux" "x86_64-linux"))
2326 (license license:expat)))
2328 (define-public fabric
2335 (uri (pypi-uri "Fabric" version))
2338 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2339 (build-system python-build-system)
2341 `(#:python ,python-2 ; Python 2 only
2343 (modify-phases %standard-phases
2347 "nosetests" "-v" "tests/"
2348 ;; This test hangs indefinitely when run on a single core VM
2349 ;; (see GNU bug #26647 and Debian bug #850230).
2350 "--exclude=test_nested_execution_with_explicit_ports"
2351 ;; This test randomly fails in certain environments causing too
2352 ;; much noise to be useful (see Debian bug #854686).
2353 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2355 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2356 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2357 ("python2-nose" ,python2-nose) ; Requires < 2.0
2358 ("python2-pynacl" ,python2-pynacl)
2359 ("python2-bcrypt" ,python2-bcrypt)))
2361 `(("python2-paramiko" ,python2-paramiko)))
2362 (home-page "http://fabfile.org")
2363 (synopsis "Simple Pythonic remote execution and deployment tool")
2365 "Fabric is designed to upload files and run shell commands on a number of
2366 servers in parallel or serially. These commands are grouped in tasks (which
2367 are regular Python functions) and specified in a @dfn{fabfile}.
2369 It is similar to Capistrano, except it's implemented in Python and doesn't
2370 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2371 tool for remote execution and deployment.")
2372 (license license:bsd-2)))
2374 (define-public neofetch
2381 (url "https://github.com/dylanaraps/neofetch")
2385 "0yzyi2p0d8xp576lxyv5m9h60dl1d5dmrn40aad307872835b9rr"))))
2386 (build-system gnu-build-system)
2388 `(#:tests? #f ; there are no tests
2390 (list (string-append "PREFIX=" %output))
2392 (modify-phases %standard-phases
2393 (delete 'configure)))) ; no configure script
2394 (home-page "https://github.com/dylanaraps/neofetch")
2395 (synopsis "System information script")
2396 (description "Neofetch is a command-line system information tool written in
2397 Bash. Neofetch displays information about your system next to an image, your OS
2398 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2399 used in screenshots to show other users what operating system or distribution
2400 you are running, what theme or icon set you are using, etc.")
2401 (license license:expat)))
2409 (uri (string-append "https://github.com/jarun/nnn/"
2410 "archive/v" version ".tar.gz"))
2411 (file-name (string-append name "-" version ".tar.gz"))
2414 "0z3lqbfx3y1caxvn7yq90b7whwyq2y32zf8kyd976ilbxpxnxqpv"))))
2415 (build-system gnu-build-system)
2416 (inputs `(("ncurses" ,ncurses)
2417 ("readline" ,readline)))
2419 '(#:tests? #f ; no tests
2421 ;; We do not provide `ncurses.h' within an `ncursesw'
2422 ;; sub-directory, so patch the source accordingly. See
2423 ;; <http://bugs.gnu.org/19018>.
2424 ;; Thanks to gtypist maintainer.
2425 (modify-phases %standard-phases
2426 (add-after 'unpack 'patch-curses-lib
2427 (lambda* (#:key outputs #:allow-other-keys)
2428 (let ((out (assoc-ref outputs "out")))
2429 (substitute* "Makefile"
2432 (substitute* "nnn.c"
2433 (("ncursesw\\/curses.h")
2436 (delete 'configure))
2439 (string-append "PREFIX="
2440 (assoc-ref %outputs "out"))
2441 (string-append "-Wl,-rpath="
2444 (home-page "https://github.com/jarun/nnn")
2445 (synopsis "Terminal file browser")
2446 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2447 lightweight terminal file browser with easy keyboard shortcuts for
2448 navigation, opening files and running tasks. There is no config file and
2449 mime associations are hard-coded. The incredible user-friendliness and speed
2450 make it a perfect utility on modern distros.")
2451 (license license:bsd-2)))
2453 (define-public thermald
2460 (uri (string-append "https://github.com/01org/thermal_daemon/archive/v"
2462 (file-name (string-append name "-" version ".tar.gz"))
2464 "15a6vb67y5wsmf0irrq7sxam18yqpz64130k83ryf24mp40h661b"))))
2465 (build-system gnu-build-system)
2468 (modify-phases %standard-phases
2469 (add-after 'unpack 'bootstrap
2471 (invoke "sh" "autogen.sh")
2474 (let ((out (assoc-ref %outputs "out")))
2475 (list (string-append "--sysconfdir="
2477 (string-append "--with-udev-dir="
2479 (string-append "--with-dbus-sys-dir="
2480 out "/etc/dbus-1/system.d")
2481 "--localstatedir=/var"))))
2483 `(("autoconf" ,autoconf)
2484 ("automake" ,automake)
2485 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2486 ("pkg-config" ,pkg-config)))
2488 `(("dbus-glib" ,dbus-glib)
2489 ("libxml2" ,libxml2)))
2490 (home-page "https://01.org/linux-thermal-daemon/")
2491 (synopsis "CPU scaling for thermal management")
2492 (description "The Linux Thermal Daemon helps monitor and control temperature
2493 on systems running the Linux kernel.")
2494 ;; arm and aarch64 don't have cpuid.h.
2495 (supported-systems '("i686-linux" "x86_64-linux"))
2496 (license license:gpl2+)))
2498 (define-public masscan
2504 (uri (string-append "https://github.com/robertdavidgraham/masscan"
2505 "/archive/" version ".tar.gz"))
2506 (file-name (string-append name "-" version ".tar.gz"))
2509 "0wxddsgyx27z45906icdhdbfsvfj8ij805208qpqjx46i0lnjs50"))))
2510 (build-system gnu-build-system)
2512 `(("libpcap" ,libpcap)))
2514 '(#:test-target "regress"
2517 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2519 (modify-phases %standard-phases
2520 (delete 'configure) ; no ./configure script
2521 (add-after 'unpack 'patch-path
2522 (lambda* (#:key outputs inputs #:allow-other-keys)
2523 (let* ((out (assoc-ref outputs "out"))
2524 (pcap (assoc-ref inputs "libpcap")))
2525 (substitute* "src/rawsock-pcap.c"
2526 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
2528 (synopsis "TCP port scanner")
2529 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
2530 open ports, and also complete the TCP connection and interact with the remote
2531 application, collecting the information received.")
2532 (home-page "https://github.com/robertdavidgraham/masscan")
2533 ;; 'src/siphash24.c' is the SipHash reference implementation, which
2534 ;; bears a CC0 Public Domain Dedication.
2535 (license license:agpl3+)))
2537 (define-public hungrycat
2543 (uri (string-append "https://github.com/jwilk/hungrycat/"
2544 "releases/download/" version "/"
2545 name "-" version ".tar.gz"))
2548 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
2549 (build-system gnu-build-system)
2552 `(("python" ,python-wrapper)
2553 ("python-nose" ,python-nose)))
2555 `(#:test-target "test"))
2556 (synopsis "A single tool that combines @command{cat} & @command{rm}")
2558 "hungrycat prints the contents of a file to standard output, while
2559 simultaneously freeing the disk space it occupied. It is useful if you need
2560 to process a large file, don't have enough space to store both the input and
2561 output files, and don't need the input file afterwards.
2562 While similar in principle to running @command{cat} immediately followed by
2563 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
2564 printed instead of after the entire file has been read, which is often too
2566 (home-page "https://jwilk.net/software/hungrycat")
2567 (license license:expat)))
2569 (define-public launchmon
2576 "https://github.com/LLNL/LaunchMON/releases/download/v"
2577 version "/" name "-v" version ".tar.gz"))
2580 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
2581 (build-system gnu-build-system)
2587 ("libgcrypt" ,libgcrypt)
2588 ("libgpg-error" ,libgpg-error)))
2589 (synopsis "Infrastructue for large scale tool daemon launching")
2591 "LaunchMON is a software infrastructure that enables HPC run-time
2592 tools to co-locate tool daemons with a parallel job. Its API allows a
2593 tool to identify all the remote processes of a job and to scalably
2594 launch daemons into the relevant nodes.")
2595 (home-page "https://github.com/LLNL/LaunchMON")
2596 (supported-systems '("i686-linux" "x86_64-linux"))
2597 (license license:lgpl2.1)))
2599 (define-public spindle
2604 ;; We use git checkout to avoid github auto-generated tarballs
2607 (url "https://github.com/hpc/Spindle.git")
2608 (commit (string-append "v" version))))
2609 (file-name (git-file-name name version))
2612 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
2613 (build-system gnu-build-system)
2614 (arguments '(#:configure-flags '("--enable-sec-launchmon"
2615 "--enable-sec-munge"
2616 "--enable-sec-none")))
2620 ("launchmon" ,launchmon)
2621 ("libgcrypt" ,libgcrypt)))
2622 (synopsis "Scalable library loading in HPC environments")
2624 "Spindle is a tool for improving the performance of dynamic library and
2625 Python loading in HPC environments.")
2626 (home-page "https://github.com/hpc/Spindle")
2627 ;; This package supports x86_64 and PowerPC64
2628 (supported-systems '("x86_64-linux"))
2629 (license license:lgpl2.1)))
2631 (define-public inxi-minimal
2632 (let ((real-name "inxi"))
2634 (name "inxi-minimal")
2635 (version "3.0.14-1")
2640 (url "https://github.com/smxi/inxi")
2644 "1f342basqlp7hl6zw29fb018jd55dx85a6dmm3sap032a3dgds73"))))
2645 (build-system trivial-build-system)
2658 (use-modules (guix build utils)
2661 (setenv "PATH" (string-append
2662 (assoc-ref %build-inputs "bash") "/bin" ":"
2663 (assoc-ref %build-inputs "gzip") "/bin" ":"
2664 (assoc-ref %build-inputs "perl") "/bin" ":"))
2665 (copy-recursively (assoc-ref %build-inputs "source")
2666 ,(string-append real-name "-" version))
2667 (with-directory-excursion ,(string-append real-name "-" version)
2668 (with-fluids ((%default-port-encoding #f))
2669 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
2670 (let ((bin (string-append %output "/bin")))
2671 (install-file "inxi" bin)
2672 (wrap-program (string-append bin "/inxi")
2675 ,@(map (lambda (input)
2679 (cut string-append store <>)))
2681 ((member name '("util-linux"))
2682 (string-append (store-append "/bin") ":"
2683 (store-append "/sbin")))
2684 ((member name '("dmidecode" "iproute2"))
2685 (store-append "/sbin"))
2686 (else (store-append "/bin")))))))
2692 (((? (cut string-prefix? "perl-" <>) name) . dir)
2693 (string-append dir "/lib/perl5/site_perl"))
2696 (invoke "gzip" "inxi.1")
2697 (install-file "inxi.1.gz"
2698 (string-append %output "/share/man/man1")))
2700 (home-page "https://smxi.org/docs/inxi.htm")
2701 (synopsis "Full-featured system information script")
2702 (description "Inxi is a system information script that can display
2703 various things about your hardware and software to users in an IRC chatroom or
2704 support forum. It runs with the @code{/exec} command in most IRC clients.")
2705 (license license:gpl3+))))
2709 (inherit inxi-minimal)
2712 `(("dmidecode" ,dmidecode)
2714 ("bind:utils" ,isc-bind "utils") ; dig
2716 ("iproute2" ,iproute) ; ip
2717 ("kmod" ,kmod) ; modinfo
2718 ("lm-sensors" ,lm-sensors)
2719 ("mesa-utils" ,mesa-utils)
2720 ("pciutils" ,pciutils)
2724 ("util-linux" ,util-linux) ; lsblk
2725 ("usbutils" ,usbutils) ; lsusb
2727 ("xdpyinfo" ,xdpyinfo)
2730 ("coreutils" ,coreutils) ; uptime
2731 ("inetutils" ,inetutils) ; ifconfig
2732 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
2733 ("perl-http-tiny" ,perl-http-tiny)
2734 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
2735 ("perl-json-xs" ,perl-json-xs)
2736 ("perl-time-hires" ,perl-time-hires)
2737 ;; TODO: Add more inputs:
2742 ,@(package-inputs inxi-minimal)))))