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.org>
29 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
31 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
32 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
33 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
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/bug-fix)))
216 ;; ... and this is the one that appears in shebangs when cross-compiling.
217 `(("guile" ,guile-2.2/bug-fix) ;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 "0qmfq50sdhz6xilgxvinblll8j2iqfl7hwk45bq744y4plq4dbd3"))))
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 #: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"
532 (string-append "SBINDIR = " out
535 (string-append "MANDIR = " out
536 "/share/man/man8\n")))
538 ;; Pick the right 'login' by default.
539 (substitute* "mingetty.c"
541 (string-append "\"" login "\"")))
546 #:tests? #f)) ; no tests
547 (inputs `(("shadow" ,shadow)))
549 (home-page "https://sourceforge.net/projects/mingetty")
550 (synopsis "Getty for the text console")
552 "Small console getty that is started on the Linux text console,
553 asks for a login name and then transfers over to @code{login}. It is extended
554 to allow automatic login and starting any app.")
555 (license license:gpl2+)))
557 (define-public net-base
564 "mirror://debian/pool/main/n/netbase/netbase_"
568 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
569 (build-system trivial-build-system)
571 `(#:modules ((guix build utils))
573 (use-modules (guix build utils)
576 (let* ((source (assoc-ref %build-inputs "source"))
577 (tar (assoc-ref %build-inputs "tar"))
578 (xz (assoc-ref %build-inputs "xz"))
579 (output (assoc-ref %outputs "out"))
580 (etc (string-append output "/etc")))
581 (setenv "PATH" (string-append xz "/bin"))
582 (invoke (string-append tar "/bin/tar") "xvf"
584 (chdir ,(string-append "netbase-" version))
587 '("etc-services" "etc-protocols" "etc-rpc")
588 (map (cut string-append etc "/" <>)
589 '("services" "protocols" "rpc")))
591 (native-inputs `(("tar" ,tar)
593 (synopsis "IANA protocol, port, and RPC number assignments")
595 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
596 files, which contain information about the IANA-assigned port, protocol, and
598 (home-page "https://packages.debian.org/sid/netbase")
599 (license license:gpl2)))
601 (define-public netcat
607 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
608 "/netcat-" version ".tar.bz2"))
611 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
612 (build-system gnu-build-system)
615 ;; By default, man and info pages are put in PREFIX/{man,info},
616 ;; but we want them in PREFIX/share/{man,info}.
617 (let ((out (assoc-ref %outputs "out")))
618 (list (string-append "--mandir=" out "/share/man")
619 (string-append "--infodir=" out "/share/info")))))
620 (home-page "http://netcat.sourceforge.net")
621 (synopsis "Read and write data over TCP/IP")
623 "Netcat is a featured networking utility which reads and writes data
624 across network connections, using the TCP/IP protocol. It is designed to be a
625 reliable \"back-end\" tool that can be used directly or easily driven by other
626 programs and scripts. At the same time, it is a feature-rich network debugging
627 and exploration tool, since it can create almost any kind of connection you
628 would need and has several interesting built-in capabilities.")
629 (license license:gpl2+)))
631 (define-public netcat-openbsd
633 (name "netcat-openbsd")
638 (url "https://salsa.debian.org/debian/netcat-openbsd.git")
639 (commit (string-append "debian/" version))))
640 (file-name (git-file-name name version))
643 "08r3mmck3s5pbvwyq19wp5g8jqcxza3cm8nkc6jm7rqn4jdydc4z"))))
644 (build-system gnu-build-system)
646 `(#:tests? #f ; no test suite
649 (string-append "CFLAGS=-I" (assoc-ref %build-inputs "libbsd") "/include")
652 (modify-phases %standard-phases
654 (add-before 'build 'patch
656 (setenv "QUILT_PATCHES" "debian/patches")
657 (invoke "quilt" "push" "-a")
660 (lambda* (#:key outputs #:allow-other-keys)
661 (let* ((out (assoc-ref outputs "out"))
662 (bin (string-append out "/bin"))
663 (man (string-append out "/share/man/man1"))
664 (doc (string-append out "/share/doc/netcat-openbsd-" ,version))
665 (examples (string-append doc "/examples")))
666 (install-file "nc" bin)
667 (install-file "nc.1" man)
668 (install-file "debian/copyright" doc)
669 (copy-recursively "debian/examples" examples)
671 (inputs `(("libbsd" ,libbsd)))
672 (native-inputs `(("pkg-config" ,pkg-config)
674 (home-page "https://packages.debian.org/sid/netcat-openbsd")
675 (synopsis "Read and write data over TCP/IP")
677 "Netcat is a simple Unix utility which reads and writes data across
678 network connections using TCP or UDP protocol. It is designed to be a reliable
679 \"back-end\" tool that can be used directly or easily driven by other programs
680 and scripts. At the same time it is a feature-rich network debugging and
681 exploration tool, since it can create almost any kind of connection you would
682 need and has several interesting built-in capabilities.
684 This package contains the OpenBSD rewrite of netcat, including support for
685 IPv6, proxies, and Unix sockets.")
686 (license (list license:bsd-3
687 license:bsd-2)))) ; atomicio.*, socks.c
689 (define-public sipcalc
696 (uri (string-append "http://www.routemeister.net/projects"
697 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
700 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
701 (build-system gnu-build-system)
702 (home-page "http://www.routemeister.net/projects/sipcalc/")
703 (synopsis "Command-line IP subnet calculator")
705 "Sipcalc is an advanced command-line IP subnet calculator. It can take
706 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
707 of information about a given subnet.
714 @item Retrieving of address information from interfaces.
715 @item Classfull and CIDR output.
716 @item Multiple address and netmask input and output formats (dotted quad, hex,
718 @item Output of broadcast address, network class, Cisco wildcard,
719 hosts/range, network range.
720 @item The ability to split a network based on a smaller netmask, now also with
721 recursive runs on the generated subnets. (also IPv6)
725 @item Compressed and expanded input and output addresses.
726 @item Standard IPv6 network output.
727 @item v4 in v6 output.
728 @item Reverse DNS address generation.
731 (license license:bsd-3)))
739 (uri (string-append "mirror://gnu/alive/alive-"
743 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
744 (build-system gnu-build-system)
745 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
746 (inputs `(("guile" ,guile-2.0)
747 ("inetutils" ,inetutils)))
748 (home-page "https://www.gnu.org/software/alive/")
749 (synopsis "Autologin and keep-alive daemon")
751 "GNU Alive sends periodic pings to a server, generally to keep a
753 (license license:gpl3+)))
755 (define-public isc-dhcp
756 (let* ((bind-major-version "9")
757 (bind-minor-version "11")
758 (bind-patch-version "14")
759 (bind-release-type "") ; for patch release, use "-P"
760 (bind-release-version "") ; for patch release, e.g. "6"
761 (bind-version (string-append bind-major-version
767 bind-release-version)))
773 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
774 version "/dhcp-" version ".tar.gz"))
777 "08a5003zdxgl41b29zjkxa92h2i40zyjgxg0npvnhpkfl5jcsz0s"))))
778 (build-system gnu-build-system)
780 `(#:parallel-build? #f
781 #:configure-flags '("--with-randomdev=/dev/random")
783 (modify-phases %standard-phases
784 (add-after 'unpack 'replace-bundled-bind
785 (lambda* (#:key inputs native-inputs #:allow-other-keys)
786 (delete-file "bind/bind.tar.gz")
787 (copy-file (assoc-ref inputs "bind-source-tarball")
789 (chmod "bind/bind.tar.gz" #o644)
790 (substitute* "bind/version.tmp"
792 (format #f "MAJORVER=~a\n" ,bind-major-version))
794 (format #f "MINORVER=~a\n" ,bind-minor-version))
796 (format #f "PATCHVER=~a\n" ,bind-patch-version))
798 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
800 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
802 (add-before 'configure 'fix-bind-cross-compilation
804 (substitute* "configure"
806 "--host=$host_alias"))
808 (add-after 'configure 'post-configure
809 (lambda* (#:key outputs #:allow-other-keys)
810 ;; Point to the right client script, which will be
811 ;; installed in a later phase.
812 (substitute* "includes/dhcpd.h"
813 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
814 (let ((out (assoc-ref outputs "out")))
815 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
816 out "/libexec/dhclient-script"
819 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
820 ;; we must patch shebangs in there and make sure the right
822 (with-directory-excursion "bind"
823 (substitute* "Makefile"
825 (let ((sh (which "sh")))
826 (string-append "./configure CONFIG_SHELL="
827 sh " SHELL=" sh " "))))
829 (let ((bind-directory (string-append "bind-" ,bind-version)))
830 (invoke "tar" "xf" "bind.tar.gz")
831 (for-each patch-shebang
832 (find-files bind-directory ".*"))
833 (substitute* (string-append bind-directory "/configure")
836 (invoke "tar" "cf" "bind.tar.gz"
838 ;; avoid non-determinism in the archive
842 "--group=root:0")))))
843 (add-after 'install 'post-install
844 (lambda* (#:key inputs outputs #:allow-other-keys)
845 ;; Install the dhclient script for GNU/Linux and make sure
846 ;; if finds all the programs it needs.
847 (let* ((out (assoc-ref outputs "out"))
848 (libexec (string-append out "/libexec"))
849 (coreutils (assoc-ref inputs "coreutils"))
850 (inetutils (assoc-ref inputs "inetutils"))
851 (net-tools (assoc-ref inputs "net-tools"))
852 (sed (assoc-ref inputs "sed")))
853 (substitute* "client/scripts/linux"
855 (string-append (assoc-ref inputs "iproute")
859 (copy-file "client/scripts/linux"
860 (string-append libexec "/dhclient-script"))
863 (string-append libexec "/dhclient-script")
866 (string-append dir "/bin:"
868 (list inetutils net-tools coreutils sed))))
875 (inputs `(("inetutils" ,inetutils)
876 ("net-tools" ,net-tools)
879 ;; isc-dhcp bundles a copy of BIND, which has proved vulnerable
880 ;; in the past. Use a BIND-VERSION of our choosing instead.
881 ("bind-source-tarball"
884 (uri (string-append "https://ftp.isc.org/isc/bind9/"
886 "/bind-" bind-version ".tar.gz"))
889 "1pv3bvm9dzyz2kqjkw15sgh0hd5fzsv274v5z6jp9c4nb5130fyr"))))
891 ;; When cross-compiling, we need the cross Coreutils and sed.
892 ;; Otherwise just use those from %FINAL-INPUTS.
893 ,@(if (%current-target-system)
894 `(("coreutils" ,coreutils)
898 (home-page "https://www.isc.org/products/DHCP/")
899 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
901 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
902 reference implementation of all aspects of DHCP, through a suite of DHCP
903 tools: server, client, and relay agent.")
904 (license license:mpl2.0)
905 (properties '((cpe-name . "dhcp"))))))
907 (define-public libpcap
913 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
917 "153h1378diqyc27jjgz6gg5nxmb4ddk006d9xg69nqavgiikflk3"))))
918 (build-system gnu-build-system)
923 ;; There are some tests in testprogs/, but no automated test suite.
925 (home-page "https://www.tcpdump.org")
926 (synopsis "Network packet capture library")
928 "libpcap is an interface for user-level packet capture. It provides a
929 portable framework for low-level network monitoring. Applications include
930 network statistics collection, security monitoring, network debugging, etc.")
931 (license (list license:bsd-4 ; fad-*.c and several other source files
932 license:bsd-3 ; pcap/, sockutils.* & others
933 license:bsd-2)))) ; the rest
935 (define-public tcpdump
941 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
945 "0434vdcnbqaia672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c"))))
946 (build-system gnu-build-system)
947 (inputs `(("libpcap" ,libpcap)
948 ("openssl" ,openssl)))
949 (native-inputs `(("perl" ,perl))) ; for tests
950 (home-page "https://www.tcpdump.org/")
951 (synopsis "Network packet analyzer")
953 "Tcpdump is a command-line tool to analyze network traffic passing
954 through the network interface controller.")
955 (license license:bsd-3)))
957 (define-public jnettop
964 (string-append "https://web.archive.org/web/20161221100811/"
965 "http://jnettop.kubs.info/dist/jnettop-"
969 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
970 (build-system gnu-build-system)
972 `(("pkg-config" ,pkg-config)))
976 ("libpcap" ,libpcap)))
978 "https://web.archive.org/web/20160703195221/http://jnettop.kubs.info/wiki/")
979 (synopsis "Visualize network traffic by bandwidth use")
981 "Jnettop is a traffic visualiser, which captures traffic going
982 through the host it is running from and displays streams sorted
983 by bandwidth they use.")
984 (license license:gpl2+)))
986 (define-public clusterssh
992 (uri (string-append "mirror://sourceforge/clusterssh/"
993 "2.%20ClusterSSH%20Series%204/"
994 "App-ClusterSSH-v" version ".tar.gz"))
997 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
998 (build-system perl-build-system)
1001 (modify-phases %standard-phases
1002 (add-after 'unpack 'refer-to-inputs
1003 (lambda* (#:key inputs #:allow-other-keys)
1004 (substitute* (list "lib/App/ClusterSSH/Config.pm"
1009 (add-before 'check 'delete-failing-tests
1011 ;; This checks whether all code is nicely formatted. The above
1012 ;; ‘refer-to-inputs’ phase breaks this pedantry, so disable it.
1013 (delete-file "t/perltidy.t")
1014 ;; Update the manifest so t/manifest.t happily passes.
1015 (substitute* "MANIFEST"
1016 (("t/perltidy.t\n") ""))
1018 (add-after 'install 'augment-library-path
1019 (lambda* (#:key inputs outputs #:allow-other-keys)
1020 (let* ((out (assoc-ref outputs "out"))
1021 (bin (string-append out "/bin")))
1022 (with-directory-excursion bin
1025 (wrap-program program
1026 `("PERL5LIB" ":" prefix
1027 ,(map (lambda (file-name)
1028 (string-append file-name
1029 "/lib/perl5/site_perl"))
1031 (map (lambda (input)
1032 (assoc-ref inputs input))
1033 ;; These may be propagated and hence
1034 ;; not explicitly listed as inputs.
1035 (list "perl-class-data-inheritable"
1036 "perl-devel-stacktrace"
1037 "perl-exception-class"
1041 "perl-x11-protocol-other")))))))
1042 (find-files "." ".*")))
1045 `(("perl-cpan-changes" ,perl-cpan-changes)
1046 ("perl-file-slurp" ,perl-file-slurp)
1047 ("perl-file-which" ,perl-file-which)
1048 ("perl-module-build" ,perl-module-build)
1049 ("perl-readonly" ,perl-readonly)
1050 ("perl-test-differences" ,perl-test-differences)
1051 ("perl-test-distmanifest" ,perl-test-distmanifest)
1052 ("perl-test-perltidy" ,perl-test-perltidy)
1053 ("perl-test-pod" ,perl-test-pod)
1054 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
1055 ("perl-test-trap" ,perl-test-trap)
1056 ("perltidy" ,perltidy)))
1058 `(("perl-exception-class" ,perl-exception-class)
1059 ("perl-sort-naturally" ,perl-sort-naturally)
1060 ("perl-tk" ,perl-tk)
1061 ("perl-try-tiny" ,perl-try-tiny)
1062 ("perl-x11-protocol" ,perl-x11-protocol)
1063 ("perl-x11-protocol-other" ,perl-x11-protocol-other)
1065 ;; The clusterssh.sourceforge.net address requires login to view
1066 (home-page "https://sourceforge.net/projects/clusterssh/")
1067 (synopsis "Secure concurrent multi-server terminal control")
1069 "ClusterSSH controls a number of xterm windows via a single graphical
1070 console window to allow commands to be interactively run on multiple servers
1071 over ssh connections.")
1072 (license license:gpl2+)))
1074 (define-public rename
1081 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
1085 "137m8s06r4n038ivlr5r1d9a7q9l7shmwpvnyx053r9ndhvbnkh5"))))
1086 (build-system perl-build-system)
1089 (modify-phases %standard-phases
1090 (add-after 'install 'find-itself
1091 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
1092 (lambda* (#:key outputs #:allow-other-keys)
1093 (let* ((out (assoc-ref outputs "out"))
1094 (bin (string-append out "/bin")))
1095 (with-directory-excursion bin
1098 (wrap-program program
1099 `("PERL5LIB" ":" prefix
1100 (,(string-append out "/lib/perl5/site_perl")))))
1101 (find-files "." ".*")))
1104 `(("perl-module-build" ,perl-module-build)
1105 ("perl-test-pod" ,perl-test-pod)
1106 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1107 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
1108 (synopsis "Perl extension for renaming multiple files")
1110 "This package provides a Perl interface (@code{Perl::Rename}) as well
1111 as a command-line utility (@command{rename}) that can rename multiple files
1112 at once based on a Perl regular expression.")
1113 (license license:perl-license)))
1115 (define-public rottlog
1121 (uri (string-append "mirror://gnu/rottlog/rottlog-"
1125 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
1126 (modules '((guix build utils)))
1129 (substitute* "Makefile.in"
1130 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
1131 ;; Don't try to chown root.
1133 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
1134 ;; Don't attempt to create /var/lib/rottlog.
1137 (build-system gnu-build-system)
1139 '(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
1140 "--localstatedir=/var")
1142 ;; Install example config files in OUT/etc.
1143 #:make-flags (list (string-append "ROTT_ETCDIR="
1144 (assoc-ref %outputs "out")
1147 #:phases (modify-phases %standard-phases
1148 (add-after 'unpack 'patch-paths
1150 (substitute* "rc/rc"
1151 (("/usr/sbin/sendmail") "sendmail"))
1153 (add-after 'build 'set-packdir
1155 ;; Set a default location for archived logs.
1156 (substitute* "rc/rc"
1158 "packdir=\"/var/log\""))
1160 (add-before 'install 'tweak-rc-weekly
1162 (substitute* "rc/weekly"
1166 ;; The file is called 'syslog.pid' (no 'd').
1169 (add-after 'install 'install-info
1171 (invoke "make" "install-info"))))))
1172 (native-inputs `(("texinfo" ,texinfo)
1173 ("util-linux" ,util-linux))) ; for 'cal'
1174 (home-page "https://www.gnu.org/software/rottlog/")
1175 (synopsis "Log rotation and management")
1177 "GNU Rot[t]log is a program for managing log files. It is used to
1178 automatically rotate out log files when they have reached a given size or
1179 according to a given schedule. It can also be used to automatically compress
1180 and archive such logs. Rot[t]log will mail reports of its activity to the
1181 system administrator.")
1182 (license license:gpl3+)))
1191 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
1193 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1194 version ".tar.gz")))
1197 "0ks5mm9hda5idivncyfpiz4lrd8fv0dpmsl711788k7f7ixdka3y"))
1198 (modules '((guix build utils)))
1201 (delete-file-recursively "lib/zlib")
1203 (build-system gnu-build-system)
1206 (list "--with-logpath=/var/log/sudo.log"
1207 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1208 "--with-vardir=/var/db/sudo"
1209 "--with-iologdir=/var/log/sudo-io"
1211 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1213 (string-append "CPPFLAGS=-D_PATH_MV='\""
1214 (assoc-ref %build-inputs "coreutils")
1217 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1218 #:parallel-build? #f
1221 (modify-phases %standard-phases
1222 (add-before 'configure 'pre-configure
1224 (substitute* "src/sudo_usage.h.in"
1225 ;; Do not capture 'configure' arguments since we would
1226 ;; unduly retain references, and also because the
1227 ;; CPPFLAGS above would close the string literal
1229 (("@CONFIGURE_ARGS@") "\"\""))
1230 (substitute* (find-files "." "Makefile\\.in")
1231 (("-o [[:graph:]]+ -g [[:graph:]]+")
1232 ;; Allow installation as non-root.
1234 (("^install: (.*)install-sudoers(.*)" _ before after)
1235 ;; Don't try to create /etc/sudoers.
1236 (string-append "install: " before after "\n"))
1237 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1238 ;; Don't try to create /run/sudo.
1240 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1241 ;; Don't try to create /var/db/sudo.
1244 ;; ‘Checking existing [/etc/]sudoers file for syntax errors’ is
1245 ;; not the task of the build system, and fails.
1246 (substitute* "plugins/sudoers/Makefile.in"
1247 (("^pre-install:" match)
1248 (string-append match "\ndisabled-" match)))
1251 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1252 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1256 ("linux-pam" ,linux-pam)
1258 ("coreutils" ,coreutils)))
1259 (home-page "https://www.sudo.ws/")
1260 (synopsis "Run commands as root")
1262 "Sudo (su \"do\") allows a system administrator to delegate authority to
1263 give certain users (or groups of users) the ability to run some (or all)
1264 commands as root or another user while providing an audit trail of the
1265 commands and their arguments.")
1267 ;; See <http://www.sudo.ws/sudo/license.html>.
1268 (license license:x11)))
1270 (define-public wpa-supplicant-minimal
1272 (name "wpa-supplicant-minimal")
1277 "https://w1.fi/releases/wpa_supplicant-"
1281 "05qzak1mssnxcgdrafifxh9w86a4ha69qabkg4bsigk499xyxggw"))
1282 (modules '((guix build utils)))
1285 (substitute* "wpa_supplicant/defconfig"
1286 ;; Disable D-Bus to save ~14MiB on the closure size.
1287 (("^CONFIG_CTRL_IFACE_DBUS" line _)
1288 (string-append "#" line)))
1290 (build-system gnu-build-system)
1293 (modify-phases %standard-phases
1295 (lambda* (#:key outputs #:allow-other-keys)
1296 (chdir "wpa_supplicant")
1297 (copy-file "defconfig" ".config")
1298 (let ((port (open-file ".config" "al")))
1300 CONFIG_DEBUG_SYSLOG=y
1304 CONFIG_DRIVER_NL80211=y
1305 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1307 CONFIG_READLINE=y\n" port)
1310 (add-after 'install 'install-documentation
1311 (lambda* (#:key outputs #:allow-other-keys)
1312 (let* ((out (assoc-ref outputs "out"))
1313 (doc (string-append out "/share/doc/wpa-supplicant"))
1314 (man (string-append out "/share/man"))
1315 (man5 (string-append man "/man5"))
1316 (man8 (string-append man "/man8")))
1317 (define (copy-man-page target)
1319 (install-file file target)))
1321 (mkdir-p man5) (mkdir man8)
1322 (for-each (copy-man-page man5)
1323 (find-files "doc/docbook" "\\.5"))
1324 (for-each (copy-man-page man8)
1325 (find-files "doc/docbook" "\\.8"))
1327 ;; wpa_supplicant.conf(5) does not explain all configuration
1328 ;; options but refers to the example config file, so install it
1329 ;; along with READMEs.
1330 (for-each (lambda (file)
1331 (install-file file doc))
1332 '("README" "README-DPP" "README-HS20"
1333 "README-P2P" "README-WPS"
1334 "wpa_supplicant.conf"))
1337 #:make-flags (list "CC=gcc"
1338 (string-append "BINDIR=" (assoc-ref %outputs "out")
1340 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1344 `(("readline" ,readline)
1346 ("openssl" ,openssl)))
1348 `(("pkg-config" ,pkg-config)))
1349 (home-page "https://w1.fi/wpa_supplicant/")
1350 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1352 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1353 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1354 the client stations. It implements key negotiation with a WPA Authenticator
1355 and it controls the roaming and IEEE 802.11 authentication/association of the
1358 This package provides the @code{wpa_supplicant} daemon and the @code{wpa_cli}
1361 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1362 (license license:bsd-3)
1364 (properties `((cpe-name . "wpa_supplicant")))))
1366 (define-public wpa-supplicant
1367 (package (inherit wpa-supplicant-minimal)
1368 (name "wpa-supplicant")
1369 (inputs `(("dbus" ,dbus)
1370 ,@(package-inputs wpa-supplicant-minimal)))
1372 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1374 `(modify-phases ,phases
1375 (add-after 'configure 'configure-for-dbus
1377 (let ((port (open-file ".config" "al")))
1379 CONFIG_CTRL_IFACE_DBUS_NEW=y
1380 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1383 (add-after 'install-documentation 'install-dbus-conf
1384 (lambda* (#:key outputs #:allow-other-keys)
1385 (let* ((out (assoc-ref outputs "out"))
1386 (dir (string-append out "/etc/dbus-1/system.d")))
1388 (copy-file "dbus/dbus-wpa_supplicant.conf"
1389 (string-append dir "/wpa_supplicant.conf")))
1392 (define-public wpa-supplicant-gui
1394 (inherit wpa-supplicant)
1395 (name "wpa-supplicant-gui")
1396 (inputs `(("qtbase" ,qtbase)
1398 ,@(package-inputs wpa-supplicant)))
1401 `(("imagemagick" ,imagemagick)
1402 ("inkscape" ,inkscape)
1403 ,@(package-native-inputs wpa-supplicant)))
1405 `(#:phases (modify-phases %standard-phases
1406 (add-after 'unpack 'chdir
1408 (chdir "wpa_supplicant/wpa_gui-qt4")
1413 (invoke "qmake" "wpa_gui.pro")
1414 (invoke "make" "-j" (number->string (parallel-job-count)))
1415 (invoke "make" "-C" "icons")))
1417 (lambda* (#:key inputs outputs #:allow-other-keys)
1418 (let ((out (assoc-ref outputs "out"))
1419 (qt '("qtbase" "qtsvg")))
1420 (install-file "wpa_gui" (string-append out "/bin"))
1421 (install-file "wpa_gui.desktop"
1422 (string-append out "/share/applications"))
1423 (copy-recursively "icons/hicolor"
1424 (string-append out "/share/icons/hicolor"))
1425 (wrap-program (string-append out "/bin/wpa_gui")
1426 `("QT_PLUGIN_PATH" ":" prefix
1427 ,(map (lambda (label)
1428 (string-append (assoc-ref inputs label)
1429 "/lib/qt5/plugins/"))
1432 (synopsis "Graphical user interface for WPA supplicant")))
1434 (define-public hostapd
1440 (uri (string-append "https://w1.fi/releases/hostapd-" version
1444 "1mrbvg4v7vm7mknf0n29mf88k3s4a4qj6r4d51wq8hmjj1m7s7c8"))))
1445 (build-system gnu-build-system)
1448 (modify-phases %standard-phases
1450 (lambda* (#:key outputs #:allow-other-keys)
1451 ;; This is mostly copied from 'wpa-supplicant' above.
1453 (copy-file "defconfig" ".config")
1454 (let ((port (open-file ".config" "al")))
1459 CONFIG_IEEE80211AC=y\n" port)
1462 (add-after 'install 'install-man-pages
1463 (lambda* (#:key outputs #:allow-other-keys)
1464 (let* ((out (assoc-ref outputs "out"))
1465 (man (string-append out "/share/man"))
1466 (man1 (string-append man "/man1"))
1467 (man8 (string-append man "/man8")))
1468 (define (copy-man-page target)
1470 (install-file file target)))
1472 (for-each (copy-man-page man1)
1473 (find-files "." "\\.1"))
1474 (for-each (copy-man-page man8)
1475 (find-files "." "\\.8"))
1478 #:make-flags (list "CC=gcc"
1479 (string-append "BINDIR=" (assoc-ref %outputs "out")
1481 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1484 (native-inputs `(("pkg-config" ,pkg-config)))
1486 ;; There's an optional dependency on SQLite.
1487 (inputs `(("openssl" ,openssl)
1489 (home-page "https://w1.fi/hostapd/")
1490 (synopsis "Daemon for Wi-Fi access points and authentication servers")
1492 "hostapd is a user-space daemon for WiFi access points and authentication
1493 servers. It implements IEEE 802.11 access point management, IEEE
1494 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS
1495 authentication server.")
1497 ;; Same license as wpa_supplicant.
1498 (license license:bsd-3)))
1500 (define-public wakelan
1507 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1511 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1512 (build-system gnu-build-system)
1515 (modify-phases %standard-phases
1517 (lambda* (#:key outputs #:allow-other-keys)
1518 (let ((out (assoc-ref outputs "out")))
1519 (mkdir-p (string-append out "/bin"))
1520 (mkdir-p (string-append out "/share/man/man1"))
1522 ;; It's an old configure script that doesn't understand
1523 ;; the extra options we pass.
1524 (setenv "CONFIG_SHELL" (which "bash"))
1525 (invoke "./configure"
1526 (string-append "--prefix=" out)
1527 (string-append "--mandir=" out
1530 (home-page "https://www.kernel.org") ; really, no home page
1531 (synopsis "Send a wake-on-LAN packet")
1533 "WakeLan broadcasts a properly formatted UDP packet across the local area
1534 network, which causes enabled computers to power on.")
1535 (license license:gpl2+)))
1537 (define-public dmidecode
1544 "mirror://savannah/dmidecode/dmidecode-"
1548 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1549 (build-system gnu-build-system)
1551 '(#:phases (modify-phases %standard-phases (delete 'configure))
1552 #:tests? #f ; no 'check' target
1553 #:make-flags (list (string-append "prefix="
1554 (assoc-ref %outputs "out")))))
1555 (home-page "https://www.nongnu.org/dmidecode/")
1556 (synopsis "Read hardware information from the BIOS")
1558 "Dmidecode reports information about your system's hardware as described
1559 in your system BIOS according to the SMBIOS/DMI standard. This typically
1560 includes system manufacturer, model name, serial number, BIOS version, asset
1561 tag as well as a lot of other details of varying level of interest and
1562 reliability depending on the manufacturer. This will often include usage
1563 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1564 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1565 (license license:gpl2+)))
1567 (define-public acpica
1570 (version "20200110")
1574 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1578 "1hb4g6r7w8s4bhlkk36fmb4qxghnrwvad7f18cpn6zz0b4sjs7za"))))
1579 (build-system gnu-build-system)
1580 (native-inputs `(("flex" ,flex)
1583 '(#:make-flags (list (string-append "PREFIX=" %output)
1586 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1587 #:tests? #f ; no 'check' target
1588 #:phases (modify-phases %standard-phases (delete 'configure))))
1589 (home-page "https://acpica.org/")
1590 (synopsis "Tools for the development and debug of ACPI tables")
1592 "The ACPI Component Architecture (@dfn{ACPICA}) project provides an
1593 OS-independent reference implementation of the Advanced Configuration and
1594 Power Interface Specification (@dfn{ACPI}). ACPICA code contains those portions
1595 of ACPI meant to be directly integrated into the host OS as a kernel-resident
1596 subsystem, and a small set of tools to assist in developing and debugging ACPI
1597 tables. This package contains only the user-space tools needed for ACPI table
1598 development, not the kernel implementation of ACPI.")
1599 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1601 (define-public s-tui
1608 (uri (pypi-uri "s-tui" version))
1610 (base32 "0r5yhlsi5xiy7ii1w4kqkaxz9069v5bbfwi3x3xnxhk51yjfgr8n"))))
1611 (build-system python-build-system)
1613 `(("python-psutil" ,python-psutil)
1614 ("python-urwid" ,python-urwid)))
1615 (home-page "https://github.com/amanusk/s-tui")
1616 (synopsis "Interactive terminal stress test and monitoring tool")
1618 "The Stress Terminal UI displays graphs of the CPU frequency,
1619 utilization, temperature and power.")
1620 (license license:gpl2+)))
1622 (define-public stress
1628 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1629 version ".orig.tar.gz"))
1632 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1633 (build-system gnu-build-system)
1634 (home-page "https://packages.debian.org/sid/stress")
1635 (synopsis "Impose load on and stress test a computer system")
1637 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1638 or disk stress on a POSIX-compliant operating system and reports any errors it
1641 Stress is not a benchmark. It is a tool used by system administrators to
1642 evaluate how well their systems will scale, by kernel programmers to evaluate
1643 perceived performance characteristics, and by systems programmers to expose
1644 the classes of bugs which only or more frequently manifest themselves when the
1645 system is under heavy load.")
1646 (license license:gpl2+)))
1648 (define-public detox
1655 (url "https://github.com/dharple/detox.git")
1656 (commit (string-append "v" version))))
1657 (file-name (git-file-name name version))
1660 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1661 (build-system gnu-build-system)
1663 `(("autoconf" ,autoconf)
1664 ("automake" ,automake)
1667 `(#:tests? #f ;no 'check' target
1668 #:phases (modify-phases %standard-phases
1669 (add-after 'unpack 'delete-configure
1670 ;; The "configure" script is present, but otherwise the
1671 ;; project is not bootstrapped: missing install-sh and
1672 ;; Makefile.in, so delete it so the bootstrap phase will
1674 (lambda _ (delete-file "configure") #t)))))
1675 (home-page "https://github.com/dharple/detox")
1676 (synopsis "Clean up file names")
1678 "Detox is a program that renames files to make them easier to work with
1679 under Unix and related operating systems. Spaces and various other unsafe
1680 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1681 characters can be replaced as well, as can UTF-8 characters.")
1682 (license license:bsd-3)))
1684 (define-public testdisk
1690 (uri (string-append "https://www.cgsecurity.org/testdisk-"
1691 version ".tar.bz2"))
1694 "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"))))
1695 (build-system gnu-build-system)
1697 `(("ntfs-3g" ,ntfs-3g)
1698 ("util-linux" ,util-linux)
1699 ("openssl" ,openssl)
1700 ;; FIXME: add reiserfs.
1702 ("e2fsprogs" ,e2fsprogs)
1703 ("libjpeg" ,libjpeg)
1704 ("ncurses" ,ncurses)))
1705 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1706 (synopsis "Data recovery tool")
1708 "TestDisk is a program for data recovery, primarily designed to help
1709 recover lost partitions and/or make non-booting disks bootable again.")
1710 (license license:gpl2+)))
1719 "http://mama.indstate.edu/users/ice/tree/src/tree-"
1722 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
1723 (build-system gnu-build-system)
1725 '(#:phases (modify-phases %standard-phases (delete 'configure))
1726 #:tests? #f ; no check target
1727 #:make-flags (let ((out (assoc-ref %outputs "out")))
1728 (list (string-append "prefix=" out)))))
1729 (synopsis "Recursively list the contents of a directory")
1731 "Tree is a recursive directory listing command that produces a depth
1732 indented listing of files, which is colorized ala dircolors if the LS_COLORS
1733 environment variable is set and output is to tty.")
1734 (home-page "http://mama.indstate.edu/users/ice/tree/")
1735 (license license:gpl2+)))
1737 (define-public direvent
1743 (uri (string-append "mirror://gnu/direvent/direvent-"
1747 "0m9vi01b1km0cpknflyzsjnknbava0s1n6393b2bpjwyvb6j5613"))
1748 (modules '((guix build utils)))
1750 (substitute* "tests/testsuite"
1751 (("#![[:blank:]]?/bin/sh")
1754 (build-system gnu-build-system)
1757 (modify-phases %standard-phases
1758 (add-before 'build 'patch-/bin/sh
1759 (lambda* (#:key inputs #:allow-other-keys)
1760 ;; Use the right shell when executing the watcher and
1761 ;; user-provided shell commands.
1762 (let ((bash (assoc-ref inputs "bash")))
1763 (substitute* '("src/direvent.c" "src/progman.c")
1765 (string-append "\"" bash "/bin/sh\"")))
1767 ;; Adjust the 'shell.at' test accordingly.
1768 (substitute* "tests/testsuite"
1770 (string-append "SHELL=" bash "/bin/sh")))
1773 (home-page "https://www.gnu.org/software/direvent/")
1774 (synopsis "Daemon to monitor directories for events such as file removal")
1776 "A daemon that monitors directories for events, such as creating,
1777 deleting or modifying files. It can monitor different sets of directories for
1778 different events. When an event is detected, direvent calls a specified
1779 external program with information about the event, such as the location
1780 within the file system where it occurred. Thus, \"direvent\" provides an
1781 easy way to react immediately if given files undergo changes, for example, to
1782 track changes in important system configuration files.")
1783 (license license:gpl3+)))
1785 (define-public libcap-ng
1792 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
1796 "1gzzy12agfa9ddipdf72h9y68zqqnvsjjylv4vnq6hj4w2safk58"))))
1797 (build-system gnu-build-system)
1800 (list "--without-python")))
1801 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
1802 (synopsis "Library for more easily working with POSIX capabilities")
1804 "The libcap-ng library is intended to make programming with POSIX
1805 capabilities easier than the traditional libcap library. It includes
1806 utilities that can analyse all currently running applications and print out
1807 any capabilities and whether or not it has an open ended bounding set. The
1808 included utilities are designed to let admins and developers spot apps from
1809 various ways that may be running with too much privilege.")
1810 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
1811 (license (list license:lgpl2.1+ license:gpl2+))))
1813 (define-public smartmontools
1815 (name "smartmontools")
1820 "mirror://sourceforge/smartmontools/smartmontools/"
1821 version "/smartmontools-" version ".tar.gz"))
1824 "0imqb7ka4ia5573w8rnpck571pjjc9698pdjcapy9cfyk4n4swrz"))))
1825 (build-system gnu-build-system)
1826 (inputs `(("libcap-ng" ,libcap-ng)))
1827 (home-page "https://www.smartmontools.org/")
1828 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
1830 "The smartmontools package contains utility programs to control and
1831 monitor storage systems using the Self-Monitoring, Analysis and Reporting
1832 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
1833 disks. In many cases, these utilities will provide advanced warning of disk
1834 degradation and failure.")
1835 (license license:gpl2+)))
1837 (define-public fdupes
1845 (url "https://github.com/adrianlopezroche/fdupes.git")
1846 (commit (string-append "v" version))))
1847 (file-name (git-file-name name version))
1849 (base32 "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9"))))
1850 (build-system gnu-build-system)
1852 '(#:phases (modify-phases %standard-phases
1853 (delete 'configure))
1854 #:tests? #f ; no 'check' target
1855 #:make-flags (list "CC=gcc"
1856 (string-append "PREFIX="
1857 (assoc-ref %outputs "out")))))
1858 (home-page "https://github.com/adrianlopezroche/fdupes")
1859 (synopsis "Identify duplicate files")
1861 "fdupes is a program for identifying duplicate files residing within
1862 specified directories.")
1863 (license license:expat)))
1865 (define-public graphios
1872 (uri (pypi-uri "graphios" version))
1875 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
1876 (build-system python-build-system)
1878 ;; Be warned: Building with Python 3 succeeds, but the build process
1879 ;; throws a syntax error that is ignored.
1880 `(#:python ,python-2
1882 (modify-phases %standard-phases
1883 (add-before 'build 'fix-setup.py
1884 (lambda* (#:key outputs #:allow-other-keys)
1885 ;; Fix hardcoded, unprefixed file names.
1886 (let ((out (assoc-ref outputs "out")))
1887 (substitute* '("setup.py")
1888 (("/etc") (string-append out "/etc"))
1890 (("distro_ver = .*") "distro_ver = ''"))
1892 (home-page "https://github.com/shawn-sterling/graphios")
1893 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
1895 "Graphios is a script to emit nagios perfdata to various upstream metrics
1896 processing and time-series systems. It's currently compatible with Graphite,
1897 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
1898 of supported upstream metrics systems simultaneously.")
1899 (license license:gpl2+)))
1901 (define-public ansible
1908 (uri (pypi-uri "ansible" version))
1910 (base32 "11k94ifp42psivzx147xwbmq1ak7qnjdgkb6c1xz53nfapkh754f"))))
1911 (build-system python-build-system)
1913 `(("python-bcrypt" ,python-bcrypt)
1914 ("python-pynacl" ,python-pynacl)
1915 ("python-httplib2" ,python-httplib2)
1916 ("python-passlib" ,python-passlib)
1917 ("python-nose" ,python-nose)
1918 ("python-mock" ,python-mock)
1919 ("python-jinja2" ,python-jinja2)
1920 ("python-pyyaml" ,python-pyyaml)
1921 ("python-paramiko" ,python-paramiko)))
1923 `(("python-cryptography" ,python-cryptography)
1924 ("python-jinja2" ,python-jinja2)
1925 ("python-pyyaml" ,python-pyyaml)
1926 ("python-paramiko" ,python-paramiko)))
1929 (modify-phases %standard-phases
1930 ;; Several ansible commands (ansible-config, ansible-console, etc.)
1931 ;; are just symlinks to a single ansible executable. The ansible
1932 ;; executable behaves differently based on the value of
1933 ;; sys.argv[0]. This does not work well with our wrap phase, and
1934 ;; therefore the following two phases are required as a workaround.
1935 (add-after 'unpack 'hide-wrapping
1937 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
1938 (substitute* "bin/ansible"
1939 (("import traceback" all)
1940 (string-append all "
1942 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
1945 (add-after 'install 'replace-symlinks
1946 (lambda* (#:key outputs #:allow-other-keys)
1947 ;; Replace symlinks with duplicate copies of the ansible
1949 (let ((out (assoc-ref outputs "out")))
1951 (lambda (subprogram)
1952 (delete-file (string-append out "/bin/ansible-" subprogram))
1953 (copy-file (string-append out "/bin/ansible")
1954 (string-append out "/bin/ansible-" subprogram)))
1955 (list "config" "console" "doc" "galaxy"
1956 "inventory" "playbook" "pull" "vault")))
1958 (home-page "https://www.ansible.com/")
1959 (synopsis "Radically simple IT automation")
1960 (description "Ansible is a radically simple IT automation system. It
1961 handles configuration management, application deployment, cloud provisioning,
1962 ad hoc task execution, and multinode orchestration---including trivializing
1963 things like zero-downtime rolling updates with load balancers.")
1964 (license license:gpl3+)))
1966 (define-public debops
1974 (url "https://github.com/debops/debops")
1975 (commit (string-append "v" version))))
1976 (file-name (git-file-name name version))
1978 (base32 "052b2dykdn35pdpn9s4prawl6nl6yzih8nyf54hpvhpisvjrm1v5"))
1980 (search-patches "debops-constants-for-external-program-names.patch"
1981 "debops-debops-defaults-fall-back-to-less.patch"))))
1982 (build-system python-build-system)
1986 `(("ansible" ,ansible)
1989 ("util-linux" ,util-linux) ;; for umount
1990 ("findutils" ,findutils)
1994 `(("python-future" ,python-future)
1995 ("python-distro" ,python-distro)))
1999 (modify-phases %standard-phases
2000 (add-after 'unpack 'nuke-debops-update
2002 (chmod "bin/debops-update" #o755) ; FIXME work-around git-fetch issue
2003 (with-output-to-file "bin/debops-update"
2005 (format #t "#!/bin/sh
2006 echo 'debops is installed via guix. guix-update is useless in this case.
2007 Please use `guix package -u debops` instead.'")))
2009 ;; patch shebangs only in actuall scripts, not in files included in
2010 ;; roles (which are to be delivered to the targte systems)
2011 (delete `patch-generated-file-shebangs)
2012 (replace 'patch-source-shebangs
2014 (for-each patch-shebang
2017 ;; Filter out symlinks.
2018 (eq? 'regular (stat:type stat)))
2020 (add-after 'unpack 'fix-paths
2022 (define (substitute-program-names file)
2023 ;; e.g. ANSIBLE_PLAYBOOK = '/gnu/store/…/bin/ansible-playbook'
2026 (let ((varname (string-upcase
2028 (lambda (c) (if (char=? c #\-) #\_ c))
2031 (((string-append "^(" varname " = )'.*'") line prefix)
2032 (string-append prefix "'" (which name) "'")))))
2033 '("ansible-playbook" "encfs" "find" "fusermount"
2034 "umount" "gpg" "ansible" "which")))
2035 (for-each substitute-program-names
2037 "bin/debops-padlock"
2039 "debops/__init__.py"
2040 "debops/cmds/__init__.py"))
2042 (home-page "https://www.debops.org/")
2043 (synopsis "Collection of general-purpose Ansible roles")
2044 (description "The Ansible roles provided by that can be used to manage
2045 Debian or Ubuntu hosts. In addition, a default set of Ansible playbooks can
2046 be used to apply the provided roles in a controlled way, using Ansible
2049 The roles are written with a high customization in mind, which can be done
2050 using Ansible inventory. This way the role and playbook code can be shared
2051 between multiple environments, with different configuration in to each one.
2053 Services can be managed on a single host, or spread between multiple hosts.
2054 DebOps provides support for different SQL and NoSQL databases, web servers,
2055 programming languages and specialized applications useful in a data center
2056 environment or in a cluster. The project can also be used to deploy
2057 virtualization environments using KVM/libvirt, Docker or LXC technologies to
2058 manage virtual machines and/or containers.")
2059 (license license:gpl3+)))
2061 (define-public emacs-ansible-doc
2062 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
2064 (name "emacs-ansible-doc")
2065 (version (git-version "0.4" "1" commit))
2070 (url "https://github.com/lunaryorn/ansible-doc.el")
2072 (file-name (git-file-name name version))
2075 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
2076 (build-system emacs-build-system)
2077 ;; Unmaintained by upstream.
2078 (home-page "https://github.com/lunaryorn/ansible-doc.el")
2079 (synopsis "Ansible documentation for Emacs")
2081 "This package provides an Ansible documentation for GNU Emacs.
2083 @code{ansible-doc} allows you to view the documentation of an Ansible
2084 module and @code{ansible-doc-mode} minor mode adds documentation
2085 lookup to YAML Mode. You could enable the mode with @code{(add-hook
2086 'yaml-mode-hook #'ansible-doc-mode)}.")
2087 (license license:gpl3+))))
2089 (define-public cpulimit
2097 (url "https://github.com/opsengine/cpulimit.git")
2098 (commit (string-append "v" version))))
2099 (file-name (git-file-name name version))
2101 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
2102 (build-system gnu-build-system)
2104 `(#:phases (modify-phases %standard-phases
2108 (invoke "make" "CC=gcc" "-Csrc")))
2111 (invoke "make" "CC=gcc" "-Ctests")))
2113 (lambda* (#:key outputs #:allow-other-keys)
2114 (let* ((out (assoc-ref outputs "out"))
2115 (bin (string-append out "/bin")))
2116 (install-file "src/cpulimit" bin))
2118 (home-page "https://github.com/opsengine/cpulimit")
2119 (synopsis "Limit CPU usage")
2121 "Cpulimit limits the CPU usage of a process. It does not change the nice
2122 value or other scheduling priority settings, but the real CPU usage, and is
2123 able to adapt itself dynamically to the overall system load. Children
2124 processes and threads of the specified process may optionally share the same
2126 (license license:gpl2+)))
2128 (define-public autojump
2136 (url "https://github.com/wting/autojump.git")
2137 (commit (string-append "release-v" version))))
2138 (file-name (git-file-name name version))
2140 (base32 "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws"))))
2141 (build-system gnu-build-system)
2142 (native-inputs ; for tests
2143 `(("python-mock" ,python-mock)
2144 ("python-pytest" ,python-pytest)))
2146 `(("python" ,python-wrapper)))
2149 (modify-phases %standard-phases
2150 (add-after 'unpack 'make-git-checkout-writable
2151 ;; ‘install.py’ modifies files before installing them.
2153 (for-each make-file-writable (find-files "."))
2159 (invoke "python" "tests/unit/autojump_utils_test.py")))
2161 (lambda* (#:key outputs #:allow-other-keys)
2162 (setenv "SHELL" (which "bash"))
2163 (invoke "python" "install.py"
2164 (string-append "--destdir="
2165 (assoc-ref outputs "out"))))))))
2166 (home-page "https://github.com/wting/autojump")
2167 (synopsis "Shell extension for file system navigation")
2169 "Autojump provides a faster way to navigate your file system, with a \"cd
2170 command that learns\". It works by maintaining a database of the directories
2171 you use the most from the command line and allows you to \"jump\" to
2172 frequently used directories by typing only a small pattern.")
2173 (license license:gpl3+)))
2182 (url "https://github.com/clvv/fasd.git")
2184 (file-name (git-file-name name version))
2187 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
2188 (build-system gnu-build-system)
2190 `(#:phases (modify-phases %standard-phases
2191 (delete 'configure)) ;no configuration
2192 #:tests? #f ;no tests
2193 #:make-flags (list (string-append "PREFIX=" %output))))
2194 (home-page "https://github.com/clvv/fasd")
2195 (synopsis "Quick access to files and directories for shells")
2197 "Fasd (pronounced similar to \"fast\") is a command-line productivity
2198 booster. Fasd offers quick access to files and directories for POSIX shells.
2199 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
2200 and directories you have accessed so that you can quickly reference them in
2202 (license license:x11)))
2204 (define-public iftop
2210 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
2211 "/iftop-" version ".tar.gz"))
2214 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
2215 (build-system gnu-build-system)
2217 `(("libpcap" ,libpcap)
2218 ("ncurses" ,ncurses)))
2219 (synopsis "Monitor network usage")
2220 (description "Iftop does for network usage what @command{top} does
2221 for CPU usage. It listens to network traffic on a named interface and
2222 displays a table of current bandwidth usage by pairs of hosts.")
2223 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
2224 (license license:gpl2+)))
2226 (define-public munge
2232 (uri (string-append "https://github.com/dun/munge/releases/"
2233 "download/munge-" version "/munge-"
2237 "1nj486bbg1adfg298zck96vgx57kchcypc1zdz1n7w540vyksxcr"))
2238 (modules '((guix build utils)))
2241 ;; Don't insist on write access to /var.
2242 (substitute* "src/etc/Makefile.in"
2243 (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
2244 (string-append "-$(INSTALL)" middle "localstatedir")))
2247 `(("openssl" ,openssl)
2248 ("libgcrypt" ,libgcrypt)))
2249 (build-system gnu-build-system)
2250 (arguments '(#:configure-flags '("--localstatedir=/var")))
2251 (home-page "https://dun.github.io/munge/")
2252 (synopsis "Cluster computing authentication service")
2254 "Munge is an authentication service for creating and validating
2255 credentials. It allows a process to authenticate the UID and GID of another
2256 local or remote process within a group of hosts having common users and
2257 groups. These hosts form a security realm that is defined by a shared
2258 cryptographic key. Clients within this security realm can create and validate
2259 credentials without the use of root privileges, reserved ports, or
2260 platform-specific methods.")
2261 (license license:gpl3+)))
2263 (define-public audit
2266 (home-page "https://people.redhat.com/sgrubb/audit/")
2270 (uri (string-append home-page "audit-" version ".tar.gz"))
2273 "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"))))
2274 (build-system gnu-build-system)
2276 `(#:configure-flags (list "--with-python=no"
2277 "--disable-static")))
2279 `(("openldap" ,openldap)
2281 ("sasl" ,cyrus-sasl)))
2282 (synopsis "User-space component to the Linux auditing system")
2284 "auditd is the user-space component to the Linux auditing system, which
2285 allows logging of system calls made by user-land processes. It's responsible
2286 for writing audit records to the disk. Viewing the logs is done with the
2287 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
2288 done with the @code{auditctl} utility.")
2289 (license license:gpl2+)))
2297 (uri (string-append "https://nmap.org/dist/nmap-" version
2301 "1aizfys6l9f9grm82bk878w56mg0zpkfns3spzj157h98875mypw"))
2302 (modules '((guix build utils)))
2305 (for-each delete-file-recursively
2306 ;; Remove bundled lua, pcap, and pcre libraries.
2307 ;; FIXME: Remove bundled liblinear once packaged.
2311 ;; Remove pre-compiled binares.
2314 (build-system gnu-build-system)
2316 `(("openssl" ,openssl)
2317 ("libpcap" ,libpcap)
2320 ("zlib" ,zlib) ;for NSE compression support
2323 ("python" ,python-2)))
2325 ;; TODO Add zenmap output.
2326 (outputs '("out" "ndiff"))
2328 `(#:configure-flags '("--without-zenmap")
2330 (modify-phases %standard-phases
2331 (add-after 'configure 'patch-Makefile
2333 (substitute* "Makefile"
2334 ;; Do not attempt to build lua.
2335 (("build-dnet build-lua") "build-dnet"))
2338 (lambda* (#:key outputs #:allow-other-keys)
2339 (define (make out . args)
2340 (apply invoke "make"
2341 (string-append "prefix=" out)
2343 (define (python-path dir)
2344 (string-append dir "/lib/python"
2345 ,(version-major+minor
2346 (package-version python))
2348 (let ((out (assoc-ref outputs "out"))
2349 (ndiff (assoc-ref outputs "ndiff")))
2350 (for-each mkdir-p (list out ndiff))
2356 (make ndiff "install-ndiff")
2357 (wrap-program (string-append ndiff "/bin/ndiff")
2358 `("PYTHONPATH" prefix
2359 (,(python-path ndiff)))))
2361 ;; These are the tests that do not require network access.
2363 (lambda _ (invoke "make"
2367 ;; Nmap can't cope with out-of-source building.
2368 #:out-of-source? #f))
2369 (home-page "https://nmap.org/")
2370 (synopsis "Network discovery and security auditing tool")
2372 "Nmap (\"Network Mapper\") is a network discovery and security auditing
2373 tool. It is also useful for tasks such as network inventory, managing service
2374 upgrade schedules, and monitoring host or service uptime. It also provides an
2375 advanced netcat implementation (ncat), a utility for comparing scan
2376 results (ndiff), and a packet generation and response analysis tool (nping).")
2377 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
2378 ;; both use a 3-clause BSD license.
2379 (license (list license:nmap license:bsd-3))))
2381 (define-public dstat
2389 (url "https://github.com/dagwieers/dstat.git")
2390 (commit (string-append "v" version))))
2391 (file-name (git-file-name "dstat" version))
2393 (base32 "1qnmkhqmjd1m3if05jj29dvr5hn6kayq9bkkkh881w472c0zhp8v"))
2394 (patches (search-patches "dstat-fix-crash-when-specifying-delay.patch"
2395 "dstat-skip-devices-without-io.patch"))))
2396 (build-system gnu-build-system)
2398 `(#:tests? #f ; no make check
2399 #:make-flags (let ((out (assoc-ref %outputs "out")))
2400 (list (string-append "DESTDIR=" out)
2403 (modify-phases %standard-phases
2404 (add-after 'unpack 'fix-python3-DeprecationWarning
2406 (substitute* "dstat"
2407 (("collections") "collections.abc"))
2409 (delete 'configure) ; no configure script
2410 (add-after 'install 'wrap
2411 (lambda* (#:key outputs #:allow-other-keys)
2412 (let ((out (assoc-ref outputs "out")))
2413 (wrap-program (string-append out "/bin/dstat")
2414 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2417 `(("python" ,python-wrapper)
2418 ("python-six" ,python-six)))
2419 (synopsis "Versatile resource statistics tool")
2420 (description "Dstat is a versatile replacement for @command{vmstat},
2421 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2422 some of their limitations and adds some extra features, more counters and
2423 flexibility. Dstat is handy for monitoring systems during performance tuning
2424 tests, benchmarks or troubleshooting.
2426 Dstat allows you to view all of your system resources in real-time, you can,
2427 e.g., compare disk utilization in combination with interrupts from your IDE
2428 controller, or compare the network bandwidth numbers directly with the disk
2429 throughput (in the same interval).")
2430 (home-page "http://dag.wiee.rs/home-made/dstat/")
2431 (license license:gpl2+)))
2433 (define-public thefuck
2441 (url "https://github.com/nvbn/thefuck.git")
2443 (file-name (git-file-name name version))
2445 (base32 "1qhxwjjgrzpqrqjv7l2847ywpln76lyd6j8bl9gz2r6kl0fx2fqs"))
2446 (patches (search-patches "thefuck-test-environ.patch"))))
2447 (build-system python-build-system)
2450 (modify-phases %standard-phases
2452 (add-after 'install 'check
2453 (lambda* (#:key inputs outputs #:allow-other-keys)
2454 ;; Tests look for installed package
2455 (add-installed-pythonpath inputs outputs)
2456 ;; Some tests need write access to $HOME.
2457 (setenv "HOME" "/tmp")
2458 (invoke "py.test" "-v")
2461 `(("python-colorama" ,python-colorama)
2462 ("python-decorator" ,python-decorator)
2463 ("python-psutil" ,python-psutil)
2464 ("python-pyte" ,python-pyte)
2465 ("python-six" ,python-six)))
2467 `(("python-mock" ,python-mock)
2468 ("python-pytest" ,python-pytest)
2469 ("python-pytest-mock" ,python-pytest-mock)))
2470 (home-page "https://github.com/nvbn/thefuck")
2471 (synopsis "Correct mistyped console command")
2473 "The Fuck tries to match a rule for a previous, mistyped command, creates
2474 a new command using the matched rule, and runs it.")
2475 (license license:x11)))
2484 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2486 (base32 "0m4npba50sf5s61g5z3xd2r7937zwja941f2h3f081xi24c2hfck"))))
2487 (build-system gnu-build-system)
2489 `(#:tests? #f ; obscure test failures
2491 (modify-phases %standard-phases
2492 (delete 'configure) ; no configure script
2493 (add-before 'build 'setup-environment
2494 (lambda* (#:key outputs #:allow-other-keys)
2496 (setenv "prefix" (assoc-ref outputs "out"))
2498 #:make-flags (list "--environment-overrides")))
2499 (home-page "https://www.gentoo.com/di/")
2500 (synopsis "Advanced df like disk information utility")
2502 "@code{di} is a disk information utility, displaying everything that your
2503 @code{df} command does and more. It features the ability to display your disk
2504 usage in whatever format you prefer. It is designed to be highly portable and
2505 produce uniform output across heterogeneous networks.")
2506 (license license:zlib)))
2508 (define-public cbatticon
2516 (url "https://github.com/valr/cbatticon.git")
2519 (base32 "0ivm2dzhsa9ir25ry418r2qg2llby9j7a6m3arbvq5c3kaj8m9jr"))
2520 (file-name (git-file-name name version))))
2521 (build-system gnu-build-system)
2523 `(#:tests? #f ; no tests
2525 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2528 (modify-phases %standard-phases
2529 (delete 'configure)))) ; no configure script
2532 ("gettext" ,gettext-minimal)
2533 ("libnotify" ,libnotify)))
2535 `(("pkg-config" ,pkg-config)))
2536 (synopsis "Lightweight battery icon for the system tray")
2537 (description "cbatticon is a lightweight battery icon that displays
2538 the status of your battery in the system tray.")
2539 (home-page "https://github.com/valr/cbatticon")
2540 (license license:gpl2+)))
2542 (define-public interrobang
2543 (let ((revision "1")
2544 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2546 (name "interrobang")
2547 (version (git-version "0.0.0" revision commit))
2552 (url "https://github.com/TrilbyWhite/interrobang.git")
2554 (file-name (git-file-name name version))
2556 (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2557 (build-system gnu-build-system)
2559 `(#:tests? #f ; no tests
2561 (modify-phases %standard-phases
2562 (delete 'configure)) ; no configure script
2563 #:make-flags (list (string-append "PREFIX="
2564 (assoc-ref %outputs "out")))))
2566 `(("libx11" ,libx11)))
2568 `(("pkg-config" ,pkg-config)))
2569 (synopsis "Scriptable launcher menu")
2570 (description "Interrobang is a scriptable launcher menu with a customizable
2571 shortcut syntax and completion options.")
2572 (home-page "https://github.com/TrilbyWhite/interrobang")
2573 (license license:gpl3+))))
2575 (define-public pam-krb5
2582 "https://archives.eyrie.org/software/kerberos/"
2583 "pam-krb5-" version ".tar.xz"))
2586 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2587 (build-system gnu-build-system)
2590 (modify-phases %standard-phases
2591 (add-before 'configure 'disable-tests
2593 ;; The build container seems to interfere with some tests.
2594 (substitute* "tests/TESTS"
2595 (("module/basic\n") ""))
2596 (substitute* "tests/TESTS"
2597 (("pam-util/vector\n") ""))
2600 `(("linux-pam" ,linux-pam)
2601 ("mit-krb5" ,mit-krb5)))
2604 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2605 (synopsis "Kerberos PAM module")
2607 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2608 It supports ticket refreshing by screen savers, configurable
2609 authorization handling, authentication of non-local accounts for network
2610 services, password changing, and password expiration, as well as all the
2611 standard expected PAM features. It works correctly with OpenSSH, even
2612 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2613 enabled, and supports extensive configuration either by PAM options or in
2614 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2615 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2616 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2617 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2618 ;; However, the tarball does not contain a copy of the GPL, so unless
2619 ;; we put one in, we cannot distribute it under GPL without violating
2620 ;; clause requiring us to give all recipients a copy.
2621 (license license:gpl1+)))
2623 (define (sunxi-tools-source version)
2627 (url "https://github.com/linux-sunxi/sunxi-tools.git")
2628 (commit (string-append "v" version))))
2630 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
2631 (modules '((guix build utils)))
2633 ;; Remove binaries contained in the tarball which are only for the
2634 ;; target and can be regenerated anyway.
2636 (delete-file-recursively "bin")
2638 (file-name (git-file-name "sunxi-tools" version))))
2640 (define sunxi-target-tools
2642 (name "sunxi-target-tools")
2644 (build-system gnu-build-system)
2646 (sunxi-tools-source version))
2648 `(#:system "armhf-linux"
2650 #:make-flags (list (string-append "PREFIX="
2651 (assoc-ref %outputs "out"))
2652 (string-append "CROSS_COMPILE=")
2655 (modify-phases %standard-phases
2658 (lambda* (#:key make-flags #:allow-other-keys)
2659 (apply invoke "make" "target-tools" make-flags)))
2661 (lambda* (#:key make-flags #:allow-other-keys)
2662 (apply invoke "make" "install-target-tools"
2664 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2665 (synopsis "Hardware management tools for Allwinner computers")
2666 (description "This package contains tools for Allwinner devices:
2668 @item @command{sunxi-meminfo}: Prints memory bus settings.
2670 (license license:gpl2+)))
2672 (define-public sunxi-tools
2674 (name "sunxi-tools")
2677 (sunxi-tools-source version))
2679 `(("sunxi-target-tools" ,sunxi-target-tools)
2680 ("pkg-config" ,pkg-config)))
2682 `(("libusb" ,libusb)))
2683 (build-system gnu-build-system)
2685 `(#:tests? #f ; no tests exist
2686 #:make-flags (list (string-append "PREFIX="
2687 (assoc-ref %outputs "out"))
2688 (string-append "CROSS_COMPILE=disabled")
2691 (modify-phases %standard-phases
2694 (lambda* (#:key make-flags #:allow-other-keys)
2695 (apply invoke "make" "tools" "misc" make-flags)))
2697 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
2698 ;; Those tools have been built for armhf but are part of the
2699 ;; installation in the upstream package. So do the same
2701 (copy-recursively (assoc-ref inputs "sunxi-target-tools")
2702 (assoc-ref outputs "out"))
2703 (apply invoke "make" "install-tools" "install-misc"
2705 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2706 (synopsis "Hardware management tools for Allwinner computers")
2707 (description "This package contains tools for Allwinner devices:
2709 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
2710 a textual description of a board (.fex) to a binary representation (.bin).
2711 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
2712 makes it register as a special USB device (rather than USB host).
2713 You can then connect it to another computer and flash it from there.
2714 @item @command{sunxi-nand-part}: Partitions NAND flash.
2715 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
2716 bootloader) parameters.
2717 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
2718 in order to be able to find it.
2719 @item @command{sunxi-meminfo}: Prints memory bus settings.
2720 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
2722 (license license:gpl2+)))
2724 (define-public sedsed
2732 (url "https://github.com/aureliojargas/sedsed.git")
2733 (commit (string-append "v" version))))
2734 (file-name (git-file-name name version))
2736 (base32 "05cl35mwljdb9ynbbsfa8zx6ig8r0xncbg2cir9vwn5manndjj18"))))
2737 (build-system python-build-system)
2739 `(#:tests? #f ; no tests
2741 (modify-phases %standard-phases
2742 (add-after 'unpack 'patch-sed-in
2744 (substitute* "sedsed.py"
2746 (string-append "sedbin = '" (which "sed") "'")))
2750 (lambda* (#:key outputs #:allow-other-keys)
2751 (let* ((out (assoc-ref outputs "out"))
2752 (bin (string-append out "/bin")))
2753 ;; Just one file to copy around
2754 (install-file "sedsed.py" bin)
2756 (add-after 'wrap 'symlink
2757 ;; Create 'sedsed' symlink to "sedsed.py".
2758 (lambda* (#:key outputs #:allow-other-keys)
2759 (let* ((out (assoc-ref outputs "out"))
2760 (bin (string-append out "/bin"))
2761 (sed (string-append bin "/sedsed"))
2762 (sedpy (string-append bin "/sedsed.py")))
2765 (home-page "https://aurelio.net/projects/sedsed")
2766 (synopsis "Sed sed scripts")
2768 "@code{sedsed} can debug, indent, tokenize and HTMLize your @command{sed}
2771 In debug mode, it reads your script and adds extra commands to it. When
2772 executed you can see the data flow between the commands, revealing all the
2773 magic sed performs on its internal buffers.
2775 In indent mode, your script is reformatted with standard spacing.
2777 In tokenize mode, you can see the elements of every command you use.
2779 In HTMLize mode, your script is converted to a beautiful colored HTML file,
2780 with all the commands and parameters identified for your viewing pleasure.
2782 With sedsed you can master any sed script. No more secrets, no more hidden
2784 (license license:expat)))
2786 (define-public igt-gpu-tools
2788 (name "igt-gpu-tools")
2794 (url "https://gitlab.freedesktop.org/drm/igt-gpu-tools.git")
2795 (commit (string-append "igt-gpu-tools-" version))))
2796 (file-name (git-file-name name version))
2798 (base32 "1gpdjs5aj6vsnzwcjvw5bb120lgffvvshi4202phr0bzw3b92ky8"))))
2799 (build-system gnu-build-system)
2801 `(#:tests? #f ; many of the tests try to load kernel modules
2803 (modify-phases %standard-phases
2806 ;; Don't run configure in this phase.
2807 (setenv "NOCONFIGURE" "1")
2808 (invoke "sh" "autogen.sh"))))))
2811 ("elfutils" ,elfutils) ; libdw
2816 ("libpciaccess" ,libpciaccess)
2817 ("libunwind" ,libunwind)
2818 ("libxrandr" ,libxrandr)
2819 ("openssl" ,openssl)
2821 ("util-macros" ,util-macros)))
2823 `(("autoconf" ,autoconf)
2824 ("automake" ,automake)
2825 ("libtool" ,libtool)
2826 ("pkg-config" ,pkg-config)))
2827 (home-page "https://cgit.freedesktop.org/xorg/app/intel-gpu-tools/")
2828 (synopsis "Tools for development and testing of the Intel DRM driver")
2829 (description "IGT GPU Tools is a collection of tools for development and
2830 testing of the Intel DRM driver. There are many macro-level test suites that
2831 get used against the driver, including xtest, rendercheck, piglit, and
2832 oglconform, but failures from those can be difficult to track down to kernel
2833 changes, and many require complicated build procedures or specific testing
2834 environments to get useful results. Therefore, IGT GPU Tools includes
2835 low-level tools and tests specifically for development and testing of the
2837 (supported-systems '("i686-linux" "x86_64-linux"))
2838 (license license:expat)))
2840 (define-public intel-gpu-tools
2841 (deprecated-package "intel-gpu-tools" igt-gpu-tools))
2843 (define-public fabric
2850 (uri (pypi-uri "Fabric" version))
2853 "13r0b0hllgf8j9rh6x1knmbgvingbdmx046aazv6vck2ll120mw1"))))
2854 (build-system python-build-system)
2856 `(#:python ,python-2 ; Python 2 only
2858 (modify-phases %standard-phases
2862 "nosetests" "-v" "tests/"
2863 ;; This test hangs indefinitely when run on a single core VM
2864 ;; (see GNU bug #26647 and Debian bug #850230).
2865 "--exclude=test_nested_execution_with_explicit_ports"
2866 ;; This test randomly fails in certain environments causing too
2867 ;; much noise to be useful (see Debian bug #854686).
2868 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
2870 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
2871 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
2872 ("python2-nose" ,python2-nose) ; Requires < 2.0
2873 ("python2-pynacl" ,python2-pynacl)
2874 ("python2-bcrypt" ,python2-bcrypt)))
2876 `(("python2-paramiko" ,python2-paramiko)))
2877 (home-page "http://fabfile.org")
2878 (synopsis "Simple Pythonic remote execution and deployment tool")
2880 "Fabric is designed to upload files and run shell commands on a number of
2881 servers in parallel or serially. These commands are grouped in tasks (which
2882 are regular Python functions) and specified in a @dfn{fabfile}.
2884 It is similar to Capistrano, except it's implemented in Python and doesn't
2885 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
2886 tool for remote execution and deployment.")
2887 (license license:bsd-2)))
2889 (define-public neofetch
2890 (let ((commit "501d6b7594296d9eac8943140f8581daf555873d"))
2893 (version (git-version "6.1.0" "1" commit))
2897 (url "https://github.com/dylanaraps/neofetch")
2899 (file-name (git-file-name name version))
2902 "1h5md9jimyc6z4d7w66j27hn8qghzyxgpkh5h9dclzxpp5cs8whb"))))
2903 (build-system gnu-build-system)
2905 `(#:tests? #f ; there are no tests
2907 (list (string-append "PREFIX=" %output))
2909 (modify-phases %standard-phases
2910 (delete 'configure)))) ; no configure script
2911 (home-page "https://github.com/dylanaraps/neofetch")
2912 (synopsis "System information script")
2913 (description "Neofetch is a command-line system information tool written in
2914 Bash. Neofetch displays information about your system next to an image, your OS
2915 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
2916 used in screenshots to show other users what operating system or distribution
2917 you are running, what theme or icon set you are using, etc.")
2918 (license license:expat))))
2920 (define-public screenfetch
2922 (name "screenfetch")
2927 (url "https://github.com/KittyKatt/screenFetch")
2928 (commit (string-append "v" version))))
2929 (file-name (git-file-name name version))
2932 "04l8aqr474pb115nagn9f6y48jw92n1qfszgw7dbhgl4mpn95lcr"))))
2933 (build-system trivial-build-system)
2935 `(#:modules ((guix build utils))
2938 (use-modules (guix build utils))
2939 (let ((source (assoc-ref %build-inputs "source"))
2940 (out (assoc-ref %outputs "out")))
2941 (mkdir-p (string-append out "/bin/"))
2942 (copy-file (string-append source "/screenfetch-dev")
2943 (string-append out "/bin/screenfetch"))
2944 (install-file (string-append source "/screenfetch.1")
2945 (string-append out "/man/man1/"))
2946 (install-file (string-append source "/COPYING")
2947 (string-append out "/share/doc/" ,name "-" ,version))
2948 (substitute* (string-append out "/bin/screenfetch")
2949 (("/usr/bin/env bash")
2950 (string-append (assoc-ref %build-inputs "bash")
2953 (string-append out "/bin/screenfetch")
2955 (,(string-append (assoc-ref %build-inputs "bc") "/bin:"
2956 (assoc-ref %build-inputs "scrot") "/bin:"
2957 (assoc-ref %build-inputs "xdpyinfo") "/bin"
2958 (assoc-ref %build-inputs "xprop") "/bin"))))
2959 (substitute* (string-append out "/bin/screenfetch")
2961 (string-append "#!" (assoc-ref %build-inputs "bash")
2967 ("xdpyinfo" ,xdpyinfo)
2969 (home-page "https://github.com/KittyKatt/screenFetch")
2970 (synopsis "System information script")
2971 (description "Bash screenshot information tool which can be used to
2972 generate those nifty terminal theme information and ASCII distribution logos in
2973 everyone's screenshots nowadays.")
2974 (license license:gpl3)))
2983 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
2984 version "/nnn-v" version ".tar.gz"))
2986 (base32 "1g47bndxld875d0xb3pgmlw223mz47p1xcvwym861y6l4zkgiyp0"))))
2987 (build-system gnu-build-system)
2989 `(("ncurses" ,ncurses)
2990 ("readline" ,readline)))
2992 `(("pkg-config" ,pkg-config)))
2994 '(#:tests? #f ; no tests
2996 (modify-phases %standard-phases
2997 (delete 'configure)) ; no configure script
3000 (string-append "PREFIX="
3001 (assoc-ref %outputs "out"))
3003 (home-page "https://github.com/jarun/nnn")
3004 (synopsis "Terminal file browser")
3005 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
3006 lightweight terminal file browser with easy keyboard shortcuts for
3007 navigation, opening files and running tasks. There is no config file and
3008 mime associations are hard-coded. The incredible user-friendliness and speed
3009 make it a perfect utility on modern distros.")
3010 (license license:bsd-2)))
3012 (define-public thermald
3020 (url "https://github.com/01org/thermal_daemon")
3021 (commit (string-append "v" version))))
3022 (file-name (git-file-name name version))
3024 (base32 "0iagc3jqpnh6q2fa1gx4wx6r8qg0556j60xr159zqg95djr4dv99"))))
3025 (build-system gnu-build-system)
3028 (let ((out (assoc-ref %outputs "out")))
3029 (list (string-append "--sysconfdir="
3031 (string-append "--with-dbus-sys-dir="
3032 out "/etc/dbus-1/system.d")
3033 "--localstatedir=/var"))))
3035 `(("autoconf" ,autoconf)
3036 ("automake" ,automake)
3037 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3038 ("pkg-config" ,pkg-config)))
3040 `(("dbus-glib" ,dbus-glib)
3041 ("libxml2" ,libxml2)))
3042 (home-page "https://01.org/linux-thermal-daemon/")
3043 (synopsis "CPU scaling for thermal management")
3044 (description "The Linux Thermal Daemon helps monitor and control temperature
3045 on systems running the Linux kernel.")
3046 ;; arm and aarch64 don't have cpuid.h.
3047 (supported-systems '("i686-linux" "x86_64-linux"))
3048 (license license:gpl2+)))
3050 (define-public masscan
3058 (url "https://github.com/robertdavidgraham/masscan.git")
3060 (file-name (git-file-name name version))
3062 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
3063 (build-system gnu-build-system)
3065 `(("libpcap" ,libpcap)))
3067 '(#:test-target "regress"
3070 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3072 (modify-phases %standard-phases
3073 (delete 'configure) ; no ./configure script
3074 (add-after 'unpack 'patch-path
3075 (lambda* (#:key outputs inputs #:allow-other-keys)
3076 (let* ((out (assoc-ref outputs "out"))
3077 (pcap (assoc-ref inputs "libpcap")))
3078 (substitute* "src/rawsock-pcap.c"
3079 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
3081 (synopsis "TCP port scanner")
3082 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
3083 open ports, and also complete the TCP connection and interact with the remote
3084 application, collecting the information received.")
3085 (home-page "https://github.com/robertdavidgraham/masscan")
3086 ;; 'src/siphash24.c' is the SipHash reference implementation, which
3087 ;; bears a CC0 Public Domain Dedication.
3088 (license license:agpl3+)))
3090 (define-public hungrycat
3096 (uri (string-append "https://github.com/jwilk/hungrycat/"
3097 "releases/download/" version "/"
3098 "hungrycat-" version ".tar.gz"))
3101 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
3102 (build-system gnu-build-system)
3105 `(("python" ,python-wrapper)
3106 ("python-nose" ,python-nose)))
3108 `(#:test-target "test"))
3109 (synopsis "A single tool that combines @command{cat} & @command{rm}")
3111 "hungrycat prints the contents of a file to standard output, while
3112 simultaneously freeing the disk space it occupied. It is useful if you need
3113 to process a large file, don't have enough space to store both the input and
3114 output files, and don't need the input file afterwards.
3115 While similar in principle to running @command{cat} immediately followed by
3116 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
3117 printed instead of after the entire file has been read, which is often too
3119 (home-page "https://jwilk.net/software/hungrycat")
3120 (license license:expat)))
3122 (define-public launchmon
3129 "https://github.com/LLNL/LaunchMON/releases/download/v"
3130 version "/launchmon-v" version ".tar.gz"))
3133 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))))
3134 (build-system gnu-build-system)
3140 ("libgcrypt" ,libgcrypt)
3141 ("libgpg-error" ,libgpg-error)))
3142 (synopsis "Infrastructue for large scale tool daemon launching")
3144 "LaunchMON is a software infrastructure that enables HPC run-time
3145 tools to co-locate tool daemons with a parallel job. Its API allows a
3146 tool to identify all the remote processes of a job and to scalably
3147 launch daemons into the relevant nodes.")
3148 (home-page "https://github.com/LLNL/LaunchMON")
3149 (supported-systems '("i686-linux" "x86_64-linux"))
3150 (license license:lgpl2.1)))
3152 (define-public spindle
3157 ;; We use git checkout to avoid github auto-generated tarballs
3160 (url "https://github.com/hpc/Spindle.git")
3161 (commit (string-append "v" version))))
3162 (file-name (git-file-name name version))
3165 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
3166 (build-system gnu-build-system)
3167 (arguments '(#:configure-flags '("--enable-sec-launchmon"
3168 "--enable-sec-munge"
3169 "--enable-sec-none")))
3173 ("launchmon" ,launchmon)
3174 ("libgcrypt" ,libgcrypt)))
3175 (synopsis "Scalable library loading in HPC environments")
3177 "Spindle is a tool for improving the performance of dynamic library and
3178 Python loading in HPC environments.")
3179 (home-page "https://github.com/hpc/Spindle")
3180 ;; This package supports x86_64 and PowerPC64
3181 (supported-systems '("x86_64-linux"))
3182 (license license:lgpl2.1)))
3184 (define-public inxi-minimal
3185 (let ((real-name "inxi"))
3187 (name "inxi-minimal")
3188 (version "3.0.37-1")
3193 (url "https://github.com/smxi/inxi")
3195 (file-name (git-file-name real-name version))
3197 (base32 "15wvj9w601ci3bavd1hk5qlm8dfm7a7cjglczk29yir5yw2jww3f"))))
3198 (build-system trivial-build-system)
3200 `(("bash" ,bash-minimal)
3202 ("procps" ,procps)))
3212 (use-modules (guix build utils)
3215 (setenv "PATH" (string-append
3216 (assoc-ref %build-inputs "bash") "/bin" ":"
3217 (assoc-ref %build-inputs "gzip") "/bin" ":"
3218 (assoc-ref %build-inputs "perl") "/bin" ":"))
3219 (copy-recursively (assoc-ref %build-inputs "source")
3220 ,(string-append real-name "-" version))
3221 (with-directory-excursion ,(string-append real-name "-" version)
3222 (with-fluids ((%default-port-encoding #f))
3223 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
3224 (let ((bin (string-append %output "/bin")))
3225 (install-file "inxi" bin)
3226 (wrap-program (string-append bin "/inxi")
3229 ,@(map (lambda (input)
3233 (cut string-append store <>)))
3235 ((member name '("util-linux"))
3236 (string-append (store-append "/bin") ":"
3237 (store-append "/sbin")))
3238 ((member name '("dmidecode" "iproute2"))
3239 (store-append "/sbin"))
3240 (else (store-append "/bin")))))))
3246 (((? (cut string-prefix? "perl-" <>) name) . dir)
3247 (string-append dir "/lib/perl5/site_perl"))
3250 (invoke "gzip" "inxi.1")
3251 (install-file "inxi.1.gz"
3252 (string-append %output "/share/man/man1")))
3254 (home-page "https://smxi.org/docs/inxi.htm")
3255 (synopsis "Full-featured system information script")
3256 (description "Inxi is a system information script that can display
3257 various things about your hardware and software to users in an IRC chatroom or
3258 support forum. It runs with the @code{/exec} command in most IRC clients.")
3259 (license license:gpl3+))))
3263 (inherit inxi-minimal)
3266 `(("dmidecode" ,dmidecode)
3268 ("bind:utils" ,isc-bind "utils") ; dig
3270 ("iproute2" ,iproute) ; ip
3271 ("kmod" ,kmod) ; modinfo
3272 ("lm-sensors" ,lm-sensors)
3273 ("mesa-utils" ,mesa-utils)
3274 ("pciutils" ,pciutils)
3277 ("util-linux" ,util-linux) ; lsblk
3278 ("usbutils" ,usbutils) ; lsusb
3280 ("xdpyinfo" ,xdpyinfo)
3283 ("coreutils" ,coreutils) ; uptime
3284 ("inetutils" ,inetutils) ; ifconfig
3285 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
3286 ("perl-http-tiny" ,perl-http-tiny)
3287 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3288 ("perl-json-xs" ,perl-json-xs)
3289 ("perl-time-hires" ,perl-time-hires)
3290 ;; TODO: Add more inputs:
3295 ,@(package-inputs inxi-minimal)))))
3297 (define-public pscircle
3305 (url "https://gitlab.com/mildlyparallel/pscircle.git")
3306 (commit (string-append "v" version))))
3307 (file-name (git-file-name name version))
3309 (base32 "1sm99423hh90kr4wdjqi9sdrrpk65j2vz2hzj65zcxfxyr6khjci"))))
3310 (build-system meson-build-system)
3312 `(("pkg-config" ,pkg-config)))
3316 ("libx11" ,libx11)))
3317 (home-page "https://gitlab.com/mildlyparallel/pscircle")
3318 (synopsis "Visualize Linux processes in a form of radial tree")
3320 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
3321 (license license:gpl2+)))
3323 (define-public python-pyudev
3325 (name "python-pyudev")
3330 (uri (pypi-uri "pyudev" version))
3333 "0arz0dqp75sszsmgm6vhg92n1lsx91ihddx3m944f4ah0487ljq9"))))
3334 (build-system python-build-system)
3336 `(#:tests? #f ; Tests require /sys
3338 (modify-phases %standard-phases
3339 (add-after 'unpack 'patch-ctypes-udev
3340 (lambda* (#:key inputs outputs #:allow-other-keys)
3341 (let ((eudev (assoc-ref inputs "eudev")))
3342 (substitute* "src/pyudev/core.py"
3344 (string-append "'" eudev "/lib/libudev.so'")))
3345 (substitute* "src/pyudev/_ctypeslib/utils.py"
3346 ;; Use absolute paths instead of keys.
3347 (("= find_library") "= "))
3350 `(("eudev" ,eudev)))
3352 `(("python-six" ,python-six)))
3354 `(("python-docutils" ,python-docutils)
3355 ("python-hypothesis" ,python-hypothesis)
3356 ("python-mock" ,python-mock)
3357 ("python-pytest" ,python-pytest)
3358 ("python-sphinx" ,python-sphinx)))
3359 (home-page "http://pyudev.readthedocs.org/")
3360 (synopsis "Python udev binding")
3361 (description "This package provides @code{udev} bindings for Python.")
3362 (license license:lgpl2.1)))
3364 (define-public solaar
3371 (url "https://github.com/pwr/Solaar.git")
3373 (file-name (git-file-name name version))
3376 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
3377 (build-system python-build-system)
3380 (modify-phases %standard-phases
3381 (add-after 'unpack 'fix-prefix-detection
3383 (substitute* "setup.py"
3384 (("'--prefix' in sys\\.argv")
3385 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
3389 (invoke "python" "setup.py" "build")))
3390 (add-before 'check 'setenv-PATH
3392 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
3395 `(("python-pygobject" ,python-pygobject)
3396 ("python-pyudev" ,python-pyudev)))
3397 (home-page "https://smxi.org/docs/inxi.htm")
3398 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
3399 (description "This package provides tools to manage clients of the
3400 Logitech Unifying Receiver.")
3401 (license license:gpl2)))
3403 (define-public lynis
3406 ;; Also update the ‘lynis-sdk’ input to the commit matching this release.
3412 (url "https://github.com/CISOfy/lynis")
3414 (file-name (git-file-name name version))
3416 (base32 "1lkkbvxm0rgrrlx0szaxmf8ghc3d26wal96sgqk84m37mvs1f7p0"))
3417 (modules '((guix build utils)))
3420 ;; Remove proprietary plugins. As of now, all plugins supplied with
3421 ;; lynis are proprietary. In the future, if free plugins are
3422 ;; provided, whitelist them from deletion.
3423 (for-each delete-file (find-files "plugins"))
3425 (build-system gnu-build-system)
3432 (url "https://github.com/CISOfy/lynis-sdk")
3433 (commit "bf1c1d95121da9ca79a9eac5a15ed8d81e34094d")))
3434 (file-name (git-file-name "lynis-sdk" version))
3436 (base32 "1ndz5v0039dqa87cva2dk55a8hkw0fibsw8hh2ddmny9qkr4l3dp"))))))
3439 (modify-phases %standard-phases
3441 (lambda* (#:key inputs outputs #:allow-other-keys)
3442 (substitute* "lynis"
3443 (("/usr/share/lynis")
3444 (string-append (assoc-ref outputs "out") "/share/lynis")))
3445 (substitute* "include/functions"
3446 (("/usr/local/etc/lynis")
3447 (string-append (assoc-ref outputs "out") "/etc/lynis")))
3451 (lambda* (#:key outputs #:allow-other-keys)
3452 (let ((out (assoc-ref outputs "out")))
3453 (install-file "lynis" (string-append out "/bin/"))
3454 (install-file "default.prf" (string-append out "/etc/lynis"))
3457 (copy-recursively dir (string-append out "/share/lynis/" dir)))
3458 (list "db" "include" "plugins"))
3459 (install-file "lynis.8" (string-append out "/share/man/man8"))
3462 (lambda* (#:key inputs #:allow-other-keys)
3463 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
3464 (setenv "LANG" "en_US.UTF-8")
3465 (let ((lynis-dir (getcwd)))
3466 (with-directory-excursion "../lynis-sdk"
3467 (substitute* "config"
3468 (("\\.\\./lynis") lynis-dir))
3469 (substitute* "unit-tests/tests-language-translations.sh"
3470 (("\\.\\./lynis") lynis-dir))
3471 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
3472 (home-page "https://cisofy.com/lynis/")
3473 (synopsis "Security auditing tool")
3474 (description "Lynis is a security auditing tool. It performs an in-depth
3475 security scan and runs on the system itself. The primary goal is to test
3476 security defenses and provide tips for further system hardening. It will also
3477 scan for general system information, vulnerable software packages, and
3478 possible configuration issues.")
3479 (license license:gpl3+)))
3481 (define-public ngrep
3489 (url "https://github.com/jpr5/ngrep/")
3490 (commit (string-append "V" (string-replace-substring version "." "_")))))
3491 (file-name (git-file-name name version))
3494 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3495 (build-system gnu-build-system)
3497 `(("libpcap" ,libpcap)))
3499 `(#:tests? #f ;; No tests.
3500 #:configure-flags (list (string-append "--with-pcap-includes="
3501 (assoc-ref %build-inputs "libpcap")
3503 (home-page "https://github.com/jpr5/ngrep/")
3504 (synopsis "Grep-like utility to search for network packets on an interface")
3505 (description "@command{ngrep} is like GNU grep applied to the network
3506 layer. It's a PCAP-based tool that allows you to specify an extended regular
3507 or hexadecimal expression to match against data payloads of packets. It
3508 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3509 IGMP and Raw, across a wide variety of interface types, and understands BPF
3510 filter logic in the same fashion as more common packet sniffing tools, such as
3511 tcpdump and snoop.")
3512 (license license:bsd-3)))
3514 (define-public pam-mount
3521 (uri (string-append "mirror://sourceforge/pam-mount/pam_mount/"
3522 version "/pam_mount-" version ".tar.xz"))
3525 "1rvi4irb7ylsbhvx1cr6islm2xxw1a4b19q6z4a9864ndkm0f0mf"))
3527 ;; Patch adding support for encrypted volumes in LUKS2 format.
3528 ;; It comes from the Gentoo package definition for sys-auth/pam_mount.
3529 (search-patches "pam-mount-luks2-support.patch"))))
3530 (build-system gnu-build-system)
3533 ("pkg-config" ,pkg-config)))
3535 `(("cryptsetup" ,cryptsetup)
3537 ("libxml2" ,libxml2)
3538 ("linux-pam" ,linux-pam)
3540 ("openssl" ,openssl)
3542 ("util-linux" ,util-linux)))
3545 (list (string-append "--with-slibdir=" %output "/lib")
3546 (string-append "--with-ssbindir=" %output "/sbin"))
3548 (modify-phases %standard-phases
3549 (add-after 'unpack 'fix-program-paths
3550 (lambda* (#:key inputs outputs #:allow-other-keys)
3551 (let ((util-linux (assoc-ref inputs "util-linux"))
3552 (out (assoc-ref outputs "out")))
3553 (substitute* "src/mtcrypt.c"
3555 (string-append "\"" util-linux "/bin/mount\";"))
3557 (string-append "\"" util-linux "/bin/umount\";"))
3559 (string-append "\"" util-linux "/sbin/fsck\",")))
3560 (substitute* "src/rdconf1.c"
3562 (string-append "\"" util-linux "/bin/mount\", \""))
3564 (string-append "\"" util-linux "/bin/umount\", \""))
3566 (string-append "\"" util-linux "/sbin/fsck\", \""))
3567 (("\"pmvarrun\", \"")
3568 (string-append "\"" out "/sbin/pmvarrun\", \""))))
3570 (home-page "http://pam-mount.sourceforge.net")
3571 (synopsis "PAM module to mount volumes for a user session")
3573 "Pam-mount is a PAM module that can mount volumes when a user logs in.
3574 It supports mounting local filesystems of any kind the normal mount utility
3575 supports. It can also mount encrypted LUKS volumes using the password
3576 supplied by the user when logging in.")
3577 (license (list license:gpl2+ license:lgpl2.1+))))