1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016, 2018, 2019 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, 2018, 2019 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 ng0 <ng0@n0.is>
16 ;;; Copyright © 2016, 2017, 2018, 2019 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>
25 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
26 ;;; Copyright © 2019 Brett Gilio <brettg@posteo.net>
27 ;;; Copyright © 2019 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
28 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>
29 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
31 ;;; This file is part of GNU Guix.
33 ;;; GNU Guix is free software; you can redistribute it and/or modify it
34 ;;; under the terms of the GNU General Public License as published by
35 ;;; the Free Software Foundation; either version 3 of the License, or (at
36 ;;; your option) any later version.
38 ;;; GNU Guix is distributed in the hope that it will be useful, but
39 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
40 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 ;;; GNU General Public License for more details.
43 ;;; You should have received a copy of the GNU General Public License
44 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
46 (define-module (gnu packages admin)
47 #:use-module ((guix licenses) #:prefix license:)
48 #:use-module (guix packages)
49 #:use-module (guix utils)
50 #:use-module (guix download)
51 #:use-module (guix git-download)
52 #:use-module (guix build-system cmake)
53 #:use-module (guix build-system emacs)
54 #:use-module (guix build-system gnu)
55 #:use-module (guix build-system meson)
56 #:use-module (guix build-system perl)
57 #:use-module (guix build-system python)
58 #:use-module (guix build-system trivial)
59 #:use-module (gnu packages)
60 #:use-module (gnu packages algebra)
61 #:use-module (gnu packages base)
62 #:use-module (gnu packages bash)
63 #:use-module (gnu packages check)
64 #:use-module (gnu packages crypto)
65 #:use-module (gnu packages cyrus-sasl)
66 #:use-module (gnu packages dns)
67 #:use-module (gnu packages file)
68 #:use-module (gnu packages ncurses)
69 #:use-module (gnu packages readline)
70 #:use-module (gnu packages linux)
71 #:use-module (gnu packages lua)
72 #:use-module (gnu packages guile)
73 #:use-module (gnu packages gettext)
74 #:use-module (gnu packages imagemagick)
75 #:use-module (gnu packages inkscape)
76 #:use-module (gnu packages pcre)
77 #:use-module (gnu packages perl)
78 #:use-module (gnu packages perl-check)
79 #:use-module (gnu packages tcl)
80 #:use-module (gnu packages compression)
81 #:use-module (gnu packages cross-base)
82 #:use-module (gnu packages tls)
83 #:use-module (gnu packages gnupg)
84 #:use-module (gnu packages bison)
85 #:use-module (gnu packages flex)
86 #:use-module (gnu packages gl)
87 #:use-module (gnu packages glib)
88 #:use-module (gnu packages openldap)
89 #:use-module (gnu packages mcrypt)
90 #:use-module (gnu packages pkg-config)
91 #:use-module (gnu packages popt)
92 #:use-module (gnu packages python)
93 #:use-module (gnu packages python-crypto)
94 #:use-module (gnu packages python-web)
95 #:use-module (gnu packages python-xyz)
96 #:use-module (gnu packages qt)
97 #:use-module (gnu packages sphinx)
98 #:use-module (gnu packages terminals)
99 #:use-module (gnu packages texinfo)
100 #:use-module (gnu packages groff)
101 #:use-module (gnu packages pciutils)
102 #:use-module (gnu packages libunwind)
103 #:use-module (gnu packages libusb)
104 #:use-module (gnu packages libftdi)
105 #:use-module (gnu packages image)
106 #:use-module (gnu packages xorg)
107 #:use-module (gnu packages xdisorg)
108 #:use-module (gnu packages man)
109 #:use-module (gnu packages autotools)
110 #:use-module (gnu packages gnome)
111 #:use-module (gnu packages kerberos)
112 #:use-module (gnu packages gtk)
113 #:use-module (gnu packages xml)
114 #:use-module (gnu packages boost)
115 #:use-module (gnu packages elf)
116 #:use-module (gnu packages mpi)
117 #:use-module (gnu packages version-control)
118 #:use-module (gnu packages web))
127 (uri (string-append "https://github.com/aide/aide/releases/download/v"
128 version "/aide-" version ".tar.gz"))
130 (base32 "15xp47sz7kk1ciffw3f5xw2jg2mb2lqrbr3q6p4bkbz5dap9iy8p"))))
131 (build-system gnu-build-system)
136 `(("libgcrypt" ,libgcrypt)
137 ("libgpg-error" ,libgpg-error)
138 ("libmhash" ,libmhash)
139 ("pcre:static" ,pcre "static")
141 ("zlib:static" ,zlib "static")
143 (synopsis "File and directory integrity checker")
145 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
146 integrity checker. It creates a database from the regular expression rules
147 that it finds from its configuration files. Once this database is initialized
148 it can be used to verify the integrity of the files. It has several message
149 digest algorithms that are used to check the integrity of files. All of the
150 usual file attributes can be checked for inconsistencies.")
151 (home-page "https://aide.github.io/")
152 (license license:gpl2+)))
154 (define-public progress
162 (url "https://github.com/Xfennec/progress.git")
163 (commit (string-append "v" version))))
165 (base32 "1lk2v4b767klib93an4g3f7z5qrv9kdk9jf7545vw1immc4kamrl"))
166 (file-name (git-file-name name version))))
167 (build-system gnu-build-system)
169 `(("pkg-config" ,pkg-config)
172 `(("ncurses" ,ncurses)))
174 `(#:tests? #f ; no test suite
175 #:make-flags (list "CC=gcc"
176 (string-append "PREFIX=" (assoc-ref %outputs "out")))
178 (modify-phases %standard-phases
179 (delete 'configure)))) ; no configure script
180 (home-page "https://github.com/Xfennec/progress")
181 (synopsis "Program to view the progress of the coreutils commands")
182 (description "A program that looks for coreutils basic commands (cp, mv,
183 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
184 the percentage of copied data. It can also show estimated time and throughput,
185 and provides a \"top-like\" mode (monitoring).")
186 (license license:gpl3+)))
188 (define-public shepherd
194 (uri (string-append "mirror://gnu/shepherd/shepherd-"
198 "1xn6mb5bh8bpfgdrh09ja31jk0ln7bmxbbf0vjcqxkkixs2wl6sk"))))
199 (build-system gnu-build-system)
201 '(#:configure-flags '("--localstatedir=/var")))
203 `(("pkg-config" ,pkg-config)
205 ;; This is the Guile we use as a cross-compiler...
206 ("guile" ,guile-2.2)))
208 ;; ... and this is the one that appears in shebangs when cross-compiling.
209 `(("guile" ,guile-2.2)
211 ;; The 'shepherd' command uses Readline when used interactively. It's
212 ;; an unusual use case though, so we don't propagate it.
213 ("guile-readline" ,guile-readline)))
214 (synopsis "System service manager")
216 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
217 the execution of system services, replacing similar functionality found in
218 typical init systems. It provides dependency-handling through a convenient
219 interface and is based on GNU Guile.")
220 (license license:gpl3+)
221 (home-page "https://www.gnu.org/software/shepherd/")))
223 (define-public cloud-utils
231 "https://launchpad.net/cloud-utils/trunk/"
232 version "/+download/cloud-utils-" version ".tar.gz"))
235 "07fl3dlqwdzw4xx7mcxhpkks6dnmaxha80zgs9f6wmibgzni8z0r"))))
236 (build-system gnu-build-system)
239 (let ((out (assoc-ref %outputs "out")))
240 (list (string-append "BINDIR=" out "/bin")
241 (string-append "MANDIR=" out "/share/man/man1")
242 (string-append "DOCDIR=" out "/share/doc")))
244 (modify-phases %standard-phases
247 (add-after 'install 'wrap
248 (lambda* (#:key outputs inputs #:allow-other-keys)
249 (let ((growpart (string-append (assoc-ref outputs "out")
251 (wrap-program growpart
252 `("PATH" ":" prefix (,(dirname (which "sfdisk"))
253 ,(dirname (which "readlink"))))))
257 ("util-linux" ,util-linux))) ; contains sfdisk for growpart
258 (home-page "https://launchpad.net/cloud-utils")
259 (synopsis "Set of utilities for cloud computing environments")
261 "This package contains a set of utilities for cloud computing
265 @item @command{cloud-localds} Create a disk for cloud-init to utilize nocloud
266 @item @command{cloud-publish-image} Wrapper for cloud image publishing
267 @item @command{cloud-publish-tarball} Wrapper for publishing cloud tarballs
268 @item @command{cloud-publish-ubuntu} Import a Ubuntu cloud image
269 @item @command{ec2metadata} Query and display @acronym{EC2,Amazon Elastic
270 Compute Cloud} metadata
271 @item @command{growpart} Grow a partition to fill the device
272 @item @command{mount-image-callback} Mount a file and run a command
273 @item @command{resize-part-image} Resize a partition image to a new size
274 @item @command{ubuntu-cloudimg-query} Get the latest Ubuntu
275 @acronym{AMI,Amazon Machine Image}
276 @item @command{ubuntu-ec2-run} Run a @acronym{EC2,Amazon Elastic Compute
277 Cloud} instance using Ubuntu
278 @item @command{vcs-run} Obtain a repository, and run a command
279 @item @command{write-mime-multipart} Handle multipart
280 @acronym{MIME,Multipurpose Internet Mail Extensions} messages
282 (license license:gpl3)))
284 (define-public daemontools
291 "https://cr.yp.to/daemontools/"
292 "daemontools-" version ".tar.gz"))
295 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
296 (build-system gnu-build-system)
298 `(#:tests? #f ;; No tests as far as I can tell.
300 (modify-phases %standard-phases
301 (add-after 'unpack 'chdir
303 (chdir ,(string-append "daemontools-" version))
306 (add-before 'build 'patch
308 (substitute* "src/error.h"
309 (("extern int errno;")
310 "#include <errno.h>"))
314 (invoke "package/compile")))
316 (lambda* (#:key outputs #:allow-other-keys)
317 (let* ((out (assoc-ref outputs "out"))
318 (bin (string-append out "/bin")))
319 (for-each (lambda (file)
320 (install-file file bin))
321 (find-files "command")))
323 (synopsis "Tools for managing UNIX style services")
325 "@code{daemontools} is a collection of tools for managing UNIX
327 (license license:public-domain)
328 (home-page "https://cr.yp.to/daemontools.html")))
338 "https://projects.gw-computing.net/attachments/download/615/dfc-"
342 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
343 (build-system cmake-build-system)
344 (arguments '(#:tests? #f)) ; There are no tests.
345 (native-inputs `(("gettext" ,gettext-minimal)))
346 (home-page "https://projects.gw-computing.net/projects/dfc")
347 (synopsis "Display file system space usage using graphs and colors")
349 "dfc (df color) is a modern version of df. It uses colors, draws pretty
350 graphs and can export its output to different formats.")
351 (license license:bsd-3)))
359 (uri (string-append "http://hisham.hm/htop/releases/"
360 version "/htop-" version ".tar.gz"))
363 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
364 (build-system gnu-build-system)
366 `(("ncurses" ,ncurses)))
368 `(("python" ,python-wrapper))) ;for scripts/MakeHeader.py
369 (home-page "https://hisham.hm/htop/")
370 (synopsis "Interactive process viewer")
372 "This is htop, an interactive process viewer. It is a text-mode
373 application (for console or X terminals) and requires ncurses.")
374 (license license:gpl2)))
383 (uri (string-append "mirror://gnu/pies/pies-"
387 "14jb4pa4zs26d5j2skxbaypnwhsx2lw8jgj1irrgs03c2dnf7gp6"))))
388 (build-system gnu-build-system)
390 '(#:phases (modify-phases %standard-phases
391 (add-before 'build 'patch-/bin/sh
392 (lambda* (#:key inputs #:allow-other-keys)
393 ;; Use the right shell when executing user-provided
395 (let ((bash (assoc-ref inputs "bash")))
396 (substitute* '("src/progman.c" "src/comp.c")
398 (string-append "\"" bash "/bin/sh\"")))
400 (home-page "https://www.gnu.org/software/pies/")
401 (synopsis "Program invocation and execution supervisor")
403 "GNU pies is a program that supervises the invocation and execution of
404 other programs. It reads the list of programs to be started from its
405 configuration file, executes them, and then monitors their status,
406 re-executing them as necessary.")
407 (license license:gpl3+)))
409 (define-public inetutils
415 (uri (string-append "mirror://gnu/inetutils/inetutils-"
419 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
420 (build-system gnu-build-system)
422 `(#:configure-flags '("--localstatedir=/var"
424 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
425 ;; cross-compiling (by default it does not.)
426 ,@(if (%current-target-system)
427 '("--with-path-procnet-dev=/proc/net/dev")
429 ;; On some systems, 'libls.sh' may fail with an error such as:
430 ;; "Failed to tell switch -a apart from -A".
431 #:parallel-tests? #f))
432 (inputs `(("ncurses" ,ncurses)
433 ("readline" ,readline))) ;for 'ftp'
434 (native-inputs `(("netstat" ,net-tools))) ;for tests
435 (home-page "https://www.gnu.org/software/inetutils/")
436 (synopsis "Basic networking utilities")
438 "Inetutils is a collection of common network programs, such as an ftp
439 client and server, a telnet client and server, an rsh client and server, and
441 (license license:gpl3+)))
443 (define-public shadow
450 "https://github.com/shadow-maint/shadow/releases/"
451 "download/" version "/shadow-" version ".tar.xz"))
454 "0v71474rx38lg9kidrm4xbk35sg3icv3s5pk2b42icp3lyj9dqg5"))))
455 (build-system gnu-build-system)
457 `(;; Assume System V `setpgrp (void)', which is the default on GNU
458 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
460 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
463 (modify-phases %standard-phases
464 (add-before 'build 'set-nscd-file-name
465 (lambda* (#:key inputs #:allow-other-keys)
466 ;; Use the right file name for nscd.
467 (let ((libc (assoc-ref inputs
468 ,(if (%current-target-system)
471 (substitute* "lib/nscd.c"
473 (string-append libc "/sbin/nscd")))
475 (add-after 'install 'remove-groups
476 (lambda* (#:key outputs #:allow-other-keys)
477 ;; Remove `groups', which is already provided by Coreutils.
478 (let* ((out (assoc-ref outputs "out"))
479 (bin (string-append out "/bin"))
480 (man (string-append out "/share/man")))
481 (delete-file (string-append bin "/groups"))
482 (for-each delete-file (find-files man "^groups\\."))
485 (inputs (if (string-contains (or (%current-target-system)
488 `(("linux-pam" ,linux-pam))
490 (home-page "https://github.com/shadow-maint/shadow")
491 (synopsis "Authentication-related tools such as passwd, su, and login")
493 "Shadow provides a number of authentication-related tools, including:
494 login, passwd, su, groupadd, and useradd.")
496 ;; The `vipw' program is GPLv2+.
497 ;; libmisc/salt.c is public domain.
498 (license license:bsd-3)))
500 (define-public mingetty
506 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
507 version "/mingetty-" version ".tar.gz"))
510 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
511 (build-system gnu-build-system)
514 (modify-phases %standard-phases
516 (lambda* (#:key inputs outputs #:allow-other-keys)
517 (let* ((out (assoc-ref outputs "out"))
518 (man8 (string-append out "/share/man/man8"))
519 (sbin (string-append out "/sbin"))
520 (shadow (assoc-ref inputs "shadow"))
521 (login (string-append shadow "/bin/login")))
522 (substitute* "Makefile"
524 (string-append "SBINDIR = " out
527 (string-append "MANDIR = " out
528 "/share/man/man8\n")))
530 ;; Pick the right 'login' by default.
531 (substitute* "mingetty.c"
533 (string-append "\"" login "\"")))
538 #:tests? #f)) ; no tests
539 (inputs `(("shadow" ,shadow)))
541 (home-page "https://sourceforge.net/projects/mingetty")
542 (synopsis "Getty for the text console")
544 "Small console getty that is started on the Linux text console,
545 asks for a login name and then transfers over to @code{login}. It is extended
546 to allow automatic login and starting any app.")
547 (license license:gpl2+)))
549 (define-public net-base
556 "mirror://debian/pool/main/n/netbase/netbase_"
560 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
561 (build-system trivial-build-system)
563 `(#:modules ((guix build utils))
565 (use-modules (guix build utils)
568 (let* ((source (assoc-ref %build-inputs "source"))
569 (tar (assoc-ref %build-inputs "tar"))
570 (xz (assoc-ref %build-inputs "xz"))
571 (output (assoc-ref %outputs "out"))
572 (etc (string-append output "/etc")))
573 (setenv "PATH" (string-append xz "/bin"))
574 (invoke (string-append tar "/bin/tar") "xvf"
576 (chdir ,(string-append "netbase-" version))
579 '("etc-services" "etc-protocols" "etc-rpc")
580 (map (cut string-append etc "/" <>)
581 '("services" "protocols" "rpc")))
583 (native-inputs `(("tar" ,tar)
585 (synopsis "IANA protocol, port, and RPC number assignments")
587 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
588 files, which contain information about the IANA-assigned port, protocol, and
590 (home-page "https://packages.debian.org/sid/netbase")
591 (license license:gpl2)))
593 (define-public netcat
599 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
600 "/netcat-" version ".tar.bz2"))
603 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
604 (build-system gnu-build-system)
607 ;; By default, man and info pages are put in PREFIX/{man,info},
608 ;; but we want them in PREFIX/share/{man,info}.
609 (let ((out (assoc-ref %outputs "out")))
610 (list (string-append "--mandir=" out "/share/man")
611 (string-append "--infodir=" out "/share/info")))))
612 (home-page "http://netcat.sourceforge.net")
613 (synopsis "Read and write data over TCP/IP")
615 "Netcat is a featured networking utility which reads and writes data
616 across network connections, using the TCP/IP protocol. It is designed to be a
617 reliable \"back-end\" tool that can be used directly or easily driven by other
618 programs and scripts. At the same time, it is a feature-rich network debugging
619 and exploration tool, since it can create almost any kind of connection you
620 would need and has several interesting built-in capabilities.")
621 (license license:gpl2+)))
623 (define-public sipcalc
630 (uri (string-append "http://www.routemeister.net/projects"
631 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
634 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
635 (build-system gnu-build-system)
636 (home-page "http://www.routemeister.net/projects/sipcalc/")
637 (synopsis "Command-line IP subnet calculator")
639 "Sipcalc is an advanced command-line IP subnet calculator. It can take
640 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
641 of information about a given subnet.
648 @item Retrieving of address information from interfaces.
649 @item Classfull and CIDR output.
650 @item Multiple address and netmask input and output formats (dotted quad, hex,
652 @item Output of broadcast address, network class, Cisco wildcard,
653 hosts/range, network range.
654 @item The ability to split a network based on a smaller netmask, now also with
655 recursive runs on the generated subnets. (also IPv6)
659 @item Compressed and expanded input and output addresses.
660 @item Standard IPv6 network output.
661 @item v4 in v6 output.
662 @item Reverse DNS address generation.
665 (license license:bsd-3)))
673 (uri (string-append "mirror://gnu/alive/alive-"
677 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
678 (build-system gnu-build-system)
679 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
680 (inputs `(("guile" ,guile-2.0)
681 ("inetutils" ,inetutils)))
682 (home-page "https://www.gnu.org/software/alive/")
683 (synopsis "Autologin and keep-alive daemon")
685 "GNU Alive sends periodic pings to a server, generally to keep a
687 (license license:gpl3+)))
689 (define-public isc-dhcp
690 (let* ((bind-major-version "9")
691 (bind-minor-version "11")
692 (bind-patch-version "11")
693 (bind-release-type "") ; for patch release, use "-P"
694 (bind-release-version "") ; for patch release, e.g. "6"
695 (bind-version (string-append bind-major-version
701 bind-release-version)))
707 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
708 version "/dhcp-" version ".tar.gz"))
711 "025nfqx4zwdgv4b3rkw26ihcj312vir08jk6yi57ndmb4a4m08ia"))))
712 (build-system gnu-build-system)
714 `(#:parallel-build? #f
716 (modify-phases %standard-phases
717 (add-after 'unpack 'replace-bundled-bind
718 (lambda* (#:key inputs native-inputs #:allow-other-keys)
719 ;; XXX TODO: Remove the following invocation of 'patch' when
720 ;; isc-dhcp is updated. It should be needed only for 4.4.1.
721 (let ((patch (string-append (assoc-ref (or native-inputs inputs)
724 (the-patch (assoc-ref (or native-inputs inputs)
725 "fixes-for-newer-bind.patch")))
726 (format #t "applying '~a'...~%" the-patch)
727 (invoke patch "--force" "--no-backup-if-mismatch"
728 "-p1" "--input" the-patch))
730 (delete-file "bind/bind.tar.gz")
731 (copy-file (assoc-ref inputs "bind-source-tarball")
733 (chmod "bind/bind.tar.gz" #o644)
734 (substitute* "bind/version.tmp"
736 (format #f "MAJORVER=~a\n" ,bind-major-version))
738 (format #f "MINORVER=~a\n" ,bind-minor-version))
740 (format #f "PATCHVER=~a\n" ,bind-patch-version))
742 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
744 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
746 (add-after 'configure 'post-configure
747 (lambda* (#:key outputs #:allow-other-keys)
748 ;; Point to the right client script, which will be
749 ;; installed in a later phase.
750 (substitute* "includes/dhcpd.h"
751 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
752 (let ((out (assoc-ref outputs "out")))
753 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
754 out "/libexec/dhclient-script"
757 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
758 ;; we must patch shebangs in there and make sure the right
760 (with-directory-excursion "bind"
761 (substitute* "Makefile"
763 (let ((sh (which "sh")))
764 (string-append "./configure CONFIG_SHELL="
765 sh " SHELL=" sh " "))))
767 (let ((bind-directory (string-append "bind-" ,bind-version)))
768 (invoke "tar" "xf" "bind.tar.gz")
769 (for-each patch-shebang
770 (find-files bind-directory ".*"))
771 (substitute* (string-append bind-directory "/configure")
774 (invoke "tar" "cf" "bind.tar.gz"
776 ;; avoid non-determinism in the archive
780 "--group=root:0")))))
781 (add-after 'install 'post-install
782 (lambda* (#:key inputs outputs #:allow-other-keys)
783 ;; Install the dhclient script for GNU/Linux and make sure
784 ;; if finds all the programs it needs.
785 (let* ((out (assoc-ref outputs "out"))
786 (libexec (string-append out "/libexec"))
787 (coreutils (assoc-ref inputs "coreutils"))
788 (inetutils (assoc-ref inputs "inetutils"))
789 (net-tools (assoc-ref inputs "net-tools"))
790 (sed (assoc-ref inputs "sed")))
791 (substitute* "client/scripts/linux"
793 (string-append (assoc-ref inputs "iproute")
797 (copy-file "client/scripts/linux"
798 (string-append libexec "/dhclient-script"))
801 (string-append libexec "/dhclient-script")
804 (string-append dir "/bin:"
806 (list inetutils net-tools coreutils sed))))
813 ;; XXX TODO: Remove the following patch, and also the 'patch'
814 ;; program, when isc-dhcp is updated.
815 ("fixes-for-newer-bind.patch"
816 ,(search-patch "isc-dhcp-4.4.1-fixes-for-newer-bind.patch"))
819 (inputs `(("inetutils" ,inetutils)
820 ("net-tools" ,net-tools)
823 ;; XXX isc-dhcp bundles a copy of bind that has security
824 ;; flaws, so we use a newer version.
825 ("bind-source-tarball"
828 (uri (string-append "https://ftp.isc.org/isc/bind9/"
830 "/bind-" bind-version ".tar.gz"))
833 "0swavslyli3vcrkcm2ip11s6p58g3k7r4gjs2b899r25cqrk0lk1"))))
835 ;; When cross-compiling, we need the cross Coreutils and sed.
836 ;; Otherwise just use those from %FINAL-INPUTS.
837 ,@(if (%current-target-system)
838 `(("coreutils" ,coreutils)
842 (home-page "https://www.isc.org/products/DHCP/")
843 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
845 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
846 reference implementation of all aspects of DHCP, through a suite of DHCP
847 tools: server, client, and relay agent.")
848 (license license:mpl2.0)
849 (properties '((cpe-name . "dhcp"))))))
851 (define-public libpcap
857 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
861 "153h1378diqyc27jjgz6gg5nxmb4ddk006d9xg69nqavgiikflk3"))))
862 (build-system gnu-build-system)
867 ;; There are some tests in testprogs/, but no automated test suite.
869 (home-page "https://www.tcpdump.org")
870 (synopsis "Network packet capture library")
872 "libpcap is an interface for user-level packet capture. It provides a
873 portable framework for low-level network monitoring. Applications include
874 network statistics collection, security monitoring, network debugging, etc.")
875 (license (list license:bsd-4 ; fad-*.c and several other source files
876 license:bsd-3 ; pcap/, sockutils.* & others
877 license:bsd-2)))) ; the rest
879 (define-public tcpdump
885 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
889 "0434vdcnbqaia672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c"))))
890 (build-system gnu-build-system)
891 (inputs `(("libpcap" ,libpcap)
892 ("openssl" ,openssl)))
893 (native-inputs `(("perl" ,perl))) ; for tests
894 (home-page "https://www.tcpdump.org/")
895 (synopsis "Network packet analyzer")
897 "Tcpdump is a command-line tool to analyze network traffic passing
898 through the network interface controller.")
899 (license license:bsd-3)))
901 (define-public jnettop
908 (string-append "https://web.archive.org/web/20161221100811/"
909 "http://jnettop.kubs.info/dist/jnettop-"
913 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
914 (build-system gnu-build-system)
916 `(("pkg-config" ,pkg-config)))
920 ("libpcap" ,libpcap)))
922 "https://web.archive.org/web/20160703195221/http://jnettop.kubs.info/wiki/")
923 (synopsis "Visualize network traffic by bandwidth use")
925 "Jnettop is a traffic visualiser, which captures traffic going
926 through the host it is running from and displays streams sorted
927 by bandwidth they use.")
928 (license license:gpl2+)))
930 (define-public clusterssh
936 (uri (string-append "mirror://sourceforge/clusterssh/"
937 "2.%20ClusterSSH%20Series%204/"
938 "App-ClusterSSH-v" version ".tar.gz"))
941 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
942 (build-system perl-build-system)
945 (modify-phases %standard-phases
946 (add-after 'unpack 'refer-to-inputs
947 (lambda* (#:key inputs #:allow-other-keys)
948 (substitute* (list "lib/App/ClusterSSH/Config.pm"
953 (add-before 'check 'delete-failing-tests
955 ;; This checks whether all code is nicely formatted. The above
956 ;; ‘refer-to-inputs’ phase breaks this pedantry, so disable it.
957 (delete-file "t/perltidy.t")
958 ;; Update the manifest so t/manifest.t happily passes.
959 (substitute* "MANIFEST"
960 (("t/perltidy.t\n") ""))
962 (add-after 'install 'augment-library-path
963 (lambda* (#:key inputs outputs #:allow-other-keys)
964 (let* ((out (assoc-ref outputs "out"))
965 (bin (string-append out "/bin")))
966 (with-directory-excursion bin
969 (wrap-program program
970 `("PERL5LIB" ":" prefix
971 ,(map (lambda (file-name)
972 (string-append file-name
973 "/lib/perl5/site_perl"))
976 (assoc-ref inputs input))
977 ;; These may be propagated and hence
978 ;; not explicitly listed as inputs.
979 (list "perl-class-data-inheritable"
980 "perl-devel-stacktrace"
981 "perl-exception-class"
985 "perl-x11-protocol-other")))))))
986 (find-files "." ".*")))
989 `(("perl-cpan-changes" ,perl-cpan-changes)
990 ("perl-file-slurp" ,perl-file-slurp)
991 ("perl-file-which" ,perl-file-which)
992 ("perl-module-build" ,perl-module-build)
993 ("perl-readonly" ,perl-readonly)
994 ("perl-test-differences" ,perl-test-differences)
995 ("perl-test-distmanifest" ,perl-test-distmanifest)
996 ("perl-test-perltidy" ,perl-test-perltidy)
997 ("perl-test-pod" ,perl-test-pod)
998 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
999 ("perl-test-trap" ,perl-test-trap)
1000 ("perltidy" ,perltidy)))
1002 `(("perl-exception-class" ,perl-exception-class)
1003 ("perl-sort-naturally" ,perl-sort-naturally)
1004 ("perl-tk" ,perl-tk)
1005 ("perl-try-tiny" ,perl-try-tiny)
1006 ("perl-x11-protocol" ,perl-x11-protocol)
1007 ("perl-x11-protocol-other" ,perl-x11-protocol-other)
1009 ;; The clusterssh.sourceforge.net address requires login to view
1010 (home-page "https://sourceforge.net/projects/clusterssh/")
1011 (synopsis "Secure concurrent multi-server terminal control")
1013 "ClusterSSH controls a number of xterm windows via a single graphical
1014 console window to allow commands to be interactively run on multiple servers
1015 over ssh connections.")
1016 (license license:gpl2+)))
1018 (define-public rename
1025 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
1029 "137m8s06r4n038ivlr5r1d9a7q9l7shmwpvnyx053r9ndhvbnkh5"))))
1030 (build-system perl-build-system)
1033 (modify-phases %standard-phases
1034 (add-after 'install 'find-itself
1035 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
1036 (lambda* (#:key outputs #:allow-other-keys)
1037 (let* ((out (assoc-ref outputs "out"))
1038 (bin (string-append out "/bin")))
1039 (with-directory-excursion bin
1042 (wrap-program program
1043 `("PERL5LIB" ":" prefix
1044 (,(string-append out "/lib/perl5/site_perl")))))
1045 (find-files "." ".*")))
1048 `(("perl-module-build" ,perl-module-build)
1049 ("perl-test-pod" ,perl-test-pod)
1050 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1051 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
1052 (synopsis "Perl extension for renaming multiple files")
1054 "This package provides a Perl interface (@code{Perl::Rename}) as well
1055 as a command-line utility (@command{rename}) that can rename multiple files
1056 at once based on a Perl regular expression.")
1057 (license license:perl-license)))
1059 (define-public rottlog
1065 (uri (string-append "mirror://gnu/rottlog/rottlog-"
1069 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
1070 (modules '((guix build utils)))
1073 (substitute* "Makefile.in"
1074 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
1075 ;; Don't try to chown root.
1077 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
1078 ;; Don't attempt to create /var/lib/rottlog.
1081 (build-system gnu-build-system)
1083 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
1084 "--localstatedir=/var")
1086 ;; Install example config files in OUT/etc.
1087 #:make-flags (list (string-append "ROTT_ETCDIR="
1088 (assoc-ref %outputs "out")
1091 #:phases (modify-phases %standard-phases
1092 (add-after 'unpack 'patch-paths
1094 (substitute* "rc/rc"
1095 (("/usr/sbin/sendmail") "sendmail"))
1097 (add-after 'build 'set-packdir
1099 ;; Set a default location for archived logs.
1100 (substitute* "rc/rc"
1102 "packdir=\"/var/log\""))
1104 (add-before 'install 'tweak-rc-weekly
1106 (substitute* "rc/weekly"
1110 ;; The file is called 'syslog.pid' (no 'd').
1113 (add-after 'install 'install-info
1115 (invoke "make" "install-info"))))))
1116 (native-inputs `(("texinfo" ,texinfo)
1117 ("util-linux" ,util-linux))) ; for 'cal'
1118 (home-page "https://www.gnu.org/software/rottlog/")
1119 (synopsis "Log rotation and management")
1121 "GNU Rot[t]log is a program for managing log files. It is used to
1122 automatically rotate out log files when they have reached a given size or
1123 according to a given schedule. It can also be used to automatically compress
1124 and archive such logs. Rot[t]log will mail reports of its activity to the
1125 system administrator.")
1126 (license license:gpl3+)))
1135 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
1137 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1138 version ".tar.gz")))
1141 "1h1f7v9pv0rzp14cxzv8kaa8mdd717fbqv83l7c5dvvi8jwnisvv"))
1142 (modules '((guix build utils)))
1145 (delete-file-recursively "lib/zlib")
1147 (build-system gnu-build-system)
1150 (list "--with-logpath=/var/log/sudo.log"
1151 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1152 "--with-vardir=/var/db/sudo"
1153 "--with-iologdir=/var/log/sudo-io"
1155 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1157 (string-append "CPPFLAGS=-D_PATH_MV='\""
1158 (assoc-ref %build-inputs "coreutils")
1161 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1162 #:parallel-build? #f
1165 (modify-phases %standard-phases
1166 (add-before 'configure 'pre-configure
1168 (substitute* "src/sudo_usage.h.in"
1169 ;; Do not capture 'configure' arguments since we would
1170 ;; unduly retain references, and also because the
1171 ;; CPPFLAGS above would close the string literal
1173 (("@CONFIGURE_ARGS@") "\"\""))
1174 (substitute* (find-files "." "Makefile\\.in")
1175 (("-o [[:graph:]]+ -g [[:graph:]]+")
1176 ;; Allow installation as non-root.
1178 (("^install: (.*)install-sudoers(.*)" _ before after)
1179 ;; Don't try to create /etc/sudoers.
1180 (string-append "install: " before after "\n"))
1181 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1182 ;; Don't try to create /run/sudo.
1184 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1185 ;; Don't try to create /var/db/sudo.
1189 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1190 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1194 ("linux-pam" ,linux-pam)
1196 ("coreutils" ,coreutils)))
1197 (home-page "https://www.sudo.ws/")
1198 (synopsis "Run commands as root")
1200 "Sudo (su \"do\") allows a system administrator to delegate authority to
1201 give certain users (or groups of users) the ability to run some (or all)
1202 commands as root or another user while providing an audit trail of the
1203 commands and their arguments.")
1205 ;; See <http://www.sudo.ws/sudo/license.html>.
1206 (license license:x11)))
1208 (define-public wpa-supplicant-minimal
1210 (name "wpa-supplicant-minimal")
1215 "https://w1.fi/releases/wpa_supplicant-"
1219 "05qzak1mssnxcgdrafifxh9w86a4ha69qabkg4bsigk499xyxggw"))
1220 (modules '((guix build utils)))
1223 (substitute* "wpa_supplicant/defconfig"
1224 ;; Disable D-Bus to save ~14MiB on the closure size.
1225 (("^CONFIG_CTRL_IFACE_DBUS" line _)
1226 (string-append "#" line)))
1228 (build-system gnu-build-system)
1231 (modify-phases %standard-phases
1233 (lambda* (#:key outputs #:allow-other-keys)
1234 (chdir "wpa_supplicant")
1235 (copy-file "defconfig" ".config")
1236 (let ((port (open-file ".config" "al")))
1238 CONFIG_DEBUG_SYSLOG=y
1242 CONFIG_DRIVER_NL80211=y
1243 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1245 CONFIG_READLINE=y\n" port)
1248 (add-after 'install 'install-documentation
1249 (lambda* (#:key outputs #:allow-other-keys)
1250 (let* ((out (assoc-ref outputs "out"))
1251 (doc (string-append out "/share/doc/wpa-supplicant"))
1252 (man (string-append out "/share/man"))
1253 (man5 (string-append man "/man5"))
1254 (man8 (string-append man "/man8")))
1255 (define (copy-man-page target)
1257 (install-file file target)))
1259 (mkdir-p man5) (mkdir man8)
1260 (for-each (copy-man-page man5)
1261 (find-files "doc/docbook" "\\.5"))
1262 (for-each (copy-man-page man8)
1263 (find-files "doc/docbook" "\\.8"))
1265 ;; wpa_supplicant.conf(5) does not explain all configuration
1266 ;; options but refers to the example config file, so install it
1267 ;; along with READMEs.
1268 (for-each (lambda (file)
1269 (install-file file doc))
1270 '("README" "README-DPP" "README-HS20"
1271 "README-P2P" "README-WPS"
1272 "wpa_supplicant.conf"))
1275 #:make-flags (list "CC=gcc"
1276 (string-append "BINDIR=" (assoc-ref %outputs "out")
1278 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1282 `(("readline" ,readline)
1284 ("openssl" ,openssl)))
1286 `(("pkg-config" ,pkg-config)))
1287 (home-page "https://w1.fi/wpa_supplicant/")
1288 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1290 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1291 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1292 the client stations. It implements key negotiation with a WPA Authenticator
1293 and it controls the roaming and IEEE 802.11 authentication/association of the
1296 This package provides the @code{wpa_supplicant} daemon and the @code{wpa_cli}
1299 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1300 (license license:bsd-3)
1302 (properties `((cpe-name . "wpa_supplicant")))))
1304 (define-public wpa-supplicant
1305 (package (inherit wpa-supplicant-minimal)
1306 (name "wpa-supplicant")
1307 (inputs `(("dbus" ,dbus)
1308 ,@(package-inputs wpa-supplicant-minimal)))
1310 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1312 `(modify-phases ,phases
1313 (add-after 'configure 'configure-for-dbus
1315 (let ((port (open-file ".config" "al")))
1317 CONFIG_CTRL_IFACE_DBUS_NEW=y
1318 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1321 (add-after 'install-documentation 'install-dbus-conf
1322 (lambda* (#:key outputs #:allow-other-keys)
1323 (let* ((out (assoc-ref outputs "out"))
1324 (dir (string-append out "/etc/dbus-1/system.d")))
1326 (copy-file "dbus/dbus-wpa_supplicant.conf"
1327 (string-append dir "/wpa_supplicant.conf")))
1330 (define-public wpa-supplicant-gui
1332 (inherit wpa-supplicant)
1333 (name "wpa-supplicant-gui")
1334 (inputs `(("qtbase" ,qtbase)
1336 ,@(package-inputs wpa-supplicant)))
1339 `(("imagemagick" ,imagemagick)
1340 ("inkscape" ,inkscape)
1341 ,@(package-native-inputs wpa-supplicant)))
1343 `(#:phases (modify-phases %standard-phases
1344 (add-after 'unpack 'chdir
1346 (chdir "wpa_supplicant/wpa_gui-qt4")
1351 (invoke "qmake" "wpa_gui.pro")
1352 (invoke "make" "-j" (number->string (parallel-job-count)))
1353 (invoke "make" "-C" "icons")))
1355 (lambda* (#:key inputs outputs #:allow-other-keys)
1356 (let ((out (assoc-ref outputs "out"))
1357 (qt '("qtbase" "qtsvg")))
1358 (install-file "wpa_gui" (string-append out "/bin"))
1359 (install-file "wpa_gui.desktop"
1360 (string-append out "/share/applications"))
1361 (copy-recursively "icons/hicolor"
1362 (string-append out "/share/icons/hicolor"))
1363 (wrap-program (string-append out "/bin/wpa_gui")
1364 `("QT_PLUGIN_PATH" ":" prefix
1365 ,(map (lambda (label)
1366 (string-append (assoc-ref inputs label)
1367 "/lib/qt5/plugins/"))
1370 (synopsis "Graphical user interface for WPA supplicant")))
1372 (define-public hostapd
1378 (uri (string-append "https://w1.fi/releases/hostapd-" version
1382 "1c74rrazkhy4lr7pwgwa2igzca7h9l4brrs7672kiv7fwqmm57wj"))))
1383 (build-system gnu-build-system)
1386 (modify-phases %standard-phases
1388 (lambda* (#:key outputs #:allow-other-keys)
1389 ;; This is mostly copied from 'wpa-supplicant' above.
1391 (copy-file "defconfig" ".config")
1392 (let ((port (open-file ".config" "al")))
1397 CONFIG_IEEE80211AC=y\n" port)
1400 (add-after 'install 'install-man-pages
1401 (lambda* (#:key outputs #:allow-other-keys)
1402 (let* ((out (assoc-ref outputs "out"))
1403 (man (string-append out "/share/man"))
1404 (man1 (string-append man "/man1"))
1405 (man8 (string-append man "/man8")))
1406 (define (copy-man-page target)
1408 (install-file file target)))
1410 (for-each (copy-man-page man1)
1411 (find-files "." "\\.1"))
1412 (for-each (copy-man-page man8)
1413 (find-files "." "\\.8"))
1416 #:make-flags (list "CC=gcc"
1417 (string-append "BINDIR=" (assoc-ref %outputs "out")
1419 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1422 (native-inputs `(("pkg-config" ,pkg-config)))
1424 ;; There's an optional dependency on SQLite.
1425 (inputs `(("openssl" ,openssl)
1427 (home-page "https://w1.fi/hostapd/")
1428 (synopsis "Daemon for Wi-Fi access points and authentication servers")
1430 "hostapd is a user-space daemon for WiFi access points and authentication
1431 servers. It implements IEEE 802.11 access point management, IEEE
1432 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS
1433 authentication server.")
1435 ;; Same license as wpa_supplicant.
1436 (license license:bsd-3)))
1438 (define-public wakelan
1445 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1449 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1450 (build-system gnu-build-system)
1453 (modify-phases %standard-phases
1455 (lambda* (#:key outputs #:allow-other-keys)
1456 (let ((out (assoc-ref outputs "out")))
1457 (mkdir-p (string-append out "/bin"))
1458 (mkdir-p (string-append out "/share/man/man1"))
1460 ;; It's an old configure script that doesn't understand
1461 ;; the extra options we pass.
1462 (setenv "CONFIG_SHELL" (which "bash"))
1463 (invoke "./configure"
1464 (string-append "--prefix=" out)
1465 (string-append "--mandir=" out
1468 (home-page "https://www.kernel.org") ; really, no home page
1469 (synopsis "Send a wake-on-LAN packet")
1471 "WakeLan broadcasts a properly formatted UDP packet across the local area
1472 network, which causes enabled computers to power on.")
1473 (license license:gpl2+)))
1475 (define-public dmidecode
1482 "mirror://savannah/dmidecode/dmidecode-"
1486 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1487 (build-system gnu-build-system)
1489 '(#:phases (modify-phases %standard-phases (delete 'configure))
1490 #:tests? #f ; no 'check' target
1491 #:make-flags (list (string-append "prefix="
1492 (assoc-ref %outputs "out")))))
1493 (home-page "https://www.nongnu.org/dmidecode/")
1494 (synopsis "Read hardware information from the BIOS")
1496 "Dmidecode reports information about your system's hardware as described
1497 in your system BIOS according to the SMBIOS/DMI standard. This typically
1498 includes system manufacturer, model name, serial number, BIOS version, asset
1499 tag as well as a lot of other details of varying level of interest and
1500 reliability depending on the manufacturer. This will often include usage
1501 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1502 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1503 (license license:gpl2+)))
1505 (define-public acpica
1508 (version "20190816")
1512 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1516 "0lipy3jwl498lvgwzj6xcvmg61myl7hhilpallh1cf3ppgrq13l8"))))
1517 (build-system gnu-build-system)
1518 (native-inputs `(("flex" ,flex)
1521 '(#:make-flags (list (string-append "PREFIX=" %output)
1524 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1525 #:tests? #f ; no 'check' target
1526 #:phases (modify-phases %standard-phases (delete 'configure))))
1527 (home-page "https://acpica.org/")
1528 (synopsis "Tools for the development and debug of ACPI tables")
1530 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1531 OS-independent reference implementation of the Advanced Configuration and
1532 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1533 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1534 subsystem, and a small set of tools to assist in developing and debugging ACPI
1535 tables. This package contains only the user-space tools needed for ACPI table
1536 development, not the kernel implementation of ACPI.")
1537 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1539 (define-public s-tui
1546 (uri (pypi-uri "s-tui" version))
1549 "00lsh2v4i8rwfyjyxx5lijd6rnk9smcfffhzg5sv94ijpcnh216m"))))
1550 (build-system python-build-system)
1552 `(("python-psutil" ,python-psutil)
1553 ("python-urwid" ,python-urwid)))
1554 (home-page "https://github.com/amanusk/s-tui")
1555 (synopsis "Interactive terminal stress test and monitoring tool")
1557 "The Stress Terminal UI displays graphs of the CPU frequency,
1558 utilization, temperature and power.")
1559 (license license:gpl2+)))
1561 (define-public stress
1567 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1568 version ".orig.tar.gz"))
1571 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1572 (build-system gnu-build-system)
1573 (home-page "https://packages.debian.org/sid/stress")
1574 (synopsis "Impose load on and stress test a computer system")
1576 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1577 or disk stress on a POSIX-compliant operating system and reports any errors it
1580 Stress is not a benchmark. It is a tool used by system administrators to
1581 evaluate how well their systems will scale, by kernel programmers to evaluate
1582 perceived performance characteristics, and by systems programmers to expose
1583 the classes of bugs which only or more frequently manifest themselves when the
1584 system is under heavy load.")
1585 (license license:gpl2+)))
1587 (define-public detox
1594 (url "https://github.com/dharple/detox.git")
1595 (commit (string-append "v" version))))
1598 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1599 (build-system gnu-build-system)
1601 `(("autoconf" ,autoconf)
1602 ("automake" ,automake)
1605 `(#:tests? #f ;no 'check' target
1606 #:phases (modify-phases %standard-phases
1607 (add-after 'unpack 'delete-configure
1608 ;; The "configure" script is present, but otherwise the
1609 ;; project is not bootstrapped: missing install-sh and
1610 ;; Makefile.in, so delete it so the bootstrap phase will
1612 (lambda _ (delete-file "configure") #t)))))
1613 (home-page "https://github.com/dharple/detox")
1614 (synopsis "Clean up file names")
1616 "Detox is a program that renames files to make them easier to work with
1617 under Unix and related operating systems. Spaces and various other unsafe
1618 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1619 characters can be replaced as well, as can UTF-8 characters.")
1620 (license license:bsd-3)))
1622 (define-public testdisk
1628 (uri (string-append "https://www.cgsecurity.org/testdisk-"
1629 version ".tar.bz2"))
1632 "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"))))
1633 (build-system gnu-build-system)
1635 `(("ntfs-3g" ,ntfs-3g)
1636 ("util-linux" ,util-linux)
1637 ("openssl" ,openssl)
1638 ;; FIXME: add reiserfs.
1640 ("e2fsprogs" ,e2fsprogs)
1641 ("libjpeg" ,libjpeg)
1642 ("ncurses" ,ncurses)))
1643 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1644 (synopsis "Data recovery tool")
1646 "TestDisk is a program for data recovery, primarily designed to help
1647 recover lost partitions and/or make non-booting disks bootable again.")
1648 (license license:gpl2+)))
1657 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1660 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
1661 (build-system gnu-build-system)
1663 '(#:phases (modify-phases %standard-phases (delete 'configure))
1664 #:tests? #f ; no check target
1665 #:make-flags (let ((out (assoc-ref %outputs "out")))
1666 (list (string-append "prefix=" out)))))
1667 (synopsis "Recursively list the contents of a directory")
1669 "Tree is a recursive directory listing command that produces a depth
1670 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1671 environment variable is set and output is to tty.")
1672 (home-page "http://mama.indstate.edu/users/ice/tree/")
1673 (license license:gpl2+)))
1675 (define-public direvent
1681 (uri (string-append "mirror://gnu/direvent/direvent-"
1685 "0m9vi01b1km0cpknflyzsjnknbava0s1n6393b2bpjwyvb6j5613"))
1686 (modules '((guix build utils)))
1688 (substitute* "tests/testsuite"
1689 (("#![[:blank:]]?/bin/sh")
1692 (build-system gnu-build-system)
1695 (modify-phases %standard-phases
1696 (add-before 'build 'patch-/bin/sh
1697 (lambda* (#:key inputs #:allow-other-keys)
1698 ;; Use the right shell when executing the watcher and
1699 ;; user-provided shell commands.
1700 (let ((bash (assoc-ref inputs "bash")))
1701 (substitute* '("src/direvent.c" "src/progman.c")
1703 (string-append "\"" bash "/bin/sh\"")))
1705 ;; Adjust the 'shell.at' test accordingly.
1706 (substitute* "tests/testsuite"
1708 (string-append "SHELL=" bash "/bin/sh")))
1711 (home-page "https://www.gnu.org/software/direvent/")
1712 (synopsis "Daemon to monitor directories for events such as file removal")
1714 "A daemon that monitors directories for events, such as creating,
1715 deleting or modifying files. It can monitor different sets of directories for
1716 different events. When an event is detected, direvent calls a specified
1717 external program with information about the event, such as the location
1718 within the file system where it occurred. Thus, \"direvent\" provides an
1719 easy way to react immediately if given files undergo changes, for example, to
1720 track changes in important system configuration files.")
1721 (license license:gpl3+)))
1723 (define-public libcap-ng
1730 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1734 "1gzzy12agfa9ddipdf72h9y68zqqnvsjjylv4vnq6hj4w2safk58"))))
1735 (build-system gnu-build-system)
1738 (list "--without-python")))
1739 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1740 (synopsis "Library for more easily working with POSIX capabilities")
1742 "The libcap-ng library is intended to make programming with POSIX
1743 capabilities easier than the traditional libcap library. It includes
1744 utilities that can analyse all currently running applications and print out
1745 any capabilities and whether or not it has an open ended bounding set. The
1746 included utilities are designed to let admins and developers spot apps from
1747 various ways that may be running with too much privilege.")
1748 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1749 (license (list license:lgpl2.1+ license:gpl2+))))
1751 (define-public smartmontools
1753 (name "smartmontools")
1758 "mirror://sourceforge/smartmontools/smartmontools/"
1759 version "/smartmontools-" version ".tar.gz"))
1762 "077nx2rn9szrg6isdh0938zbp7vr3dsyxl4jdyyzv1xwhqksrqg5"))))
1763 (build-system gnu-build-system)
1764 (inputs `(("libcap-ng" ,libcap-ng)))
1765 (home-page "https://www.smartmontools.org/")
1766 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1768 "The smartmontools package contains utility programs to control and
1769 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1770 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1771 disks. In many cases, these utilities will provide advanced warning of disk
1772 degradation and failure.")
1773 (license license:gpl2+)))
1775 (define-public fdupes
1783 (url "https://github.com/adrianlopezroche/fdupes.git")
1784 (commit (string-append "v" version))))
1785 (file-name (git-file-name name version))
1787 (base32 "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9"))))
1788 (build-system gnu-build-system)
1790 '(#:phases (modify-phases %standard-phases
1791 (delete 'configure))
1792 #:tests? #f ; no 'check' target
1793 #:make-flags (list "CC=gcc"
1794 (string-append "PREFIX="
1795 (assoc-ref %outputs "out")))))
1796 (home-page "https://github.com/adrianlopezroche/fdupes")
1797 (synopsis "Identify duplicate files")
1799 "fdupes is a program for identifying duplicate files residing within
1800 specified directories.")
1801 (license license:expat)))
1803 (define-public graphios
1810 (uri (pypi-uri "graphios" version))
1813 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1814 (build-system python-build-system)
1816 ;; Be warned: Building with Python 3 succeeds, but the build process
1817 ;; throws a syntax error that is ignored.
1818 `(#:python ,python-2
1820 (modify-phases %standard-phases
1821 (add-before 'build 'fix-setup.py
1822 (lambda* (#:key outputs #:allow-other-keys)
1823 ;; Fix hardcoded, unprefixed file names.
1824 (let ((out (assoc-ref outputs "out")))
1825 (substitute* '("setup.py")
1826 (("/etc") (string-append out "/etc"))
1828 (("distro_ver = .*") "distro_ver = ''"))
1830 (home-page "https://github.com/shawn-sterling/graphios")
1831 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1833 "Graphios is a script to emit nagios perfdata to various upstream metrics
1834 processing and time-series systems. It's currently compatible with Graphite,
1835 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1836 of supported upstream metrics systems simultaneously.")
1837 (license license:gpl2+)))
1839 (define-public ansible
1846 (uri (pypi-uri "ansible" version))
1848 (base32 "0ia4x17ywym3r1m96ar4h0wc2xlylhbjp6x4wzwkh4p2i0x1vmg1"))))
1849 (build-system python-build-system)
1851 `(("python-bcrypt" ,python-bcrypt)
1852 ("python-pynacl" ,python-pynacl)
1853 ("python-httplib2" ,python-httplib2)
1854 ("python-passlib" ,python-passlib)
1855 ("python-nose" ,python-nose)
1856 ("python-mock" ,python-mock)
1857 ("python-jinja2" ,python-jinja2)
1858 ("python-pyyaml" ,python-pyyaml)
1859 ("python-paramiko" ,python-paramiko)))
1861 `(("python-cryptography" ,python-cryptography)
1862 ("python-jinja2" ,python-jinja2)
1863 ("python-pyyaml" ,python-pyyaml)
1864 ("python-paramiko" ,python-paramiko)))
1867 (modify-phases %standard-phases
1868 ;; Several ansible commands (ansible-config, ansible-console, etc.)
1869 ;; are just symlinks to a single ansible executable. The ansible
1870 ;; executable behaves differently based on the value of
1871 ;; sys.argv[0]. This does not work well with our wrap phase, and
1872 ;; therefore the following two phases are required as a workaround.
1873 (add-after 'unpack 'hide-wrapping
1875 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
1876 (substitute* "bin/ansible"
1877 (("import traceback" all)
1878 (string-append all "
1880 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
1883 (add-after 'wrap 'fix-symlinks
1884 (lambda* (#:key outputs #:allow-other-keys)
1885 (let ((out (assoc-ref outputs "out")))
1887 (lambda (subprogram)
1888 ;; The symlinks point to the ansible wrapper script. Make
1889 ;; them point to the real executable (.ansible-real).
1890 (delete-file (string-append out "/bin/.ansible-" subprogram "-real"))
1891 (symlink (string-append out "/bin/.ansible-real")
1892 (string-append out "/bin/.ansible-" subprogram "-real"))
1893 ;; The wrapper scripts of the symlinks invoke the ansible
1894 ;; wrapper script. Fix them to invoke the correct executable.
1895 (substitute* (string-append out "/bin/ansible-" subprogram)
1897 (string-append "/bin/.ansible-" subprogram "-real"))))
1898 (list "config" "console" "doc" "galaxy"
1899 "inventory" "playbook" "pull" "vault")))
1901 (home-page "https://www.ansible.com/")
1902 (synopsis "Radically simple IT automation")
1903 (description "Ansible is a radically simple IT automation system. It
1904 handles configuration management, application deployment, cloud provisioning,
1905 ad hoc task execution, and multinode orchestration---including trivializing
1906 things like zero-downtime rolling updates with load balancers.")
1907 (license license:gpl3+)))
1909 (define-public debops
1917 (url "https://github.com/debops/debops")
1918 (commit (string-append "v" version))))
1919 (file-name (git-file-name name version))
1921 (base32 "052b2dykdn35pdpn9s4prawl6nl6yzih8nyf54hpvhpisvjrm1v5"))
1923 (search-patches "debops-constants-for-external-program-names.patch"
1924 "debops-debops-defaults-fall-back-to-less.patch"))))
1925 (build-system python-build-system)
1929 `(("ansible" ,ansible)
1932 ("util-linux" ,util-linux) ;; for umount
1933 ("findutils" ,findutils)
1937 `(("python-future" ,python-future)
1938 ("python-distro" ,python-distro)))
1942 (modify-phases %standard-phases
1943 (add-after 'unpack 'nuke-debops-update
1945 (chmod "bin/debops-update" #o755) ; FIXME work-around git-fetch issue
1946 (with-output-to-file "bin/debops-update"
1948 (format #t "#!/bin/sh
1949 echo 'debops is installed via guix. guix-update is useless in this case.
1950 Please use `guix package -u debops` instead.'")))
1952 ;; patch shebangs only in actuall scripts, not in files included in
1953 ;; roles (which are to be delivered to the targte systems)
1954 (delete `patch-generated-file-shebangs)
1955 (replace 'patch-source-shebangs
1957 (for-each patch-shebang
1960 ;; Filter out symlinks.
1961 (eq? 'regular (stat:type stat)))
1963 (add-after 'unpack 'fix-paths
1965 (define (substitute-program-names file)
1966 ;; e.g. ANSIBLE_PLAYBOOK = '/gnu/store/…/bin/ansible-playbook'
1969 (let ((varname (string-upcase
1971 (lambda (c) (if (char=? c #\-) #\_ c))
1974 (((string-append "^(" varname " = )'.*'") line prefix)
1975 (string-append prefix "'" (which name) "'")))))
1976 '("ansible-playbook" "encfs" "find" "fusermount"
1977 "umount" "gpg" "ansible" "which")))
1978 (for-each substitute-program-names
1980 "bin/debops-padlock"
1982 "debops/__init__.py"
1983 "debops/cmds/__init__.py"))
1985 (home-page "https://www.debops.org/")
1986 (synopsis "Collection of general-purpose Ansible roles")
1987 (description "The Ansible roles provided by that can be used to manage
1988 Debian or Ubuntu hosts. In addition, a default set of Ansible playbooks can
1989 be used to apply the provided roles in a controlled way, using Ansible
1992 The roles are written with a high customization in mind, which can be done
1993 using Ansible inventory. This way the role and playbook code can be shared
1994 between multiple environments, with different configuration in to each one.
1996 Services can be managed on a single host, or spread between multiple hosts.
1997 DebOps provides support for different SQL and NoSQL databases, web servers,
1998 programming languages and specialized applications useful in a data center
1999 environment or in a cluster. The project can also be used to deploy
2000 virtualization environments using KVM/libvirt, Docker or LXC technologies to
2001 manage virtual machines and/or containers.")
2002 (license license:gpl3+)))
2004 (define-public emacs-ansible-doc
2005 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
2007 (name "emacs-ansible-doc")
2008 (version (git-version "0.4" "1" commit))
2013 (url "https://github.com/lunaryorn/ansible-doc.el")
2015 (file-name (git-file-name name version))
2018 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
2019 (build-system emacs-build-system)
2020 ;; Unmaintained by upstream.
2021 (home-page "https://github.com/lunaryorn/ansible-doc.el")
2022 (synopsis "Ansible documentation for Emacs")
2024 "This package provides an Ansible documentation for GNU Emacs.
2026 @code{ansible-doc} allows you to view the documentation of an Ansible
2027 module and @code{ansible-doc-mode} minor mode adds documentation
2028 lookup to YAML Mode. You could enable the mode with @code{(add-hook
2029 'yaml-mode-hook #'ansible-doc-mode)}.")
2030 (license license:gpl3+))))
2032 (define-public cpulimit
2040 (url "https://github.com/opsengine/cpulimit.git")
2041 (commit (string-append "v" version))))
2042 (file-name (git-file-name name version))
2044 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
2045 (build-system gnu-build-system)
2047 `(#:phases (modify-phases %standard-phases
2051 (invoke "make" "CC=gcc" "-Csrc")))
2054 (invoke "make" "CC=gcc" "-Ctests")))
2056 (lambda* (#:key outputs #:allow-other-keys)
2057 (let* ((out (assoc-ref outputs "out"))
2058 (bin (string-append out "/bin")))
2059 (install-file "src/cpulimit" bin))
2061 (home-page "https://github.com/opsengine/cpulimit")
2062 (synopsis "Limit CPU usage")
2064 "Cpulimit limits the CPU usage of a process. It does not change the nice
2065 value or other scheduling priority settings, but the real CPU usage, and is
2066 able to adapt itself dynamically to the overall system load. Children
2067 processes and threads of the specified process may optionally share the same
2069 (license license:gpl2+)))
2071 (define-public autojump
2079 (url "https://github.com/wting/autojump.git")
2080 (commit (string-append "release-v" version))))
2081 (file-name (git-file-name name version))
2083 (base32 "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws"))))
2084 (build-system gnu-build-system)
2085 (native-inputs ; for tests
2086 `(("python-mock" ,python-mock)
2087 ("python-pytest" ,python-pytest)))
2089 `(("python" ,python-wrapper)))
2092 (modify-phases %standard-phases
2093 (add-after 'unpack 'make-git-checkout-writable
2094 ;; ‘install.py’ modifies files before installing them.
2096 (for-each make-file-writable (find-files "."))
2102 (invoke "python" "tests/unit/autojump_utils_test.py")))
2104 (lambda* (#:key outputs #:allow-other-keys)
2105 (setenv "SHELL" (which "bash"))
2106 (invoke "python" "install.py"
2107 (string-append "--destdir="
2108 (assoc-ref outputs "out"))))))))
2109 (home-page "https://github.com/wting/autojump")
2110 (synopsis "Shell extension for file system navigation")
2112 "Autojump provides a faster way to navigate your file system, with a \"cd
2113 command that learns\". It works by maintaining a database of the directories
2114 you use the most from the command line and allows you to \"jump\" to
2115 frequently used directories by typing only a small pattern.")
2116 (license license:gpl3+)))
2125 (url "https://github.com/clvv/fasd.git")
2127 (file-name (git-file-name name version))
2130 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
2131 (build-system gnu-build-system)
2133 `(#:phases (modify-phases %standard-phases
2134 (delete 'configure)) ;no configuration
2135 #:tests? #f ;no tests
2136 #:make-flags (list (string-append "PREFIX=" %output))))
2137 (home-page "https://github.com/clvv/fasd")
2138 (synopsis "Quick access to files and directories for shells")
2140 "Fasd (pronounced similar to \"fast\") is a command-line productivity
2141 booster. Fasd offers quick access to files and directories for POSIX shells.
2142 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
2143 and directories you have accessed so that you can quickly reference them in
2145 (license license:x11)))
2147 (define-public iftop
2153 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
2154 "/iftop-" version ".tar.gz"))
2157 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
2158 (build-system gnu-build-system)
2160 `(("libpcap" ,libpcap)
2161 ("ncurses" ,ncurses)))
2162 (synopsis "Monitor network usage")
2163 (description "Iftop does for network usage what @command{top} does
2164 for CPU usage. It listens to network traffic on a named interface and
2165 displays a table of current bandwidth usage by pairs of hosts.")
2166 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
2167 (license license:gpl2+)))
2169 (define-public munge
2175 (uri (string-append "https://github.com/dun/munge/releases/"
2176 "download/munge-" version "/munge-"
2180 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))
2181 (modules '((guix build utils)))
2184 ;; Don't insist on write access to /var.
2185 (substitute* "src/etc/Makefile.in"
2186 (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
2187 (string-append "-$(INSTALL)" middle "localstatedir")))
2190 `(("openssl" ,openssl)
2191 ("libgcrypt" ,libgcrypt)))
2192 (build-system gnu-build-system)
2193 (arguments '(#:configure-flags '("--localstatedir=/var")))
2194 (home-page "https://dun.github.io/munge/")
2195 (synopsis "Cluster computing authentication service")
2197 "Munge is an authentication service for creating and validating
2198 credentials. It allows a process to authenticate the UID and GID of another
2199 local or remote process within a group of hosts having common users and
2200 groups. These hosts form a security realm that is defined by a shared
2201 cryptographic key. Clients within this security realm can create and validate
2202 credentials without the use of root privileges, reserved ports, or
2203 platform-specific methods.")
2204 (license license:gpl3+)))
2206 (define-public audit
2209 (home-page "https://people.redhat.com/sgrubb/audit/")
2213 (uri (string-append home-page "audit-" version ".tar.gz"))
2216 "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"))))
2217 (build-system gnu-build-system)
2219 `(#:configure-flags (list "--with-python=no"
2220 "--disable-static")))
2222 `(("openldap" ,openldap)
2224 ("sasl" ,cyrus-sasl)))
2225 (synopsis "User-space component to the Linux auditing system")
2227 "auditd is the user-space component to the Linux auditing system, which
2228 allows logging of system calls made by user-land processes. It's responsible
2229 for writing audit records to the disk. Viewing the logs is done with the
2230 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
2231 done with the @code{auditctl} utility.")
2232 (license license:gpl2+)))
2240 (uri (string-append "https://nmap.org/dist/nmap-" version
2244 "1aizfys6l9f9grm82bk878w56mg0zpkfns3spzj157h98875mypw"))
2245 (modules '((guix build utils)))
2248 (for-each delete-file-recursively
2249 ;; Remove bundled lua, pcap, and pcre libraries.
2250 ;; FIXME: Remove bundled liblinear once packaged.
2254 ;; Remove pre-compiled binares.
2257 (build-system gnu-build-system)
2259 `(("openssl" ,openssl)
2260 ("libpcap" ,libpcap)
2263 ("zlib" ,zlib) ;for NSE compression support
2266 ("python" ,python-2)))
2268 ;; TODO Add zenmap output.
2269 (outputs '("out" "ndiff"))
2271 `(#:configure-flags '("--without-zenmap")
2273 (modify-phases %standard-phases
2274 (add-after 'configure 'patch-Makefile
2276 (substitute* "Makefile"
2277 ;; Do not attempt to build lua.
2278 (("build-dnet build-lua") "build-dnet"))
2281 (lambda* (#:key outputs #:allow-other-keys)
2282 (define (make out . args)
2283 (apply invoke "make"
2284 (string-append "prefix=" out)
2286 (define (python-path dir)
2287 (string-append dir "/lib/python"
2288 ,(version-major+minor
2289 (package-version python))
2291 (let ((out (assoc-ref outputs "out"))
2292 (ndiff (assoc-ref outputs "ndiff")))
2293 (for-each mkdir-p (list out ndiff))
2299 (make ndiff "install-ndiff")
2300 (wrap-program (string-append ndiff "/bin/ndiff")
2301 `("PYTHONPATH" prefix
2302 (,(python-path ndiff)))))
2304 ;; These are the tests that do not require network access.
2306 (lambda _ (invoke "make"
2310 ;; Nmap can't cope with out-of-source building.
2311 #:out-of-source? #f))
2312 (home-page "https://nmap.org/")
2313 (synopsis "Network discovery and security auditing tool")
2315 "Nmap (\"Network Mapper\") is a network discovery and security auditing
2316 tool. It is also useful for tasks such as network inventory, managing service
2317 upgrade schedules, and monitoring host or service uptime. It also provides an
2318 advanced netcat implementation (ncat), a utility for comparing scan
2319 results (ndiff), and a packet generation and response analysis tool (nping).")
2320 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
2321 ;; both use a 3-clause BSD license.
2322 (license (list license:nmap license:bsd-3))))
2324 (define-public dstat
2332 (url "https://github.com/dagwieers/dstat.git")
2333 (commit (string-append "v" version))))
2334 (file-name (git-file-name "dstat" version))
2336 (base32 "1qnmkhqmjd1m3if05jj29dvr5hn6kayq9bkkkh881w472c0zhp8v"))
2337 (patches (search-patches "dstat-fix-crash-when-specifying-delay.patch"
2338 "dstat-skip-devices-without-io.patch"))))
2339 (build-system gnu-build-system)
2341 `(#:tests? #f ; no make check
2342 #:make-flags (let ((out (assoc-ref %outputs "out")))
2343 (list (string-append "DESTDIR=" out)
2346 (modify-phases %standard-phases
2347 (add-after 'unpack 'fix-python3-DeprecationWarning
2349 (substitute* "dstat"
2350 (("collections") "collections.abc"))
2352 (delete 'configure) ; no configure script
2353 (add-after 'install 'wrap
2354 (lambda* (#:key outputs #:allow-other-keys)
2355 (let ((out (assoc-ref outputs "out")))
2356 (wrap-program (string-append out "/bin/dstat")
2357 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2360 `(("python" ,python-wrapper)
2361 ("python-six" ,python-six)))
2362 (synopsis "Versatile resource statistics tool")
2363 (description "Dstat is a versatile replacement for @command{vmstat},
2364 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2365 some of their limitations and adds some extra features, more counters and
2366 flexibility. Dstat is handy for monitoring systems during performance tuning
2367 tests, benchmarks or troubleshooting.
2369 Dstat allows you to view all of your system resources in real-time, you can,
2370 e.g., compare disk utilization in combination with interrupts from your IDE
2371 controller, or compare the network bandwidth numbers directly with the disk
2372 throughput (in the same interval).")
2373 (home-page "http://dag.wiee.rs/home-made/dstat/")
2374 (license license:gpl2+)))
2376 (define-public thefuck
2384 (url "https://github.com/nvbn/thefuck.git")
2386 (file-name (git-file-name name version))
2388 (base32 "1qhxwjjgrzpqrqjv7l2847ywpln76lyd6j8bl9gz2r6kl0fx2fqs"))
2389 (patches (search-patches "thefuck-test-environ.patch"))))
2390 (build-system python-build-system)
2393 (modify-phases %standard-phases
2395 (add-after 'install 'check
2396 (lambda* (#:key inputs outputs #:allow-other-keys)
2397 ;; Tests look for installed package
2398 (add-installed-pythonpath inputs outputs)
2399 ;; Some tests need write access to $HOME.
2400 (setenv "HOME" "/tmp")
2401 (invoke "py.test" "-v")
2404 `(("python-colorama" ,python-colorama)
2405 ("python-decorator" ,python-decorator)
2406 ("python-psutil" ,python-psutil)
2407 ("python-pyte" ,python-pyte)
2408 ("python-six" ,python-six)))
2410 `(("python-mock" ,python-mock)
2411 ("python-pytest" ,python-pytest)
2412 ("python-pytest-mock" ,python-pytest-mock)))
2413 (home-page "https://github.com/nvbn/thefuck")
2414 (synopsis "Correct mistyped console command")
2416 "The Fuck tries to match a rule for a previous, mistyped command, creates
2417 a new command using the matched rule, and runs it.")
2418 (license license:x11)))
2427 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2429 (base32 "1bdbl9k3gqf4h6g21difqc0w17pjid6r587y19wi37vx36aava7f"))))
2430 (build-system gnu-build-system)
2432 `(#:tests? #f ; obscure test failures
2434 (modify-phases %standard-phases
2435 (delete 'configure) ; no configure script
2436 (add-before 'build 'setup-environment
2437 (lambda* (#:key outputs #:allow-other-keys)
2439 (setenv "prefix" (assoc-ref outputs "out"))
2441 #:make-flags (list "--environment-overrides")))
2442 (home-page "https://www.gentoo.com/di/")
2443 (synopsis "Advanced df like disk information utility")
2445 "@code{di} is a disk information utility, displaying everything that your
2446 @code{df} command does and more. It features the ability to display your disk
2447 usage in whatever format you prefer. It is designed to be highly portable and
2448 produce uniform output across heterogeneous networks.")
2449 (license license:zlib)))
2451 (define-public cbatticon
2459 (url "https://github.com/valr/cbatticon.git")
2462 (base32 "0kw09d678sd3m18fmi4380sl4a2m5lkfmq0kps16cdmq7z80rvaf"))
2463 (file-name (git-file-name name version))))
2464 (build-system gnu-build-system)
2466 `(#:tests? #f ; no tests
2468 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2471 (modify-phases %standard-phases
2472 (delete 'configure)))) ; no configure script
2475 ("gettext" ,gettext-minimal)
2476 ("libnotify" ,libnotify)))
2478 `(("pkg-config" ,pkg-config)))
2479 (synopsis "Lightweight battery icon for the system tray")
2480 (description "cbatticon is a lightweight battery icon that displays
2481 the status of your battery in the system tray.")
2482 (home-page "https://github.com/valr/cbatticon")
2483 (license license:gpl2+)))
2485 (define-public interrobang
2486 (let ((revision "1")
2487 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2489 (name "interrobang")
2490 (version (git-version "0.0.0" revision commit))
2495 (url "https://github.com/TrilbyWhite/interrobang.git")
2497 (file-name (git-file-name name version))
2499 (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2500 (build-system gnu-build-system)
2502 `(#:tests? #f ; no tests
2504 (modify-phases %standard-phases
2505 (delete 'configure)) ; no configure script
2506 #:make-flags (list (string-append "PREFIX="
2507 (assoc-ref %outputs "out")))))
2509 `(("libx11" ,libx11)))
2511 `(("pkg-config" ,pkg-config)))
2512 (synopsis "Scriptable launcher menu")
2513 (description "Interrobang is a scriptable launcher menu with a customizable
2514 shortcut syntax and completion options.")
2515 (home-page "https://github.com/TrilbyWhite/interrobang")
2516 (license license:gpl3+))))
2518 (define-public pam-krb5
2525 "https://archives.eyrie.org/software/kerberos/"
2526 "pam-krb5-" version ".tar.xz"))
2529 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2530 (build-system gnu-build-system)
2533 (modify-phases %standard-phases
2534 (add-before 'configure 'disable-tests
2536 ;; The build container seems to interfere with some tests.
2537 (substitute* "tests/TESTS"
2538 (("module/basic\n") ""))
2539 (substitute* "tests/TESTS"
2540 (("pam-util/vector\n") ""))
2543 `(("linux-pam" ,linux-pam)
2544 ("mit-krb5" ,mit-krb5)))
2547 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2548 (synopsis "Kerberos PAM module")
2550 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2551 It supports ticket refreshing by screen savers, configurable
2552 authorization handling, authentication of non-local accounts for network
2553 services, password changing, and password expiration, as well as all the
2554 standard expected PAM features. It works correctly with OpenSSH, even
2555 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2556 enabled, and supports extensive configuration either by PAM options or in
2557 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2558 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2559 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2560 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2561 ;; However, the tarball does not contain a copy of the GPL, so unless
2562 ;; we put one in, we cannot distribute it under GPL without violating
2563 ;; clause requiring us to give all recipients a copy.
2564 (license license:gpl1+)))
2566 (define-public sunxi-tools
2568 (name "sunxi-tools")
2574 (url "https://github.com/linux-sunxi/sunxi-tools.git")
2575 (commit (string-append "v" version))))
2577 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
2578 (modules '((guix build utils)))
2580 ;; Remove binaries contained in the tarball which are only for the
2581 ;; target and can be regenerated anyway.
2583 (delete-file-recursively "bin")
2585 (file-name (git-file-name name version))))
2587 `(("pkg-config" ,pkg-config)
2588 ("cross-gcc" ,(cross-gcc "arm-linux-gnueabihf"
2589 #:xbinutils (cross-binutils "arm-linux-gnueabihf")
2590 #:libc (cross-libc "arm-linux-gnueabihf")))
2591 ("cross-libc" ,(cross-libc "arm-linux-gnueabihf")) ; header files
2592 ("cross-libc-static" ,(cross-libc "arm-linux-gnueabihf") "static")))
2594 `(("libusb" ,libusb)))
2595 (build-system gnu-build-system)
2597 `(#:tests? #f ; no tests exist
2598 #:make-flags (list (string-append "PREFIX="
2599 (assoc-ref %outputs "out"))
2600 (string-append "CROSS_COMPILE="
2601 "arm-linux-gnueabihf-")
2604 (modify-phases %standard-phases
2606 (add-before 'build 'set-environment-up
2607 (lambda* (#:key make-flags #:allow-other-keys)
2609 (string-contains x "cross-arm-linux"))
2610 (define (filter-environment! filter-predicate
2611 environment-variable-names)
2614 (let* ((env-value (getenv env-name))
2615 (search-path (search-path-as-string->list env-value))
2616 (new-search-path (filter filter-predicate
2618 (new-env-value (list->search-path-as-string
2619 new-search-path ":")))
2620 (setenv env-name new-env-value)))
2621 environment-variable-names))
2622 (setenv "CROSS_C_INCLUDE_PATH" (getenv "C_INCLUDE_PATH"))
2623 (setenv "CROSS_CPLUS_INCLUDE_PATH" (getenv "CPLUS_INCLUDE_PATH"))
2624 (setenv "CROSS_LIBRARY_PATH" (getenv "LIBRARY_PATH"))
2625 (filter-environment! cross?
2626 '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"
2627 "CROSS_LIBRARY_PATH"))
2628 (filter-environment! (lambda (e) (not (cross? e)))
2629 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"
2633 (lambda* (#:key make-flags #:allow-other-keys)
2634 (apply invoke "make" "tools" "misc" make-flags)))
2635 (add-after 'build 'build-armhf
2636 (lambda* (#:key make-flags #:allow-other-keys)
2637 (setenv "LIBRARY_PATH" #f)
2638 (apply invoke "make" "target-tools" make-flags)))
2640 (lambda* (#:key make-flags #:allow-other-keys)
2641 (apply invoke "make" "install-all" "install-misc"
2643 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2644 (synopsis "Hardware management tools for Allwinner computers")
2645 (description "This package contains tools for Allwinner devices:
2647 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2648 a textual description of a board (.fex) to a binary representation (.bin).
2649 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2650 makes it register as a special USB device (rather than USB host).
2651 You can then connect it to another computer and flash it from there.
2652 @item @command{sunxi-nand-part}: Partitions NAND flash.
2653 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2654 bootloader) parameters.
2655 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2656 in order to be able to find it.
2657 @item @command{sunxi-meminfo}: Prints memory bus settings.
2658 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2660 (license license:gpl2+)))
2662 (define-public sedsed
2670 (url "https://github.com/aureliojargas/sedsed.git")
2671 (commit (string-append "v" version))))
2672 (file-name (git-file-name name version))
2674 (base32 "05cl35mwljdb9ynbbsfa8zx6ig8r0xncbg2cir9vwn5manndjj18"))))
2675 (build-system python-build-system)
2677 `(#:tests? #f ; no tests
2679 (modify-phases %standard-phases
2680 (add-after 'unpack 'patch-sed-in
2682 (substitute* "sedsed.py"
2684 (string-append "sedbin = '" (which "sed") "'")))
2688 (lambda* (#:key outputs #:allow-other-keys)
2689 (let* ((out (assoc-ref outputs "out"))
2690 (bin (string-append out "/bin")))
2691 ;; Just one file to copy around
2692 (install-file "sedsed.py" bin)
2694 (add-after 'wrap 'symlink
2695 ;; Create 'sedsed' symlink to "sedsed.py".
2696 (lambda* (#:key outputs #:allow-other-keys)
2697 (let* ((out (assoc-ref outputs "out"))
2698 (bin (string-append out "/bin"))
2699 (sed (string-append bin "/sedsed"))
2700 (sedpy (string-append bin "/sedsed.py")))
2703 (home-page "https://aurelio.net/projects/sedsed")
2704 (synopsis "Sed sed scripts")
2706 "@code{sedsed} can debug, indent, tokenize and HTMLize your @command{sed}
2709 In debug mode, it reads your script and adds extra commands to it. When
2710 executed you can see the data flow between the commands, revealing all the
2711 magic sed performs on its internal buffers.
2713 In indent mode, your script is reformatted with standard spacing.
2715 In tokenize mode, you can see the elements of every command you use.
2717 In HTMLize mode, your script is converted to a beautiful colored HTML file,
2718 with all the commands and parameters identified for your viewing pleasure.
2720 With sedsed you can master any sed script. No more secrets, no more hidden
2722 (license license:expat)))
2724 (define-public igt-gpu-tools
2726 (name "igt-gpu-tools")
2730 (uri (string-append "https://cgit.freedesktop.org/xorg/app/"
2731 "intel-gpu-tools/snapshot/"
2732 "igt-gpu-tools-" version ".tar.gz"))
2735 "0vzv2i4jfv2pkbqby5k3ap9pzidkmajwqmg3s7wnv8i1h33775iq"))))
2736 (build-system gnu-build-system)
2738 `(#:tests? #f ; many of the tests try to load kernel modules
2740 (modify-phases %standard-phases
2743 ;; Don't run configure in this phase.
2744 (setenv "NOCONFIGURE" "1")
2745 (invoke "sh" "autogen.sh"))))))
2752 ("libpciaccess" ,libpciaccess)
2753 ("libunwind" ,libunwind)
2754 ("libxrandr" ,libxrandr)
2755 ("openssl" ,openssl)
2757 ("util-macros" ,util-macros)))
2759 `(("autoconf" ,autoconf)
2760 ("automake" ,automake)
2761 ("libtool" ,libtool)
2762 ("pkg-config" ,pkg-config)))
2763 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2764 (synopsis "Tools for development and testing of the Intel DRM driver")
2765 (description "IGT GPU Tools is a collection of tools for development and
2766 testing of the Intel DRM driver. There are many macro-level test suites that
2767 get used against the driver, including xtest, rendercheck, piglit, and
2768 oglconform, but failures from those can be difficult to track down to kernel
2769 changes, and many require complicated build procedures or specific testing
2770 environments to get useful results. Therefore, IGT GPU Tools includes
2771 low-level tools and tests specifically for development and testing of the
2773 (supported-systems '("i686-linux" "x86_64-linux"))
2774 (license license:expat)))
2776 (define-public intel-gpu-tools
2777 (deprecated-package "intel-gpu-tools" igt-gpu-tools))
2779 (define-public fabric
2786 (uri (pypi-uri "Fabric" version))
2789 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2790 (build-system python-build-system)
2792 `(#:python ,python-2 ; Python 2 only
2794 (modify-phases %standard-phases
2798 "nosetests" "-v" "tests/"
2799 ;; This test hangs indefinitely when run on a single core VM
2800 ;; (see GNU bug #26647 and Debian bug #850230).
2801 "--exclude=test_nested_execution_with_explicit_ports"
2802 ;; This test randomly fails in certain environments causing too
2803 ;; much noise to be useful (see Debian bug #854686).
2804 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2806 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2807 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2808 ("python2-nose" ,python2-nose) ; Requires < 2.0
2809 ("python2-pynacl" ,python2-pynacl)
2810 ("python2-bcrypt" ,python2-bcrypt)))
2812 `(("python2-paramiko" ,python2-paramiko)))
2813 (home-page "http://fabfile.org")
2814 (synopsis "Simple Pythonic remote execution and deployment tool")
2816 "Fabric is designed to upload files and run shell commands on a number of
2817 servers in parallel or serially. These commands are grouped in tasks (which
2818 are regular Python functions) and specified in a @dfn{fabfile}.
2820 It is similar to Capistrano, except it's implemented in Python and doesn't
2821 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2822 tool for remote execution and deployment.")
2823 (license license:bsd-2)))
2825 (define-public neofetch
2832 (url "https://github.com/dylanaraps/neofetch")
2836 "022xzn9jk18k2f4b6011d8jk5nbl84i3mw3inlz4q52p2hvk8fch"))))
2837 (build-system gnu-build-system)
2839 `(#:tests? #f ; there are no tests
2841 (list (string-append "PREFIX=" %output))
2843 (modify-phases %standard-phases
2844 (delete 'configure)))) ; no configure script
2845 (home-page "https://github.com/dylanaraps/neofetch")
2846 (synopsis "System information script")
2847 (description "Neofetch is a command-line system information tool written in
2848 Bash. Neofetch displays information about your system next to an image, your OS
2849 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2850 used in screenshots to show other users what operating system or distribution
2851 you are running, what theme or icon set you are using, etc.")
2852 (license license:expat)))
2854 (define-public screenfetch
2856 (name "screenfetch")
2861 (url "https://github.com/KittyKatt/screenFetch")
2862 (commit (string-append "v" version))))
2863 (file-name (git-file-name name version))
2866 "13i7dczbqwhws08zzrdraki1zkqv0qkbgx9c1r8vmg5qr9f7hfzg"))))
2867 (build-system trivial-build-system)
2869 `(#:modules ((guix build utils))
2872 (use-modules (guix build utils))
2873 (let ((source (assoc-ref %build-inputs "source"))
2874 (out (assoc-ref %outputs "out")))
2875 (mkdir-p (string-append out "/bin/"))
2876 (copy-file (string-append source "/screenfetch-dev")
2877 (string-append out "/bin/screenfetch"))
2878 (install-file (string-append source "/screenfetch.1")
2879 (string-append out "/man/man1/"))
2880 (install-file (string-append source "/COPYING")
2881 (string-append out "/share/doc/" ,name "-" ,version))
2882 (substitute* (string-append out "/bin/screenfetch")
2883 (("/usr/bin/env bash")
2884 (string-append (assoc-ref %build-inputs "bash")
2887 (string-append out "/bin/screenfetch")
2889 (,(string-append (assoc-ref %build-inputs "bc") "/bin:"
2890 (assoc-ref %build-inputs "scrot") "/bin:"
2891 (assoc-ref %build-inputs "xdpyinfo") "/bin"
2892 (assoc-ref %build-inputs "xprop") "/bin"))))
2893 (substitute* (string-append out "/bin/screenfetch")
2895 (string-append "#!" (assoc-ref %build-inputs "bash")
2901 ("xdpyinfo" ,xdpyinfo)
2903 (home-page "https://github.com/KittyKatt/screenFetch")
2904 (synopsis "System information script")
2905 (description "Bash screenshot information tool which can be used to
2906 generate those nifty terminal theme information and ASCII distribution logos in
2907 everyone's screenshots nowadays.")
2908 (license license:gpl3)))
2917 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
2918 version "/nnn-v" version ".tar.gz"))
2920 (base32 "0xb6crd9vig3xgjwl8m4bmgcs4azfmfdpx3g8pdpzs28jdg7i3rr"))))
2921 (build-system gnu-build-system)
2923 `(("ncurses" ,ncurses)
2924 ("readline" ,readline)))
2926 `(("pkg-config" ,pkg-config)))
2928 '(#:tests? #f ; no tests
2930 (modify-phases %standard-phases
2931 (delete 'configure)) ; no configure script
2934 (string-append "PREFIX="
2935 (assoc-ref %outputs "out"))
2937 (home-page "https://github.com/jarun/nnn")
2938 (synopsis "Terminal file browser")
2939 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
2940 lightweight terminal file browser with easy keyboard shortcuts for
2941 navigation, opening files and running tasks. There is no config file and
2942 mime associations are hard-coded. The incredible user-friendliness and speed
2943 make it a perfect utility on modern distros.")
2944 (license license:bsd-2)))
2946 (define-public thermald
2954 (url "https://github.com/01org/thermal_daemon")
2955 (commit (string-append "v" version))))
2956 (file-name (git-file-name name version))
2958 (base32 "1g1l7k8yxj8bl1ysdx8v6anv1s7xk9j072y44gwki70dy48n7j92"))
2960 (search-patches "thermald-make-int-max32-visible.patch"))))
2961 (build-system gnu-build-system)
2964 (let ((out (assoc-ref %outputs "out")))
2965 (list (string-append "--sysconfdir="
2967 (string-append "--with-dbus-sys-dir="
2968 out "/etc/dbus-1/system.d")
2969 "--localstatedir=/var"))))
2971 `(("autoconf" ,autoconf)
2972 ("automake" ,automake)
2973 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
2974 ("pkg-config" ,pkg-config)))
2976 `(("dbus-glib" ,dbus-glib)
2977 ("libxml2" ,libxml2)))
2978 (home-page "https://01.org/linux-thermal-daemon/")
2979 (synopsis "CPU scaling for thermal management")
2980 (description "The Linux Thermal Daemon helps monitor and control temperature
2981 on systems running the Linux kernel.")
2982 ;; arm and aarch64 don't have cpuid.h.
2983 (supported-systems '("i686-linux" "x86_64-linux"))
2984 (license license:gpl2+)))
2986 (define-public masscan
2994 (url "https://github.com/robertdavidgraham/masscan.git")
2996 (file-name (git-file-name name version))
2998 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
2999 (build-system gnu-build-system)
3001 `(("libpcap" ,libpcap)))
3003 '(#:test-target "regress"
3006 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3008 (modify-phases %standard-phases
3009 (delete 'configure) ; no ./configure script
3010 (add-after 'unpack 'patch-path
3011 (lambda* (#:key outputs inputs #:allow-other-keys)
3012 (let* ((out (assoc-ref outputs "out"))
3013 (pcap (assoc-ref inputs "libpcap")))
3014 (substitute* "src/rawsock-pcap.c"
3015 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
3017 (synopsis "TCP port scanner")
3018 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
3019 open ports, and also complete the TCP connection and interact with the remote
3020 application, collecting the information received.")
3021 (home-page "https://github.com/robertdavidgraham/masscan")
3022 ;; 'src/siphash24.c' is the SipHash reference implementation, which
3023 ;; bears a CC0 Public Domain Dedication.
3024 (license license:agpl3+)))
3026 (define-public hungrycat
3032 (uri (string-append "https://github.com/jwilk/hungrycat/"
3033 "releases/download/" version "/"
3034 "hungrycat-" version ".tar.gz"))
3037 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
3038 (build-system gnu-build-system)
3041 `(("python" ,python-wrapper)
3042 ("python-nose" ,python-nose)))
3044 `(#:test-target "test"))
3045 (synopsis "A single tool that combines @command{cat} & @command{rm}")
3047 "hungrycat prints the contents of a file to standard output, while
3048 simultaneously freeing the disk space it occupied. It is useful if you need
3049 to process a large file, don't have enough space to store both the input and
3050 output files, and don't need the input file afterwards.
3051 While similar in principle to running @command{cat} immediately followed by
3052 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
3053 printed instead of after the entire file has been read, which is often too
3055 (home-page "https://jwilk.net/software/hungrycat")
3056 (license license:expat)))
3058 (define-public launchmon
3065 "https://github.com/LLNL/LaunchMON/releases/download/v"
3066 version "/launchmon-v" version ".tar.gz"))
3069 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
3070 (build-system gnu-build-system)
3076 ("libgcrypt" ,libgcrypt)
3077 ("libgpg-error" ,libgpg-error)))
3078 (synopsis "Infrastructue for large scale tool daemon launching")
3080 "LaunchMON is a software infrastructure that enables HPC run-time
3081 tools to co-locate tool daemons with a parallel job. Its API allows a
3082 tool to identify all the remote processes of a job and to scalably
3083 launch daemons into the relevant nodes.")
3084 (home-page "https://github.com/LLNL/LaunchMON")
3085 (supported-systems '("i686-linux" "x86_64-linux"))
3086 (license license:lgpl2.1)))
3088 (define-public spindle
3093 ;; We use git checkout to avoid github auto-generated tarballs
3096 (url "https://github.com/hpc/Spindle.git")
3097 (commit (string-append "v" version))))
3098 (file-name (git-file-name name version))
3101 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
3102 (build-system gnu-build-system)
3103 (arguments '(#:configure-flags '("--enable-sec-launchmon"
3104 "--enable-sec-munge"
3105 "--enable-sec-none")))
3109 ("launchmon" ,launchmon)
3110 ("libgcrypt" ,libgcrypt)))
3111 (synopsis "Scalable library loading in HPC environments")
3113 "Spindle is a tool for improving the performance of dynamic library and
3114 Python loading in HPC environments.")
3115 (home-page "https://github.com/hpc/Spindle")
3116 ;; This package supports x86_64 and PowerPC64
3117 (supported-systems '("x86_64-linux"))
3118 (license license:lgpl2.1)))
3120 (define-public inxi-minimal
3121 (let ((real-name "inxi"))
3123 (name "inxi-minimal")
3124 (version "3.0.34-1")
3129 (url "https://github.com/smxi/inxi")
3131 (file-name (git-file-name real-name version))
3133 (base32 "0x2s40lwsan2pk292nspjgyw00f9f5fdfmwfvl50924pxhyxn2fh"))))
3134 (build-system trivial-build-system)
3136 `(("bash" ,bash-minimal)
3138 ("procps" ,procps)))
3148 (use-modules (guix build utils)
3151 (setenv "PATH" (string-append
3152 (assoc-ref %build-inputs "bash") "/bin" ":"
3153 (assoc-ref %build-inputs "gzip") "/bin" ":"
3154 (assoc-ref %build-inputs "perl") "/bin" ":"))
3155 (copy-recursively (assoc-ref %build-inputs "source")
3156 ,(string-append real-name "-" version))
3157 (with-directory-excursion ,(string-append real-name "-" version)
3158 (with-fluids ((%default-port-encoding #f))
3159 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
3160 (let ((bin (string-append %output "/bin")))
3161 (install-file "inxi" bin)
3162 (wrap-program (string-append bin "/inxi")
3165 ,@(map (lambda (input)
3169 (cut string-append store <>)))
3171 ((member name '("util-linux"))
3172 (string-append (store-append "/bin") ":"
3173 (store-append "/sbin")))
3174 ((member name '("dmidecode" "iproute2"))
3175 (store-append "/sbin"))
3176 (else (store-append "/bin")))))))
3182 (((? (cut string-prefix? "perl-" <>) name) . dir)
3183 (string-append dir "/lib/perl5/site_perl"))
3186 (invoke "gzip" "inxi.1")
3187 (install-file "inxi.1.gz"
3188 (string-append %output "/share/man/man1")))
3190 (home-page "https://smxi.org/docs/inxi.htm")
3191 (synopsis "Full-featured system information script")
3192 (description "Inxi is a system information script that can display
3193 various things about your hardware and software to users in an IRC chatroom or
3194 support forum. It runs with the @code{/exec} command in most IRC clients.")
3195 (license license:gpl3+))))
3199 (inherit inxi-minimal)
3202 `(("dmidecode" ,dmidecode)
3204 ("bind:utils" ,isc-bind "utils") ; dig
3206 ("iproute2" ,iproute) ; ip
3207 ("kmod" ,kmod) ; modinfo
3208 ("lm-sensors" ,lm-sensors)
3209 ("mesa-utils" ,mesa-utils)
3210 ("pciutils" ,pciutils)
3213 ("util-linux" ,util-linux) ; lsblk
3214 ("usbutils" ,usbutils) ; lsusb
3216 ("xdpyinfo" ,xdpyinfo)
3219 ("coreutils" ,coreutils) ; uptime
3220 ("inetutils" ,inetutils) ; ifconfig
3221 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
3222 ("perl-http-tiny" ,perl-http-tiny)
3223 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3224 ("perl-json-xs" ,perl-json-xs)
3225 ("perl-time-hires" ,perl-time-hires)
3226 ;; TODO: Add more inputs:
3231 ,@(package-inputs inxi-minimal)))))
3233 (define-public pscircle
3241 (url "https://gitlab.com/mildlyparallel/pscircle.git")
3242 (commit (string-append "v" version))))
3243 (file-name (git-file-name name version))
3246 "0qsif00dkqa8ky3vl2ycx5anx2yk62nrv47f5lrlqzclz91f00fx"))))
3247 (build-system meson-build-system)
3249 `(("pkg-config" ,pkg-config)))
3253 ("libx11" ,libx11)))
3254 (home-page "https://gitlab.com/mildlyparallel/pscircle")
3255 (synopsis "Visualize Linux processes in a form of radial tree")
3257 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
3258 (license license:gpl2+)))
3260 (define-public python-pyudev
3262 (name "python-pyudev")
3267 (uri (pypi-uri "pyudev" version))
3270 "0arz0dqp75sszsmgm6vhg92n1lsx91ihddx3m944f4ah0487ljq9"))))
3271 (build-system python-build-system)
3273 `(#:tests? #f ; Tests require /sys
3275 (modify-phases %standard-phases
3276 (add-after 'unpack 'patch-ctypes-udev
3277 (lambda* (#:key inputs outputs #:allow-other-keys)
3278 (let ((eudev (assoc-ref inputs "eudev")))
3279 (substitute* "src/pyudev/core.py"
3281 (string-append "'" eudev "/lib/libudev.so'")))
3282 (substitute* "src/pyudev/_ctypeslib/utils.py"
3283 ;; Use absolute paths instead of keys.
3284 (("= find_library") "= "))
3287 `(("eudev" ,eudev)))
3289 `(("python-six" ,python-six)))
3291 `(("python-docutils" ,python-docutils)
3292 ("python-hypothesis" ,python-hypothesis)
3293 ("python-mock" ,python-mock)
3294 ("python-pytest" ,python-pytest)
3295 ("python-sphinx" ,python-sphinx)))
3296 (home-page "http://pyudev.readthedocs.org/")
3297 (synopsis "Python udev binding")
3298 (description "This package provides @code{udev} bindings for Python.")
3299 (license license:lgpl2.1)))
3301 (define-public solaar
3308 (url "https://github.com/pwr/Solaar.git")
3310 (file-name (git-file-name name version))
3313 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
3314 (build-system python-build-system)
3317 (modify-phases %standard-phases
3318 (add-after 'unpack 'fix-prefix-detection
3320 (substitute* "setup.py"
3321 (("'--prefix' in sys\\.argv")
3322 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
3326 (invoke "python" "setup.py" "build")))
3327 (add-before 'check 'setenv-PATH
3329 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
3332 `(("python-pygobject" ,python-pygobject)
3333 ("python-pyudev" ,python-pyudev)))
3334 (home-page "https://smxi.org/docs/inxi.htm")
3335 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
3336 (description "This package provides tools to manage clients of the
3337 Logitech Unifying Receiver.")
3338 (license license:gpl2)))
3340 (define-public lynis
3343 ;; Also update the ‘lynis-sdk’ input to the commit matching this release.
3349 (url "https://github.com/CISOfy/lynis")
3351 (file-name (git-file-name name version))
3353 (base32 "1jjk5hcxmp4f4ppsljiq95l2ln6b03azydap3b35lsvxkjybv88k"))
3354 (modules '((guix build utils)))
3357 ;; Remove proprietary plugins. As of now, all plugins supplied with
3358 ;; lynis are proprietary. In the future, if free plugins are
3359 ;; provided, whitelist them from deletion.
3360 (for-each delete-file (find-files "plugins"))
3362 (build-system gnu-build-system)
3369 (url "https://github.com/CISOfy/lynis-sdk")
3370 (commit "90f301e21c204792cf372f1cf05890a562f2e31b")))
3371 (file-name (git-file-name "lynis-sdk" version))
3373 (base32 "1d0smr1fxrvbc3hl8lzy33im9ahzr0hgs3kk09r8g8xccjkcm52l"))))))
3376 (modify-phases %standard-phases
3378 (lambda* (#:key inputs outputs #:allow-other-keys)
3379 (substitute* "lynis"
3380 (("/usr/share/lynis")
3381 (string-append (assoc-ref outputs "out") "/share/lynis")))
3382 (substitute* "include/functions"
3383 (("/usr/local/etc/lynis")
3384 (string-append (assoc-ref outputs "out") "/etc/lynis")))
3388 (lambda* (#:key outputs #:allow-other-keys)
3389 (let ((out (assoc-ref outputs "out")))
3390 (install-file "lynis" (string-append out "/bin/"))
3391 (install-file "default.prf" (string-append out "/etc/lynis"))
3394 (copy-recursively dir (string-append out "/share/lynis/" dir)))
3395 (list "db" "include" "plugins"))
3396 (install-file "lynis.8" (string-append out "/share/man/man8"))
3399 (lambda* (#:key inputs #:allow-other-keys)
3400 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
3401 (setenv "LANG" "en_US.UTF-8")
3402 (let ((lynis-dir (getcwd)))
3403 (with-directory-excursion "../lynis-sdk"
3404 (substitute* "config"
3405 (("\\.\\./lynis") lynis-dir))
3406 (substitute* "unit-tests/tests-language-translations.sh"
3407 (("\\.\\./lynis") lynis-dir))
3408 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
3409 (home-page "https://cisofy.com/lynis/")
3410 (synopsis "Security auditing tool")
3411 (description "Lynis is a security auditing tool. It performs an in-depth
3412 security scan and runs on the system itself. The primary goal is to test
3413 security defenses and provide tips for further system hardening. It will also
3414 scan for general system information, vulnerable software packages, and
3415 possible configuration issues.")
3416 (license license:gpl3+)))
3418 (define-public ngrep
3426 (url "https://github.com/jpr5/ngrep/")
3427 (commit (string-append "V" (string-replace-substring version "." "_")))))
3428 (file-name (git-file-name name version))
3431 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3432 (build-system gnu-build-system)
3434 `(("libpcap" ,libpcap)))
3436 `(#:tests? #f ;; No tests.
3437 #:configure-flags (list (string-append "--with-pcap-includes="
3438 (assoc-ref %build-inputs "libpcap")
3440 (home-page "https://github.com/jpr5/ngrep/")
3441 (synopsis "Grep-like utility to search for network packets on an interface")
3442 (description "@command{ngrep} is like GNU grep applied to the network
3443 layer. It's a PCAP-based tool that allows you to specify an extended regular
3444 or hexadecimal expression to match against data payloads of packets. It
3445 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3446 IGMP and Raw, across a wide variety of interface types, and understands BPF
3447 filter logic in the same fashion as more common packet sniffing tools, such as
3448 tcpdump and snoop.")
3449 (license license:bsd-3)))