1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016, 2018, 2019 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2015, 2016 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
7 ;;; Copyright © 2015 Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
8 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
9 ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
11 ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
13 ;;; Copyright © 2016 Peter Feigl <peter.feigl@nexoid.at>
14 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
15 ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
16 ;;; Copyright © 2016, 2017, 2018, 2019, 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 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 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
28 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org>
29 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
31 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
32 ;;; Copyright © 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
33 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
35 ;;; This file is part of GNU Guix.
37 ;;; GNU Guix is free software; you can redistribute it and/or modify it
38 ;;; under the terms of the GNU General Public License as published by
39 ;;; the Free Software Foundation; either version 3 of the License, or (at
40 ;;; your option) any later version.
42 ;;; GNU Guix is distributed in the hope that it will be useful, but
43 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
44 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45 ;;; GNU General Public License for more details.
47 ;;; You should have received a copy of the GNU General Public License
48 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
50 (define-module (gnu packages admin)
51 #:use-module ((guix licenses) #:prefix license:)
52 #:use-module (guix packages)
53 #:use-module (guix utils)
54 #:use-module (guix download)
55 #:use-module (guix git-download)
56 #:use-module (guix build-system cmake)
57 #:use-module (guix build-system emacs)
58 #:use-module (guix build-system gnu)
59 #:use-module (guix build-system meson)
60 #:use-module (guix build-system perl)
61 #:use-module (guix build-system python)
62 #:use-module (guix build-system trivial)
63 #:use-module (gnu packages)
64 #:use-module (gnu packages algebra)
65 #:use-module (gnu packages base)
66 #:use-module (gnu packages bash)
67 #:use-module (gnu packages c)
68 #:use-module (gnu packages check)
69 #:use-module (gnu packages crypto)
70 #:use-module (gnu packages cryptsetup)
71 #:use-module (gnu packages cyrus-sasl)
72 #:use-module (gnu packages dns)
73 #:use-module (gnu packages file)
74 #:use-module (gnu packages ncurses)
75 #:use-module (gnu packages readline)
76 #:use-module (gnu packages libbsd)
77 #:use-module (gnu packages linux)
78 #:use-module (gnu packages lua)
79 #:use-module (gnu packages guile)
80 #:use-module (gnu packages gettext)
81 #:use-module (gnu packages imagemagick)
82 #:use-module (gnu packages inkscape)
83 #:use-module (gnu packages pcre)
84 #:use-module (gnu packages perl)
85 #:use-module (gnu packages perl-check)
86 #:use-module (gnu packages tcl)
87 #:use-module (gnu packages compression)
88 #:use-module (gnu packages cross-base)
89 #:use-module (gnu packages tls)
90 #:use-module (gnu packages gnupg)
91 #:use-module (gnu packages bison)
92 #:use-module (gnu packages flex)
93 #:use-module (gnu packages gl)
94 #:use-module (gnu packages glib)
95 #:use-module (gnu packages openldap)
96 #:use-module (gnu packages mcrypt)
97 #:use-module (gnu packages patchutils)
98 #:use-module (gnu packages pkg-config)
99 #:use-module (gnu packages popt)
100 #:use-module (gnu packages python)
101 #:use-module (gnu packages python-crypto)
102 #:use-module (gnu packages python-web)
103 #:use-module (gnu packages python-xyz)
104 #:use-module (gnu packages qt)
105 #:use-module (gnu packages sphinx)
106 #:use-module (gnu packages terminals)
107 #:use-module (gnu packages texinfo)
108 #:use-module (gnu packages groff)
109 #:use-module (gnu packages pciutils)
110 #:use-module (gnu packages libunwind)
111 #:use-module (gnu packages libusb)
112 #:use-module (gnu packages libftdi)
113 #:use-module (gnu packages image)
114 #:use-module (gnu packages xorg)
115 #:use-module (gnu packages xdisorg)
116 #:use-module (gnu packages man)
117 #:use-module (gnu packages autotools)
118 #:use-module (gnu packages gnome)
119 #:use-module (gnu packages kerberos)
120 #:use-module (gnu packages gtk)
121 #:use-module (gnu packages xml)
122 #:use-module (gnu packages boost)
123 #:use-module (gnu packages elf)
124 #:use-module (gnu packages mpi)
125 #:use-module (gnu packages version-control)
126 #:use-module (gnu packages web))
135 (uri (string-append "https://github.com/aide/aide/releases/download/v"
136 version "/aide-" version ".tar.gz"))
138 (base32 "15xp47sz7kk1ciffw3f5xw2jg2mb2lqrbr3q6p4bkbz5dap9iy8p"))))
139 (build-system gnu-build-system)
144 `(("libgcrypt" ,libgcrypt)
145 ("libgpg-error" ,libgpg-error)
146 ("libmhash" ,libmhash)
147 ("pcre:static" ,pcre "static")
149 ("zlib:static" ,zlib "static")
151 (synopsis "File and directory integrity checker")
153 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
154 integrity checker. It creates a database from the regular expression rules
155 that it finds from its configuration files. Once this database is initialized
156 it can be used to verify the integrity of the files. It has several message
157 digest algorithms that are used to check the integrity of files. All of the
158 usual file attributes can be checked for inconsistencies.")
159 (home-page "https://aide.github.io/")
160 (license license:gpl2+)))
162 (define-public progress
170 (url "https://github.com/Xfennec/progress.git")
171 (commit (string-append "v" version))))
173 (base32 "1lk2v4b767klib93an4g3f7z5qrv9kdk9jf7545vw1immc4kamrl"))
174 (file-name (git-file-name name version))))
175 (build-system gnu-build-system)
177 `(("pkg-config" ,pkg-config)
180 `(("ncurses" ,ncurses)))
182 `(#:tests? #f ; no test suite
183 #:make-flags (list "CC=gcc"
184 (string-append "PREFIX=" (assoc-ref %outputs "out")))
186 (modify-phases %standard-phases
187 (delete 'configure)))) ; no configure script
188 (home-page "https://github.com/Xfennec/progress")
189 (synopsis "Program to view the progress of the coreutils commands")
190 (description "A program that looks for coreutils basic commands (cp, mv,
191 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
192 the percentage of copied data. It can also show estimated time and throughput,
193 and provides a \"top-like\" mode (monitoring).")
194 (license license:gpl3+)))
196 (define-public shepherd
202 (uri (string-append "mirror://gnu/shepherd/shepherd-"
206 "1xn6mb5bh8bpfgdrh09ja31jk0ln7bmxbbf0vjcqxkkixs2wl6sk"))))
207 (build-system gnu-build-system)
209 '(#:configure-flags '("--localstatedir=/var")))
211 `(("pkg-config" ,pkg-config)
213 ;; This is the Guile we use as a cross-compiler...
214 ("guile" ,guile-2.2)))
216 ;; ... and this is the one that appears in shebangs when cross-compiling.
217 `(("guile" ,guile-2.2) ;for <https://bugs.gnu.org/37757>
219 ;; The 'shepherd' command uses Readline when used interactively. It's
220 ;; an unusual use case though, so we don't propagate it.
221 ("guile-readline" ,guile-readline)))
222 (synopsis "System service manager")
224 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
225 the execution of system services, replacing similar functionality found in
226 typical init systems. It provides dependency-handling through a convenient
227 interface and is based on GNU Guile.")
228 (license license:gpl3+)
229 (home-page "https://www.gnu.org/software/shepherd/")))
231 (define-public cloud-utils
239 "https://launchpad.net/cloud-utils/trunk/"
240 version "/+download/cloud-utils-" version ".tar.gz"))
243 "07fl3dlqwdzw4xx7mcxhpkks6dnmaxha80zgs9f6wmibgzni8z0r"))))
244 (build-system gnu-build-system)
247 (let ((out (assoc-ref %outputs "out")))
248 (list (string-append "BINDIR=" out "/bin")
249 (string-append "MANDIR=" out "/share/man/man1")
250 (string-append "DOCDIR=" out "/share/doc")))
252 (modify-phases %standard-phases
255 (add-after 'install 'wrap
256 (lambda* (#:key outputs inputs #:allow-other-keys)
257 (let ((growpart (string-append (assoc-ref outputs "out")
259 (wrap-program growpart
260 `("PATH" ":" prefix (,(dirname (which "sfdisk"))
261 ,(dirname (which "readlink"))))))
265 ("util-linux" ,util-linux))) ; contains sfdisk for growpart
266 (home-page "https://launchpad.net/cloud-utils")
267 (synopsis "Set of utilities for cloud computing environments")
269 "This package contains a set of utilities for cloud computing
273 @item @command{cloud-localds} Create a disk for cloud-init to utilize nocloud
274 @item @command{cloud-publish-image} Wrapper for cloud image publishing
275 @item @command{cloud-publish-tarball} Wrapper for publishing cloud tarballs
276 @item @command{cloud-publish-ubuntu} Import a Ubuntu cloud image
277 @item @command{ec2metadata} Query and display @acronym{EC2,Amazon Elastic
278 Compute Cloud} metadata
279 @item @command{growpart} Grow a partition to fill the device
280 @item @command{mount-image-callback} Mount a file and run a command
281 @item @command{resize-part-image} Resize a partition image to a new size
282 @item @command{ubuntu-cloudimg-query} Get the latest Ubuntu
283 @acronym{AMI,Amazon Machine Image}
284 @item @command{ubuntu-ec2-run} Run a @acronym{EC2,Amazon Elastic Compute
285 Cloud} instance using Ubuntu
286 @item @command{vcs-run} Obtain a repository, and run a command
287 @item @command{write-mime-multipart} Handle multipart
288 @acronym{MIME,Multipurpose Internet Mail Extensions} messages
290 (license license:gpl3)))
292 (define-public daemontools
299 "https://cr.yp.to/daemontools/"
300 "daemontools-" version ".tar.gz"))
303 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
304 (build-system gnu-build-system)
306 `(#:tests? #f ;; No tests as far as I can tell.
308 (modify-phases %standard-phases
309 (add-after 'unpack 'chdir
311 (chdir ,(string-append "daemontools-" version))
314 (add-before 'build 'patch
316 (substitute* "src/error.h"
317 (("extern int errno;")
318 "#include <errno.h>"))
322 (invoke "package/compile")))
324 (lambda* (#:key outputs #:allow-other-keys)
325 (let* ((out (assoc-ref outputs "out"))
326 (bin (string-append out "/bin")))
327 (for-each (lambda (file)
328 (install-file file bin))
329 (find-files "command")))
331 (synopsis "Tools for managing UNIX style services")
333 "@code{daemontools} is a collection of tools for managing UNIX
335 (license license:public-domain)
336 (home-page "https://cr.yp.to/daemontools.html")))
346 "https://projects.gw-computing.net/attachments/download/615/dfc-"
350 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
351 (build-system cmake-build-system)
352 (arguments '(#:tests? #f)) ; There are no tests.
353 (native-inputs `(("gettext" ,gettext-minimal)))
354 (home-page "https://projects.gw-computing.net/projects/dfc")
355 (synopsis "Display file system space usage using graphs and colors")
357 "dfc (df color) is a modern version of df. It uses colors, draws pretty
358 graphs and can export its output to different formats.")
359 (license license:bsd-3)))
367 (uri (string-append "http://hisham.hm/htop/releases/"
368 version "/htop-" version ".tar.gz"))
371 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
372 (build-system gnu-build-system)
374 `(("ncurses" ,ncurses)))
376 `(("python" ,python-wrapper))) ;for scripts/MakeHeader.py
377 (home-page "https://hisham.hm/htop/")
378 (synopsis "Interactive process viewer")
380 "This is htop, an interactive process viewer. It is a text-mode
381 application (for console or X terminals) and requires ncurses.")
382 (license license:gpl2)))
391 (uri (string-append "mirror://gnu/pies/pies-"
395 "14jb4pa4zs26d5j2skxbaypnwhsx2lw8jgj1irrgs03c2dnf7gp6"))))
396 (build-system gnu-build-system)
398 '(#:phases (modify-phases %standard-phases
399 (add-before 'build 'patch-/bin/sh
400 (lambda* (#:key inputs #:allow-other-keys)
401 ;; Use the right shell when executing user-provided
403 (let ((bash (assoc-ref inputs "bash")))
404 (substitute* '("src/progman.c" "src/comp.c")
406 (string-append "\"" bash "/bin/sh\"")))
408 (home-page "https://www.gnu.org/software/pies/")
409 (synopsis "Program invocation and execution supervisor")
411 "GNU pies is a program that supervises the invocation and execution of
412 other programs. It reads the list of programs to be started from its
413 configuration file, executes them, and then monitors their status,
414 re-executing them as necessary.")
415 (license license:gpl3+)))
417 (define-public inetutils
423 (uri (string-append "mirror://gnu/inetutils/inetutils-"
427 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
428 (build-system gnu-build-system)
430 `(#:configure-flags '("--localstatedir=/var"
432 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
433 ;; cross-compiling (by default it does not.)
434 ,@(if (%current-target-system)
435 '("--with-path-procnet-dev=/proc/net/dev")
437 ;; On some systems, 'libls.sh' may fail with an error such as:
438 ;; "Failed to tell switch -a apart from -A".
439 #:parallel-tests? #f))
440 (inputs `(("ncurses" ,ncurses)
441 ("readline" ,readline))) ;for 'ftp'
442 (native-inputs `(("netstat" ,net-tools))) ;for tests
443 (home-page "https://www.gnu.org/software/inetutils/")
444 (synopsis "Basic networking utilities")
446 "Inetutils is a collection of common network programs, such as an ftp
447 client and server, a telnet client and server, an rsh client and server, and
449 (license license:gpl3+)))
451 (define-public shadow
458 "https://github.com/shadow-maint/shadow/releases/"
459 "download/" version "/shadow-" version ".tar.xz"))
462 "0r5c1p8mfwhw11gb6mjsx1k7d4c32dxai7yss8n5pwy1p61ndd34"))))
463 (build-system gnu-build-system)
465 `(;; Assume System V `setpgrp (void)', which is the default on GNU
466 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
468 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
471 (modify-phases %standard-phases
472 (add-before 'build 'set-nscd-file-name
473 (lambda* (#:key inputs #:allow-other-keys)
474 ;; Use the right file name for nscd.
475 (let ((libc (assoc-ref inputs
476 ,(if (%current-target-system)
479 (substitute* "lib/nscd.c"
481 (string-append libc "/sbin/nscd")))
483 (add-after 'install 'remove-groups
484 (lambda* (#:key outputs #:allow-other-keys)
485 ;; Remove `groups', which is already provided by Coreutils.
486 (let* ((out (assoc-ref outputs "out"))
487 (bin (string-append out "/bin"))
488 (man (string-append out "/share/man")))
489 (delete-file (string-append bin "/groups"))
490 (for-each delete-file (find-files man "^groups\\."))
493 (inputs (if (string-contains (or (%current-target-system)
496 `(("linux-pam" ,linux-pam))
498 (home-page "https://github.com/shadow-maint/shadow")
499 (synopsis "Authentication-related tools such as passwd, su, and login")
501 "Shadow provides a number of authentication-related tools, including:
502 login, passwd, su, groupadd, and useradd.")
504 ;; The `vipw' program is GPLv2+.
505 ;; libmisc/salt.c is public domain.
506 (license license:bsd-3)))
508 (define-public mingetty
514 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
515 version "/mingetty-" version ".tar.gz"))
518 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
519 (build-system gnu-build-system)
522 (modify-phases %standard-phases
524 (lambda* (#:key inputs outputs target #:allow-other-keys)
525 (let* ((out (assoc-ref outputs "out"))
526 (man8 (string-append out "/share/man/man8"))
527 (sbin (string-append out "/sbin"))
528 (shadow (assoc-ref inputs "shadow"))
529 (login (string-append shadow "/bin/login")))
530 (substitute* "Makefile"
531 ,@(if (%current-target-system)
533 (string-append "CC=" target "-gcc\n")))
536 (string-append "SBINDIR = " out
539 (string-append "MANDIR = " out
540 "/share/man/man8\n")))
542 ;; Pick the right 'login' by default.
543 (substitute* "mingetty.c"
545 (string-append "\"" login "\"")))
550 #:tests? #f)) ; no tests
551 (inputs `(("shadow" ,shadow)))
553 (home-page "https://sourceforge.net/projects/mingetty")
554 (synopsis "Getty for the text console")
556 "Small console getty that is started on the Linux text console,
557 asks for a login name and then transfers over to @code{login}. It is extended
558 to allow automatic login and starting any app.")
559 (license license:gpl2+)))
561 (define-public net-base
568 "mirror://debian/pool/main/n/netbase/netbase_"
572 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
573 (build-system trivial-build-system)
575 `(#:modules ((guix build utils))
577 (use-modules (guix build utils)
580 (let* ((source (assoc-ref %build-inputs "source"))
581 (tar (assoc-ref %build-inputs "tar"))
582 (xz (assoc-ref %build-inputs "xz"))
583 (output (assoc-ref %outputs "out"))
584 (etc (string-append output "/etc")))
585 (setenv "PATH" (string-append xz "/bin"))
586 (invoke (string-append tar "/bin/tar") "xvf"
588 (chdir ,(string-append "netbase-" version))
591 '("etc-services" "etc-protocols" "etc-rpc")
592 (map (cut string-append etc "/" <>)
593 '("services" "protocols" "rpc")))
595 (native-inputs `(("tar" ,tar)
597 (synopsis "IANA protocol, port, and RPC number assignments")
599 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
600 files, which contain information about the IANA-assigned port, protocol, and
602 (home-page "https://packages.debian.org/sid/netbase")
603 (license license:gpl2)))
605 (define-public netcat
611 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
612 "/netcat-" version ".tar.bz2"))
615 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
616 (build-system gnu-build-system)
619 ;; By default, man and info pages are put in PREFIX/{man,info},
620 ;; but we want them in PREFIX/share/{man,info}.
621 (let ((out (assoc-ref %outputs "out")))
622 (list (string-append "--mandir=" out "/share/man")
623 (string-append "--infodir=" out "/share/info")))))
624 (home-page "http://netcat.sourceforge.net")
625 (synopsis "Read and write data over TCP/IP")
627 "Netcat is a featured networking utility which reads and writes data
628 across network connections, using the TCP/IP protocol. It is designed to be a
629 reliable \"back-end\" tool that can be used directly or easily driven by other
630 programs and scripts. At the same time, it is a feature-rich network debugging
631 and exploration tool, since it can create almost any kind of connection you
632 would need and has several interesting built-in capabilities.")
633 (license license:gpl2+)))
635 (define-public netcat-openbsd
637 (name "netcat-openbsd")
642 (url "https://salsa.debian.org/debian/netcat-openbsd.git")
643 (commit (string-append "debian/" version))))
644 (file-name (git-file-name name version))
647 "08r3mmck3s5pbvwyq19wp5g8jqcxza3cm8nkc6jm7rqn4jdydc4z"))))
648 (build-system gnu-build-system)
650 `(#:tests? #f ; no test suite
653 (string-append "CFLAGS=-I" (assoc-ref %build-inputs "libbsd") "/include")
656 (modify-phases %standard-phases
658 (add-before 'build 'patch
660 (setenv "QUILT_PATCHES" "debian/patches")
661 (invoke "quilt" "push" "-a")
664 (lambda* (#:key outputs #:allow-other-keys)
665 (let* ((out (assoc-ref outputs "out"))
666 (bin (string-append out "/bin"))
667 (man (string-append out "/share/man/man1"))
668 (doc (string-append out "/share/doc/netcat-openbsd-" ,version))
669 (examples (string-append doc "/examples")))
670 (install-file "nc" bin)
671 (install-file "nc.1" man)
672 (install-file "debian/copyright" doc)
673 (copy-recursively "debian/examples" examples)
675 (inputs `(("libbsd" ,libbsd)))
676 (native-inputs `(("pkg-config" ,pkg-config)
678 (home-page "https://packages.debian.org/sid/netcat-openbsd")
679 (synopsis "Read and write data over TCP/IP")
681 "Netcat is a simple Unix utility which reads and writes data across
682 network connections using TCP or UDP protocol. It is designed to be a reliable
683 \"back-end\" tool that can be used directly or easily driven by other programs
684 and scripts. At the same time it is a feature-rich network debugging and
685 exploration tool, since it can create almost any kind of connection you would
686 need and has several interesting built-in capabilities.
688 This package contains the OpenBSD rewrite of netcat, including support for
689 IPv6, proxies, and Unix sockets.")
690 (license (list license:bsd-3
691 license:bsd-2)))) ; atomicio.*, socks.c
693 (define-public sipcalc
700 (uri (string-append "http://www.routemeister.net/projects"
701 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
704 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
705 (build-system gnu-build-system)
706 (home-page "http://www.routemeister.net/projects/sipcalc/")
707 (synopsis "Command-line IP subnet calculator")
709 "Sipcalc is an advanced command-line IP subnet calculator. It can take
710 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
711 of information about a given subnet.
718 @item Retrieving of address information from interfaces.
719 @item Classfull and CIDR output.
720 @item Multiple address and netmask input and output formats (dotted quad, hex,
722 @item Output of broadcast address, network class, Cisco wildcard,
723 hosts/range, network range.
724 @item The ability to split a network based on a smaller netmask, now also with
725 recursive runs on the generated subnets. (also IPv6)
729 @item Compressed and expanded input and output addresses.
730 @item Standard IPv6 network output.
731 @item v4 in v6 output.
732 @item Reverse DNS address generation.
735 (license license:bsd-3)))
743 (uri (string-append "mirror://gnu/alive/alive-"
747 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
748 (build-system gnu-build-system)
749 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
750 (inputs `(("guile" ,guile-2.0)
751 ("inetutils" ,inetutils)))
752 (home-page "https://www.gnu.org/software/alive/")
753 (synopsis "Autologin and keep-alive daemon")
755 "GNU Alive sends periodic pings to a server, generally to keep a
757 (license license:gpl3+)))
759 (define-public isc-dhcp
760 (let* ((bind-major-version "9")
761 (bind-minor-version "11")
762 (bind-patch-version "14")
763 (bind-release-type "") ; for patch release, use "-P"
764 (bind-release-version "") ; for patch release, e.g. "6"
765 (bind-version (string-append bind-major-version
771 bind-release-version)))
777 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
778 version "/dhcp-" version ".tar.gz"))
781 "025nfqx4zwdgv4b3rkw26ihcj312vir08jk6yi57ndmb4a4m08ia"))))
782 (build-system gnu-build-system)
784 `(#:parallel-build? #f
785 #:configure-flags '("--with-randomdev=/dev/random")
787 (modify-phases %standard-phases
788 (add-after 'unpack 'replace-bundled-bind
789 (lambda* (#:key inputs native-inputs #:allow-other-keys)
790 ;; XXX TODO: Remove the following invocation of 'patch' when
791 ;; isc-dhcp is updated. It should be needed only for 4.4.1.
792 (let ((patch (string-append (assoc-ref (or native-inputs inputs)
795 (the-patch (assoc-ref (or native-inputs inputs)
796 "fixes-for-newer-bind.patch")))
797 (format #t "applying '~a'...~%" the-patch)
798 (invoke patch "--force" "--no-backup-if-mismatch"
799 "-p1" "--input" the-patch))
801 (delete-file "bind/bind.tar.gz")
802 (copy-file (assoc-ref inputs "bind-source-tarball")
804 (chmod "bind/bind.tar.gz" #o644)
805 (substitute* "bind/version.tmp"
807 (format #f "MAJORVER=~a\n" ,bind-major-version))
809 (format #f "MINORVER=~a\n" ,bind-minor-version))
811 (format #f "PATCHVER=~a\n" ,bind-patch-version))
813 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
815 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
817 (add-before 'configure 'fix-bind-cross-compilation
819 (substitute* "configure"
821 "--host=$host_alias"))
823 (add-after 'configure 'post-configure
824 (lambda* (#:key outputs #:allow-other-keys)
825 ;; Point to the right client script, which will be
826 ;; installed in a later phase.
827 (substitute* "includes/dhcpd.h"
828 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
829 (let ((out (assoc-ref outputs "out")))
830 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
831 out "/libexec/dhclient-script"
834 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
835 ;; we must patch shebangs in there and make sure the right
837 (with-directory-excursion "bind"
838 (substitute* "Makefile"
840 (let ((sh (which "sh")))
841 (string-append "./configure CONFIG_SHELL="
842 sh " SHELL=" sh " "))))
844 (let ((bind-directory (string-append "bind-" ,bind-version)))
845 (invoke "tar" "xf" "bind.tar.gz")
846 (for-each patch-shebang
847 (find-files bind-directory ".*"))
848 (substitute* (string-append bind-directory "/configure")
851 (invoke "tar" "cf" "bind.tar.gz"
853 ;; avoid non-determinism in the archive
857 "--group=root:0")))))
858 (add-after 'install 'post-install
859 (lambda* (#:key inputs outputs #:allow-other-keys)
860 ;; Install the dhclient script for GNU/Linux and make sure
861 ;; if finds all the programs it needs.
862 (let* ((out (assoc-ref outputs "out"))
863 (libexec (string-append out "/libexec"))
864 (coreutils (assoc-ref inputs "coreutils"))
865 (inetutils (assoc-ref inputs "inetutils"))
866 (net-tools (assoc-ref inputs "net-tools"))
867 (sed (assoc-ref inputs "sed")))
868 (substitute* "client/scripts/linux"
870 (string-append (assoc-ref inputs "iproute")
874 (copy-file "client/scripts/linux"
875 (string-append libexec "/dhclient-script"))
878 (string-append libexec "/dhclient-script")
881 (string-append dir "/bin:"
883 (list inetutils net-tools coreutils sed))))
890 ;; XXX TODO: Remove the following patch, and also the 'patch'
891 ;; program, when isc-dhcp is updated.
892 ("fixes-for-newer-bind.patch"
893 ,(search-patch "isc-dhcp-4.4.1-fixes-for-newer-bind.patch"))
896 (inputs `(("inetutils" ,inetutils)
897 ("net-tools" ,net-tools)
900 ;; XXX isc-dhcp bundles a copy of bind that has security
901 ;; flaws, so we use a newer version.
902 ("bind-source-tarball"
905 (uri (string-append "https://ftp.isc.org/isc/bind9/"
907 "/bind-" bind-version ".tar.gz"))
910 "1pv3bvm9dzyz2kqjkw15sgh0hd5fzsv274v5z6jp9c4nb5130fyr"))))
912 ;; When cross-compiling, we need the cross Coreutils and sed.
913 ;; Otherwise just use those from %FINAL-INPUTS.
914 ,@(if (%current-target-system)
915 `(("coreutils" ,coreutils)
919 (home-page "https://www.isc.org/products/DHCP/")
920 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
922 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
923 reference implementation of all aspects of DHCP, through a suite of DHCP
924 tools: server, client, and relay agent.")
925 (license license:mpl2.0)
926 (properties '((cpe-name . "dhcp"))))))
928 (define-public libpcap
934 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
938 "153h1378diqyc27jjgz6gg5nxmb4ddk006d9xg69nqavgiikflk3"))))
939 (build-system gnu-build-system)
944 ;; There are some tests in testprogs/, but no automated test suite.
946 (home-page "https://www.tcpdump.org")
947 (synopsis "Network packet capture library")
949 "libpcap is an interface for user-level packet capture. It provides a
950 portable framework for low-level network monitoring. Applications include
951 network statistics collection, security monitoring, network debugging, etc.")
952 (license (list license:bsd-4 ; fad-*.c and several other source files
953 license:bsd-3 ; pcap/, sockutils.* & others
954 license:bsd-2)))) ; the rest
956 (define-public tcpdump
962 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
966 "0434vdcnbqaia672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c"))))
967 (build-system gnu-build-system)
968 (inputs `(("libpcap" ,libpcap)
969 ("openssl" ,openssl)))
970 (native-inputs `(("perl" ,perl))) ; for tests
971 (home-page "https://www.tcpdump.org/")
972 (synopsis "Network packet analyzer")
974 "Tcpdump is a command-line tool to analyze network traffic passing
975 through the network interface controller.")
976 (license license:bsd-3)))
978 (define-public jnettop
985 (string-append "https://web.archive.org/web/20161221100811/"
986 "http://jnettop.kubs.info/dist/jnettop-"
990 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
991 (build-system gnu-build-system)
993 `(("pkg-config" ,pkg-config)))
997 ("libpcap" ,libpcap)))
999 "https://web.archive.org/web/20160703195221/http://jnettop.kubs.info/wiki/")
1000 (synopsis "Visualize network traffic by bandwidth use")
1002 "Jnettop is a traffic visualiser, which captures traffic going
1003 through the host it is running from and displays streams sorted
1004 by bandwidth they use.")
1005 (license license:gpl2+)))
1007 (define-public clusterssh
1013 (uri (string-append "mirror://sourceforge/clusterssh/"
1014 "2.%20ClusterSSH%20Series%204/"
1015 "App-ClusterSSH-v" version ".tar.gz"))
1018 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
1019 (build-system perl-build-system)
1022 (modify-phases %standard-phases
1023 (add-after 'unpack 'refer-to-inputs
1024 (lambda* (#:key inputs #:allow-other-keys)
1025 (substitute* (list "lib/App/ClusterSSH/Config.pm"
1030 (add-before 'check 'delete-failing-tests
1032 ;; This checks whether all code is nicely formatted. The above
1033 ;; ‘refer-to-inputs’ phase breaks this pedantry, so disable it.
1034 (delete-file "t/perltidy.t")
1035 ;; Update the manifest so t/manifest.t happily passes.
1036 (substitute* "MANIFEST"
1037 (("t/perltidy.t\n") ""))
1039 (add-after 'install 'augment-library-path
1040 (lambda* (#:key inputs outputs #:allow-other-keys)
1041 (let* ((out (assoc-ref outputs "out"))
1042 (bin (string-append out "/bin")))
1043 (with-directory-excursion bin
1046 (wrap-program program
1047 `("PERL5LIB" ":" prefix
1048 ,(map (lambda (file-name)
1049 (string-append file-name
1050 "/lib/perl5/site_perl"))
1052 (map (lambda (input)
1053 (assoc-ref inputs input))
1054 ;; These may be propagated and hence
1055 ;; not explicitly listed as inputs.
1056 (list "perl-class-data-inheritable"
1057 "perl-devel-stacktrace"
1058 "perl-exception-class"
1062 "perl-x11-protocol-other")))))))
1063 (find-files "." ".*")))
1066 `(("perl-cpan-changes" ,perl-cpan-changes)
1067 ("perl-file-slurp" ,perl-file-slurp)
1068 ("perl-file-which" ,perl-file-which)
1069 ("perl-module-build" ,perl-module-build)
1070 ("perl-readonly" ,perl-readonly)
1071 ("perl-test-differences" ,perl-test-differences)
1072 ("perl-test-distmanifest" ,perl-test-distmanifest)
1073 ("perl-test-perltidy" ,perl-test-perltidy)
1074 ("perl-test-pod" ,perl-test-pod)
1075 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
1076 ("perl-test-trap" ,perl-test-trap)
1077 ("perltidy" ,perltidy)))
1079 `(("perl-exception-class" ,perl-exception-class)
1080 ("perl-sort-naturally" ,perl-sort-naturally)
1081 ("perl-tk" ,perl-tk)
1082 ("perl-try-tiny" ,perl-try-tiny)
1083 ("perl-x11-protocol" ,perl-x11-protocol)
1084 ("perl-x11-protocol-other" ,perl-x11-protocol-other)
1086 ;; The clusterssh.sourceforge.net address requires login to view
1087 (home-page "https://sourceforge.net/projects/clusterssh/")
1088 (synopsis "Secure concurrent multi-server terminal control")
1090 "ClusterSSH controls a number of xterm windows via a single graphical
1091 console window to allow commands to be interactively run on multiple servers
1092 over ssh connections.")
1093 (license license:gpl2+)))
1095 (define-public rename
1102 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
1106 "137m8s06r4n038ivlr5r1d9a7q9l7shmwpvnyx053r9ndhvbnkh5"))))
1107 (build-system perl-build-system)
1110 (modify-phases %standard-phases
1111 (add-after 'install 'find-itself
1112 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
1113 (lambda* (#:key outputs #:allow-other-keys)
1114 (let* ((out (assoc-ref outputs "out"))
1115 (bin (string-append out "/bin")))
1116 (with-directory-excursion bin
1119 (wrap-program program
1120 `("PERL5LIB" ":" prefix
1121 (,(string-append out "/lib/perl5/site_perl")))))
1122 (find-files "." ".*")))
1125 `(("perl-module-build" ,perl-module-build)
1126 ("perl-test-pod" ,perl-test-pod)
1127 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1128 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
1129 (synopsis "Perl extension for renaming multiple files")
1131 "This package provides a Perl interface (@code{Perl::Rename}) as well
1132 as a command-line utility (@command{rename}) that can rename multiple files
1133 at once based on a Perl regular expression.")
1134 (license license:perl-license)))
1136 (define-public rottlog
1142 (uri (string-append "mirror://gnu/rottlog/rottlog-"
1146 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
1147 (modules '((guix build utils)))
1150 (substitute* "Makefile.in"
1151 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
1152 ;; Don't try to chown root.
1154 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
1155 ;; Don't attempt to create /var/lib/rottlog.
1158 (build-system gnu-build-system)
1160 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
1161 "--localstatedir=/var")
1163 ;; Install example config files in OUT/etc.
1164 #:make-flags (list (string-append "ROTT_ETCDIR="
1165 (assoc-ref %outputs "out")
1168 #:phases (modify-phases %standard-phases
1169 (add-after 'unpack 'patch-paths
1171 (substitute* "rc/rc"
1172 (("/usr/sbin/sendmail") "sendmail"))
1174 (add-after 'build 'set-packdir
1176 ;; Set a default location for archived logs.
1177 (substitute* "rc/rc"
1179 "packdir=\"/var/log\""))
1181 (add-before 'install 'tweak-rc-weekly
1183 (substitute* "rc/weekly"
1187 ;; The file is called 'syslog.pid' (no 'd').
1190 (add-after 'install 'install-info
1192 (invoke "make" "install-info"))))))
1193 (native-inputs `(("texinfo" ,texinfo)
1194 ("util-linux" ,util-linux))) ; for 'cal'
1195 (home-page "https://www.gnu.org/software/rottlog/")
1196 (synopsis "Log rotation and management")
1198 "GNU Rot[t]log is a program for managing log files. It is used to
1199 automatically rotate out log files when they have reached a given size or
1200 according to a given schedule. It can also be used to automatically compress
1201 and archive such logs. Rot[t]log will mail reports of its activity to the
1202 system administrator.")
1203 (license license:gpl3+)))
1212 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
1214 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1215 version ".tar.gz")))
1218 "0ks5mm9hda5idivncyfpiz4lrd8fv0dpmsl711788k7f7ixdka3y"))
1219 (modules '((guix build utils)))
1222 (delete-file-recursively "lib/zlib")
1224 (build-system gnu-build-system)
1227 (list "--with-logpath=/var/log/sudo.log"
1228 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1229 "--with-vardir=/var/db/sudo"
1230 "--with-iologdir=/var/log/sudo-io"
1232 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1234 (string-append "CPPFLAGS=-D_PATH_MV='\""
1235 (assoc-ref %build-inputs "coreutils")
1238 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1239 #:parallel-build? #f
1242 (modify-phases %standard-phases
1243 (add-before 'configure 'pre-configure
1245 (substitute* "src/sudo_usage.h.in"
1246 ;; Do not capture 'configure' arguments since we would
1247 ;; unduly retain references, and also because the
1248 ;; CPPFLAGS above would close the string literal
1250 (("@CONFIGURE_ARGS@") "\"\""))
1251 (substitute* (find-files "." "Makefile\\.in")
1252 (("-o [[:graph:]]+ -g [[:graph:]]+")
1253 ;; Allow installation as non-root.
1255 (("^install: (.*)install-sudoers(.*)" _ before after)
1256 ;; Don't try to create /etc/sudoers.
1257 (string-append "install: " before after "\n"))
1258 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1259 ;; Don't try to create /run/sudo.
1261 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1262 ;; Don't try to create /var/db/sudo.
1265 ;; ‘Checking existing [/etc/]sudoers file for syntax errors’ is
1266 ;; not the task of the build system, and fails.
1267 (substitute* "plugins/sudoers/Makefile.in"
1268 (("^pre-install:" match)
1269 (string-append match "\ndisabled-" match)))
1272 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1273 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1277 ("linux-pam" ,linux-pam)
1279 ("coreutils" ,coreutils)))
1280 (home-page "https://www.sudo.ws/")
1281 (synopsis "Run commands as root")
1283 "Sudo (su \"do\") allows a system administrator to delegate authority to
1284 give certain users (or groups of users) the ability to run some (or all)
1285 commands as root or another user while providing an audit trail of the
1286 commands and their arguments.")
1288 ;; See <http://www.sudo.ws/sudo/license.html>.
1289 (license license:x11)))
1291 (define-public wpa-supplicant-minimal
1293 (name "wpa-supplicant-minimal")
1298 "https://w1.fi/releases/wpa_supplicant-"
1302 "05qzak1mssnxcgdrafifxh9w86a4ha69qabkg4bsigk499xyxggw"))
1303 (modules '((guix build utils)))
1306 (substitute* "wpa_supplicant/defconfig"
1307 ;; Disable D-Bus to save ~14MiB on the closure size.
1308 (("^CONFIG_CTRL_IFACE_DBUS" line _)
1309 (string-append "#" line)))
1311 (build-system gnu-build-system)
1314 (modify-phases %standard-phases
1316 (lambda* (#:key outputs #:allow-other-keys)
1317 (chdir "wpa_supplicant")
1318 (copy-file "defconfig" ".config")
1319 (let ((port (open-file ".config" "al")))
1321 CONFIG_DEBUG_SYSLOG=y
1325 CONFIG_DRIVER_NL80211=y
1326 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1328 CONFIG_READLINE=y\n" port)
1331 (add-after 'install 'install-documentation
1332 (lambda* (#:key outputs #:allow-other-keys)
1333 (let* ((out (assoc-ref outputs "out"))
1334 (doc (string-append out "/share/doc/wpa-supplicant"))
1335 (man (string-append out "/share/man"))
1336 (man5 (string-append man "/man5"))
1337 (man8 (string-append man "/man8")))
1338 (define (copy-man-page target)
1340 (install-file file target)))
1342 (mkdir-p man5) (mkdir man8)
1343 (for-each (copy-man-page man5)
1344 (find-files "doc/docbook" "\\.5"))
1345 (for-each (copy-man-page man8)
1346 (find-files "doc/docbook" "\\.8"))
1348 ;; wpa_supplicant.conf(5) does not explain all configuration
1349 ;; options but refers to the example config file, so install it
1350 ;; along with READMEs.
1351 (for-each (lambda (file)
1352 (install-file file doc))
1353 '("README" "README-DPP" "README-HS20"
1354 "README-P2P" "README-WPS"
1355 "wpa_supplicant.conf"))
1358 #:make-flags (list "CC=gcc"
1359 (string-append "BINDIR=" (assoc-ref %outputs "out")
1361 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1365 `(("readline" ,readline)
1367 ("openssl" ,openssl)))
1369 `(("pkg-config" ,pkg-config)))
1370 (home-page "https://w1.fi/wpa_supplicant/")
1371 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1373 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1374 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1375 the client stations. It implements key negotiation with a WPA Authenticator
1376 and it controls the roaming and IEEE 802.11 authentication/association of the
1379 This package provides the @code{wpa_supplicant} daemon and the @code{wpa_cli}
1382 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1383 (license license:bsd-3)
1385 (properties `((cpe-name . "wpa_supplicant")))))
1387 (define-public wpa-supplicant
1388 (package (inherit wpa-supplicant-minimal)
1389 (name "wpa-supplicant")
1390 (inputs `(("dbus" ,dbus)
1391 ,@(package-inputs wpa-supplicant-minimal)))
1393 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1395 `(modify-phases ,phases
1396 (add-after 'configure 'configure-for-dbus
1398 (let ((port (open-file ".config" "al")))
1400 CONFIG_CTRL_IFACE_DBUS_NEW=y
1401 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1404 (add-after 'install-documentation 'install-dbus-conf
1405 (lambda* (#:key outputs #:allow-other-keys)
1406 (let* ((out (assoc-ref outputs "out"))
1407 (dir (string-append out "/etc/dbus-1/system.d")))
1409 (copy-file "dbus/dbus-wpa_supplicant.conf"
1410 (string-append dir "/wpa_supplicant.conf")))
1413 (define-public wpa-supplicant-gui
1415 (inherit wpa-supplicant)
1416 (name "wpa-supplicant-gui")
1417 (inputs `(("qtbase" ,qtbase)
1419 ,@(package-inputs wpa-supplicant)))
1422 `(("imagemagick" ,imagemagick)
1423 ("inkscape" ,inkscape)
1424 ,@(package-native-inputs wpa-supplicant)))
1426 `(#:phases (modify-phases %standard-phases
1427 (add-after 'unpack 'chdir
1429 (chdir "wpa_supplicant/wpa_gui-qt4")
1434 (invoke "qmake" "wpa_gui.pro")
1435 (invoke "make" "-j" (number->string (parallel-job-count)))
1436 (invoke "make" "-C" "icons")))
1438 (lambda* (#:key inputs outputs #:allow-other-keys)
1439 (let ((out (assoc-ref outputs "out"))
1440 (qt '("qtbase" "qtsvg")))
1441 (install-file "wpa_gui" (string-append out "/bin"))
1442 (install-file "wpa_gui.desktop"
1443 (string-append out "/share/applications"))
1444 (copy-recursively "icons/hicolor"
1445 (string-append out "/share/icons/hicolor"))
1446 (wrap-program (string-append out "/bin/wpa_gui")
1447 `("QT_PLUGIN_PATH" ":" prefix
1448 ,(map (lambda (label)
1449 (string-append (assoc-ref inputs label)
1450 "/lib/qt5/plugins/"))
1453 (synopsis "Graphical user interface for WPA supplicant")))
1455 (define-public hostapd
1461 (uri (string-append "https://w1.fi/releases/hostapd-" version
1465 "1mrbvg4v7vm7mknf0n29mf88k3s4a4qj6r4d51wq8hmjj1m7s7c8"))))
1466 (build-system gnu-build-system)
1469 (modify-phases %standard-phases
1471 (lambda* (#:key outputs #:allow-other-keys)
1472 ;; This is mostly copied from 'wpa-supplicant' above.
1474 (copy-file "defconfig" ".config")
1475 (let ((port (open-file ".config" "al")))
1480 CONFIG_IEEE80211AC=y\n" port)
1483 (add-after 'install 'install-man-pages
1484 (lambda* (#:key outputs #:allow-other-keys)
1485 (let* ((out (assoc-ref outputs "out"))
1486 (man (string-append out "/share/man"))
1487 (man1 (string-append man "/man1"))
1488 (man8 (string-append man "/man8")))
1489 (define (copy-man-page target)
1491 (install-file file target)))
1493 (for-each (copy-man-page man1)
1494 (find-files "." "\\.1"))
1495 (for-each (copy-man-page man8)
1496 (find-files "." "\\.8"))
1499 #:make-flags (list "CC=gcc"
1500 (string-append "BINDIR=" (assoc-ref %outputs "out")
1502 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1505 (native-inputs `(("pkg-config" ,pkg-config)))
1507 ;; There's an optional dependency on SQLite.
1508 (inputs `(("openssl" ,openssl)
1510 (home-page "https://w1.fi/hostapd/")
1511 (synopsis "Daemon for Wi-Fi access points and authentication servers")
1513 "hostapd is a user-space daemon for WiFi access points and authentication
1514 servers. It implements IEEE 802.11 access point management, IEEE
1515 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS
1516 authentication server.")
1518 ;; Same license as wpa_supplicant.
1519 (license license:bsd-3)))
1521 (define-public wakelan
1528 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1532 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1533 (build-system gnu-build-system)
1536 (modify-phases %standard-phases
1538 (lambda* (#:key outputs #:allow-other-keys)
1539 (let ((out (assoc-ref outputs "out")))
1540 (mkdir-p (string-append out "/bin"))
1541 (mkdir-p (string-append out "/share/man/man1"))
1543 ;; It's an old configure script that doesn't understand
1544 ;; the extra options we pass.
1545 (setenv "CONFIG_SHELL" (which "bash"))
1546 (invoke "./configure"
1547 (string-append "--prefix=" out)
1548 (string-append "--mandir=" out
1551 (home-page "https://www.kernel.org") ; really, no home page
1552 (synopsis "Send a wake-on-LAN packet")
1554 "WakeLan broadcasts a properly formatted UDP packet across the local area
1555 network, which causes enabled computers to power on.")
1556 (license license:gpl2+)))
1558 (define-public dmidecode
1565 "mirror://savannah/dmidecode/dmidecode-"
1569 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1570 (build-system gnu-build-system)
1572 '(#:phases (modify-phases %standard-phases (delete 'configure))
1573 #:tests? #f ; no 'check' target
1574 #:make-flags (list (string-append "prefix="
1575 (assoc-ref %outputs "out")))))
1576 (home-page "https://www.nongnu.org/dmidecode/")
1577 (synopsis "Read hardware information from the BIOS")
1579 "Dmidecode reports information about your system's hardware as described
1580 in your system BIOS according to the SMBIOS/DMI standard. This typically
1581 includes system manufacturer, model name, serial number, BIOS version, asset
1582 tag as well as a lot of other details of varying level of interest and
1583 reliability depending on the manufacturer. This will often include usage
1584 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1585 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1586 (license license:gpl2+)))
1588 (define-public acpica
1591 (version "20191213")
1595 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1599 "1106d5b7q8jlgc2z0gz83jdah1yml4fz5z0jjcs7a52pv00c9am8"))))
1600 (build-system gnu-build-system)
1601 (native-inputs `(("flex" ,flex)
1604 '(#:make-flags (list (string-append "PREFIX=" %output)
1607 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1608 #:tests? #f ; no 'check' target
1609 #:phases (modify-phases %standard-phases (delete 'configure))))
1610 (home-page "https://acpica.org/")
1611 (synopsis "Tools for the development and debug of ACPI tables")
1613 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1614 OS-independent reference implementation of the Advanced Configuration and
1615 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1616 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1617 subsystem, and a small set of tools to assist in developing and debugging ACPI
1618 tables. This package contains only the user-space tools needed for ACPI table
1619 development, not the kernel implementation of ACPI.")
1620 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1622 (define-public s-tui
1629 (uri (pypi-uri "s-tui" version))
1632 "00lsh2v4i8rwfyjyxx5lijd6rnk9smcfffhzg5sv94ijpcnh216m"))))
1633 (build-system python-build-system)
1635 `(("python-psutil" ,python-psutil)
1636 ("python-urwid" ,python-urwid)))
1637 (home-page "https://github.com/amanusk/s-tui")
1638 (synopsis "Interactive terminal stress test and monitoring tool")
1640 "The Stress Terminal UI displays graphs of the CPU frequency,
1641 utilization, temperature and power.")
1642 (license license:gpl2+)))
1644 (define-public stress
1650 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1651 version ".orig.tar.gz"))
1654 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1655 (build-system gnu-build-system)
1656 (home-page "https://packages.debian.org/sid/stress")
1657 (synopsis "Impose load on and stress test a computer system")
1659 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1660 or disk stress on a POSIX-compliant operating system and reports any errors it
1663 Stress is not a benchmark. It is a tool used by system administrators to
1664 evaluate how well their systems will scale, by kernel programmers to evaluate
1665 perceived performance characteristics, and by systems programmers to expose
1666 the classes of bugs which only or more frequently manifest themselves when the
1667 system is under heavy load.")
1668 (license license:gpl2+)))
1670 (define-public detox
1677 (url "https://github.com/dharple/detox.git")
1678 (commit (string-append "v" version))))
1679 (file-name (git-file-name name version))
1682 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1683 (build-system gnu-build-system)
1685 `(("autoconf" ,autoconf)
1686 ("automake" ,automake)
1689 `(#:tests? #f ;no 'check' target
1690 #:phases (modify-phases %standard-phases
1691 (add-after 'unpack 'delete-configure
1692 ;; The "configure" script is present, but otherwise the
1693 ;; project is not bootstrapped: missing install-sh and
1694 ;; Makefile.in, so delete it so the bootstrap phase will
1696 (lambda _ (delete-file "configure") #t)))))
1697 (home-page "https://github.com/dharple/detox")
1698 (synopsis "Clean up file names")
1700 "Detox is a program that renames files to make them easier to work with
1701 under Unix and related operating systems. Spaces and various other unsafe
1702 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1703 characters can be replaced as well, as can UTF-8 characters.")
1704 (license license:bsd-3)))
1706 (define-public testdisk
1712 (uri (string-append "https://www.cgsecurity.org/testdisk-"
1713 version ".tar.bz2"))
1716 "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"))))
1717 (build-system gnu-build-system)
1719 `(("ntfs-3g" ,ntfs-3g)
1720 ("util-linux" ,util-linux "lib")
1721 ("openssl" ,openssl)
1722 ;; FIXME: add reiserfs.
1724 ("e2fsprogs" ,e2fsprogs)
1725 ("libjpeg" ,libjpeg-turbo)
1726 ("ncurses" ,ncurses)))
1727 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1728 (synopsis "Data recovery tool")
1730 "TestDisk is a program for data recovery, primarily designed to help
1731 recover lost partitions and/or make non-booting disks bootable again.")
1732 (license license:gpl2+)))
1741 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1744 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
1745 (build-system gnu-build-system)
1747 '(#:phases (modify-phases %standard-phases (delete 'configure))
1748 #:tests? #f ; no check target
1749 #:make-flags (let ((out (assoc-ref %outputs "out")))
1750 (list (string-append "prefix=" out)))))
1751 (synopsis "Recursively list the contents of a directory")
1753 "Tree is a recursive directory listing command that produces a depth
1754 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1755 environment variable is set and output is to tty.")
1756 (home-page "http://mama.indstate.edu/users/ice/tree/")
1757 (license license:gpl2+)))
1759 (define-public direvent
1765 (uri (string-append "mirror://gnu/direvent/direvent-"
1769 "0m9vi01b1km0cpknflyzsjnknbava0s1n6393b2bpjwyvb6j5613"))
1770 (modules '((guix build utils)))
1772 (substitute* "tests/testsuite"
1773 (("#![[:blank:]]?/bin/sh")
1776 (build-system gnu-build-system)
1779 (modify-phases %standard-phases
1780 (add-before 'build 'patch-/bin/sh
1781 (lambda* (#:key inputs #:allow-other-keys)
1782 ;; Use the right shell when executing the watcher and
1783 ;; user-provided shell commands.
1784 (let ((bash (assoc-ref inputs "bash")))
1785 (substitute* '("src/direvent.c" "src/progman.c")
1787 (string-append "\"" bash "/bin/sh\"")))
1789 ;; Adjust the 'shell.at' test accordingly.
1790 (substitute* "tests/testsuite"
1792 (string-append "SHELL=" bash "/bin/sh")))
1795 (home-page "https://www.gnu.org/software/direvent/")
1796 (synopsis "Daemon to monitor directories for events such as file removal")
1798 "A daemon that monitors directories for events, such as creating,
1799 deleting or modifying files. It can monitor different sets of directories for
1800 different events. When an event is detected, direvent calls a specified
1801 external program with information about the event, such as the location
1802 within the file system where it occurred. Thus, \"direvent\" provides an
1803 easy way to react immediately if given files undergo changes, for example, to
1804 track changes in important system configuration files.")
1805 (license license:gpl3+)))
1807 (define-public libcap-ng
1814 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1818 "1gzzy12agfa9ddipdf72h9y68zqqnvsjjylv4vnq6hj4w2safk58"))))
1819 (build-system gnu-build-system)
1822 (list "--without-python")))
1823 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1824 (synopsis "Library for more easily working with POSIX capabilities")
1826 "The libcap-ng library is intended to make programming with POSIX
1827 capabilities easier than the traditional libcap library. It includes
1828 utilities that can analyse all currently running applications and print out
1829 any capabilities and whether or not it has an open ended bounding set. The
1830 included utilities are designed to let admins and developers spot apps from
1831 various ways that may be running with too much privilege.")
1832 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1833 (license (list license:lgpl2.1+ license:gpl2+))))
1835 (define-public smartmontools
1837 (name "smartmontools")
1842 "mirror://sourceforge/smartmontools/smartmontools/"
1843 version "/smartmontools-" version ".tar.gz"))
1846 "0imqb7ka4ia5573w8rnpck571pjjc9698pdjcapy9cfyk4n4swrz"))))
1847 (build-system gnu-build-system)
1848 (inputs `(("libcap-ng" ,libcap-ng)))
1849 (home-page "https://www.smartmontools.org/")
1850 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1852 "The smartmontools package contains utility programs to control and
1853 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1854 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1855 disks. In many cases, these utilities will provide advanced warning of disk
1856 degradation and failure.")
1857 (license license:gpl2+)))
1859 (define-public fdupes
1867 (url "https://github.com/adrianlopezroche/fdupes.git")
1868 (commit (string-append "v" version))))
1869 (file-name (git-file-name name version))
1871 (base32 "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9"))))
1872 (build-system gnu-build-system)
1874 '(#:phases (modify-phases %standard-phases
1875 (delete 'configure))
1876 #:tests? #f ; no 'check' target
1877 #:make-flags (list "CC=gcc"
1878 (string-append "PREFIX="
1879 (assoc-ref %outputs "out")))))
1880 (home-page "https://github.com/adrianlopezroche/fdupes")
1881 (synopsis "Identify duplicate files")
1883 "fdupes is a program for identifying duplicate files residing within
1884 specified directories.")
1885 (license license:expat)))
1887 (define-public graphios
1894 (uri (pypi-uri "graphios" version))
1897 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1898 (build-system python-build-system)
1900 ;; Be warned: Building with Python 3 succeeds, but the build process
1901 ;; throws a syntax error that is ignored.
1902 `(#:python ,python-2
1904 (modify-phases %standard-phases
1905 (add-before 'build 'fix-setup.py
1906 (lambda* (#:key outputs #:allow-other-keys)
1907 ;; Fix hardcoded, unprefixed file names.
1908 (let ((out (assoc-ref outputs "out")))
1909 (substitute* '("setup.py")
1910 (("/etc") (string-append out "/etc"))
1912 (("distro_ver = .*") "distro_ver = ''"))
1914 (home-page "https://github.com/shawn-sterling/graphios")
1915 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1917 "Graphios is a script to emit nagios perfdata to various upstream metrics
1918 processing and time-series systems. It's currently compatible with Graphite,
1919 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1920 of supported upstream metrics systems simultaneously.")
1921 (license license:gpl2+)))
1923 (define-public ansible
1930 (uri (pypi-uri "ansible" version))
1932 (base32 "11k94ifp42psivzx147xwbmq1ak7qnjdgkb6c1xz53nfapkh754f"))))
1933 (build-system python-build-system)
1935 `(("python-bcrypt" ,python-bcrypt)
1936 ("python-pynacl" ,python-pynacl)
1937 ("python-httplib2" ,python-httplib2)
1938 ("python-passlib" ,python-passlib)
1939 ("python-nose" ,python-nose)
1940 ("python-mock" ,python-mock)
1941 ("python-jinja2" ,python-jinja2)
1942 ("python-pyyaml" ,python-pyyaml)
1943 ("python-paramiko" ,python-paramiko)))
1945 `(("python-cryptography" ,python-cryptography)
1946 ("python-jinja2" ,python-jinja2)
1947 ("python-pyyaml" ,python-pyyaml)
1948 ("python-paramiko" ,python-paramiko)))
1951 (modify-phases %standard-phases
1952 ;; Several ansible commands (ansible-config, ansible-console, etc.)
1953 ;; are just symlinks to a single ansible executable. The ansible
1954 ;; executable behaves differently based on the value of
1955 ;; sys.argv[0]. This does not work well with our wrap phase, and
1956 ;; therefore the following two phases are required as a workaround.
1957 (add-after 'unpack 'hide-wrapping
1959 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
1960 (substitute* "bin/ansible"
1961 (("import traceback" all)
1962 (string-append all "
1964 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
1967 (add-after 'install 'replace-symlinks
1968 (lambda* (#:key outputs #:allow-other-keys)
1969 ;; Replace symlinks with duplicate copies of the ansible
1971 (let ((out (assoc-ref outputs "out")))
1973 (lambda (subprogram)
1974 (delete-file (string-append out "/bin/ansible-" subprogram))
1975 (copy-file (string-append out "/bin/ansible")
1976 (string-append out "/bin/ansible-" subprogram)))
1977 (list "config" "console" "doc" "galaxy"
1978 "inventory" "playbook" "pull" "vault")))
1980 (home-page "https://www.ansible.com/")
1981 (synopsis "Radically simple IT automation")
1982 (description "Ansible is a radically simple IT automation system. It
1983 handles configuration management, application deployment, cloud provisioning,
1984 ad hoc task execution, and multinode orchestration---including trivializing
1985 things like zero-downtime rolling updates with load balancers.")
1986 (license license:gpl3+)))
1988 (define-public debops
1996 (url "https://github.com/debops/debops")
1997 (commit (string-append "v" version))))
1998 (file-name (git-file-name name version))
2000 (base32 "052b2dykdn35pdpn9s4prawl6nl6yzih8nyf54hpvhpisvjrm1v5"))
2002 (search-patches "debops-constants-for-external-program-names.patch"
2003 "debops-debops-defaults-fall-back-to-less.patch"))))
2004 (build-system python-build-system)
2008 `(("ansible" ,ansible)
2011 ("util-linux" ,util-linux) ;; for umount
2012 ("findutils" ,findutils)
2016 `(("python-future" ,python-future)
2017 ("python-distro" ,python-distro)))
2021 (modify-phases %standard-phases
2022 (add-after 'unpack 'nuke-debops-update
2024 (chmod "bin/debops-update" #o755) ; FIXME work-around git-fetch issue
2025 (with-output-to-file "bin/debops-update"
2027 (format #t "#!/bin/sh
2028 echo 'debops is installed via guix. guix-update is useless in this case.
2029 Please use `guix package -u debops` instead.'")))
2031 ;; patch shebangs only in actuall scripts, not in files included in
2032 ;; roles (which are to be delivered to the targte systems)
2033 (delete `patch-generated-file-shebangs)
2034 (replace 'patch-source-shebangs
2036 (for-each patch-shebang
2039 ;; Filter out symlinks.
2040 (eq? 'regular (stat:type stat)))
2042 (add-after 'unpack 'fix-paths
2044 (define (substitute-program-names file)
2045 ;; e.g. ANSIBLE_PLAYBOOK = '/gnu/store/…/bin/ansible-playbook'
2048 (let ((varname (string-upcase
2050 (lambda (c) (if (char=? c #\-) #\_ c))
2053 (((string-append "^(" varname " = )'.*'") line prefix)
2054 (string-append prefix "'" (which name) "'")))))
2055 '("ansible-playbook" "encfs" "find" "fusermount"
2056 "umount" "gpg" "ansible" "which")))
2057 (for-each substitute-program-names
2059 "bin/debops-padlock"
2061 "debops/__init__.py"
2062 "debops/cmds/__init__.py"))
2064 (home-page "https://www.debops.org/")
2065 (synopsis "Collection of general-purpose Ansible roles")
2066 (description "The Ansible roles provided by that can be used to manage
2067 Debian or Ubuntu hosts. In addition, a default set of Ansible playbooks can
2068 be used to apply the provided roles in a controlled way, using Ansible
2071 The roles are written with a high customization in mind, which can be done
2072 using Ansible inventory. This way the role and playbook code can be shared
2073 between multiple environments, with different configuration in to each one.
2075 Services can be managed on a single host, or spread between multiple hosts.
2076 DebOps provides support for different SQL and NoSQL databases, web servers,
2077 programming languages and specialized applications useful in a data center
2078 environment or in a cluster. The project can also be used to deploy
2079 virtualization environments using KVM/libvirt, Docker or LXC technologies to
2080 manage virtual machines and/or containers.")
2081 (license license:gpl3+)))
2083 (define-public emacs-ansible-doc
2084 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
2086 (name "emacs-ansible-doc")
2087 (version (git-version "0.4" "1" commit))
2092 (url "https://github.com/lunaryorn/ansible-doc.el")
2094 (file-name (git-file-name name version))
2097 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
2098 (build-system emacs-build-system)
2099 ;; Unmaintained by upstream.
2100 (home-page "https://github.com/lunaryorn/ansible-doc.el")
2101 (synopsis "Ansible documentation for Emacs")
2103 "This package provides an Ansible documentation for GNU Emacs.
2105 @code{ansible-doc} allows you to view the documentation of an Ansible
2106 module and @code{ansible-doc-mode} minor mode adds documentation
2107 lookup to YAML Mode. You could enable the mode with @code{(add-hook
2108 'yaml-mode-hook #'ansible-doc-mode)}.")
2109 (license license:gpl3+))))
2111 (define-public cpulimit
2119 (url "https://github.com/opsengine/cpulimit.git")
2120 (commit (string-append "v" version))))
2121 (file-name (git-file-name name version))
2123 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
2124 (build-system gnu-build-system)
2126 `(#:phases (modify-phases %standard-phases
2130 (invoke "make" "CC=gcc" "-Csrc")))
2133 (invoke "make" "CC=gcc" "-Ctests")))
2135 (lambda* (#:key outputs #:allow-other-keys)
2136 (let* ((out (assoc-ref outputs "out"))
2137 (bin (string-append out "/bin")))
2138 (install-file "src/cpulimit" bin))
2140 (home-page "https://github.com/opsengine/cpulimit")
2141 (synopsis "Limit CPU usage")
2143 "Cpulimit limits the CPU usage of a process. It does not change the nice
2144 value or other scheduling priority settings, but the real CPU usage, and is
2145 able to adapt itself dynamically to the overall system load. Children
2146 processes and threads of the specified process may optionally share the same
2148 (license license:gpl2+)))
2150 (define-public autojump
2158 (url "https://github.com/wting/autojump.git")
2159 (commit (string-append "release-v" version))))
2160 (file-name (git-file-name name version))
2162 (base32 "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws"))))
2163 (build-system gnu-build-system)
2164 (native-inputs ; for tests
2165 `(("python-mock" ,python-mock)
2166 ("python-pytest" ,python-pytest)))
2168 `(("python" ,python-wrapper)))
2171 (modify-phases %standard-phases
2172 (add-after 'unpack 'make-git-checkout-writable
2173 ;; ‘install.py’ modifies files before installing them.
2175 (for-each make-file-writable (find-files "."))
2181 (invoke "python" "tests/unit/autojump_utils_test.py")))
2183 (lambda* (#:key outputs #:allow-other-keys)
2184 (setenv "SHELL" (which "bash"))
2185 (invoke "python" "install.py"
2186 (string-append "--destdir="
2187 (assoc-ref outputs "out"))))))))
2188 (home-page "https://github.com/wting/autojump")
2189 (synopsis "Shell extension for file system navigation")
2191 "Autojump provides a faster way to navigate your file system, with a \"cd
2192 command that learns\". It works by maintaining a database of the directories
2193 you use the most from the command line and allows you to \"jump\" to
2194 frequently used directories by typing only a small pattern.")
2195 (license license:gpl3+)))
2204 (url "https://github.com/clvv/fasd.git")
2206 (file-name (git-file-name name version))
2209 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
2210 (build-system gnu-build-system)
2212 `(#:phases (modify-phases %standard-phases
2213 (delete 'configure)) ;no configuration
2214 #:tests? #f ;no tests
2215 #:make-flags (list (string-append "PREFIX=" %output))))
2216 (home-page "https://github.com/clvv/fasd")
2217 (synopsis "Quick access to files and directories for shells")
2219 "Fasd (pronounced similar to \"fast\") is a command-line productivity
2220 booster. Fasd offers quick access to files and directories for POSIX shells.
2221 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
2222 and directories you have accessed so that you can quickly reference them in
2224 (license license:x11)))
2226 (define-public iftop
2232 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
2233 "/iftop-" version ".tar.gz"))
2236 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
2237 (build-system gnu-build-system)
2239 `(("libpcap" ,libpcap)
2240 ("ncurses" ,ncurses)))
2241 (synopsis "Monitor network usage")
2242 (description "Iftop does for network usage what @command{top} does
2243 for CPU usage. It listens to network traffic on a named interface and
2244 displays a table of current bandwidth usage by pairs of hosts.")
2245 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
2246 (license license:gpl2+)))
2248 (define-public munge
2254 (uri (string-append "https://github.com/dun/munge/releases/"
2255 "download/munge-" version "/munge-"
2259 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))
2260 (modules '((guix build utils)))
2263 ;; Don't insist on write access to /var.
2264 (substitute* "src/etc/Makefile.in"
2265 (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
2266 (string-append "-$(INSTALL)" middle "localstatedir")))
2269 `(("openssl" ,openssl)
2270 ("libgcrypt" ,libgcrypt)))
2271 (build-system gnu-build-system)
2272 (arguments '(#:configure-flags '("--localstatedir=/var")))
2273 (home-page "https://dun.github.io/munge/")
2274 (synopsis "Cluster computing authentication service")
2276 "Munge is an authentication service for creating and validating
2277 credentials. It allows a process to authenticate the UID and GID of another
2278 local or remote process within a group of hosts having common users and
2279 groups. These hosts form a security realm that is defined by a shared
2280 cryptographic key. Clients within this security realm can create and validate
2281 credentials without the use of root privileges, reserved ports, or
2282 platform-specific methods.")
2283 (license license:gpl3+)))
2285 (define-public audit
2288 (home-page "https://people.redhat.com/sgrubb/audit/")
2292 (uri (string-append home-page "audit-" version ".tar.gz"))
2295 "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"))))
2296 (build-system gnu-build-system)
2298 `(#:configure-flags (list "--with-python=no"
2299 "--disable-static")))
2301 `(("openldap" ,openldap)
2303 ("sasl" ,cyrus-sasl)))
2304 (synopsis "User-space component to the Linux auditing system")
2306 "auditd is the user-space component to the Linux auditing system, which
2307 allows logging of system calls made by user-land processes. It's responsible
2308 for writing audit records to the disk. Viewing the logs is done with the
2309 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
2310 done with the @code{auditctl} utility.")
2311 (license license:gpl2+)))
2319 (uri (string-append "https://nmap.org/dist/nmap-" version
2323 "1aizfys6l9f9grm82bk878w56mg0zpkfns3spzj157h98875mypw"))
2324 (modules '((guix build utils)))
2327 (for-each delete-file-recursively
2328 ;; Remove bundled lua, pcap, and pcre libraries.
2329 ;; FIXME: Remove bundled liblinear once packaged.
2333 ;; Remove pre-compiled binares.
2336 (build-system gnu-build-system)
2338 `(("openssl" ,openssl)
2339 ("libpcap" ,libpcap)
2342 ("zlib" ,zlib) ;for NSE compression support
2345 ("python" ,python-2)))
2347 ;; TODO Add zenmap output.
2348 (outputs '("out" "ndiff"))
2350 `(#:configure-flags '("--without-zenmap")
2352 (modify-phases %standard-phases
2353 (add-after 'configure 'patch-Makefile
2355 (substitute* "Makefile"
2356 ;; Do not attempt to build lua.
2357 (("build-dnet build-lua") "build-dnet"))
2360 (lambda* (#:key outputs #:allow-other-keys)
2361 (define (make out . args)
2362 (apply invoke "make"
2363 (string-append "prefix=" out)
2365 (define (python-path dir)
2366 (string-append dir "/lib/python"
2367 ,(version-major+minor
2368 (package-version python))
2370 (let ((out (assoc-ref outputs "out"))
2371 (ndiff (assoc-ref outputs "ndiff")))
2372 (for-each mkdir-p (list out ndiff))
2378 (make ndiff "install-ndiff")
2379 (wrap-program (string-append ndiff "/bin/ndiff")
2380 `("PYTHONPATH" prefix
2381 (,(python-path ndiff)))))
2383 ;; These are the tests that do not require network access.
2385 (lambda _ (invoke "make"
2389 ;; Nmap can't cope with out-of-source building.
2390 #:out-of-source? #f))
2391 (home-page "https://nmap.org/")
2392 (synopsis "Network discovery and security auditing tool")
2394 "Nmap (\"Network Mapper\") is a network discovery and security auditing
2395 tool. It is also useful for tasks such as network inventory, managing service
2396 upgrade schedules, and monitoring host or service uptime. It also provides an
2397 advanced netcat implementation (ncat), a utility for comparing scan
2398 results (ndiff), and a packet generation and response analysis tool (nping).")
2399 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
2400 ;; both use a 3-clause BSD license.
2401 (license (list license:nmap license:bsd-3))))
2403 (define-public dstat
2411 (url "https://github.com/dagwieers/dstat.git")
2412 (commit (string-append "v" version))))
2413 (file-name (git-file-name "dstat" version))
2415 (base32 "1qnmkhqmjd1m3if05jj29dvr5hn6kayq9bkkkh881w472c0zhp8v"))
2416 (patches (search-patches "dstat-fix-crash-when-specifying-delay.patch"
2417 "dstat-skip-devices-without-io.patch"))))
2418 (build-system gnu-build-system)
2420 `(#:tests? #f ; no make check
2421 #:make-flags (let ((out (assoc-ref %outputs "out")))
2422 (list (string-append "DESTDIR=" out)
2425 (modify-phases %standard-phases
2426 (add-after 'unpack 'fix-python3-DeprecationWarning
2428 (substitute* "dstat"
2429 (("collections") "collections.abc"))
2431 (delete 'configure) ; no configure script
2432 (add-after 'install 'wrap
2433 (lambda* (#:key outputs #:allow-other-keys)
2434 (let ((out (assoc-ref outputs "out")))
2435 (wrap-program (string-append out "/bin/dstat")
2436 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2439 `(("python" ,python-wrapper)
2440 ("python-six" ,python-six)))
2441 (synopsis "Versatile resource statistics tool")
2442 (description "Dstat is a versatile replacement for @command{vmstat},
2443 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2444 some of their limitations and adds some extra features, more counters and
2445 flexibility. Dstat is handy for monitoring systems during performance tuning
2446 tests, benchmarks or troubleshooting.
2448 Dstat allows you to view all of your system resources in real-time, you can,
2449 e.g., compare disk utilization in combination with interrupts from your IDE
2450 controller, or compare the network bandwidth numbers directly with the disk
2451 throughput (in the same interval).")
2452 (home-page "http://dag.wiee.rs/home-made/dstat/")
2453 (license license:gpl2+)))
2455 (define-public thefuck
2463 (url "https://github.com/nvbn/thefuck.git")
2465 (file-name (git-file-name name version))
2467 (base32 "1qhxwjjgrzpqrqjv7l2847ywpln76lyd6j8bl9gz2r6kl0fx2fqs"))
2468 (patches (search-patches "thefuck-test-environ.patch"))))
2469 (build-system python-build-system)
2472 (modify-phases %standard-phases
2474 (add-after 'install 'check
2475 (lambda* (#:key inputs outputs #:allow-other-keys)
2476 ;; Tests look for installed package
2477 (add-installed-pythonpath inputs outputs)
2478 ;; Some tests need write access to $HOME.
2479 (setenv "HOME" "/tmp")
2480 (invoke "py.test" "-v")
2483 `(("python-colorama" ,python-colorama)
2484 ("python-decorator" ,python-decorator)
2485 ("python-psutil" ,python-psutil)
2486 ("python-pyte" ,python-pyte)
2487 ("python-six" ,python-six)))
2489 `(("python-mock" ,python-mock)
2490 ("python-pytest" ,python-pytest)
2491 ("python-pytest-mock" ,python-pytest-mock)))
2492 (home-page "https://github.com/nvbn/thefuck")
2493 (synopsis "Correct mistyped console command")
2495 "The Fuck tries to match a rule for a previous, mistyped command, creates
2496 a new command using the matched rule, and runs it.")
2497 (license license:x11)))
2506 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2508 (base32 "0m4npba50sf5s61g5z3xd2r7937zwja941f2h3f081xi24c2hfck"))))
2509 (build-system gnu-build-system)
2511 `(#:tests? #f ; obscure test failures
2513 (modify-phases %standard-phases
2514 (delete 'configure) ; no configure script
2515 (add-before 'build 'setup-environment
2516 (lambda* (#:key outputs #:allow-other-keys)
2518 (setenv "prefix" (assoc-ref outputs "out"))
2520 #:make-flags (list "--environment-overrides")))
2521 (home-page "https://www.gentoo.com/di/")
2522 (synopsis "Advanced df like disk information utility")
2524 "@code{di} is a disk information utility, displaying everything that your
2525 @code{df} command does and more. It features the ability to display your disk
2526 usage in whatever format you prefer. It is designed to be highly portable and
2527 produce uniform output across heterogeneous networks.")
2528 (license license:zlib)))
2530 (define-public cbatticon
2538 (url "https://github.com/valr/cbatticon.git")
2541 (base32 "0ivm2dzhsa9ir25ry418r2qg2llby9j7a6m3arbvq5c3kaj8m9jr"))
2542 (file-name (git-file-name name version))))
2543 (build-system gnu-build-system)
2545 `(#:tests? #f ; no tests
2547 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2550 (modify-phases %standard-phases
2551 (delete 'configure)))) ; no configure script
2554 ("gettext" ,gettext-minimal)
2555 ("libnotify" ,libnotify)))
2557 `(("pkg-config" ,pkg-config)))
2558 (synopsis "Lightweight battery icon for the system tray")
2559 (description "cbatticon is a lightweight battery icon that displays
2560 the status of your battery in the system tray.")
2561 (home-page "https://github.com/valr/cbatticon")
2562 (license license:gpl2+)))
2564 (define-public interrobang
2565 (let ((revision "1")
2566 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2568 (name "interrobang")
2569 (version (git-version "0.0.0" revision commit))
2574 (url "https://github.com/TrilbyWhite/interrobang.git")
2576 (file-name (git-file-name name version))
2578 (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2579 (build-system gnu-build-system)
2581 `(#:tests? #f ; no tests
2583 (modify-phases %standard-phases
2584 (delete 'configure)) ; no configure script
2585 #:make-flags (list (string-append "PREFIX="
2586 (assoc-ref %outputs "out")))))
2588 `(("libx11" ,libx11)))
2590 `(("pkg-config" ,pkg-config)))
2591 (synopsis "Scriptable launcher menu")
2592 (description "Interrobang is a scriptable launcher menu with a customizable
2593 shortcut syntax and completion options.")
2594 (home-page "https://github.com/TrilbyWhite/interrobang")
2595 (license license:gpl3+))))
2597 (define-public pam-krb5
2604 "https://archives.eyrie.org/software/kerberos/"
2605 "pam-krb5-" version ".tar.xz"))
2608 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2609 (build-system gnu-build-system)
2612 (modify-phases %standard-phases
2613 (add-before 'configure 'disable-tests
2615 ;; The build container seems to interfere with some tests.
2616 (substitute* "tests/TESTS"
2617 (("module/basic\n") ""))
2618 (substitute* "tests/TESTS"
2619 (("pam-util/vector\n") ""))
2622 `(("linux-pam" ,linux-pam)
2623 ("mit-krb5" ,mit-krb5)))
2626 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2627 (synopsis "Kerberos PAM module")
2629 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2630 It supports ticket refreshing by screen savers, configurable
2631 authorization handling, authentication of non-local accounts for network
2632 services, password changing, and password expiration, as well as all the
2633 standard expected PAM features. It works correctly with OpenSSH, even
2634 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2635 enabled, and supports extensive configuration either by PAM options or in
2636 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2637 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2638 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2639 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2640 ;; However, the tarball does not contain a copy of the GPL, so unless
2641 ;; we put one in, we cannot distribute it under GPL without violating
2642 ;; clause requiring us to give all recipients a copy.
2643 (license license:gpl1+)))
2645 (define (sunxi-tools-source version)
2649 (url "https://github.com/linux-sunxi/sunxi-tools.git")
2650 (commit (string-append "v" version))))
2652 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
2653 (modules '((guix build utils)))
2655 ;; Remove binaries contained in the tarball which are only for the
2656 ;; target and can be regenerated anyway.
2658 (delete-file-recursively "bin")
2660 (file-name (git-file-name "sunxi-tools" version))))
2662 (define sunxi-target-tools
2664 (name "sunxi-target-tools")
2666 (build-system gnu-build-system)
2668 (sunxi-tools-source version))
2670 `(#:system "armhf-linux"
2672 #:make-flags (list (string-append "PREFIX="
2673 (assoc-ref %outputs "out"))
2674 (string-append "CROSS_COMPILE=")
2677 (modify-phases %standard-phases
2680 (lambda* (#:key make-flags #:allow-other-keys)
2681 (apply invoke "make" "target-tools" make-flags)))
2683 (lambda* (#:key make-flags #:allow-other-keys)
2684 (apply invoke "make" "install-target-tools"
2686 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2687 (synopsis "Hardware management tools for Allwinner computers")
2688 (description "This package contains tools for Allwinner devices:
2690 @item @command{sunxi-meminfo}: Prints memory bus settings.
2692 (license license:gpl2+)))
2694 (define-public sunxi-tools
2696 (name "sunxi-tools")
2699 (sunxi-tools-source version))
2701 `(("sunxi-target-tools" ,sunxi-target-tools)
2702 ("pkg-config" ,pkg-config)))
2704 `(("libusb" ,libusb)))
2705 (build-system gnu-build-system)
2707 `(#:tests? #f ; no tests exist
2708 #:make-flags (list (string-append "PREFIX="
2709 (assoc-ref %outputs "out"))
2710 (string-append "CROSS_COMPILE=disabled")
2713 (modify-phases %standard-phases
2716 (lambda* (#:key make-flags #:allow-other-keys)
2717 (apply invoke "make" "tools" "misc" make-flags)))
2719 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
2720 ;; Those tools have been built for armhf but are part of the
2721 ;; installation in the upstream package. So do the same
2723 (copy-recursively (assoc-ref inputs "sunxi-target-tools")
2724 (assoc-ref outputs "out"))
2725 (apply invoke "make" "install-tools" "install-misc"
2727 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2728 (synopsis "Hardware management tools for Allwinner computers")
2729 (description "This package contains tools for Allwinner devices:
2731 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2732 a textual description of a board (.fex) to a binary representation (.bin).
2733 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2734 makes it register as a special USB device (rather than USB host).
2735 You can then connect it to another computer and flash it from there.
2736 @item @command{sunxi-nand-part}: Partitions NAND flash.
2737 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2738 bootloader) parameters.
2739 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2740 in order to be able to find it.
2741 @item @command{sunxi-meminfo}: Prints memory bus settings.
2742 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2744 (license license:gpl2+)))
2746 (define-public sedsed
2754 (url "https://github.com/aureliojargas/sedsed.git")
2755 (commit (string-append "v" version))))
2756 (file-name (git-file-name name version))
2758 (base32 "05cl35mwljdb9ynbbsfa8zx6ig8r0xncbg2cir9vwn5manndjj18"))))
2759 (build-system python-build-system)
2761 `(#:tests? #f ; no tests
2763 (modify-phases %standard-phases
2764 (add-after 'unpack 'patch-sed-in
2766 (substitute* "sedsed.py"
2768 (string-append "sedbin = '" (which "sed") "'")))
2772 (lambda* (#:key outputs #:allow-other-keys)
2773 (let* ((out (assoc-ref outputs "out"))
2774 (bin (string-append out "/bin")))
2775 ;; Just one file to copy around
2776 (install-file "sedsed.py" bin)
2778 (add-after 'wrap 'symlink
2779 ;; Create 'sedsed' symlink to "sedsed.py".
2780 (lambda* (#:key outputs #:allow-other-keys)
2781 (let* ((out (assoc-ref outputs "out"))
2782 (bin (string-append out "/bin"))
2783 (sed (string-append bin "/sedsed"))
2784 (sedpy (string-append bin "/sedsed.py")))
2787 (home-page "https://aurelio.net/projects/sedsed")
2788 (synopsis "Sed sed scripts")
2790 "@code{sedsed} can debug, indent, tokenize and HTMLize your @command{sed}
2793 In debug mode, it reads your script and adds extra commands to it. When
2794 executed you can see the data flow between the commands, revealing all the
2795 magic sed performs on its internal buffers.
2797 In indent mode, your script is reformatted with standard spacing.
2799 In tokenize mode, you can see the elements of every command you use.
2801 In HTMLize mode, your script is converted to a beautiful colored HTML file,
2802 with all the commands and parameters identified for your viewing pleasure.
2804 With sedsed you can master any sed script. No more secrets, no more hidden
2806 (license license:expat)))
2808 (define-public igt-gpu-tools
2810 (name "igt-gpu-tools")
2816 (url "https://gitlab.freedesktop.org/drm/igt-gpu-tools.git")
2817 (commit (string-append "igt-gpu-tools-" version))))
2818 (file-name (git-file-name name version))
2820 (base32 "1gpdjs5aj6vsnzwcjvw5bb120lgffvvshi4202phr0bzw3b92ky8"))))
2821 (build-system gnu-build-system)
2823 `(#:tests? #f ; many of the tests try to load kernel modules
2825 (modify-phases %standard-phases
2828 ;; Don't run configure in this phase.
2829 (setenv "NOCONFIGURE" "1")
2830 (invoke "sh" "autogen.sh"))))))
2833 ("elfutils" ,elfutils) ; libdw
2838 ("libpciaccess" ,libpciaccess)
2839 ("libunwind" ,libunwind)
2840 ("libxrandr" ,libxrandr)
2841 ("openssl" ,openssl)
2843 ("util-macros" ,util-macros)))
2845 `(("autoconf" ,autoconf)
2846 ("automake" ,automake)
2847 ("libtool" ,libtool)
2848 ("pkg-config" ,pkg-config)))
2849 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2850 (synopsis "Tools for development and testing of the Intel DRM driver")
2851 (description "IGT GPU Tools is a collection of tools for development and
2852 testing of the Intel DRM driver. There are many macro-level test suites that
2853 get used against the driver, including xtest, rendercheck, piglit, and
2854 oglconform, but failures from those can be difficult to track down to kernel
2855 changes, and many require complicated build procedures or specific testing
2856 environments to get useful results. Therefore, IGT GPU Tools includes
2857 low-level tools and tests specifically for development and testing of the
2859 (supported-systems '("i686-linux" "x86_64-linux"))
2860 (license license:expat)))
2862 (define-public intel-gpu-tools
2863 (deprecated-package "intel-gpu-tools" igt-gpu-tools))
2865 (define-public fabric
2872 (uri (pypi-uri "Fabric" version))
2875 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2876 (build-system python-build-system)
2878 `(#:python ,python-2 ; Python 2 only
2880 (modify-phases %standard-phases
2884 "nosetests" "-v" "tests/"
2885 ;; This test hangs indefinitely when run on a single core VM
2886 ;; (see GNU bug #26647 and Debian bug #850230).
2887 "--exclude=test_nested_execution_with_explicit_ports"
2888 ;; This test randomly fails in certain environments causing too
2889 ;; much noise to be useful (see Debian bug #854686).
2890 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2892 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2893 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2894 ("python2-nose" ,python2-nose) ; Requires < 2.0
2895 ("python2-pynacl" ,python2-pynacl)
2896 ("python2-bcrypt" ,python2-bcrypt)))
2898 `(("python2-paramiko" ,python2-paramiko)))
2899 (home-page "http://fabfile.org")
2900 (synopsis "Simple Pythonic remote execution and deployment tool")
2902 "Fabric is designed to upload files and run shell commands on a number of
2903 servers in parallel or serially. These commands are grouped in tasks (which
2904 are regular Python functions) and specified in a @dfn{fabfile}.
2906 It is similar to Capistrano, except it's implemented in Python and doesn't
2907 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2908 tool for remote execution and deployment.")
2909 (license license:bsd-2)))
2911 (define-public neofetch
2912 (let ((commit "501d6b7594296d9eac8943140f8581daf555873d"))
2915 (version (git-version "6.1.0" "1" commit))
2919 (url "https://github.com/dylanaraps/neofetch")
2921 (file-name (git-file-name name version))
2924 "1h5md9jimyc6z4d7w66j27hn8qghzyxgpkh5h9dclzxpp5cs8whb"))))
2925 (build-system gnu-build-system)
2927 `(#:tests? #f ; there are no tests
2929 (list (string-append "PREFIX=" %output))
2931 (modify-phases %standard-phases
2932 (delete 'configure)))) ; no configure script
2933 (home-page "https://github.com/dylanaraps/neofetch")
2934 (synopsis "System information script")
2935 (description "Neofetch is a command-line system information tool written in
2936 Bash. Neofetch displays information about your system next to an image, your OS
2937 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2938 used in screenshots to show other users what operating system or distribution
2939 you are running, what theme or icon set you are using, etc.")
2940 (license license:expat))))
2942 (define-public screenfetch
2944 (name "screenfetch")
2949 (url "https://github.com/KittyKatt/screenFetch")
2950 (commit (string-append "v" version))))
2951 (file-name (git-file-name name version))
2954 "04l8aqr474pb115nagn9f6y48jw92n1qfszgw7dbhgl4mpn95lcr"))))
2955 (build-system trivial-build-system)
2957 `(#:modules ((guix build utils))
2960 (use-modules (guix build utils))
2961 (let ((source (assoc-ref %build-inputs "source"))
2962 (out (assoc-ref %outputs "out")))
2963 (mkdir-p (string-append out "/bin/"))
2964 (copy-file (string-append source "/screenfetch-dev")
2965 (string-append out "/bin/screenfetch"))
2966 (install-file (string-append source "/screenfetch.1")
2967 (string-append out "/man/man1/"))
2968 (install-file (string-append source "/COPYING")
2969 (string-append out "/share/doc/" ,name "-" ,version))
2970 (substitute* (string-append out "/bin/screenfetch")
2971 (("/usr/bin/env bash")
2972 (string-append (assoc-ref %build-inputs "bash")
2975 (string-append out "/bin/screenfetch")
2977 (,(string-append (assoc-ref %build-inputs "bc") "/bin:"
2978 (assoc-ref %build-inputs "scrot") "/bin:"
2979 (assoc-ref %build-inputs "xdpyinfo") "/bin"
2980 (assoc-ref %build-inputs "xprop") "/bin"))))
2981 (substitute* (string-append out "/bin/screenfetch")
2983 (string-append "#!" (assoc-ref %build-inputs "bash")
2989 ("xdpyinfo" ,xdpyinfo)
2991 (home-page "https://github.com/KittyKatt/screenFetch")
2992 (synopsis "System information script")
2993 (description "Bash screenshot information tool which can be used to
2994 generate those nifty terminal theme information and ASCII distribution logos in
2995 everyone's screenshots nowadays.")
2996 (license license:gpl3)))
3005 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
3006 version "/nnn-v" version ".tar.gz"))
3008 (base32 "1g47bndxld875d0xb3pgmlw223mz47p1xcvwym861y6l4zkgiyp0"))))
3009 (build-system gnu-build-system)
3011 `(("ncurses" ,ncurses)
3012 ("readline" ,readline)))
3014 `(("pkg-config" ,pkg-config)))
3016 '(#:tests? #f ; no tests
3018 (modify-phases %standard-phases
3019 (delete 'configure)) ; no configure script
3022 (string-append "PREFIX="
3023 (assoc-ref %outputs "out"))
3025 (home-page "https://github.com/jarun/nnn")
3026 (synopsis "Terminal file browser")
3027 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
3028 lightweight terminal file browser with easy keyboard shortcuts for
3029 navigation, opening files and running tasks. There is no config file and
3030 mime associations are hard-coded. The incredible user-friendliness and speed
3031 make it a perfect utility on modern distros.")
3032 (license license:bsd-2)))
3034 (define-public thermald
3042 (url "https://github.com/01org/thermal_daemon")
3043 (commit (string-append "v" version))))
3044 (file-name (git-file-name name version))
3046 (base32 "0iagc3jqpnh6q2fa1gx4wx6r8qg0556j60xr159zqg95djr4dv99"))))
3047 (build-system gnu-build-system)
3050 (let ((out (assoc-ref %outputs "out")))
3051 (list (string-append "--sysconfdir="
3053 (string-append "--with-dbus-sys-dir="
3054 out "/etc/dbus-1/system.d")
3055 "--localstatedir=/var"))))
3057 `(("autoconf" ,autoconf)
3058 ("automake" ,automake)
3059 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3060 ("pkg-config" ,pkg-config)))
3062 `(("dbus-glib" ,dbus-glib)
3063 ("libxml2" ,libxml2)))
3064 (home-page "https://01.org/linux-thermal-daemon/")
3065 (synopsis "CPU scaling for thermal management")
3066 (description "The Linux Thermal Daemon helps monitor and control temperature
3067 on systems running the Linux kernel.")
3068 ;; arm and aarch64 don't have cpuid.h.
3069 (supported-systems '("i686-linux" "x86_64-linux"))
3070 (license license:gpl2+)))
3072 (define-public masscan
3080 (url "https://github.com/robertdavidgraham/masscan.git")
3082 (file-name (git-file-name name version))
3084 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
3085 (build-system gnu-build-system)
3087 `(("libpcap" ,libpcap)))
3089 '(#:test-target "regress"
3092 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3094 (modify-phases %standard-phases
3095 (delete 'configure) ; no ./configure script
3096 (add-after 'unpack 'patch-path
3097 (lambda* (#:key outputs inputs #:allow-other-keys)
3098 (let* ((out (assoc-ref outputs "out"))
3099 (pcap (assoc-ref inputs "libpcap")))
3100 (substitute* "src/rawsock-pcap.c"
3101 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
3103 (synopsis "TCP port scanner")
3104 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
3105 open ports, and also complete the TCP connection and interact with the remote
3106 application, collecting the information received.")
3107 (home-page "https://github.com/robertdavidgraham/masscan")
3108 ;; 'src/siphash24.c' is the SipHash reference implementation, which
3109 ;; bears a CC0 Public Domain Dedication.
3110 (license license:agpl3+)))
3112 (define-public hungrycat
3118 (uri (string-append "https://github.com/jwilk/hungrycat/"
3119 "releases/download/" version "/"
3120 "hungrycat-" version ".tar.gz"))
3123 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
3124 (build-system gnu-build-system)
3127 `(("python" ,python-wrapper)
3128 ("python-nose" ,python-nose)))
3130 `(#:test-target "test"))
3131 (synopsis "A single tool that combines @command{cat} & @command{rm}")
3133 "hungrycat prints the contents of a file to standard output, while
3134 simultaneously freeing the disk space it occupied. It is useful if you need
3135 to process a large file, don't have enough space to store both the input and
3136 output files, and don't need the input file afterwards.
3137 While similar in principle to running @command{cat} immediately followed by
3138 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
3139 printed instead of after the entire file has been read, which is often too
3141 (home-page "https://jwilk.net/software/hungrycat")
3142 (license license:expat)))
3144 (define-public launchmon
3151 "https://github.com/LLNL/LaunchMON/releases/download/v"
3152 version "/launchmon-v" version ".tar.gz"))
3155 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
3156 (build-system gnu-build-system)
3162 ("libgcrypt" ,libgcrypt)
3163 ("libgpg-error" ,libgpg-error)))
3164 (synopsis "Infrastructue for large scale tool daemon launching")
3166 "LaunchMON is a software infrastructure that enables HPC run-time
3167 tools to co-locate tool daemons with a parallel job. Its API allows a
3168 tool to identify all the remote processes of a job and to scalably
3169 launch daemons into the relevant nodes.")
3170 (home-page "https://github.com/LLNL/LaunchMON")
3171 (supported-systems '("i686-linux" "x86_64-linux"))
3172 (license license:lgpl2.1)))
3174 (define-public spindle
3179 ;; We use git checkout to avoid github auto-generated tarballs
3182 (url "https://github.com/hpc/Spindle.git")
3183 (commit (string-append "v" version))))
3184 (file-name (git-file-name name version))
3187 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
3188 (build-system gnu-build-system)
3189 (arguments '(#:configure-flags '("--enable-sec-launchmon"
3190 "--enable-sec-munge"
3191 "--enable-sec-none")))
3195 ("launchmon" ,launchmon)
3196 ("libgcrypt" ,libgcrypt)))
3197 (synopsis "Scalable library loading in HPC environments")
3199 "Spindle is a tool for improving the performance of dynamic library and
3200 Python loading in HPC environments.")
3201 (home-page "https://github.com/hpc/Spindle")
3202 ;; This package supports x86_64 and PowerPC64
3203 (supported-systems '("x86_64-linux"))
3204 (license license:lgpl2.1)))
3206 (define-public inxi-minimal
3207 (let ((real-name "inxi"))
3209 (name "inxi-minimal")
3210 (version "3.0.37-1")
3215 (url "https://github.com/smxi/inxi")
3217 (file-name (git-file-name real-name version))
3219 (base32 "15wvj9w601ci3bavd1hk5qlm8dfm7a7cjglczk29yir5yw2jww3f"))))
3220 (build-system trivial-build-system)
3222 `(("bash" ,bash-minimal)
3224 ("procps" ,procps)))
3234 (use-modules (guix build utils)
3237 (setenv "PATH" (string-append
3238 (assoc-ref %build-inputs "bash") "/bin" ":"
3239 (assoc-ref %build-inputs "gzip") "/bin" ":"
3240 (assoc-ref %build-inputs "perl") "/bin" ":"))
3241 (copy-recursively (assoc-ref %build-inputs "source")
3242 ,(string-append real-name "-" version))
3243 (with-directory-excursion ,(string-append real-name "-" version)
3244 (with-fluids ((%default-port-encoding #f))
3245 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
3246 (let ((bin (string-append %output "/bin")))
3247 (install-file "inxi" bin)
3248 (wrap-program (string-append bin "/inxi")
3251 ,@(map (lambda (input)
3255 (cut string-append store <>)))
3257 ((member name '("util-linux"))
3258 (string-append (store-append "/bin") ":"
3259 (store-append "/sbin")))
3260 ((member name '("dmidecode" "iproute2"))
3261 (store-append "/sbin"))
3262 (else (store-append "/bin")))))))
3268 (((? (cut string-prefix? "perl-" <>) name) . dir)
3269 (string-append dir "/lib/perl5/site_perl"))
3272 (invoke "gzip" "inxi.1")
3273 (install-file "inxi.1.gz"
3274 (string-append %output "/share/man/man1")))
3276 (home-page "https://smxi.org/docs/inxi.htm")
3277 (synopsis "Full-featured system information script")
3278 (description "Inxi is a system information script that can display
3279 various things about your hardware and software to users in an IRC chatroom or
3280 support forum. It runs with the @code{/exec} command in most IRC clients.")
3281 (license license:gpl3+))))
3285 (inherit inxi-minimal)
3288 `(("dmidecode" ,dmidecode)
3290 ("bind:utils" ,isc-bind "utils") ; dig
3292 ("iproute2" ,iproute) ; ip
3293 ("kmod" ,kmod) ; modinfo
3294 ("lm-sensors" ,lm-sensors)
3295 ("mesa-utils" ,mesa-utils)
3296 ("pciutils" ,pciutils)
3299 ("util-linux" ,util-linux) ; lsblk
3300 ("usbutils" ,usbutils) ; lsusb
3302 ("xdpyinfo" ,xdpyinfo)
3305 ("coreutils" ,coreutils) ; uptime
3306 ("inetutils" ,inetutils) ; ifconfig
3307 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
3308 ("perl-http-tiny" ,perl-http-tiny)
3309 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3310 ("perl-json-xs" ,perl-json-xs)
3311 ("perl-time-hires" ,perl-time-hires)
3312 ;; TODO: Add more inputs:
3317 ,@(package-inputs inxi-minimal)))))
3319 (define-public pscircle
3327 (url "https://gitlab.com/mildlyparallel/pscircle.git")
3328 (commit (string-append "v" version))))
3329 (file-name (git-file-name name version))
3331 (base32 "1sm99423hh90kr4wdjqi9sdrrpk65j2vz2hzj65zcxfxyr6khjci"))))
3332 (build-system meson-build-system)
3334 `(("pkg-config" ,pkg-config)))
3338 ("libx11" ,libx11)))
3339 (home-page "https://gitlab.com/mildlyparallel/pscircle")
3340 (synopsis "Visualize Linux processes in a form of radial tree")
3342 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
3343 (license license:gpl2+)))
3345 (define-public python-pyudev
3347 (name "python-pyudev")
3352 (uri (pypi-uri "pyudev" version))
3355 "0arz0dqp75sszsmgm6vhg92n1lsx91ihddx3m944f4ah0487ljq9"))))
3356 (build-system python-build-system)
3358 `(#:tests? #f ; Tests require /sys
3360 (modify-phases %standard-phases
3361 (add-after 'unpack 'patch-ctypes-udev
3362 (lambda* (#:key inputs outputs #:allow-other-keys)
3363 (let ((eudev (assoc-ref inputs "eudev")))
3364 (substitute* "src/pyudev/core.py"
3366 (string-append "'" eudev "/lib/libudev.so'")))
3367 (substitute* "src/pyudev/_ctypeslib/utils.py"
3368 ;; Use absolute paths instead of keys.
3369 (("= find_library") "= "))
3372 `(("eudev" ,eudev)))
3374 `(("python-six" ,python-six)))
3376 `(("python-docutils" ,python-docutils)
3377 ("python-hypothesis" ,python-hypothesis)
3378 ("python-mock" ,python-mock)
3379 ("python-pytest" ,python-pytest)
3380 ("python-sphinx" ,python-sphinx)))
3381 (home-page "http://pyudev.readthedocs.org/")
3382 (synopsis "Python udev binding")
3383 (description "This package provides @code{udev} bindings for Python.")
3384 (license license:lgpl2.1)))
3386 (define-public solaar
3393 (url "https://github.com/pwr/Solaar.git")
3395 (file-name (git-file-name name version))
3398 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
3399 (build-system python-build-system)
3402 (modify-phases %standard-phases
3403 (add-after 'unpack 'fix-prefix-detection
3405 (substitute* "setup.py"
3406 (("'--prefix' in sys\\.argv")
3407 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
3411 (invoke "python" "setup.py" "build")))
3412 (add-before 'check 'setenv-PATH
3414 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
3417 `(("python-pygobject" ,python-pygobject)
3418 ("python-pyudev" ,python-pyudev)))
3419 (home-page "https://smxi.org/docs/inxi.htm")
3420 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
3421 (description "This package provides tools to manage clients of the
3422 Logitech Unifying Receiver.")
3423 (license license:gpl2)))
3425 (define-public lynis
3428 ;; Also update the ‘lynis-sdk’ input to the commit matching this release.
3434 (url "https://github.com/CISOfy/lynis")
3436 (file-name (git-file-name name version))
3438 (base32 "1lkkbvxm0rgrrlx0szaxmf8ghc3d26wal96sgqk84m37mvs1f7p0"))
3439 (modules '((guix build utils)))
3442 ;; Remove proprietary plugins. As of now, all plugins supplied with
3443 ;; lynis are proprietary. In the future, if free plugins are
3444 ;; provided, whitelist them from deletion.
3445 (for-each delete-file (find-files "plugins"))
3447 (build-system gnu-build-system)
3454 (url "https://github.com/CISOfy/lynis-sdk")
3455 (commit "bf1c1d95121da9ca79a9eac5a15ed8d81e34094d")))
3456 (file-name (git-file-name "lynis-sdk" version))
3458 (base32 "1ndz5v0039dqa87cva2dk55a8hkw0fibsw8hh2ddmny9qkr4l3dp"))))))
3461 (modify-phases %standard-phases
3463 (lambda* (#:key inputs outputs #:allow-other-keys)
3464 (substitute* "lynis"
3465 (("/usr/share/lynis")
3466 (string-append (assoc-ref outputs "out") "/share/lynis")))
3467 (substitute* "include/functions"
3468 (("/usr/local/etc/lynis")
3469 (string-append (assoc-ref outputs "out") "/etc/lynis")))
3473 (lambda* (#:key outputs #:allow-other-keys)
3474 (let ((out (assoc-ref outputs "out")))
3475 (install-file "lynis" (string-append out "/bin/"))
3476 (install-file "default.prf" (string-append out "/etc/lynis"))
3479 (copy-recursively dir (string-append out "/share/lynis/" dir)))
3480 (list "db" "include" "plugins"))
3481 (install-file "lynis.8" (string-append out "/share/man/man8"))
3484 (lambda* (#:key inputs #:allow-other-keys)
3485 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
3486 (setenv "LANG" "en_US.UTF-8")
3487 (let ((lynis-dir (getcwd)))
3488 (with-directory-excursion "../lynis-sdk"
3489 (substitute* "config"
3490 (("\\.\\./lynis") lynis-dir))
3491 (substitute* "unit-tests/tests-language-translations.sh"
3492 (("\\.\\./lynis") lynis-dir))
3493 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
3494 (home-page "https://cisofy.com/lynis/")
3495 (synopsis "Security auditing tool")
3496 (description "Lynis is a security auditing tool. It performs an in-depth
3497 security scan and runs on the system itself. The primary goal is to test
3498 security defenses and provide tips for further system hardening. It will also
3499 scan for general system information, vulnerable software packages, and
3500 possible configuration issues.")
3501 (license license:gpl3+)))
3503 (define-public ngrep
3511 (url "https://github.com/jpr5/ngrep/")
3512 (commit (string-append "V" (string-replace-substring version "." "_")))))
3513 (file-name (git-file-name name version))
3516 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3517 (build-system gnu-build-system)
3519 `(("libpcap" ,libpcap)))
3521 `(#:tests? #f ;; No tests.
3522 #:configure-flags (list (string-append "--with-pcap-includes="
3523 (assoc-ref %build-inputs "libpcap")
3525 (home-page "https://github.com/jpr5/ngrep/")
3526 (synopsis "Grep-like utility to search for network packets on an interface")
3527 (description "@command{ngrep} is like GNU grep applied to the network
3528 layer. It's a PCAP-based tool that allows you to specify an extended regular
3529 or hexadecimal expression to match against data payloads of packets. It
3530 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3531 IGMP and Raw, across a wide variety of interface types, and understands BPF
3532 filter logic in the same fashion as more common packet sniffing tools, such as
3533 tcpdump and snoop.")
3534 (license license:bsd-3)))
3536 (define-public pam-mount
3543 (uri (string-append "mirror://sourceforge/pam-mount/pam_mount/"
3544 version "/pam_mount-" version ".tar.xz"))
3547 "1rvi4irb7ylsbhvx1cr6islm2xxw1a4b19q6z4a9864ndkm0f0mf"))
3549 ;; Patch adding support for encrypted volumes in LUKS2 format.
3550 ;; It comes from the Gentoo package definition for sys-auth/pam_mount.
3551 (search-patches "pam-mount-luks2-support.patch"))))
3552 (build-system gnu-build-system)
3555 ("pkg-config" ,pkg-config)))
3557 `(("cryptsetup" ,cryptsetup)
3559 ("libxml2" ,libxml2)
3560 ("linux-pam" ,linux-pam)
3562 ("openssl" ,openssl)
3564 ("libmount" ,util-linux "lib")
3565 ("util-linux" ,util-linux)))
3568 (list (string-append "--with-slibdir=" %output "/lib")
3569 (string-append "--with-ssbindir=" %output "/sbin"))
3571 (modify-phases %standard-phases
3572 (add-after 'unpack 'fix-program-paths
3573 (lambda* (#:key inputs outputs #:allow-other-keys)
3574 (let ((util-linux (assoc-ref inputs "util-linux"))
3575 (out (assoc-ref outputs "out")))
3576 (substitute* "src/mtcrypt.c"
3578 (string-append "\"" util-linux "/bin/mount\";"))
3580 (string-append "\"" util-linux "/bin/umount\";"))
3582 (string-append "\"" util-linux "/sbin/fsck\",")))
3583 (substitute* "src/rdconf1.c"
3585 (string-append "\"" util-linux "/bin/mount\", \""))
3587 (string-append "\"" util-linux "/bin/umount\", \""))
3589 (string-append "\"" util-linux "/sbin/fsck\", \""))
3590 (("\"pmvarrun\", \"")
3591 (string-append "\"" out "/sbin/pmvarrun\", \""))))
3593 (home-page "http://pam-mount.sourceforge.net")
3594 (synopsis "PAM module to mount volumes for a user session")
3596 "Pam-mount is a PAM module that can mount volumes when a user logs in.
3597 It supports mounting local filesystems of any kind the normal mount utility
3598 supports. It can also mount encrypted LUKS volumes using the password
3599 supplied by the user when logging in.")
3600 (license (list license:gpl2+ license:lgpl2.1+))))