1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 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, 2020 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, 2020 Marius Bakke <mbakke@fastmail.com>
22 ;;; Copyright © 2018, 2019 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@gnu.org>
27 ;;; Copyright © 2019,2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
28 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.org>
29 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
31 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
32 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
33 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
34 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
35 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
37 ;;; This file is part of GNU Guix.
39 ;;; GNU Guix is free software; you can redistribute it and/or modify it
40 ;;; under the terms of the GNU General Public License as published by
41 ;;; the Free Software Foundation; either version 3 of the License, or (at
42 ;;; your option) any later version.
44 ;;; GNU Guix is distributed in the hope that it will be useful, but
45 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
46 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47 ;;; GNU General Public License for more details.
49 ;;; You should have received a copy of the GNU General Public License
50 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
52 (define-module (gnu packages admin)
53 #:use-module (guix build-system cmake)
54 #:use-module (guix build-system emacs)
55 #:use-module (guix build-system glib-or-gtk)
56 #:use-module (guix build-system gnu)
57 #:use-module (guix build-system meson)
58 #:use-module (guix build-system perl)
59 #:use-module (guix build-system python)
60 #:use-module (guix build-system trivial)
61 #:use-module (guix download)
62 #:use-module (guix git-download)
63 #:use-module ((guix licenses) #:prefix license:)
64 #:use-module (guix packages)
65 #:use-module (guix utils)
66 #:use-module (gnu packages)
67 #:use-module (gnu packages algebra)
68 #:use-module (gnu packages autogen)
69 #:use-module (gnu packages autotools)
70 #:use-module (gnu packages base)
71 #:use-module (gnu packages bash)
72 #:use-module (gnu packages bison)
73 #:use-module (gnu packages boost)
74 #:use-module (gnu packages c)
75 #:use-module (gnu packages check)
76 #:use-module (gnu packages compression)
77 #:use-module (gnu packages cross-base)
78 #:use-module (gnu packages crypto)
79 #:use-module (gnu packages cryptsetup)
80 #:use-module (gnu packages cyrus-sasl)
81 #:use-module (gnu packages dns)
82 #:use-module (gnu packages elf)
83 #:use-module (gnu packages file)
84 #:use-module (gnu packages flex)
85 #:use-module (gnu packages gettext)
86 #:use-module (gnu packages gl)
87 #:use-module (gnu packages glib)
88 #:use-module (gnu packages gnome)
89 #:use-module (gnu packages gnupg)
90 #:use-module (gnu packages golang)
91 #:use-module (gnu packages groff)
92 #:use-module (gnu packages gtk)
93 #:use-module (gnu packages guile)
94 #:use-module (gnu packages image)
95 #:use-module (gnu packages imagemagick)
96 #:use-module (gnu packages inkscape)
97 #:use-module (gnu packages kerberos)
98 #:use-module (gnu packages libbsd)
99 #:use-module (gnu packages libftdi)
100 #:use-module (gnu packages libunwind)
101 #:use-module (gnu packages libusb)
102 #:use-module (gnu packages linux)
103 #:use-module (gnu packages lua)
104 #:use-module (gnu packages man)
105 #:use-module (gnu packages mcrypt)
106 #:use-module (gnu packages mpi)
107 #:use-module (gnu packages ncurses)
108 #:use-module (gnu packages openldap)
109 #:use-module (gnu packages patchutils)
110 #:use-module (gnu packages pciutils)
111 #:use-module (gnu packages pcre)
112 #:use-module (gnu packages perl)
113 #:use-module (gnu packages perl-check)
114 #:use-module (gnu packages pkg-config)
115 #:use-module (gnu packages popt)
116 #:use-module (gnu packages python)
117 #:use-module (gnu packages python-crypto)
118 #:use-module (gnu packages python-web)
119 #:use-module (gnu packages python-xyz)
120 #:use-module (gnu packages qt)
121 #:use-module (gnu packages readline)
122 #:use-module (gnu packages sphinx)
123 #:use-module (gnu packages tcl)
124 #:use-module (gnu packages terminals)
125 #:use-module (gnu packages texinfo)
126 #:use-module (gnu packages tls)
127 #:use-module (gnu packages version-control)
128 #:use-module (gnu packages web)
129 #:use-module (gnu packages xdisorg)
130 #:use-module (gnu packages xml)
131 #:use-module (gnu packages xorg))
133 (define-public ktsuss
142 (url "https://github.com/nomius/ktsuss.git")
145 (base32 "0q9931f9hp47v1n8scli4bdg2rkjpf5jf8v7jj2gdn83aia1r2hz"))
146 (file-name (git-file-name name version))))
147 (build-system glib-or-gtk-build-system)
150 (list "--enable-sudo=yes")
152 (modify-phases %standard-phases
153 (add-after 'unpack 'patch-sudo-path
154 (lambda* (#:key inputs #:allow-other-keys)
155 (substitute* "configure.ac"
156 (("sudopath=`which sudo 2>/dev/null`")
157 (string-append "sudopath="
158 (string-append (assoc-ref inputs "sudo")
162 `(("autoconf" ,autoconf)
164 ("automake" ,automake)
166 ("pkg-config" ,pkg-config)))
171 (synopsis "Graphical front end for @command{su}")
173 "Ktsuss stands for ``Keep the @command{su} simple, stupid''.
174 It is a graphical version of @command{su} written in C and GTK+ 2, with
175 simplicity in mind.")
176 (home-page "https://github.com/nomius/ktsuss")
177 (license license:bsd-3)))
186 (uri (string-append "https://github.com/aide/aide/releases/download/v"
187 version "/aide-" version ".tar.gz"))
189 (base32 "15xp47sz7kk1ciffw3f5xw2jg2mb2lqrbr3q6p4bkbz5dap9iy8p"))))
190 (build-system gnu-build-system)
195 `(("libgcrypt" ,libgcrypt)
196 ("libgpg-error" ,libgpg-error)
197 ("libmhash" ,libmhash)
198 ("pcre:static" ,pcre "static")
200 ("zlib:static" ,zlib "static")
202 (synopsis "File and directory integrity checker")
204 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
205 integrity checker. It creates a database from the regular expression rules
206 that it finds from its configuration files. Once this database is initialized
207 it can be used to verify the integrity of the files. It has several message
208 digest algorithms that are used to check the integrity of files. All of the
209 usual file attributes can be checked for inconsistencies.")
210 (home-page "https://aide.github.io/")
211 (license license:gpl2+)))
213 (define-public progress
221 (url "https://github.com/Xfennec/progress.git")
222 (commit (string-append "v" version))))
224 (base32 "1lk2v4b767klib93an4g3f7z5qrv9kdk9jf7545vw1immc4kamrl"))
225 (file-name (git-file-name name version))))
226 (build-system gnu-build-system)
228 `(("pkg-config" ,pkg-config)
231 `(("ncurses" ,ncurses)))
233 `(#:tests? #f ; no test suite
234 #:make-flags (list "CC=gcc"
235 (string-append "PREFIX=" (assoc-ref %outputs "out")))
237 (modify-phases %standard-phases
238 (delete 'configure)))) ; no configure script
239 (home-page "https://github.com/Xfennec/progress")
240 (synopsis "Program to view the progress of the coreutils commands")
241 (description "A program that looks for coreutils basic commands (cp, mv,
242 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
243 the percentage of copied data. It can also show estimated time and throughput,
244 and provides a \"top-like\" mode (monitoring).")
245 (license license:gpl3+)))
247 (define-public shepherd
253 (uri (string-append "mirror://gnu/shepherd/shepherd-"
257 "02lbc8z5gd8v8wfi4yh1zww8mk03w0zcwnmk4l4p3vpjlvlb63ll"))))
258 (build-system gnu-build-system)
260 '(#:configure-flags '("--localstatedir=/var")))
262 `(("pkg-config" ,pkg-config)
264 ;; This is the Guile we use as a cross-compiler...
265 ("guile" ,guile-2.2.7)))
267 ;; ... and this is the one that appears in shebangs when cross-compiling.
268 `(("guile" ,guile-2.2.7) ;for <https://bugs.gnu.org/37757>
270 ;; The 'shepherd' command uses Readline when used interactively. It's
271 ;; an unusual use case though, so we don't propagate it.
272 ("guile-readline" ,guile-readline)))
273 (synopsis "System service manager")
275 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
276 the execution of system services, replacing similar functionality found in
277 typical init systems. It provides dependency-handling through a convenient
278 interface and is based on GNU Guile.")
279 (license license:gpl3+)
280 (home-page "https://www.gnu.org/software/shepherd/")))
282 (define-public guile3.0-shepherd
285 (name "guile3.0-shepherd")
287 `(("pkg-config" ,pkg-config)
288 ("guile" ,guile-next)))
290 `(("guile" ,guile-next)))))
292 (define-public guile2.0-shepherd
295 (name "guile2.0-shepherd")
297 `(("pkg-config" ,pkg-config)
298 ("guile" ,guile-2.0)))
300 `(("guile" ,guile-2.0)))))
302 (define-public cloud-utils
310 "https://launchpad.net/cloud-utils/trunk/"
311 version "/+download/cloud-utils-" version ".tar.gz"))
314 "07fl3dlqwdzw4xx7mcxhpkks6dnmaxha80zgs9f6wmibgzni8z0r"))))
315 (build-system gnu-build-system)
318 (let ((out (assoc-ref %outputs "out")))
319 (list (string-append "BINDIR=" out "/bin")
320 (string-append "MANDIR=" out "/share/man/man1")
321 (string-append "DOCDIR=" out "/share/doc")))
323 (modify-phases %standard-phases
326 (add-after 'install 'wrap
327 (lambda* (#:key outputs inputs #:allow-other-keys)
328 (let ((growpart (string-append (assoc-ref outputs "out")
330 (wrap-program growpart
331 `("PATH" ":" prefix (,(dirname (which "sfdisk"))
332 ,(dirname (which "readlink"))))))
336 ("util-linux" ,util-linux))) ; contains sfdisk for growpart
337 (home-page "https://launchpad.net/cloud-utils")
338 (synopsis "Set of utilities for cloud computing environments")
340 "This package contains a set of utilities for cloud computing
344 @item @command{cloud-localds} Create a disk for cloud-init to utilize nocloud
345 @item @command{cloud-publish-image} Wrapper for cloud image publishing
346 @item @command{cloud-publish-tarball} Wrapper for publishing cloud tarballs
347 @item @command{cloud-publish-ubuntu} Import a Ubuntu cloud image
348 @item @command{ec2metadata} Query and display @acronym{EC2,Amazon Elastic
349 Compute Cloud} metadata
350 @item @command{growpart} Grow a partition to fill the device
351 @item @command{mount-image-callback} Mount a file and run a command
352 @item @command{resize-part-image} Resize a partition image to a new size
353 @item @command{ubuntu-cloudimg-query} Get the latest Ubuntu
354 @acronym{AMI,Amazon Machine Image}
355 @item @command{ubuntu-ec2-run} Run a @acronym{EC2,Amazon Elastic Compute
356 Cloud} instance using Ubuntu
357 @item @command{vcs-run} Obtain a repository, and run a command
358 @item @command{write-mime-multipart} Handle multipart
359 @acronym{MIME,Multipurpose Internet Mail Extensions} messages
361 (license license:gpl3)))
363 (define-public daemontools
370 "https://cr.yp.to/daemontools/"
371 "daemontools-" version ".tar.gz"))
374 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
375 (build-system gnu-build-system)
377 `(#:tests? #f ;; No tests as far as I can tell.
379 (modify-phases %standard-phases
380 (add-after 'unpack 'chdir
382 (chdir ,(string-append "daemontools-" version))
385 (add-before 'build 'patch
387 (substitute* "src/error.h"
388 (("extern int errno;")
389 "#include <errno.h>"))
393 (invoke "package/compile")))
395 (lambda* (#:key outputs #:allow-other-keys)
396 (let* ((out (assoc-ref outputs "out"))
397 (bin (string-append out "/bin")))
398 (for-each (lambda (file)
399 (install-file file bin))
400 (find-files "command")))
402 (synopsis "Tools for managing UNIX style services")
404 "@code{daemontools} is a collection of tools for managing UNIX
406 (license license:public-domain)
407 (home-page "https://cr.yp.to/daemontools.html")))
417 "https://projects.gw-computing.net/attachments/download/615/dfc-"
421 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
422 (build-system cmake-build-system)
423 (arguments '(#:tests? #f)) ; There are no tests.
424 (native-inputs `(("gettext" ,gettext-minimal)))
425 (home-page "https://projects.gw-computing.net/projects/dfc")
426 (synopsis "Display file system space usage using graphs and colors")
428 "dfc (df color) is a modern version of df. It uses colors, draws pretty
429 graphs and can export its output to different formats.")
430 (license license:bsd-3)))
438 (uri (string-append "http://hisham.hm/htop/releases/"
439 version "/htop-" version ".tar.gz"))
442 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
443 (build-system gnu-build-system)
445 `(("ncurses" ,ncurses)))
447 `(("python" ,python-wrapper))) ;for scripts/MakeHeader.py
448 (home-page "https://hisham.hm/htop/")
449 (synopsis "Interactive process viewer")
451 "This is htop, an interactive process viewer. It is a text-mode
452 application (for console or X terminals) and requires ncurses.")
453 (license license:gpl2)))
462 (uri (string-append "mirror://gnu/pies/pies-"
466 "14jb4pa4zs26d5j2skxbaypnwhsx2lw8jgj1irrgs03c2dnf7gp6"))))
467 (build-system gnu-build-system)
469 '(#:phases (modify-phases %standard-phases
470 (add-before 'build 'patch-/bin/sh
471 (lambda* (#:key inputs #:allow-other-keys)
472 ;; Use the right shell when executing user-provided
474 (let ((bash (assoc-ref inputs "bash")))
475 (substitute* '("src/progman.c" "src/comp.c")
477 (string-append "\"" bash "/bin/sh\"")))
479 (home-page "https://www.gnu.org.ua/software/pies/")
480 (synopsis "Program invocation and execution supervisor")
482 "GNU pies is a program that supervises the invocation and execution of
483 other programs. It reads the list of programs to be started from its
484 configuration file, executes them, and then monitors their status,
485 re-executing them as necessary.")
486 (license license:gpl3+)))
488 (define-public inetutils
494 (uri (string-append "mirror://gnu/inetutils/inetutils-"
498 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
499 (build-system gnu-build-system)
501 `(#:configure-flags '("--localstatedir=/var"
503 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
504 ;; cross-compiling (by default it does not.)
505 ,@(if (%current-target-system)
506 '("--with-path-procnet-dev=/proc/net/dev")
508 ;; On some systems, 'libls.sh' may fail with an error such as:
509 ;; "Failed to tell switch -a apart from -A".
510 #:parallel-tests? #f))
511 (inputs `(("ncurses" ,ncurses)
512 ("readline" ,readline))) ;for 'ftp'
513 (native-inputs `(("netstat" ,net-tools))) ;for tests
514 (home-page "https://www.gnu.org/software/inetutils/")
515 (synopsis "Basic networking utilities")
517 "Inetutils is a collection of common network programs, such as an ftp
518 client and server, a telnet client and server, an rsh client and server, and
520 (license license:gpl3+)))
522 (define-public shadow
529 "https://github.com/shadow-maint/shadow/releases/"
530 "download/" version "/shadow-" version ".tar.xz"))
533 "0qmfq50sdhz6xilgxvinblll8j2iqfl7hwk45bq744y4plq4dbd3"))))
534 (build-system gnu-build-system)
536 `(;; Assume System V `setpgrp (void)', which is the default on GNU
537 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
539 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
542 (modify-phases %standard-phases
543 (add-before 'build 'set-nscd-file-name
544 (lambda* (#:key inputs #:allow-other-keys)
545 ;; Use the right file name for nscd.
546 (let ((libc (assoc-ref inputs
547 ,(if (%current-target-system)
550 (substitute* "lib/nscd.c"
552 (string-append libc "/sbin/nscd")))
554 (add-after 'install 'remove-groups
555 (lambda* (#:key outputs #:allow-other-keys)
556 ;; Remove `groups', which is already provided by Coreutils.
557 (let* ((out (assoc-ref outputs "out"))
558 (bin (string-append out "/bin"))
559 (man (string-append out "/share/man")))
560 (delete-file (string-append bin "/groups"))
561 (for-each delete-file (find-files man "^groups\\."))
564 (inputs (if (string-contains (or (%current-target-system)
567 `(("linux-pam" ,linux-pam))
569 (home-page "https://github.com/shadow-maint/shadow")
570 (synopsis "Authentication-related tools such as passwd, su, and login")
572 "Shadow provides a number of authentication-related tools, including:
573 login, passwd, su, groupadd, and useradd.")
575 ;; The `vipw' program is GPLv2+.
576 ;; libmisc/salt.c is public domain.
577 (license license:bsd-3)))
579 (define-public mingetty
585 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
586 version "/mingetty-" version ".tar.gz"))
589 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
590 (build-system gnu-build-system)
593 (modify-phases %standard-phases
595 (lambda* (#:key inputs outputs #:allow-other-keys)
596 (let* ((out (assoc-ref outputs "out"))
597 (man8 (string-append out "/share/man/man8"))
598 (sbin (string-append out "/sbin"))
599 (shadow (assoc-ref inputs "shadow"))
600 (login (string-append shadow "/bin/login")))
601 (substitute* "Makefile"
603 (string-append "SBINDIR = " out
606 (string-append "MANDIR = " out
607 "/share/man/man8\n")))
609 ;; Pick the right 'login' by default.
610 (substitute* "mingetty.c"
612 (string-append "\"" login "\"")))
617 #:tests? #f)) ; no tests
618 (inputs `(("shadow" ,shadow)))
620 (home-page "https://sourceforge.net/projects/mingetty")
621 (synopsis "Getty for the text console")
623 "Small console getty that is started on the Linux text console,
624 asks for a login name and then transfers over to @code{login}. It is extended
625 to allow automatic login and starting any app.")
626 (license license:gpl2+)))
628 (define-public net-base
635 "mirror://debian/pool/main/n/netbase/netbase_"
639 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
640 (build-system trivial-build-system)
642 `(#:modules ((guix build utils))
644 (use-modules (guix build utils)
647 (let* ((source (assoc-ref %build-inputs "source"))
648 (tar (assoc-ref %build-inputs "tar"))
649 (xz (assoc-ref %build-inputs "xz"))
650 (output (assoc-ref %outputs "out"))
651 (etc (string-append output "/etc")))
652 (setenv "PATH" (string-append xz "/bin"))
653 (invoke (string-append tar "/bin/tar") "xvf"
655 (chdir ,(string-append "netbase-" version))
658 '("etc-services" "etc-protocols" "etc-rpc")
659 (map (cut string-append etc "/" <>)
660 '("services" "protocols" "rpc")))
662 (native-inputs `(("tar" ,tar)
664 (synopsis "IANA protocol, port, and RPC number assignments")
666 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
667 files, which contain information about the IANA-assigned port, protocol, and
669 (home-page "https://packages.debian.org/sid/netbase")
670 (license license:gpl2)))
672 (define-public netcat
678 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
679 "/netcat-" version ".tar.bz2"))
682 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
683 (build-system gnu-build-system)
686 ;; By default, man and info pages are put in PREFIX/{man,info},
687 ;; but we want them in PREFIX/share/{man,info}.
688 (let ((out (assoc-ref %outputs "out")))
689 (list (string-append "--mandir=" out "/share/man")
690 (string-append "--infodir=" out "/share/info")))))
691 (home-page "http://netcat.sourceforge.net")
692 (synopsis "Read and write data over TCP/IP")
694 "Netcat is a featured networking utility which reads and writes data
695 across network connections, using the TCP/IP protocol. It is designed to be a
696 reliable \"back-end\" tool that can be used directly or easily driven by other
697 programs and scripts. At the same time, it is a feature-rich network debugging
698 and exploration tool, since it can create almost any kind of connection you
699 would need and has several interesting built-in capabilities.")
700 (license license:gpl2+)))
702 (define-public netcat-openbsd
704 (name "netcat-openbsd")
709 (url "https://salsa.debian.org/debian/netcat-openbsd.git")
710 (commit (string-append "debian/" version))))
711 (file-name (git-file-name name version))
714 "08r3mmck3s5pbvwyq19wp5g8jqcxza3cm8nkc6jm7rqn4jdydc4z"))))
715 (build-system gnu-build-system)
717 `(#:tests? #f ; no test suite
720 (string-append "CFLAGS=-I" (assoc-ref %build-inputs "libbsd") "/include")
723 (modify-phases %standard-phases
725 (add-before 'build 'patch
727 (setenv "QUILT_PATCHES" "debian/patches")
728 (invoke "quilt" "push" "-a")
731 (lambda* (#:key outputs #:allow-other-keys)
732 (let* ((out (assoc-ref outputs "out"))
733 (bin (string-append out "/bin"))
734 (man (string-append out "/share/man/man1"))
735 (doc (string-append out "/share/doc/netcat-openbsd-" ,version))
736 (examples (string-append doc "/examples")))
737 (install-file "nc" bin)
738 (install-file "nc.1" man)
739 (install-file "debian/copyright" doc)
740 (copy-recursively "debian/examples" examples)
742 (inputs `(("libbsd" ,libbsd)))
743 (native-inputs `(("pkg-config" ,pkg-config)
745 (home-page "https://packages.debian.org/sid/netcat-openbsd")
746 (synopsis "Read and write data over TCP/IP")
748 "Netcat is a simple Unix utility which reads and writes data across
749 network connections using TCP or UDP protocol. It is designed to be a reliable
750 \"back-end\" tool that can be used directly or easily driven by other programs
751 and scripts. At the same time it is a feature-rich network debugging and
752 exploration tool, since it can create almost any kind of connection you would
753 need and has several interesting built-in capabilities.
755 This package contains the OpenBSD rewrite of netcat, including support for
756 IPv6, proxies, and Unix sockets.")
757 (license (list license:bsd-3
758 license:bsd-2)))) ; atomicio.*, socks.c
760 (define-public sipcalc
767 (uri (string-append "http://www.routemeister.net/projects"
768 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
771 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
772 (build-system gnu-build-system)
773 (home-page "https://www.routemeister.net/projects/sipcalc/")
774 (synopsis "Command-line IP subnet calculator")
776 "Sipcalc is an advanced command-line IP subnet calculator. It can take
777 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
778 of information about a given subnet.
785 @item Retrieving of address information from interfaces.
786 @item Classfull and CIDR output.
787 @item Multiple address and netmask input and output formats (dotted quad, hex,
789 @item Output of broadcast address, network class, Cisco wildcard,
790 hosts/range, network range.
791 @item The ability to split a network based on a smaller netmask, now also with
792 recursive runs on the generated subnets. (also IPv6)
796 @item Compressed and expanded input and output addresses.
797 @item Standard IPv6 network output.
798 @item v4 in v6 output.
799 @item Reverse DNS address generation.
802 (license license:bsd-3)))
810 (uri (string-append "mirror://gnu/alive/alive-"
814 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
815 (build-system gnu-build-system)
816 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
817 (inputs `(("guile" ,guile-2.0)
818 ("inetutils" ,inetutils)))
819 (home-page "https://www.gnu.org/software/alive/")
820 (synopsis "Autologin and keep-alive daemon")
822 "GNU Alive sends periodic pings to a server, generally to keep a
824 (license license:gpl3+)))
826 (define-public isc-dhcp
827 (let* ((bind-major-version "9")
828 (bind-minor-version "11")
829 (bind-patch-version "18")
830 (bind-release-type "") ; for patch release, use "-P"
831 (bind-release-version "") ; for patch release, e.g. "6"
832 (bind-version (string-append bind-major-version
838 bind-release-version)))
844 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
845 version "/dhcp-" version ".tar.gz"))
848 "08a5003zdxgl41b29zjkxa92h2i40zyjgxg0npvnhpkfl5jcsz0s"))))
849 (build-system gnu-build-system)
851 `(#:parallel-build? #f
852 #:configure-flags '("--with-randomdev=/dev/random")
854 (modify-phases %standard-phases
855 (add-after 'unpack 'replace-bundled-bind
856 (lambda* (#:key inputs native-inputs #:allow-other-keys)
857 (delete-file "bind/bind.tar.gz")
858 (copy-file (assoc-ref inputs "bind-source-tarball")
860 (chmod "bind/bind.tar.gz" #o644)
861 (substitute* "bind/version.tmp"
863 (format #f "MAJORVER=~a\n" ,bind-major-version))
865 (format #f "MINORVER=~a\n" ,bind-minor-version))
867 (format #f "PATCHVER=~a\n" ,bind-patch-version))
869 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
871 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
873 ,@(if (%current-target-system)
874 '((add-before 'configure 'fix-bind-cross-compilation
876 (substitute* "configure"
878 "--host=$host_alias"))
879 ;; BIND needs a native compiler because the DHCP
880 ;; build system uses the built 'gen' executable.
881 (setenv "BUILD_CC" "gcc")
884 (add-after 'configure 'post-configure
885 (lambda* (#:key outputs #:allow-other-keys)
886 ;; Point to the right client script, which will be
887 ;; installed in a later phase.
888 (substitute* "includes/dhcpd.h"
889 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
890 (let ((out (assoc-ref outputs "out")))
891 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
892 out "/libexec/dhclient-script"
895 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
896 ;; we must patch shebangs in there and make sure the right
898 (with-directory-excursion "bind"
899 (substitute* "Makefile"
901 (let ((sh (which "sh")))
902 (string-append "./configure CONFIG_SHELL="
903 sh " SHELL=" sh " "))))
905 (let ((bind-directory (string-append "bind-" ,bind-version)))
906 (invoke "tar" "xf" "bind.tar.gz")
907 (for-each patch-shebang
908 (find-files bind-directory ".*"))
909 (substitute* (string-append bind-directory "/configure")
912 (invoke "tar" "cf" "bind.tar.gz"
914 ;; avoid non-determinism in the archive
918 "--group=root:0")))))
919 (add-after 'install 'post-install
920 (lambda* (#:key inputs outputs #:allow-other-keys)
921 ;; Install the dhclient script for GNU/Linux and make sure
922 ;; if finds all the programs it needs.
923 (let* ((out (assoc-ref outputs "out"))
924 (libexec (string-append out "/libexec"))
925 (coreutils (assoc-ref inputs "coreutils"))
926 (inetutils (assoc-ref inputs "inetutils"))
927 (net-tools (assoc-ref inputs "net-tools"))
928 (sed (assoc-ref inputs "sed")))
929 (substitute* "client/scripts/linux"
931 (string-append (assoc-ref inputs "iproute")
935 (copy-file "client/scripts/linux"
936 (string-append libexec "/dhclient-script"))
939 (string-append libexec "/dhclient-script")
942 (string-append dir "/bin:"
944 (list inetutils net-tools coreutils sed))))
951 (inputs `(("inetutils" ,inetutils)
952 ("net-tools" ,net-tools)
955 ;; isc-dhcp bundles a copy of BIND, which has proved vulnerable
956 ;; in the past. Use a BIND-VERSION of our choosing instead.
957 ("bind-source-tarball"
960 (uri (string-append "https://ftp.isc.org/isc/bind9/"
962 "/bind-" bind-version ".tar.gz"))
965 "0vws0zzb39mkphj4hhjrgfj9dzw951lc4pfa6pqg5ll5ma51mbsr"))))
967 ;; When cross-compiling, we need the cross Coreutils and sed.
968 ;; Otherwise just use those from %FINAL-INPUTS.
969 ,@(if (%current-target-system)
970 `(("coreutils" ,coreutils)
974 (home-page "https://www.isc.org/products/DHCP/")
975 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
977 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
978 reference implementation of all aspects of DHCP, through a suite of DHCP
979 tools: server, client, and relay agent.")
980 (license license:mpl2.0)
981 (properties '((cpe-name . "dhcp"))))))
983 (define-public libpcap
989 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
993 "153h1378diqyc27jjgz6gg5nxmb4ddk006d9xg69nqavgiikflk3"))))
994 (build-system gnu-build-system)
999 ;; There are some tests in testprogs/, but no automated test suite.
1001 (home-page "https://www.tcpdump.org")
1002 (synopsis "Network packet capture library")
1004 "libpcap is an interface for user-level packet capture. It provides a
1005 portable framework for low-level network monitoring. Applications include
1006 network statistics collection, security monitoring, network debugging, etc.")
1007 (license (list license:bsd-4 ; fad-*.c and several other source files
1008 license:bsd-3 ; pcap/, sockutils.* & others
1009 license:bsd-2)))) ; the rest
1011 (define-public tcpdump
1017 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
1021 "0434vdcnbqaia672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c"))))
1022 (build-system gnu-build-system)
1023 (inputs `(("libpcap" ,libpcap)
1024 ("openssl" ,openssl)))
1025 (native-inputs `(("perl" ,perl))) ; for tests
1026 (home-page "https://www.tcpdump.org/")
1027 (synopsis "Network packet analyzer")
1029 "Tcpdump is a command-line tool to analyze network traffic passing
1030 through the network interface controller.")
1031 (license license:bsd-3)))
1033 (define-public jnettop
1040 (string-append "https://web.archive.org/web/20161221100811/"
1041 "http://jnettop.kubs.info/dist/jnettop-"
1045 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
1046 (build-system gnu-build-system)
1048 `(("pkg-config" ,pkg-config)))
1051 ("ncurses" ,ncurses)
1052 ("libpcap" ,libpcap)))
1054 "https://web.archive.org/web/20160703195221/http://jnettop.kubs.info/wiki/")
1055 (synopsis "Visualize network traffic by bandwidth use")
1057 "Jnettop is a traffic visualiser, which captures traffic going
1058 through the host it is running from and displays streams sorted
1059 by bandwidth they use.")
1060 (license license:gpl2+)))
1062 (define-public clusterssh
1068 (uri (string-append "mirror://sourceforge/clusterssh/"
1069 "2.%20ClusterSSH%20Series%204/"
1070 "App-ClusterSSH-v" version ".tar.gz"))
1073 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
1074 (build-system perl-build-system)
1077 (modify-phases %standard-phases
1078 (add-after 'unpack 'refer-to-inputs
1079 (lambda* (#:key inputs #:allow-other-keys)
1080 (substitute* (list "lib/App/ClusterSSH/Config.pm"
1085 (add-before 'check 'delete-failing-tests
1087 ;; This checks whether all code is nicely formatted. The above
1088 ;; ‘refer-to-inputs’ phase breaks this pedantry, so disable it.
1089 (delete-file "t/perltidy.t")
1090 ;; Update the manifest so t/manifest.t happily passes.
1091 (substitute* "MANIFEST"
1092 (("t/perltidy.t\n") ""))
1094 (add-after 'install 'augment-library-path
1095 (lambda* (#:key inputs outputs #:allow-other-keys)
1096 (let* ((out (assoc-ref outputs "out"))
1097 (bin (string-append out "/bin")))
1098 (with-directory-excursion bin
1101 (wrap-program program
1102 `("PERL5LIB" ":" prefix
1103 ,(map (lambda (file-name)
1104 (string-append file-name
1105 "/lib/perl5/site_perl"))
1107 (map (lambda (input)
1108 (assoc-ref inputs input))
1109 ;; These may be propagated and hence
1110 ;; not explicitly listed as inputs.
1111 (list "perl-class-data-inheritable"
1112 "perl-devel-stacktrace"
1113 "perl-exception-class"
1117 "perl-x11-protocol-other")))))))
1118 (find-files "." ".*")))
1121 `(("perl-cpan-changes" ,perl-cpan-changes)
1122 ("perl-file-slurp" ,perl-file-slurp)
1123 ("perl-file-which" ,perl-file-which)
1124 ("perl-module-build" ,perl-module-build)
1125 ("perl-readonly" ,perl-readonly)
1126 ("perl-test-differences" ,perl-test-differences)
1127 ("perl-test-distmanifest" ,perl-test-distmanifest)
1128 ("perl-test-perltidy" ,perl-test-perltidy)
1129 ("perl-test-pod" ,perl-test-pod)
1130 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
1131 ("perl-test-trap" ,perl-test-trap)
1132 ("perltidy" ,perltidy)))
1134 `(("perl-exception-class" ,perl-exception-class)
1135 ("perl-sort-naturally" ,perl-sort-naturally)
1136 ("perl-tk" ,perl-tk)
1137 ("perl-try-tiny" ,perl-try-tiny)
1138 ("perl-x11-protocol" ,perl-x11-protocol)
1139 ("perl-x11-protocol-other" ,perl-x11-protocol-other)
1141 ;; The clusterssh.sourceforge.net address requires login to view
1142 (home-page "https://sourceforge.net/projects/clusterssh/")
1143 (synopsis "Secure concurrent multi-server terminal control")
1145 "ClusterSSH controls a number of xterm windows via a single graphical
1146 console window to allow commands to be interactively run on multiple servers
1147 over ssh connections.")
1148 (license license:gpl2+)))
1150 (define-public rename
1157 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
1161 "137m8s06r4n038ivlr5r1d9a7q9l7shmwpvnyx053r9ndhvbnkh5"))))
1162 (build-system perl-build-system)
1165 (modify-phases %standard-phases
1166 (add-after 'install 'find-itself
1167 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
1168 (lambda* (#:key outputs #:allow-other-keys)
1169 (let* ((out (assoc-ref outputs "out"))
1170 (bin (string-append out "/bin")))
1171 (with-directory-excursion bin
1174 (wrap-program program
1175 `("PERL5LIB" ":" prefix
1176 (,(string-append out "/lib/perl5/site_perl")))))
1177 (find-files "." ".*")))
1180 `(("perl-module-build" ,perl-module-build)
1181 ("perl-test-pod" ,perl-test-pod)
1182 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1183 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
1184 (synopsis "Perl extension for renaming multiple files")
1186 "This package provides a Perl interface (@code{Perl::Rename}) as well
1187 as a command-line utility (@command{rename}) that can rename multiple files
1188 at once based on a Perl regular expression.")
1189 (license license:perl-license)))
1191 (define-public rottlog
1197 (uri (string-append "mirror://gnu/rottlog/rottlog-"
1201 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
1202 (modules '((guix build utils)))
1205 (substitute* "Makefile.in"
1206 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
1207 ;; Don't try to chown root.
1209 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
1210 ;; Don't attempt to create /var/lib/rottlog.
1213 (build-system gnu-build-system)
1215 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
1216 "--localstatedir=/var")
1218 ;; Install example config files in OUT/etc.
1219 #:make-flags (list (string-append "ROTT_ETCDIR="
1220 (assoc-ref %outputs "out")
1223 #:phases (modify-phases %standard-phases
1224 (add-after 'unpack 'patch-paths
1226 (substitute* "rc/rc"
1227 (("/usr/sbin/sendmail") "sendmail"))
1229 (add-after 'build 'set-packdir
1231 ;; Set a default location for archived logs.
1232 (substitute* "rc/rc"
1234 "packdir=\"/var/log\""))
1236 (add-before 'install 'tweak-rc-weekly
1238 (substitute* "rc/weekly"
1242 ;; The file is called 'syslog.pid' (no 'd').
1245 (add-after 'install 'install-info
1247 (invoke "make" "install-info"))))))
1248 (native-inputs `(("texinfo" ,texinfo)
1249 ("util-linux" ,util-linux))) ; for 'cal'
1250 (home-page "https://www.gnu.org/software/rottlog/")
1251 (synopsis "Log rotation and management")
1253 "GNU Rot[t]log is a program for managing log files. It is used to
1254 automatically rotate out log files when they have reached a given size or
1255 according to a given schedule. It can also be used to automatically compress
1256 and archive such logs. Rot[t]log will mail reports of its activity to the
1257 system administrator.")
1258 (license license:gpl3+)))
1263 (version "1.8.31p1")
1267 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
1269 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1270 version ".tar.gz")))
1273 "1n0mdmgcs92af34xxsnsh1arrngymhdmwd9srjgjbk65q7xzsg67"))
1274 (modules '((guix build utils)))
1277 (delete-file-recursively "lib/zlib")
1279 (build-system gnu-build-system)
1282 (list "--with-logpath=/var/log/sudo.log"
1283 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1284 "--with-vardir=/var/db/sudo"
1285 "--with-iologdir=/var/log/sudo-io"
1287 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1289 (string-append "CPPFLAGS=-D_PATH_MV='\""
1290 (assoc-ref %build-inputs "coreutils")
1293 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1294 #:parallel-build? #f
1297 (modify-phases %standard-phases
1298 (add-before 'configure 'pre-configure
1300 (substitute* "src/sudo_usage.h.in"
1301 ;; Do not capture 'configure' arguments since we would
1302 ;; unduly retain references, and also because the
1303 ;; CPPFLAGS above would close the string literal
1305 (("@CONFIGURE_ARGS@") "\"\""))
1306 (substitute* (find-files "." "Makefile\\.in")
1307 (("-o [[:graph:]]+ -g [[:graph:]]+")
1308 ;; Allow installation as non-root.
1310 (("^install: (.*)install-sudoers(.*)" _ before after)
1311 ;; Don't try to create /etc/sudoers.
1312 (string-append "install: " before after "\n"))
1313 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1314 ;; Don't try to create /run/sudo.
1316 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1317 ;; Don't try to create /var/db/sudo.
1320 ;; ‘Checking existing [/etc/]sudoers file for syntax errors’ is
1321 ;; not the task of the build system, and fails.
1322 (substitute* "plugins/sudoers/Makefile.in"
1323 (("^pre-install:" match)
1324 (string-append match "\ndisabled-" match)))
1327 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1328 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1331 `(("groff" ,groff)))
1333 `(("linux-pam" ,linux-pam)
1335 ("coreutils" ,coreutils)))
1336 (home-page "https://www.sudo.ws/")
1337 (synopsis "Run commands as root")
1339 "Sudo (su \"do\") allows a system administrator to delegate authority to
1340 give certain users (or groups of users) the ability to run some (or all)
1341 commands as root or another user while providing an audit trail of the
1342 commands and their arguments.")
1344 ;; See <http://www.sudo.ws/sudo/license.html>.
1345 (license license:x11)))
1347 (define-public wpa-supplicant-minimal
1349 (name "wpa-supplicant-minimal")
1354 "https://w1.fi/releases/wpa_supplicant-"
1358 "05qzak1mssnxcgdrafifxh9w86a4ha69qabkg4bsigk499xyxggw"))
1359 (modules '((guix build utils)))
1362 (substitute* "wpa_supplicant/defconfig"
1363 ;; Disable D-Bus to save ~14MiB on the closure size.
1364 (("^CONFIG_CTRL_IFACE_DBUS" line _)
1365 (string-append "#" line)))
1367 (build-system gnu-build-system)
1370 (modify-phases %standard-phases
1372 (lambda* (#:key outputs #:allow-other-keys)
1373 (chdir "wpa_supplicant")
1374 (copy-file "defconfig" ".config")
1375 (let ((port (open-file ".config" "al")))
1377 CONFIG_DEBUG_SYSLOG=y
1381 CONFIG_DRIVER_NL80211=y
1382 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1384 CONFIG_READLINE=y\n" port)
1387 (add-after 'install 'install-documentation
1388 (lambda* (#:key outputs #:allow-other-keys)
1389 (let* ((out (assoc-ref outputs "out"))
1390 (doc (string-append out "/share/doc/wpa-supplicant"))
1391 (man (string-append out "/share/man"))
1392 (man5 (string-append man "/man5"))
1393 (man8 (string-append man "/man8")))
1394 (define (copy-man-page target)
1396 (install-file file target)))
1398 (mkdir-p man5) (mkdir man8)
1399 (for-each (copy-man-page man5)
1400 (find-files "doc/docbook" "\\.5"))
1401 (for-each (copy-man-page man8)
1402 (find-files "doc/docbook" "\\.8"))
1404 ;; wpa_supplicant.conf(5) does not explain all configuration
1405 ;; options but refers to the example config file, so install it
1406 ;; along with READMEs.
1407 (for-each (lambda (file)
1408 (install-file file doc))
1409 '("README" "README-DPP" "README-HS20"
1410 "README-P2P" "README-WPS"
1411 "wpa_supplicant.conf"))
1414 #:make-flags (list "CC=gcc"
1415 (string-append "BINDIR=" (assoc-ref %outputs "out")
1417 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1421 `(("readline" ,readline)
1423 ("openssl" ,openssl)))
1425 `(("pkg-config" ,pkg-config)))
1426 (home-page "https://w1.fi/wpa_supplicant/")
1427 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1429 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1430 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1431 the client stations. It implements key negotiation with a WPA Authenticator
1432 and it controls the roaming and IEEE 802.11 authentication/association of the
1435 This package provides the @code{wpa_supplicant} daemon and the @code{wpa_cli}
1438 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1439 (license license:bsd-3)
1441 (properties `((cpe-name . "wpa_supplicant")))))
1443 (define-public wpa-supplicant
1444 (package (inherit wpa-supplicant-minimal)
1445 (name "wpa-supplicant")
1446 (inputs `(("dbus" ,dbus)
1447 ,@(package-inputs wpa-supplicant-minimal)))
1449 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1451 `(modify-phases ,phases
1452 (add-after 'configure 'configure-for-dbus
1454 (let ((port (open-file ".config" "al")))
1456 CONFIG_CTRL_IFACE_DBUS_NEW=y
1457 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1460 (add-after 'install-documentation 'install-dbus-conf
1461 (lambda* (#:key outputs #:allow-other-keys)
1462 (let* ((out (assoc-ref outputs "out"))
1463 (dir (string-append out "/etc/dbus-1/system.d")))
1465 (copy-file "dbus/dbus-wpa_supplicant.conf"
1466 (string-append dir "/wpa_supplicant.conf")))
1469 (define-public wpa-supplicant-gui
1471 (inherit wpa-supplicant)
1472 (name "wpa-supplicant-gui")
1473 (inputs `(("qtbase" ,qtbase)
1475 ,@(package-inputs wpa-supplicant)))
1478 `(("imagemagick" ,imagemagick)
1479 ("inkscape" ,inkscape)
1480 ,@(package-native-inputs wpa-supplicant)))
1482 `(#:phases (modify-phases %standard-phases
1483 (add-after 'unpack 'chdir
1485 (chdir "wpa_supplicant/wpa_gui-qt4")
1490 (invoke "qmake" "wpa_gui.pro")
1491 (invoke "make" "-j" (number->string (parallel-job-count)))
1492 (invoke "make" "-C" "icons")))
1494 (lambda* (#:key inputs outputs #:allow-other-keys)
1495 (let ((out (assoc-ref outputs "out"))
1496 (qt '("qtbase" "qtsvg")))
1497 (install-file "wpa_gui" (string-append out "/bin"))
1498 (install-file "wpa_gui.desktop"
1499 (string-append out "/share/applications"))
1500 (copy-recursively "icons/hicolor"
1501 (string-append out "/share/icons/hicolor"))
1502 (wrap-program (string-append out "/bin/wpa_gui")
1503 `("QT_PLUGIN_PATH" ":" prefix
1504 ,(map (lambda (label)
1505 (string-append (assoc-ref inputs label)
1506 "/lib/qt5/plugins/"))
1509 (synopsis "Graphical user interface for WPA supplicant")))
1511 (define-public hostapd
1517 (uri (string-append "https://w1.fi/releases/hostapd-" version
1521 "1mrbvg4v7vm7mknf0n29mf88k3s4a4qj6r4d51wq8hmjj1m7s7c8"))))
1522 (build-system gnu-build-system)
1525 (modify-phases %standard-phases
1527 (lambda* (#:key outputs #:allow-other-keys)
1528 ;; This is mostly copied from 'wpa-supplicant' above.
1530 (copy-file "defconfig" ".config")
1531 (let ((port (open-file ".config" "al")))
1536 CONFIG_IEEE80211AC=y\n" port)
1539 (add-after 'install 'install-man-pages
1540 (lambda* (#:key outputs #:allow-other-keys)
1541 (let* ((out (assoc-ref outputs "out"))
1542 (man (string-append out "/share/man"))
1543 (man1 (string-append man "/man1"))
1544 (man8 (string-append man "/man8")))
1545 (define (copy-man-page target)
1547 (install-file file target)))
1549 (for-each (copy-man-page man1)
1550 (find-files "." "\\.1"))
1551 (for-each (copy-man-page man8)
1552 (find-files "." "\\.8"))
1555 #:make-flags (list "CC=gcc"
1556 (string-append "BINDIR=" (assoc-ref %outputs "out")
1558 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1561 (native-inputs `(("pkg-config" ,pkg-config)))
1563 ;; There's an optional dependency on SQLite.
1564 (inputs `(("openssl" ,openssl)
1566 (home-page "https://w1.fi/hostapd/")
1567 (synopsis "Daemon for Wi-Fi access points and authentication servers")
1569 "hostapd is a user-space daemon for WiFi access points and authentication
1570 servers. It implements IEEE 802.11 access point management, IEEE
1571 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS
1572 authentication server.")
1574 ;; Same license as wpa_supplicant.
1575 (license license:bsd-3)))
1577 (define-public wakelan
1584 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1588 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1589 (build-system gnu-build-system)
1592 (modify-phases %standard-phases
1594 (lambda* (#:key outputs #:allow-other-keys)
1595 (let ((out (assoc-ref outputs "out")))
1596 (mkdir-p (string-append out "/bin"))
1597 (mkdir-p (string-append out "/share/man/man1"))
1599 ;; It's an old configure script that doesn't understand
1600 ;; the extra options we pass.
1601 (setenv "CONFIG_SHELL" (which "bash"))
1602 (invoke "./configure"
1603 (string-append "--prefix=" out)
1604 (string-append "--mandir=" out
1607 (home-page "https://www.kernel.org") ; really, no home page
1608 (synopsis "Send a wake-on-LAN packet")
1610 "WakeLan broadcasts a properly formatted UDP packet across the local area
1611 network, which causes enabled computers to power on.")
1612 (license license:gpl2+)))
1614 (define-public dmidecode
1621 "mirror://savannah/dmidecode/dmidecode-"
1625 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1626 (build-system gnu-build-system)
1628 '(#:phases (modify-phases %standard-phases (delete 'configure))
1629 #:tests? #f ; no 'check' target
1630 #:make-flags (list (string-append "prefix="
1631 (assoc-ref %outputs "out")))))
1632 (home-page "https://www.nongnu.org/dmidecode/")
1633 (synopsis "Read hardware information from the BIOS")
1635 "Dmidecode reports information about your system's hardware as described
1636 in your system BIOS according to the SMBIOS/DMI standard. This typically
1637 includes system manufacturer, model name, serial number, BIOS version, asset
1638 tag as well as a lot of other details of varying level of interest and
1639 reliability depending on the manufacturer. This will often include usage
1640 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1641 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1642 (license license:gpl2+)))
1644 (define-public acpica
1647 (version "20200326")
1651 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1655 "0y08l6djjn87jmsp5kj0myjdb48000g20xlfs0a22jzzi383h3by"))))
1656 (build-system gnu-build-system)
1657 (native-inputs `(("flex" ,flex)
1660 '(#:make-flags (list (string-append "PREFIX=" %output)
1663 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1664 #:tests? #f ; no 'check' target
1665 #:phases (modify-phases %standard-phases (delete 'configure))))
1666 (home-page "https://acpica.org/")
1667 (synopsis "Tools for the development and debug of ACPI tables")
1669 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1670 OS-independent reference implementation of the Advanced Configuration and
1671 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1672 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1673 subsystem, and a small set of tools to assist in developing and debugging ACPI
1674 tables. This package contains only the user-space tools needed for ACPI table
1675 development, not the kernel implementation of ACPI.")
1676 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1678 (define-public s-tui
1685 (uri (pypi-uri "s-tui" version))
1687 (base32 "0r5yhlsi5xiy7ii1w4kqkaxz9069v5bbfwi3x3xnxhk51yjfgr8n"))))
1688 (build-system python-build-system)
1690 `(("python-psutil" ,python-psutil)
1691 ("python-urwid" ,python-urwid)))
1692 (home-page "https://github.com/amanusk/s-tui")
1693 (synopsis "Interactive terminal stress test and monitoring tool")
1695 "The Stress Terminal UI displays graphs of the CPU frequency,
1696 utilization, temperature and power.")
1697 (license license:gpl2+)))
1699 (define-public stress
1705 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1706 version ".orig.tar.gz"))
1709 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1710 (build-system gnu-build-system)
1711 (home-page "https://packages.debian.org/sid/stress")
1712 (synopsis "Impose load on and stress test a computer system")
1714 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1715 or disk stress on a POSIX-compliant operating system and reports any errors it
1718 Stress is not a benchmark. It is a tool used by system administrators to
1719 evaluate how well their systems will scale, by kernel programmers to evaluate
1720 perceived performance characteristics, and by systems programmers to expose
1721 the classes of bugs which only or more frequently manifest themselves when the
1722 system is under heavy load.")
1723 (license license:gpl2+)))
1725 (define-public detox
1732 (url "https://github.com/dharple/detox.git")
1733 (commit (string-append "v" version))))
1734 (file-name (git-file-name name version))
1737 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1738 (build-system gnu-build-system)
1740 `(("autoconf" ,autoconf)
1741 ("automake" ,automake)
1744 `(#:tests? #f ;no 'check' target
1745 #:phases (modify-phases %standard-phases
1746 (add-after 'unpack 'delete-configure
1747 ;; The "configure" script is present, but otherwise the
1748 ;; project is not bootstrapped: missing install-sh and
1749 ;; Makefile.in, so delete it so the bootstrap phase will
1751 (lambda _ (delete-file "configure") #t)))))
1752 (home-page "https://github.com/dharple/detox")
1753 (synopsis "Clean up file names")
1755 "Detox is a program that renames files to make them easier to work with
1756 under Unix and related operating systems. Spaces and various other unsafe
1757 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1758 characters can be replaced as well, as can UTF-8 characters.")
1759 (license license:bsd-3)))
1761 (define-public testdisk
1767 (uri (string-append "https://www.cgsecurity.org/testdisk-"
1768 version ".tar.bz2"))
1771 "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"))))
1772 (build-system gnu-build-system)
1774 `(("ntfs-3g" ,ntfs-3g)
1775 ("util-linux" ,util-linux)
1776 ("openssl" ,openssl)
1777 ;; FIXME: add reiserfs.
1779 ("e2fsprogs" ,e2fsprogs)
1780 ("libjpeg" ,libjpeg)
1781 ("ncurses" ,ncurses)))
1782 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1783 (synopsis "Data recovery tool")
1785 "TestDisk is a program for data recovery, primarily designed to help
1786 recover lost partitions and/or make non-booting disks bootable again.")
1787 (license license:gpl2+)))
1796 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1799 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
1800 (build-system gnu-build-system)
1802 '(#:phases (modify-phases %standard-phases (delete 'configure))
1803 #:tests? #f ; no check target
1804 #:make-flags (let ((out (assoc-ref %outputs "out")))
1805 (list (string-append "prefix=" out)))))
1806 (synopsis "Recursively list the contents of a directory")
1808 "Tree is a recursive directory listing command that produces a depth
1809 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1810 environment variable is set and output is to tty.")
1811 (home-page "http://mama.indstate.edu/users/ice/tree/")
1812 (license license:gpl2+)))
1814 (define-public direvent
1820 (uri (string-append "mirror://gnu/direvent/direvent-"
1824 "0m9vi01b1km0cpknflyzsjnknbava0s1n6393b2bpjwyvb6j5613"))
1825 (modules '((guix build utils)))
1827 (substitute* "tests/testsuite"
1828 (("#![[:blank:]]?/bin/sh")
1831 (build-system gnu-build-system)
1834 (modify-phases %standard-phases
1835 (add-before 'build 'patch-/bin/sh
1836 (lambda* (#:key inputs #:allow-other-keys)
1837 ;; Use the right shell when executing the watcher and
1838 ;; user-provided shell commands.
1839 (let ((bash (assoc-ref inputs "bash")))
1840 (substitute* '("src/direvent.c" "src/progman.c")
1842 (string-append "\"" bash "/bin/sh\"")))
1844 ;; Adjust the 'shell.at' test accordingly.
1845 (substitute* "tests/testsuite"
1847 (string-append "SHELL=" bash "/bin/sh")))
1850 (home-page "https://www.gnu.org.ua/software/direvent/")
1851 (synopsis "Daemon to monitor directories for events such as file removal")
1853 "A daemon that monitors directories for events, such as creating,
1854 deleting or modifying files. It can monitor different sets of directories for
1855 different events. When an event is detected, direvent calls a specified
1856 external program with information about the event, such as the location
1857 within the file system where it occurred. Thus, \"direvent\" provides an
1858 easy way to react immediately if given files undergo changes, for example, to
1859 track changes in important system configuration files.")
1860 (license license:gpl3+)))
1862 (define-public libcap-ng
1869 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1873 "1gzzy12agfa9ddipdf72h9y68zqqnvsjjylv4vnq6hj4w2safk58"))))
1874 (build-system gnu-build-system)
1877 (list "--without-python")))
1878 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1879 (synopsis "Library for more easily working with POSIX capabilities")
1881 "The libcap-ng library is intended to make programming with POSIX
1882 capabilities easier than the traditional libcap library. It includes
1883 utilities that can analyse all currently running applications and print out
1884 any capabilities and whether or not it has an open ended bounding set. The
1885 included utilities are designed to let admins and developers spot apps from
1886 various ways that may be running with too much privilege.")
1887 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1888 (license (list license:lgpl2.1+ license:gpl2+))))
1890 (define-public smartmontools
1892 (name "smartmontools")
1897 "mirror://sourceforge/smartmontools/smartmontools/"
1898 version "/smartmontools-" version ".tar.gz"))
1901 "0imqb7ka4ia5573w8rnpck571pjjc9698pdjcapy9cfyk4n4swrz"))))
1902 (build-system gnu-build-system)
1903 (inputs `(("libcap-ng" ,libcap-ng)))
1904 (home-page "https://www.smartmontools.org/")
1905 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1907 "The smartmontools package contains utility programs to control and
1908 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1909 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1910 disks. In many cases, these utilities will provide advanced warning of disk
1911 degradation and failure.")
1912 (license license:gpl2+)))
1914 (define-public fdupes
1922 (url "https://github.com/adrianlopezroche/fdupes.git")
1923 (commit (string-append "v" version))))
1924 (file-name (git-file-name name version))
1926 (base32 "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9"))))
1927 (build-system gnu-build-system)
1929 '(#:phases (modify-phases %standard-phases
1930 (delete 'configure))
1931 #:tests? #f ; no 'check' target
1932 #:make-flags (list "CC=gcc"
1933 (string-append "PREFIX="
1934 (assoc-ref %outputs "out")))))
1935 (home-page "https://github.com/adrianlopezroche/fdupes")
1936 (synopsis "Identify duplicate files")
1938 "fdupes is a program for identifying duplicate files residing within
1939 specified directories.")
1940 (license license:expat)))
1942 (define-public graphios
1949 (uri (pypi-uri "graphios" version))
1952 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1953 (build-system python-build-system)
1955 ;; Be warned: Building with Python 3 succeeds, but the build process
1956 ;; throws a syntax error that is ignored.
1957 `(#:python ,python-2
1959 (modify-phases %standard-phases
1960 (add-before 'build 'fix-setup.py
1961 (lambda* (#:key outputs #:allow-other-keys)
1962 ;; Fix hardcoded, unprefixed file names.
1963 (let ((out (assoc-ref outputs "out")))
1964 (substitute* '("setup.py")
1965 (("/etc") (string-append out "/etc"))
1967 (("distro_ver = .*") "distro_ver = ''"))
1969 (home-page "https://github.com/shawn-sterling/graphios")
1970 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1972 "Graphios is a script to emit nagios perfdata to various upstream metrics
1973 processing and time-series systems. It's currently compatible with Graphite,
1974 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1975 of supported upstream metrics systems simultaneously.")
1976 (license license:gpl2+)))
1978 (define-public ansible
1985 (uri (pypi-uri "ansible" version))
1987 (base32 "1jfbp1i3nl4yvqwd5ssy43dz3pq2x03mn875vb8r56gqh43kmksr"))))
1988 (build-system python-build-system)
1990 `(("python-bcrypt" ,python-bcrypt)
1991 ("python-pynacl" ,python-pynacl)
1992 ("python-httplib2" ,python-httplib2)
1993 ("python-passlib" ,python-passlib)
1994 ("python-nose" ,python-nose)
1995 ("python-mock" ,python-mock)
1996 ("python-jinja2" ,python-jinja2)
1997 ("python-pyyaml" ,python-pyyaml)
1998 ("python-paramiko" ,python-paramiko)))
2000 `(("python-cryptography" ,python-cryptography)
2001 ("python-jinja2" ,python-jinja2)
2002 ("python-pyyaml" ,python-pyyaml)
2003 ("python-paramiko" ,python-paramiko)))
2006 (modify-phases %standard-phases
2007 ;; Several ansible commands (ansible-config, ansible-console, etc.)
2008 ;; are just symlinks to a single ansible executable. The ansible
2009 ;; executable behaves differently based on the value of
2010 ;; sys.argv[0]. This does not work well with our wrap phase, and
2011 ;; therefore the following two phases are required as a workaround.
2012 (add-after 'unpack 'hide-wrapping
2014 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
2015 (substitute* "bin/ansible"
2016 (("import traceback" all)
2017 (string-append all "
2019 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
2022 (add-after 'install 'replace-symlinks
2023 (lambda* (#:key outputs #:allow-other-keys)
2024 ;; Replace symlinks with duplicate copies of the ansible
2026 (let ((out (assoc-ref outputs "out")))
2028 (lambda (subprogram)
2029 (delete-file (string-append out "/bin/ansible-" subprogram))
2030 (copy-file (string-append out "/bin/ansible")
2031 (string-append out "/bin/ansible-" subprogram)))
2032 (list "config" "console" "doc" "galaxy"
2033 "inventory" "playbook" "pull" "vault")))
2035 (home-page "https://www.ansible.com/")
2036 (synopsis "Radically simple IT automation")
2037 (description "Ansible is a radically simple IT automation system. It
2038 handles configuration management, application deployment, cloud provisioning,
2039 ad hoc task execution, and multinode orchestration---including trivializing
2040 things like zero-downtime rolling updates with load balancers.")
2041 (license license:gpl3+)))
2043 (define-public debops
2051 (url "https://github.com/debops/debops")
2052 (commit (string-append "v" version))))
2053 (file-name (git-file-name name version))
2055 (base32 "052b2dykdn35pdpn9s4prawl6nl6yzih8nyf54hpvhpisvjrm1v5"))
2057 (search-patches "debops-constants-for-external-program-names.patch"
2058 "debops-debops-defaults-fall-back-to-less.patch"))))
2059 (build-system python-build-system)
2063 `(("ansible" ,ansible)
2066 ("util-linux" ,util-linux) ;; for umount
2067 ("findutils" ,findutils)
2071 `(("python-future" ,python-future)
2072 ("python-distro" ,python-distro)))
2076 (modify-phases %standard-phases
2077 (add-after 'unpack 'nuke-debops-update
2079 (chmod "bin/debops-update" #o755) ; FIXME work-around git-fetch issue
2080 (with-output-to-file "bin/debops-update"
2082 (format #t "#!/bin/sh
2083 echo 'debops is installed via guix. guix-update is useless in this case.
2084 Please use `guix package -u debops` instead.'")))
2086 ;; patch shebangs only in actuall scripts, not in files included in
2087 ;; roles (which are to be delivered to the targte systems)
2088 (delete `patch-generated-file-shebangs)
2089 (replace 'patch-source-shebangs
2091 (for-each patch-shebang
2094 ;; Filter out symlinks.
2095 (eq? 'regular (stat:type stat)))
2097 (add-after 'unpack 'fix-paths
2099 (define (substitute-program-names file)
2100 ;; e.g. ANSIBLE_PLAYBOOK = '/gnu/store/…/bin/ansible-playbook'
2103 (let ((varname (string-upcase
2105 (lambda (c) (if (char=? c #\-) #\_ c))
2108 (((string-append "^(" varname " = )'.*'") line prefix)
2109 (string-append prefix "'" (which name) "'")))))
2110 '("ansible-playbook" "encfs" "find" "fusermount"
2111 "umount" "gpg" "ansible" "which")))
2112 (for-each substitute-program-names
2114 "bin/debops-padlock"
2116 "debops/__init__.py"
2117 "debops/cmds/__init__.py"))
2119 (home-page "https://www.debops.org/")
2120 (synopsis "Collection of general-purpose Ansible roles")
2121 (description "The Ansible roles provided by that can be used to manage
2122 Debian or Ubuntu hosts. In addition, a default set of Ansible playbooks can
2123 be used to apply the provided roles in a controlled way, using Ansible
2126 The roles are written with a high customization in mind, which can be done
2127 using Ansible inventory. This way the role and playbook code can be shared
2128 between multiple environments, with different configuration in to each one.
2130 Services can be managed on a single host, or spread between multiple hosts.
2131 DebOps provides support for different SQL and NoSQL databases, web servers,
2132 programming languages and specialized applications useful in a data center
2133 environment or in a cluster. The project can also be used to deploy
2134 virtualization environments using KVM/libvirt, Docker or LXC technologies to
2135 manage virtual machines and/or containers.")
2136 (license license:gpl3+)))
2138 (define-public emacs-ansible-doc
2139 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
2141 (name "emacs-ansible-doc")
2142 (version (git-version "0.4" "1" commit))
2147 (url "https://github.com/lunaryorn/ansible-doc.el")
2149 (file-name (git-file-name name version))
2152 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
2153 (build-system emacs-build-system)
2154 ;; Unmaintained by upstream.
2155 (home-page "https://github.com/lunaryorn/ansible-doc.el")
2156 (synopsis "Ansible documentation for Emacs")
2158 "This package provides an Ansible documentation for GNU Emacs.
2160 @code{ansible-doc} allows you to view the documentation of an Ansible
2161 module and @code{ansible-doc-mode} minor mode adds documentation
2162 lookup to YAML Mode. You could enable the mode with @code{(add-hook
2163 'yaml-mode-hook #'ansible-doc-mode)}.")
2164 (license license:gpl3+))))
2166 (define-public cpulimit
2174 (url "https://github.com/opsengine/cpulimit.git")
2175 (commit (string-append "v" version))))
2176 (file-name (git-file-name name version))
2178 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
2179 (build-system gnu-build-system)
2181 `(#:phases (modify-phases %standard-phases
2185 (invoke "make" "CC=gcc" "-Csrc")))
2188 (invoke "make" "CC=gcc" "-Ctests")))
2190 (lambda* (#:key outputs #:allow-other-keys)
2191 (let* ((out (assoc-ref outputs "out"))
2192 (bin (string-append out "/bin")))
2193 (install-file "src/cpulimit" bin))
2195 (home-page "https://github.com/opsengine/cpulimit")
2196 (synopsis "Limit CPU usage")
2198 "Cpulimit limits the CPU usage of a process. It does not change the nice
2199 value or other scheduling priority settings, but the real CPU usage, and is
2200 able to adapt itself dynamically to the overall system load. Children
2201 processes and threads of the specified process may optionally share the same
2203 (license license:gpl2+)))
2205 (define-public autojump
2213 (url "https://github.com/wting/autojump.git")
2214 (commit (string-append "release-v" version))))
2215 (file-name (git-file-name name version))
2217 (base32 "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws"))))
2218 (build-system gnu-build-system)
2219 (native-inputs ; for tests
2220 `(("python-mock" ,python-mock)
2221 ("python-pytest" ,python-pytest)))
2223 `(("python" ,python-wrapper)))
2226 (modify-phases %standard-phases
2227 (add-after 'unpack 'make-git-checkout-writable
2228 ;; ‘install.py’ modifies files before installing them.
2230 (for-each make-file-writable (find-files "."))
2236 (invoke "python" "tests/unit/autojump_utils_test.py")))
2238 (lambda* (#:key outputs #:allow-other-keys)
2239 (setenv "SHELL" (which "bash"))
2240 (invoke "python" "install.py"
2241 (string-append "--destdir="
2242 (assoc-ref outputs "out"))))))))
2243 (home-page "https://github.com/wting/autojump")
2244 (synopsis "Shell extension for file system navigation")
2246 "Autojump provides a faster way to navigate your file system, with a \"cd
2247 command that learns\". It works by maintaining a database of the directories
2248 you use the most from the command line and allows you to \"jump\" to
2249 frequently used directories by typing only a small pattern.")
2250 (license license:gpl3+)))
2259 (url "https://github.com/clvv/fasd.git")
2261 (file-name (git-file-name name version))
2264 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
2265 (build-system gnu-build-system)
2267 `(#:phases (modify-phases %standard-phases
2268 (delete 'configure)) ;no configuration
2269 #:tests? #f ;no tests
2270 #:make-flags (list (string-append "PREFIX=" %output))))
2271 (home-page "https://github.com/clvv/fasd")
2272 (synopsis "Quick access to files and directories for shells")
2274 "Fasd (pronounced similar to \"fast\") is a command-line productivity
2275 booster. Fasd offers quick access to files and directories for POSIX shells.
2276 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
2277 and directories you have accessed so that you can quickly reference them in
2279 (license license:x11)))
2281 (define-public iftop
2287 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
2288 "/iftop-" version ".tar.gz"))
2291 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
2292 (build-system gnu-build-system)
2294 `(("libpcap" ,libpcap)
2295 ("ncurses" ,ncurses)))
2296 (synopsis "Monitor network usage")
2297 (description "Iftop does for network usage what @command{top} does
2298 for CPU usage. It listens to network traffic on a named interface and
2299 displays a table of current bandwidth usage by pairs of hosts.")
2300 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
2301 (license license:gpl2+)))
2303 (define-public munge
2309 (uri (string-append "https://github.com/dun/munge/releases/"
2310 "download/munge-" version "/munge-"
2314 "0h06sghb4rqvv1ywyd6mzsmbcgh712v6ygrff0gzm440y4ca41k6"))
2315 (modules '((guix build utils)))
2318 ;; Don't insist on write access to /var.
2319 (substitute* "src/etc/Makefile.in"
2320 (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
2321 (string-append "-$(INSTALL)" middle "localstatedir"))
2322 (("\\$\\(MKDIR_P\\) .*(local|run)statedir.*")
2326 `(("openssl" ,openssl)
2327 ("libgcrypt" ,libgcrypt)))
2328 (build-system gnu-build-system)
2331 (list "--localstatedir=/var"
2332 (string-append "--with-pkgconfigdir="
2333 (assoc-ref %outputs "out") "/lib/pkgconfig"))
2335 (modify-phases %standard-phases
2336 ;; XXX Many test series fail. Some might be fixable, others do no-no
2337 ;; things like invoking ‘sudo’.
2338 (add-after 'unpack 'skip-failing-tests
2340 (for-each (lambda (test)
2341 (substitute* "t/Makefile.in"
2342 (((string-append test "\\.t ")) "")))
2343 (list "0100-munged-lock"
2345 "0011-munged-cmdline"
2346 "0012-munge-cmdline"
2347 "0013-unmunge-cmdline"
2348 "0101-munged-security-socket"
2349 "0102-munged-security-keyfile"
2350 "0103-munged-security-logfile"
2351 "0110-munged-origin-addr"))
2353 (home-page "https://dun.github.io/munge/")
2354 (synopsis "Cluster computing authentication service")
2356 "Munge is an authentication service for creating and validating
2357 credentials. It allows a process to authenticate the UID and GID of another
2358 local or remote process within a group of hosts having common users and
2359 groups. These hosts form a security realm that is defined by a shared
2360 cryptographic key. Clients within this security realm can create and validate
2361 credentials without the use of root privileges, reserved ports, or
2362 platform-specific methods.")
2363 (license license:gpl3+)))
2365 (define-public audit
2368 (home-page "https://people.redhat.com/sgrubb/audit/")
2372 (uri (string-append home-page "audit-" version ".tar.gz"))
2375 "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"))))
2376 (build-system gnu-build-system)
2378 `(#:configure-flags (list "--with-python=no"
2379 "--disable-static")))
2381 `(("openldap" ,openldap)
2383 ("sasl" ,cyrus-sasl)))
2384 (synopsis "User-space component to the Linux auditing system")
2386 "auditd is the user-space component to the Linux auditing system, which
2387 allows logging of system calls made by user-land processes. It's responsible
2388 for writing audit records to the disk. Viewing the logs is done with the
2389 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
2390 done with the @code{auditctl} utility.")
2391 (license license:gpl2+)))
2399 (uri (string-append "https://nmap.org/dist/nmap-" version
2403 "1aizfys6l9f9grm82bk878w56mg0zpkfns3spzj157h98875mypw"))
2404 (modules '((guix build utils)))
2407 (for-each delete-file-recursively
2408 ;; Remove bundled lua, pcap, and pcre libraries.
2409 ;; FIXME: Remove bundled liblinear once packaged.
2413 ;; Remove pre-compiled binares.
2416 (build-system gnu-build-system)
2418 `(("openssl" ,openssl)
2419 ("libpcap" ,libpcap)
2422 ("zlib" ,zlib) ;for NSE compression support
2425 ("python" ,python-2)))
2427 ;; TODO Add zenmap output.
2428 (outputs '("out" "ndiff"))
2430 `(#:configure-flags '("--without-zenmap")
2432 (modify-phases %standard-phases
2433 (add-after 'configure 'patch-Makefile
2435 (substitute* "Makefile"
2436 ;; Do not attempt to build lua.
2437 (("build-dnet build-lua") "build-dnet"))
2440 (lambda* (#:key outputs #:allow-other-keys)
2441 (define (make out . args)
2442 (apply invoke "make"
2443 (string-append "prefix=" out)
2445 (define (python-path dir)
2446 (string-append dir "/lib/python"
2447 ,(version-major+minor
2448 (package-version python))
2450 (let ((out (assoc-ref outputs "out"))
2451 (ndiff (assoc-ref outputs "ndiff")))
2452 (for-each mkdir-p (list out ndiff))
2458 (make ndiff "install-ndiff")
2459 (wrap-program (string-append ndiff "/bin/ndiff")
2460 `("PYTHONPATH" prefix
2461 (,(python-path ndiff)))))
2463 ;; These are the tests that do not require network access.
2465 (lambda _ (invoke "make"
2469 ;; Nmap can't cope with out-of-source building.
2470 #:out-of-source? #f))
2471 (home-page "https://nmap.org/")
2472 (synopsis "Network discovery and security auditing tool")
2474 "Nmap (\"Network Mapper\") is a network discovery and security auditing
2475 tool. It is also useful for tasks such as network inventory, managing service
2476 upgrade schedules, and monitoring host or service uptime. It also provides an
2477 advanced netcat implementation (ncat), a utility for comparing scan
2478 results (ndiff), and a packet generation and response analysis tool (nping).")
2479 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
2480 ;; both use a 3-clause BSD license.
2481 (license (list license:nmap license:bsd-3))))
2483 (define-public dstat
2491 (url "https://github.com/dagwieers/dstat.git")
2492 (commit (string-append "v" version))))
2493 (file-name (git-file-name "dstat" version))
2495 (base32 "1qnmkhqmjd1m3if05jj29dvr5hn6kayq9bkkkh881w472c0zhp8v"))
2496 (patches (search-patches "dstat-fix-crash-when-specifying-delay.patch"
2497 "dstat-skip-devices-without-io.patch"))))
2498 (build-system gnu-build-system)
2500 `(#:tests? #f ; no make check
2501 #:make-flags (let ((out (assoc-ref %outputs "out")))
2502 (list (string-append "DESTDIR=" out)
2505 (modify-phases %standard-phases
2506 (add-after 'unpack 'fix-python3-DeprecationWarning
2508 (substitute* "dstat"
2509 (("collections") "collections.abc"))
2511 (delete 'configure) ; no configure script
2512 (add-after 'install 'wrap
2513 (lambda* (#:key outputs #:allow-other-keys)
2514 (let ((out (assoc-ref outputs "out")))
2515 (wrap-program (string-append out "/bin/dstat")
2516 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2519 `(("python" ,python-wrapper)
2520 ("python-six" ,python-six)))
2521 (synopsis "Versatile resource statistics tool")
2522 (description "Dstat is a versatile replacement for @command{vmstat},
2523 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2524 some of their limitations and adds some extra features, more counters and
2525 flexibility. Dstat is handy for monitoring systems during performance tuning
2526 tests, benchmarks or troubleshooting.
2528 Dstat allows you to view all of your system resources in real-time, you can,
2529 e.g., compare disk utilization in combination with interrupts from your IDE
2530 controller, or compare the network bandwidth numbers directly with the disk
2531 throughput (in the same interval).")
2532 (home-page "http://dag.wiee.rs/home-made/dstat/")
2533 (license license:gpl2+)))
2535 (define-public thefuck
2543 (url "https://github.com/nvbn/thefuck.git")
2545 (file-name (git-file-name name version))
2547 (base32 "0fnf78956pwhb9cgv1jmgypnkma5xzflkivfrkfiadbgin848yfg"))
2548 (patches (search-patches "thefuck-test-environ.patch"))))
2549 (build-system python-build-system)
2552 (modify-phases %standard-phases
2554 (add-after 'install 'check
2555 (lambda* (#:key inputs outputs #:allow-other-keys)
2556 ;; Tests look for installed package
2557 (add-installed-pythonpath inputs outputs)
2558 ;; Some tests need write access to $HOME.
2559 (setenv "HOME" "/tmp")
2560 (invoke "py.test" "-v")
2563 `(("python-colorama" ,python-colorama)
2564 ("python-decorator" ,python-decorator)
2565 ("python-psutil" ,python-psutil)
2566 ("python-pyte" ,python-pyte)
2567 ("python-six" ,python-six)))
2570 ("python-mock" ,python-mock)
2571 ("python-pytest" ,python-pytest)
2572 ("python-pytest-mock" ,python-pytest-mock)))
2573 (home-page "https://github.com/nvbn/thefuck")
2574 (synopsis "Correct mistyped console command")
2576 "The Fuck tries to match a rule for a previous, mistyped command, creates
2577 a new command using the matched rule, and runs it.")
2578 (license license:x11)))
2587 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2589 (base32 "0m4npba50sf5s61g5z3xd2r7937zwja941f2h3f081xi24c2hfck"))))
2590 (build-system gnu-build-system)
2592 `(#:tests? #f ; obscure test failures
2594 (modify-phases %standard-phases
2595 (delete 'configure) ; no configure script
2596 (add-before 'build 'setup-environment
2597 (lambda* (#:key outputs #:allow-other-keys)
2599 (setenv "prefix" (assoc-ref outputs "out"))
2601 #:make-flags (list "--environment-overrides")))
2602 (home-page "https://gentoo.com/di/")
2603 (synopsis "Advanced df like disk information utility")
2605 "@code{di} is a disk information utility, displaying everything that your
2606 @code{df} command does and more. It features the ability to display your disk
2607 usage in whatever format you prefer. It is designed to be highly portable and
2608 produce uniform output across heterogeneous networks.")
2609 (license license:zlib)))
2611 (define-public cbatticon
2619 (url "https://github.com/valr/cbatticon.git")
2622 (base32 "0ivm2dzhsa9ir25ry418r2qg2llby9j7a6m3arbvq5c3kaj8m9jr"))
2623 (file-name (git-file-name name version))))
2624 (build-system gnu-build-system)
2626 `(#:tests? #f ; no tests
2628 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2631 (modify-phases %standard-phases
2632 (delete 'configure)))) ; no configure script
2635 ("gettext" ,gettext-minimal)
2636 ("libnotify" ,libnotify)))
2638 `(("pkg-config" ,pkg-config)))
2639 (synopsis "Lightweight battery icon for the system tray")
2640 (description "cbatticon is a lightweight battery icon that displays
2641 the status of your battery in the system tray.")
2642 (home-page "https://github.com/valr/cbatticon")
2643 (license license:gpl2+)))
2645 (define-public interrobang
2646 (let ((revision "1")
2647 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2649 (name "interrobang")
2650 (version (git-version "0.0.0" revision commit))
2655 (url "https://github.com/TrilbyWhite/interrobang.git")
2657 (file-name (git-file-name name version))
2659 (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2660 (build-system gnu-build-system)
2662 `(#:tests? #f ; no tests
2664 (modify-phases %standard-phases
2665 (delete 'configure)) ; no configure script
2666 #:make-flags (list (string-append "PREFIX="
2667 (assoc-ref %outputs "out")))))
2669 `(("libx11" ,libx11)))
2671 `(("pkg-config" ,pkg-config)))
2672 (synopsis "Scriptable launcher menu")
2673 (description "Interrobang is a scriptable launcher menu with a customizable
2674 shortcut syntax and completion options.")
2675 (home-page "https://github.com/TrilbyWhite/interrobang")
2676 (license license:gpl3+))))
2678 (define-public pam-krb5
2685 "https://archives.eyrie.org/software/kerberos/"
2686 "pam-krb5-" version ".tar.xz"))
2687 (patches (search-patches "pam-krb5-CVE-2020-10595.patch"))
2690 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2691 (build-system gnu-build-system)
2694 (modify-phases %standard-phases
2695 (add-before 'configure 'disable-tests
2697 ;; The build container seems to interfere with some tests.
2698 (substitute* "tests/TESTS"
2699 (("module/basic\n") ""))
2700 (substitute* "tests/TESTS"
2701 (("pam-util/vector\n") ""))
2704 `(("linux-pam" ,linux-pam)
2705 ("mit-krb5" ,mit-krb5)))
2708 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2709 (synopsis "Kerberos PAM module")
2711 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2712 It supports ticket refreshing by screen savers, configurable
2713 authorization handling, authentication of non-local accounts for network
2714 services, password changing, and password expiration, as well as all the
2715 standard expected PAM features. It works correctly with OpenSSH, even
2716 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2717 enabled, and supports extensive configuration either by PAM options or in
2718 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2719 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2720 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2721 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2722 ;; However, the tarball does not contain a copy of the GPL, so unless
2723 ;; we put one in, we cannot distribute it under GPL without violating
2724 ;; clause requiring us to give all recipients a copy.
2725 (license license:gpl1+)))
2727 (define (sunxi-tools-source version)
2731 (url "https://github.com/linux-sunxi/sunxi-tools.git")
2732 (commit (string-append "v" version))))
2734 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
2735 (modules '((guix build utils)))
2737 ;; Remove binaries contained in the tarball which are only for the
2738 ;; target and can be regenerated anyway.
2740 (delete-file-recursively "bin")
2742 (file-name (git-file-name "sunxi-tools" version))))
2744 (define sunxi-target-tools
2746 (name "sunxi-target-tools")
2748 (build-system gnu-build-system)
2750 (sunxi-tools-source version))
2752 `(#:system "armhf-linux"
2754 #:make-flags (list (string-append "PREFIX="
2755 (assoc-ref %outputs "out"))
2756 (string-append "CROSS_COMPILE=")
2759 (modify-phases %standard-phases
2762 (lambda* (#:key make-flags #:allow-other-keys)
2763 (apply invoke "make" "target-tools" make-flags)))
2765 (lambda* (#:key make-flags #:allow-other-keys)
2766 (apply invoke "make" "install-target-tools"
2768 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2769 (synopsis "Hardware management tools for Allwinner computers")
2770 (description "This package contains tools for Allwinner devices:
2772 @item @command{sunxi-meminfo}: Prints memory bus settings.
2774 (license license:gpl2+)))
2776 (define-public sunxi-tools
2778 (name "sunxi-tools")
2781 (sunxi-tools-source version))
2783 `(("sunxi-target-tools" ,sunxi-target-tools)
2784 ("pkg-config" ,pkg-config)))
2786 `(("libusb" ,libusb)))
2787 (build-system gnu-build-system)
2789 `(#:tests? #f ; no tests exist
2790 #:make-flags (list (string-append "PREFIX="
2791 (assoc-ref %outputs "out"))
2792 (string-append "CROSS_COMPILE=disabled")
2795 (modify-phases %standard-phases
2798 (lambda* (#:key make-flags #:allow-other-keys)
2799 (apply invoke "make" "tools" "misc" make-flags)))
2801 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
2802 ;; Those tools have been built for armhf but are part of the
2803 ;; installation in the upstream package. So do the same
2805 (copy-recursively (assoc-ref inputs "sunxi-target-tools")
2806 (assoc-ref outputs "out"))
2807 (apply invoke "make" "install-tools" "install-misc"
2809 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2810 (synopsis "Hardware management tools for Allwinner computers")
2811 (description "This package contains tools for Allwinner devices:
2813 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2814 a textual description of a board (.fex) to a binary representation (.bin).
2815 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2816 makes it register as a special USB device (rather than USB host).
2817 You can then connect it to another computer and flash it from there.
2818 @item @command{sunxi-nand-part}: Partitions NAND flash.
2819 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2820 bootloader) parameters.
2821 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2822 in order to be able to find it.
2823 @item @command{sunxi-meminfo}: Prints memory bus settings.
2824 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2826 (license license:gpl2+)))
2828 (define-public sedsed
2836 (url "https://github.com/aureliojargas/sedsed.git")
2837 (commit (string-append "v" version))))
2838 (file-name (git-file-name name version))
2840 (base32 "05cl35mwljdb9ynbbsfa8zx6ig8r0xncbg2cir9vwn5manndjj18"))))
2841 (build-system python-build-system)
2843 `(#:tests? #f ; no tests
2845 (modify-phases %standard-phases
2846 (add-after 'unpack 'patch-sed-in
2848 (substitute* "sedsed.py"
2850 (string-append "sedbin = '" (which "sed") "'")))
2854 (lambda* (#:key outputs #:allow-other-keys)
2855 (let* ((out (assoc-ref outputs "out"))
2856 (bin (string-append out "/bin")))
2857 ;; Just one file to copy around
2858 (install-file "sedsed.py" bin)
2860 (add-after 'wrap 'symlink
2861 ;; Create 'sedsed' symlink to "sedsed.py".
2862 (lambda* (#:key outputs #:allow-other-keys)
2863 (let* ((out (assoc-ref outputs "out"))
2864 (bin (string-append out "/bin"))
2865 (sed (string-append bin "/sedsed"))
2866 (sedpy (string-append bin "/sedsed.py")))
2869 (home-page "https://aurelio.net/projects/sedsed")
2870 (synopsis "Sed sed scripts")
2872 "@code{sedsed} can debug, indent, tokenize and HTMLize your @command{sed}
2875 In debug mode, it reads your script and adds extra commands to it. When
2876 executed you can see the data flow between the commands, revealing all the
2877 magic sed performs on its internal buffers.
2879 In indent mode, your script is reformatted with standard spacing.
2881 In tokenize mode, you can see the elements of every command you use.
2883 In HTMLize mode, your script is converted to a beautiful colored HTML file,
2884 with all the commands and parameters identified for your viewing pleasure.
2886 With sedsed you can master any sed script. No more secrets, no more hidden
2888 (license license:expat)))
2890 (define-public igt-gpu-tools
2892 (name "igt-gpu-tools")
2898 (url "https://gitlab.freedesktop.org/drm/igt-gpu-tools.git")
2899 (commit (string-append "igt-gpu-tools-" version))))
2900 (file-name (git-file-name name version))
2902 (base32 "1gpdjs5aj6vsnzwcjvw5bb120lgffvvshi4202phr0bzw3b92ky8"))))
2903 (build-system gnu-build-system)
2905 `(#:tests? #f ; many of the tests try to load kernel modules
2907 (modify-phases %standard-phases
2910 ;; Don't run configure in this phase.
2911 (setenv "NOCONFIGURE" "1")
2912 (invoke "sh" "autogen.sh"))))))
2915 ("elfutils" ,elfutils) ; libdw
2920 ("libpciaccess" ,libpciaccess)
2921 ("libunwind" ,libunwind)
2922 ("libxrandr" ,libxrandr)
2923 ("openssl" ,openssl)
2925 ("util-macros" ,util-macros)))
2927 `(("autoconf" ,autoconf)
2928 ("automake" ,automake)
2929 ("libtool" ,libtool)
2930 ("pkg-config" ,pkg-config)))
2931 (home-page "https://gitlab.freedesktop.org/drm/igt-gpu-tools")
2932 (synopsis "Tools for development and testing of the Intel DRM driver")
2933 (description "IGT GPU Tools is a collection of tools for development and
2934 testing of the Intel DRM driver. There are many macro-level test suites that
2935 get used against the driver, including xtest, rendercheck, piglit, and
2936 oglconform, but failures from those can be difficult to track down to kernel
2937 changes, and many require complicated build procedures or specific testing
2938 environments to get useful results. Therefore, IGT GPU Tools includes
2939 low-level tools and tests specifically for development and testing of the
2941 (supported-systems '("i686-linux" "x86_64-linux"))
2942 (license license:expat)))
2944 (define-public fabric
2951 (uri (pypi-uri "Fabric" version))
2954 "1a3ndlpdw6bhn8fcw1jgznl117a8pnr84az9rb5fwnrypf1ph2b6"))))
2955 (build-system python-build-system)
2957 `(#:python ,python-2 ; Python 2 only
2959 (modify-phases %standard-phases
2963 "nosetests" "-v" "tests/"
2964 ;; This test hangs indefinitely when run on a single core VM
2965 ;; (see GNU bug #26647 and Debian bug #850230).
2966 "--exclude=test_nested_execution_with_explicit_ports"
2967 ;; This test randomly fails in certain environments causing too
2968 ;; much noise to be useful (see Debian bug #854686).
2969 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2971 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2972 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2973 ("python2-nose" ,python2-nose) ; Requires < 2.0
2974 ("python2-pynacl" ,python2-pynacl)
2975 ("python2-bcrypt" ,python2-bcrypt)))
2977 `(("python2-paramiko" ,python2-paramiko)))
2978 (home-page "https://www.fabfile.org/")
2979 (synopsis "Simple Pythonic remote execution and deployment tool")
2981 "Fabric is designed to upload files and run shell commands on a number of
2982 servers in parallel or serially. These commands are grouped in tasks (which
2983 are regular Python functions) and specified in a @dfn{fabfile}.
2985 It is similar to Capistrano, except it's implemented in Python and doesn't
2986 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2987 tool for remote execution and deployment.")
2988 (license license:bsd-2)))
2990 (define-public neofetch
2997 (url "https://github.com/dylanaraps/neofetch")
2999 (file-name (git-file-name name version))
3002 "0xc0fdc7n5bhqirh83agqiy8r14l14zwca07czvj8vgnsnfybslr"))))
3003 (build-system gnu-build-system)
3005 `(#:tests? #f ; there are no tests
3007 (list (string-append "PREFIX=" %output))
3009 (modify-phases %standard-phases
3010 (delete 'configure)))) ; no configure script
3011 (home-page "https://github.com/dylanaraps/neofetch")
3012 (synopsis "System information script")
3013 (description "Neofetch is a command-line system information tool written in
3014 Bash. Neofetch displays information about your system next to an image, your OS
3015 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
3016 used in screenshots to show other users what operating system or distribution
3017 you are running, what theme or icon set you are using, etc.")
3018 (license license:expat)))
3020 (define-public screenfetch
3022 (name "screenfetch")
3027 (url "https://github.com/KittyKatt/screenFetch")
3028 (commit (string-append "v" version))))
3029 (file-name (git-file-name name version))
3032 "04l8aqr474pb115nagn9f6y48jw92n1qfszgw7dbhgl4mpn95lcr"))))
3033 (build-system trivial-build-system)
3035 `(#:modules ((guix build utils))
3038 (use-modules (guix build utils))
3039 (let ((source (assoc-ref %build-inputs "source"))
3040 (out (assoc-ref %outputs "out")))
3041 (mkdir-p (string-append out "/bin/"))
3042 (copy-file (string-append source "/screenfetch-dev")
3043 (string-append out "/bin/screenfetch"))
3044 (install-file (string-append source "/screenfetch.1")
3045 (string-append out "/man/man1/"))
3046 (install-file (string-append source "/COPYING")
3047 (string-append out "/share/doc/" ,name "-" ,version))
3048 (substitute* (string-append out "/bin/screenfetch")
3049 (("/usr/bin/env bash")
3050 (string-append (assoc-ref %build-inputs "bash")
3053 (string-append out "/bin/screenfetch")
3055 (,(string-append (assoc-ref %build-inputs "bc") "/bin:"
3056 (assoc-ref %build-inputs "scrot") "/bin:"
3057 (assoc-ref %build-inputs "xdpyinfo") "/bin"
3058 (assoc-ref %build-inputs "xprop") "/bin"))))
3059 (substitute* (string-append out "/bin/screenfetch")
3061 (string-append "#!" (assoc-ref %build-inputs "bash")
3067 ("xdpyinfo" ,xdpyinfo)
3069 (home-page "https://github.com/KittyKatt/screenFetch")
3070 (synopsis "System information script")
3071 (description "Bash screenshot information tool which can be used to
3072 generate those nifty terminal theme information and ASCII distribution logos in
3073 everyone's screenshots nowadays.")
3074 (license license:gpl3)))
3083 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
3084 version "/nnn-v" version ".tar.gz"))
3086 (base32 "1g47bndxld875d0xb3pgmlw223mz47p1xcvwym861y6l4zkgiyp0"))))
3087 (build-system gnu-build-system)
3089 `(("ncurses" ,ncurses)
3090 ("readline" ,readline)))
3092 `(("pkg-config" ,pkg-config)))
3094 '(#:tests? #f ; no tests
3096 (modify-phases %standard-phases
3097 (delete 'configure)) ; no configure script
3100 (string-append "PREFIX="
3101 (assoc-ref %outputs "out"))
3103 (home-page "https://github.com/jarun/nnn")
3104 (synopsis "Terminal file browser")
3105 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
3106 lightweight terminal file browser with easy keyboard shortcuts for
3107 navigation, opening files and running tasks. There is no config file and
3108 mime associations are hard-coded. The incredible user-friendliness and speed
3109 make it a perfect utility on modern distros.")
3110 (license license:bsd-2)))
3112 (define-public thermald
3120 (url "https://github.com/01org/thermal_daemon")
3121 (commit (string-append "v" version))))
3122 (file-name (git-file-name name version))
3124 (base32 "0iagc3jqpnh6q2fa1gx4wx6r8qg0556j60xr159zqg95djr4dv99"))))
3125 (build-system gnu-build-system)
3128 (let ((out (assoc-ref %outputs "out")))
3129 (list (string-append "--sysconfdir="
3131 (string-append "--with-dbus-sys-dir="
3132 out "/etc/dbus-1/system.d")
3133 "--localstatedir=/var"))))
3135 `(("autoconf" ,autoconf)
3136 ("automake" ,automake)
3137 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3138 ("pkg-config" ,pkg-config)))
3140 `(("dbus-glib" ,dbus-glib)
3141 ("libxml2" ,libxml2)))
3142 (home-page "https://01.org/linux-thermal-daemon/")
3143 (synopsis "CPU scaling for thermal management")
3144 (description "The Linux Thermal Daemon helps monitor and control temperature
3145 on systems running the Linux kernel.")
3146 ;; arm and aarch64 don't have cpuid.h.
3147 (supported-systems '("i686-linux" "x86_64-linux"))
3148 (license license:gpl2+)))
3150 (define-public masscan
3158 (url "https://github.com/robertdavidgraham/masscan.git")
3160 (file-name (git-file-name name version))
3162 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
3163 (build-system gnu-build-system)
3165 `(("libpcap" ,libpcap)))
3167 '(#:test-target "regress"
3170 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3172 (modify-phases %standard-phases
3173 (delete 'configure) ; no ./configure script
3174 (add-after 'unpack 'patch-path
3175 (lambda* (#:key outputs inputs #:allow-other-keys)
3176 (let* ((out (assoc-ref outputs "out"))
3177 (pcap (assoc-ref inputs "libpcap")))
3178 (substitute* "src/rawsock-pcap.c"
3179 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
3181 (synopsis "TCP port scanner")
3182 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
3183 open ports, and also complete the TCP connection and interact with the remote
3184 application, collecting the information received.")
3185 (home-page "https://github.com/robertdavidgraham/masscan")
3186 ;; 'src/siphash24.c' is the SipHash reference implementation, which
3187 ;; bears a CC0 Public Domain Dedication.
3188 (license license:agpl3+)))
3190 (define-public hungrycat
3196 (uri (string-append "https://github.com/jwilk/hungrycat/"
3197 "releases/download/" version "/"
3198 "hungrycat-" version ".tar.gz"))
3201 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
3202 (build-system gnu-build-system)
3205 `(("python" ,python-wrapper)
3206 ("python-nose" ,python-nose)))
3208 `(#:test-target "test"))
3209 (synopsis "A single tool that combines @command{cat} & @command{rm}")
3211 "hungrycat prints the contents of a file to standard output, while
3212 simultaneously freeing the disk space it occupied. It is useful if you need
3213 to process a large file, don't have enough space to store both the input and
3214 output files, and don't need the input file afterwards.
3215 While similar in principle to running @command{cat} immediately followed by
3216 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
3217 printed instead of after the entire file has been read, which is often too
3219 (home-page "https://jwilk.net/software/hungrycat")
3220 (license license:expat)))
3222 (define-public launchmon
3229 "https://github.com/LLNL/LaunchMON/releases/download/v"
3230 version "/launchmon-v" version ".tar.gz"))
3233 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))
3234 (modules '((guix build utils)))
3237 ;; Fix build failure with GCC 7 due to a conversion error.
3238 ;; Remove for versions > 1.0.2.
3239 (substitute* "launchmon/src/linux/lmon_api/lmon_coloc_spawner.cxx"
3240 ((" lmonpl = '\\\\0'")
3241 " *lmonpl = '\\0'"))
3243 (build-system gnu-build-system)
3249 ("libgcrypt" ,libgcrypt)
3250 ("libgpg-error" ,libgpg-error)))
3251 (synopsis "Infrastructue for large scale tool daemon launching")
3253 "LaunchMON is a software infrastructure that enables HPC run-time
3254 tools to co-locate tool daemons with a parallel job. Its API allows a
3255 tool to identify all the remote processes of a job and to scalably
3256 launch daemons into the relevant nodes.")
3257 (home-page "https://github.com/LLNL/LaunchMON")
3258 (supported-systems '("i686-linux" "x86_64-linux"))
3259 (license license:lgpl2.1)))
3261 (define-public spindle
3266 ;; We use git checkout to avoid github auto-generated tarballs
3269 (url "https://github.com/hpc/Spindle.git")
3270 (commit (string-append "v" version))))
3271 (file-name (git-file-name name version))
3274 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
3275 (build-system gnu-build-system)
3276 (arguments '(#:configure-flags '("--enable-sec-launchmon"
3277 "--enable-sec-munge"
3278 "--enable-sec-none")))
3282 ("launchmon" ,launchmon)
3283 ("libgcrypt" ,libgcrypt)))
3284 (synopsis "Scalable library loading in HPC environments")
3286 "Spindle is a tool for improving the performance of dynamic library and
3287 Python loading in HPC environments.")
3288 (home-page "https://github.com/hpc/Spindle")
3289 ;; This package supports x86_64 and PowerPC64
3290 (supported-systems '("x86_64-linux"))
3291 (license license:lgpl2.1)))
3293 (define-public inxi-minimal
3294 (let ((real-name "inxi"))
3296 (name "inxi-minimal")
3297 (version "3.0.38-1")
3302 (url "https://github.com/smxi/inxi")
3304 (file-name (git-file-name real-name version))
3306 (base32 "1qw3sxgd3ly916bzzl3873s3flngwd3vh57slw0shsj7ivz8bfnm"))))
3307 (build-system trivial-build-system)
3309 `(("bash" ,bash-minimal)
3311 ("procps" ,procps)))
3321 (use-modules (guix build utils)
3324 (setenv "PATH" (string-append
3325 (assoc-ref %build-inputs "bash") "/bin" ":"
3326 (assoc-ref %build-inputs "gzip") "/bin" ":"
3327 (assoc-ref %build-inputs "perl") "/bin" ":"))
3328 (copy-recursively (assoc-ref %build-inputs "source")
3329 ,(string-append real-name "-" version))
3330 (with-directory-excursion ,(string-append real-name "-" version)
3331 (with-fluids ((%default-port-encoding #f))
3332 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
3333 (let ((bin (string-append %output "/bin")))
3334 (install-file "inxi" bin)
3335 (wrap-program (string-append bin "/inxi")
3338 ,@(map (lambda (input)
3342 (cut string-append store <>)))
3344 ((member name '("util-linux"))
3345 (string-append (store-append "/bin") ":"
3346 (store-append "/sbin")))
3347 ((member name '("dmidecode" "iproute2"))
3348 (store-append "/sbin"))
3349 (else (store-append "/bin")))))))
3355 (((? (cut string-prefix? "perl-" <>) name) . dir)
3356 (string-append dir "/lib/perl5/site_perl"))
3359 (invoke "gzip" "inxi.1")
3360 (install-file "inxi.1.gz"
3361 (string-append %output "/share/man/man1")))
3363 (home-page "https://smxi.org/docs/inxi.htm")
3364 (synopsis "Full-featured system information script")
3365 (description "Inxi is a system information script that can display
3366 various things about your hardware and software to users in an IRC chatroom or
3367 support forum. It runs with the @code{/exec} command in most IRC clients.")
3368 (license license:gpl3+))))
3372 (inherit inxi-minimal)
3375 `(("dmidecode" ,dmidecode)
3377 ("bind:utils" ,isc-bind "utils") ; dig
3379 ("iproute2" ,iproute) ; ip
3380 ("kmod" ,kmod) ; modinfo
3381 ("lm-sensors" ,lm-sensors)
3382 ("mesa-utils" ,mesa-utils)
3383 ("pciutils" ,pciutils)
3386 ("util-linux" ,util-linux) ; lsblk
3387 ("usbutils" ,usbutils) ; lsusb
3389 ("xdpyinfo" ,xdpyinfo)
3392 ("coreutils" ,coreutils) ; uptime
3393 ("inetutils" ,inetutils) ; ifconfig
3394 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
3395 ("perl-http-tiny" ,perl-http-tiny)
3396 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3397 ("perl-json-xs" ,perl-json-xs)
3398 ("perl-time-hires" ,perl-time-hires)
3399 ;; TODO: Add more inputs:
3404 ,@(package-inputs inxi-minimal)))))
3406 (define-public pscircle
3414 (url "https://gitlab.com/mildlyparallel/pscircle.git")
3415 (commit (string-append "v" version))))
3416 (file-name (git-file-name name version))
3418 (base32 "1sm99423hh90kr4wdjqi9sdrrpk65j2vz2hzj65zcxfxyr6khjci"))))
3419 (build-system meson-build-system)
3421 `(("pkg-config" ,pkg-config)))
3425 ("libx11" ,libx11)))
3426 (home-page "https://gitlab.com/mildlyparallel/pscircle")
3427 (synopsis "Visualize Linux processes in a form of radial tree")
3429 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
3430 (license license:gpl2+)))
3432 (define-public python-pyudev
3434 (name "python-pyudev")
3439 (uri (pypi-uri "pyudev" version))
3442 "0xmj6l08iih2js9skjqpv4w7y0dhxyg91zmrs6v5aa65gbmipfv9"))))
3443 (build-system python-build-system)
3445 `(#:tests? #f ; Tests require /sys
3447 (modify-phases %standard-phases
3448 (add-after 'unpack 'patch-ctypes-udev
3449 (lambda* (#:key inputs outputs #:allow-other-keys)
3450 (let ((eudev (assoc-ref inputs "eudev")))
3451 (substitute* "src/pyudev/core.py"
3453 (string-append "'" eudev "/lib/libudev.so'")))
3454 (substitute* "src/pyudev/_ctypeslib/utils.py"
3455 ;; Use absolute paths instead of keys.
3456 (("= find_library") "= "))
3459 `(("eudev" ,eudev)))
3461 `(("python-six" ,python-six)))
3463 `(("python-docutils" ,python-docutils)
3464 ("python-hypothesis" ,python-hypothesis)
3465 ("python-mock" ,python-mock)
3466 ("python-pytest" ,python-pytest)
3467 ("python-sphinx" ,python-sphinx)))
3468 (home-page "https://pyudev.readthedocs.io/")
3469 (synopsis "Python udev binding")
3470 (description "This package provides @code{udev} bindings for Python.")
3471 (license license:lgpl2.1)))
3473 (define-public solaar
3480 (url "https://github.com/pwr/Solaar.git")
3482 (file-name (git-file-name name version))
3485 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
3486 (build-system python-build-system)
3489 (modify-phases %standard-phases
3490 (add-after 'unpack 'fix-prefix-detection
3492 (substitute* "setup.py"
3493 (("'--prefix' in sys\\.argv")
3494 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
3498 (invoke "python" "setup.py" "build")))
3499 (add-before 'check 'setenv-PATH
3501 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
3504 `(("python-pygobject" ,python-pygobject)
3505 ("python-pyudev" ,python-pyudev)))
3506 (home-page "https://smxi.org/docs/inxi.htm")
3507 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
3508 (description "This package provides tools to manage clients of the
3509 Logitech Unifying Receiver.")
3510 (license license:gpl2)))
3512 (define-public lynis
3515 ;; Also update the ‘lynis-sdk’ input to the commit matching this release.
3521 (url "https://github.com/CISOfy/lynis")
3523 (file-name (git-file-name name version))
3525 (base32 "1lkkbvxm0rgrrlx0szaxmf8ghc3d26wal96sgqk84m37mvs1f7p0"))
3526 (modules '((guix build utils)))
3529 ;; Remove proprietary plugins. As of now, all plugins supplied with
3530 ;; lynis are proprietary. In the future, if free plugins are
3531 ;; provided, whitelist them from deletion.
3532 (for-each delete-file (find-files "plugins"))
3534 (build-system gnu-build-system)
3541 (url "https://github.com/CISOfy/lynis-sdk")
3542 (commit "bf1c1d95121da9ca79a9eac5a15ed8d81e34094d")))
3543 (file-name (git-file-name "lynis-sdk" version))
3545 (base32 "1ndz5v0039dqa87cva2dk55a8hkw0fibsw8hh2ddmny9qkr4l3dp"))))))
3548 (modify-phases %standard-phases
3550 (lambda* (#:key inputs outputs #:allow-other-keys)
3551 (substitute* "lynis"
3552 (("/usr/share/lynis")
3553 (string-append (assoc-ref outputs "out") "/share/lynis")))
3554 (substitute* "include/functions"
3555 (("/usr/local/etc/lynis")
3556 (string-append (assoc-ref outputs "out") "/etc/lynis")))
3560 (lambda* (#:key outputs #:allow-other-keys)
3561 (let ((out (assoc-ref outputs "out")))
3562 (install-file "lynis" (string-append out "/bin/"))
3563 (install-file "default.prf" (string-append out "/etc/lynis"))
3566 (copy-recursively dir (string-append out "/share/lynis/" dir)))
3567 (list "db" "include" "plugins"))
3568 (install-file "lynis.8" (string-append out "/share/man/man8"))
3571 (lambda* (#:key inputs #:allow-other-keys)
3572 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
3573 (setenv "LANG" "en_US.UTF-8")
3574 (let ((lynis-dir (getcwd)))
3575 (with-directory-excursion "../lynis-sdk"
3576 (substitute* "config"
3577 (("\\.\\./lynis") lynis-dir))
3578 (substitute* "unit-tests/tests-language-translations.sh"
3579 (("\\.\\./lynis") lynis-dir))
3580 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
3581 (home-page "https://cisofy.com/lynis/")
3582 (synopsis "Security auditing tool")
3583 (description "Lynis is a security auditing tool. It performs an in-depth
3584 security scan and runs on the system itself. The primary goal is to test
3585 security defenses and provide tips for further system hardening. It will also
3586 scan for general system information, vulnerable software packages, and
3587 possible configuration issues.")
3588 (license license:gpl3+)))
3590 (define-public ngrep
3598 (url "https://github.com/jpr5/ngrep/")
3599 (commit (string-append "V" (string-replace-substring version "." "_")))))
3600 (file-name (git-file-name name version))
3603 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3604 (build-system gnu-build-system)
3606 `(("libpcap" ,libpcap)))
3608 `(#:tests? #f ;; No tests.
3609 #:configure-flags (list (string-append "--with-pcap-includes="
3610 (assoc-ref %build-inputs "libpcap")
3612 (home-page "https://github.com/jpr5/ngrep/")
3613 (synopsis "Grep-like utility to search for network packets on an interface")
3614 (description "@command{ngrep} is like GNU grep applied to the network
3615 layer. It's a PCAP-based tool that allows you to specify an extended regular
3616 or hexadecimal expression to match against data payloads of packets. It
3617 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3618 IGMP and Raw, across a wide variety of interface types, and understands BPF
3619 filter logic in the same fashion as more common packet sniffing tools, such as
3620 tcpdump and snoop.")
3621 (license license:bsd-3)))
3623 (define-public pam-mount
3630 (uri (string-append "mirror://sourceforge/pam-mount/pam_mount/"
3631 version "/pam_mount-" version ".tar.xz"))
3634 "1rvi4irb7ylsbhvx1cr6islm2xxw1a4b19q6z4a9864ndkm0f0mf"))
3636 ;; Patch adding support for encrypted volumes in LUKS2 format.
3637 ;; It comes from the Gentoo package definition for sys-auth/pam_mount.
3638 (search-patches "pam-mount-luks2-support.patch"))))
3639 (build-system gnu-build-system)
3642 ("pkg-config" ,pkg-config)))
3644 `(("cryptsetup" ,cryptsetup)
3646 ("libxml2" ,libxml2)
3647 ("linux-pam" ,linux-pam)
3649 ("openssl" ,openssl)
3651 ("util-linux" ,util-linux)))
3654 (list (string-append "--with-slibdir=" %output "/lib")
3655 (string-append "--with-ssbindir=" %output "/sbin"))
3657 (modify-phases %standard-phases
3658 (add-after 'unpack 'fix-program-paths
3659 (lambda* (#:key inputs outputs #:allow-other-keys)
3660 (let ((util-linux (assoc-ref inputs "util-linux"))
3661 (out (assoc-ref outputs "out")))
3662 (substitute* "src/mtcrypt.c"
3664 (string-append "\"" util-linux "/bin/mount\";"))
3666 (string-append "\"" util-linux "/bin/umount\";"))
3668 (string-append "\"" util-linux "/sbin/fsck\",")))
3669 (substitute* "src/rdconf1.c"
3671 (string-append "\"" util-linux "/bin/mount\", \""))
3673 (string-append "\"" util-linux "/bin/umount\", \""))
3675 (string-append "\"" util-linux "/sbin/fsck\", \""))
3676 (("\"pmvarrun\", \"")
3677 (string-append "\"" out "/sbin/pmvarrun\", \""))))
3679 (home-page "http://pam-mount.sourceforge.net")
3680 (synopsis "PAM module to mount volumes for a user session")
3682 "Pam-mount is a PAM module that can mount volumes when a user logs in.
3683 It supports mounting local filesystems of any kind the normal mount utility
3684 supports. It can also mount encrypted LUKS volumes using the password
3685 supplied by the user when logging in.")
3686 (license (list license:gpl2+ license:lgpl2.1+))))