1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2014, 2015, 2016, 2018, 2019, 2020 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2020 Eric Bavier <bavier@posteo.net>
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, 2020 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, 2020, 2021 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 Nikita <nikita@n0.is>
16 ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
18 ;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
19 ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
20 ;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
21 ;;; Copyright © 2017, 2018, 2020 Marius Bakke <mbakke@fastmail.com>
22 ;;; Copyright © 2018, 2019 Arun Isaac <arunisaac@systemreboot.net>
23 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
24 ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
25 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
26 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
27 ;;; Copyright © 2019,2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
28 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.org>
29 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
31 ;;; Copyright © 2019, 2021 Guillaume Le Vaillant <glv@posteo.net>
32 ;;; Copyright © 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
33 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
34 ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
35 ;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
36 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
37 ;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
38 ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com>
39 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
40 ;;; Copyright © 2021 qblade <qblade@protonmail.com>
41 ;;; Copyright © 2021 Hyunseok Kim <lasnesne@lagunposprasihopre.org>
43 ;;; This file is part of GNU Guix.
45 ;;; GNU Guix is free software; you can redistribute it and/or modify it
46 ;;; under the terms of the GNU General Public License as published by
47 ;;; the Free Software Foundation; either version 3 of the License, or (at
48 ;;; your option) any later version.
50 ;;; GNU Guix is distributed in the hope that it will be useful, but
51 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
52 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 ;;; GNU General Public License for more details.
55 ;;; You should have received a copy of the GNU General Public License
56 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
58 (define-module (gnu packages admin)
59 #:use-module (guix build-system cmake)
60 #:use-module (guix build-system emacs)
61 #:use-module (guix build-system glib-or-gtk)
62 #:use-module (guix build-system gnu)
63 #:use-module (guix build-system go)
64 #:use-module (guix build-system meson)
65 #:use-module (guix build-system perl)
66 #:use-module (guix build-system python)
67 #:use-module (guix build-system ruby)
68 #:use-module (guix build-system trivial)
69 #:use-module (guix download)
70 #:use-module (guix git-download)
71 #:use-module ((guix licenses) #:prefix license:)
72 #:use-module (guix packages)
73 #:use-module (guix utils)
74 #:use-module (gnu packages)
75 #:use-module (gnu packages algebra)
76 #:use-module (gnu packages autogen)
77 #:use-module (gnu packages autotools)
78 #:use-module (gnu packages base)
79 #:use-module (gnu packages bash)
80 #:use-module (gnu packages bison)
81 #:use-module (gnu packages boost)
82 #:use-module (gnu packages c)
83 #:use-module (gnu packages check)
84 #:use-module (gnu packages compression)
85 #:use-module (gnu packages cross-base)
86 #:use-module (gnu packages crypto)
87 #:use-module (gnu packages cryptsetup)
88 #:use-module (gnu packages cyrus-sasl)
89 #:use-module (gnu packages dns)
90 #:use-module (gnu packages elf)
91 #:use-module (gnu packages file)
92 #:use-module (gnu packages flex)
93 #:use-module (gnu packages gawk)
94 #:use-module (gnu packages gettext)
95 #:use-module (gnu packages gl)
96 #:use-module (gnu packages glib)
97 #:use-module (gnu packages gnome)
98 #:use-module (gnu packages gnupg)
99 #:use-module (gnu packages golang)
100 #:use-module (gnu packages groff)
101 #:use-module (gnu packages gtk)
102 #:use-module (gnu packages guile)
103 #:use-module (gnu packages hurd)
104 #:use-module (gnu packages image)
105 #:use-module (gnu packages imagemagick)
106 #:use-module (gnu packages inkscape)
107 #:use-module (gnu packages kerberos)
108 #:use-module (gnu packages libbsd)
109 #:use-module (gnu packages libftdi)
110 #:use-module (gnu packages libunwind)
111 #:use-module (gnu packages libusb)
112 #:use-module (gnu packages linux)
113 #:use-module (gnu packages lua)
114 #:use-module (gnu packages mail)
115 #:use-module (gnu packages man)
116 #:use-module (gnu packages mcrypt)
117 #:use-module (gnu packages mpi)
118 #:use-module (gnu packages ncurses)
119 #:use-module (gnu packages openldap)
120 #:use-module (gnu packages patchutils)
121 #:use-module (gnu packages pciutils)
122 #:use-module (gnu packages pcre)
123 #:use-module (gnu packages perl)
124 #:use-module (gnu packages perl-check)
125 #:use-module (gnu packages pkg-config)
126 #:use-module (gnu packages popt)
127 #:use-module (gnu packages python)
128 #:use-module (gnu packages python-crypto)
129 #:use-module (gnu packages python-web)
130 #:use-module (gnu packages python-xyz)
131 #:use-module (gnu packages qt)
132 #:use-module (gnu packages readline)
133 #:use-module (gnu packages ruby)
134 #:use-module (gnu packages serialization)
135 #:use-module (gnu packages sphinx)
136 #:use-module (gnu packages tcl)
137 #:use-module (gnu packages terminals)
138 #:use-module (gnu packages texinfo)
139 #:use-module (gnu packages tls)
140 #:use-module (gnu packages version-control)
141 #:use-module (gnu packages web)
142 #:use-module (gnu packages xdisorg)
143 #:use-module (gnu packages xml)
144 #:use-module (gnu packages xorg))
146 ;; This package uses su instead of sudo (because of SpaceFM).
147 (define-public ktsuss
156 (url "https://github.com/nomius/ktsuss")
159 (base32 "0q9931f9hp47v1n8scli4bdg2rkjpf5jf8v7jj2gdn83aia1r2hz"))
160 (file-name (git-file-name name version))))
161 (build-system glib-or-gtk-build-system)
164 (modify-phases %standard-phases
165 (add-after 'unpack 'patch-file-names
167 (substitute* "configure.ac"
168 (("supath=`which su 2>/dev/null`")
169 "supath=/run/setuid-programs/su"))
172 `(("autoconf" ,autoconf)
173 ("automake" ,automake)
175 ("pkg-config" ,pkg-config)))
179 (synopsis "Graphical front end for @command{su}")
181 "Ktsuss stands for ``Keep the @command{su} simple, stupid''.
182 It is a graphical version of @command{su} written in C and GTK+ 2, with
183 simplicity in mind.")
184 (home-page "https://github.com/nomius/ktsuss")
185 (license license:bsd-3)))
194 (uri (string-append "https://github.com/aide/aide/releases/download/v"
195 version "/aide-" version ".tar.gz"))
197 (base32 "15xp47sz7kk1ciffw3f5xw2jg2mb2lqrbr3q6p4bkbz5dap9iy8p"))))
198 (build-system gnu-build-system)
203 `(("libgcrypt" ,libgcrypt)
204 ("libgpg-error" ,libgpg-error)
205 ("libmhash" ,libmhash)
206 ("pcre:static" ,pcre "static")
208 ("zlib:static" ,zlib "static")
210 (synopsis "File and directory integrity checker")
212 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
213 integrity checker. It creates a database from the regular expression rules
214 that it finds from its configuration files. Once this database is initialized
215 it can be used to verify the integrity of the files. It has several message
216 digest algorithms that are used to check the integrity of files. All of the
217 usual file attributes can be checked for inconsistencies.")
218 (home-page "https://aide.github.io/")
219 (license license:gpl2+)))
221 (define-public progress
229 (url "https://github.com/Xfennec/progress")
230 (commit (string-append "v" version))))
232 (base32 "1cnb4ixlhshn139mj5sr42k5m6gjjbyqvkn1324c47niwrgp7dqm"))
233 (file-name (git-file-name name version))))
234 (build-system gnu-build-system)
236 `(("pkg-config" ,pkg-config)
239 `(("ncurses" ,ncurses)))
241 `(#:tests? #f ; no test suite
243 (let ((target ,(%current-target-system)))
244 (list ,(string-append "CC=" (cc-for-target))
245 (string-append "PKG_CONFIG="
247 (string-append target "-pkg-config")
249 (string-append "PREFIX=" (assoc-ref %outputs "out"))))
251 (modify-phases %standard-phases
252 (delete 'configure)))) ; no configure script
253 (home-page "https://github.com/Xfennec/progress")
254 (synopsis "Program to view the progress of the coreutils commands")
255 (description "A program that looks for coreutils basic commands (cp, mv,
256 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
257 the percentage of copied data. It can also show estimated time and throughput,
258 and provides a \"top-like\" mode (monitoring).")
259 (license license:gpl3+)))
261 (define-public shepherd
267 (uri (string-append "mirror://gnu/shepherd/shepherd-"
271 "0x9zr0x3xvk4qkb6jnda451d5iyrl06cz1bjzjsm0lxvjj3fabyk"))))
272 (build-system gnu-build-system)
274 '(#:configure-flags '("--localstatedir=/var")
275 #:make-flags '("GUILE_AUTO_COMPILE=0")))
277 `(("pkg-config" ,pkg-config)
279 ;; This is the Guile we use as a cross-compiler...
280 ("guile" ,guile-3.0)))
282 ;; ... and this is the one that appears in shebangs when cross-compiling.
283 `(("guile" ,guile-3.0)
285 ;; The 'shepherd' command uses Readline when used interactively. It's
286 ;; an unusual use case though, so we don't propagate it.
287 ("guile-readline" ,guile-readline)))
288 (synopsis "System service manager")
290 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
291 the execution of system services, replacing similar functionality found in
292 typical init systems. It provides dependency-handling through a convenient
293 interface and is based on GNU Guile.")
294 (license license:gpl3+)
295 (home-page "https://www.gnu.org/software/shepherd/")))
297 (define-public guile2.2-shepherd
300 (name "guile2.2-shepherd")
302 `(("pkg-config" ,pkg-config)
303 ("guile" ,guile-2.2)))
305 `(("guile" ,guile-2.2)
306 ("guile2.2-readline" ,guile2.2-readline)))))
308 (define-public guile3.0-shepherd
309 (deprecated-package "guile3.0-shepherd" shepherd))
311 (define-public guile2.0-shepherd
314 (name "guile2.0-shepherd")
316 `(("help2man" ,help2man)
317 ("pkg-config" ,pkg-config)
318 ("guile" ,guile-2.0)))
320 `(("guile" ,guile-2.0)))
323 (modify-phases %standard-phases
324 (add-after 'unpack 'patch-source
326 ;; (ice-9 threads) isn't available in guile-2.0
327 (substitute* "modules/shepherd.scm"
328 ((".*\\(ice-9 threads\\).*") ""))
330 ,@(package-arguments shepherd)))))
332 (define-public cloud-utils
340 "https://launchpad.net/cloud-utils/trunk/"
341 version "/+download/cloud-utils-" version ".tar.gz"))
344 "0xxdi55lzw7j91zfajw7jhd2ilsqj2dy04i9brlk8j3pvb5ma8hk"))))
345 (build-system gnu-build-system)
348 (let ((out (assoc-ref %outputs "out")))
349 (list (string-append "BINDIR=" out "/bin")
350 (string-append "MANDIR=" out "/share/man/man1")
351 (string-append "DOCDIR=" out "/share/doc")))
353 (modify-phases %standard-phases
356 (add-after 'install 'wrap
357 (lambda* (#:key outputs inputs #:allow-other-keys)
358 (let ((growpart (string-append (assoc-ref outputs "out")
360 (wrap-program growpart
361 `("PATH" ":" prefix (,(dirname (which "sfdisk"))
362 ,(dirname (which "readlink"))))))
366 ("util-linux" ,util-linux))) ; contains sfdisk for growpart
367 (home-page "https://launchpad.net/cloud-utils")
368 (synopsis "Set of utilities for cloud computing environments")
370 "This package contains a set of utilities for cloud computing
374 @item @command{cloud-localds} Create a disk for cloud-init to utilize nocloud
375 @item @command{cloud-publish-image} Wrapper for cloud image publishing
376 @item @command{cloud-publish-tarball} Wrapper for publishing cloud tarballs
377 @item @command{cloud-publish-ubuntu} Import a Ubuntu cloud image
378 @item @command{ec2metadata} Query and display @acronym{EC2,Amazon Elastic
379 Compute Cloud} metadata
380 @item @command{growpart} Grow a partition to fill the device
381 @item @command{mount-image-callback} Mount a file and run a command
382 @item @command{resize-part-image} Resize a partition image to a new size
383 @item @command{ubuntu-cloudimg-query} Get the latest Ubuntu
384 @acronym{AMI,Amazon Machine Image}
385 @item @command{ubuntu-ec2-run} Run a @acronym{EC2,Amazon Elastic Compute
386 Cloud} instance using Ubuntu
387 @item @command{vcs-run} Obtain a repository, and run a command
388 @item @command{write-mime-multipart} Handle multipart
389 @acronym{MIME,Multipurpose Internet Mail Extensions} messages
391 (license license:gpl3)))
393 (define-public daemontools
400 "https://cr.yp.to/daemontools/"
401 "daemontools-" version ".tar.gz"))
404 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
405 (build-system gnu-build-system)
407 `(#:tests? #f ;; No tests as far as I can tell.
409 (modify-phases %standard-phases
410 (add-after 'unpack 'chdir
412 (chdir ,(string-append "daemontools-" version))
415 (add-before 'build 'patch
417 (substitute* "src/error.h"
418 (("extern int errno;")
419 "#include <errno.h>"))
423 (invoke "package/compile")))
425 (lambda* (#:key outputs #:allow-other-keys)
426 (let* ((out (assoc-ref outputs "out"))
427 (bin (string-append out "/bin")))
428 (for-each (lambda (file)
429 (install-file file bin))
430 (find-files "command")))
432 (synopsis "Tools for managing UNIX style services")
434 "@code{daemontools} is a collection of tools for managing UNIX
436 (license license:public-domain)
437 (home-page "https://cr.yp.to/daemontools.html")))
447 "https://projects.gw-computing.net/attachments/download/615/dfc-"
451 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
452 (build-system cmake-build-system)
453 (arguments '(#:tests? #f)) ; There are no tests.
454 (native-inputs `(("gettext" ,gettext-minimal)))
455 (home-page "https://projects.gw-computing.net/projects/dfc")
456 (synopsis "Display file system space usage using graphs and colors")
458 "dfc (df color) is a modern version of df. It uses colors, draws pretty
459 graphs and can export its output to different formats.")
460 (license license:bsd-3)))
462 (define-public facter
469 (url "https://github.com/puppetlabs/facter")
471 (file-name (git-file-name name version))
474 "1s98rq2wjmh8bqdfdibvfp9j2ynd97k0c4hairryrzl9nna3j542"))))
475 (build-system ruby-build-system)
478 (modify-phases %standard-phases
479 (add-after 'unpack 'delete-facter-ng-gemspec
481 ;; XXX: ruby-build-system incorrectly finds
482 ;; facter-ng.gemspec from this directory and tries to
483 ;; build that instead of the proper facter.gemspec.
484 ;; Just delete it as a workaround, as it appears to
485 ;; only exist for backwards-compatibility after the
486 ;; facter-ng->facter rename.
487 (delete-file "agent/facter-ng.gemspec")
489 (add-after 'unpack 'embed-absolute-references
490 ;; Refer to absolute executable file names to avoid propagation.
491 (lambda* (#:key inputs #:allow-other-keys)
492 (substitute* (find-files "lib/facter/resolvers" "\\.rb$")
493 (("execute\\('(which |)([^ ']+)" _ _ name)
494 (string-append "execute('" (or (which name)
498 (add-after 'wrap 'check
499 (lambda* (#:key tests? outputs #:allow-other-keys)
500 ;; XXX: The test suite wants to run Bundler and
501 ;; complains that the gemspec is invalid. For now
502 ;; just make sure that we can run the wrapped
503 ;; executable directly.
505 (invoke (string-append (assoc-ref outputs "out")
507 ;; Many facts depend on /sys, /etc/os-release,
508 ;; etc, so we only run a small sample.
509 "facterversion" "architecture"
510 "kernel" "kernelversion")
511 (format #t "tests disabled~%"))
514 `(("ruby-hocon" ,ruby-hocon)
515 ("ruby-sys-filesystem" ,ruby-sys-filesystem)
516 ("ruby-thor" ,ruby-thor)
518 ;; For ‘embed-absolute-references’.
519 ("dmidecode" ,dmidecode)
520 ("inetutils" ,inetutils) ; for ‘hostname’
522 ("pciutils" ,pciutils)
523 ("util-linux" ,util-linux)))
524 (synopsis "Collect and display system facts")
526 "Facter is a tool that gathers basic facts about nodes (systems) such
527 as hardware details, network settings, OS type and version, and more. These
528 facts can be collected on the command line with the @command{facter} command
529 or via the @code{facter} Ruby library.")
530 (home-page "https://github.com/puppetlabs/facter-ng")
531 (license license:expat)))
533 (define-public ttyload
535 (commit "f9495372801ce4b4dad98ad854203e694c31c1eb"))
538 (version (git-version "0.5.3" revision commit))
543 (url "https://github.com/lindes/ttyload")
545 (file-name (git-file-name name version))
547 (base32 "0ldb7a13b9v876c6cbrs78pkizj64drnqx95z5shfbwgpwfhr4im"))))
548 (build-system gnu-build-system)
550 `(#:tests? #f ; no tests
552 (list (string-append "CC=" ,(cc-for-target)))
554 (modify-phases %standard-phases
557 (lambda* (#:key outputs #:allow-other-keys)
558 (let* ((out (assoc-ref outputs "out"))
559 (bin (string-append out "/bin")))
560 (install-file "ttyload" bin)))))))
561 (home-page "https://www.daveltd.com/src/util/ttyload/")
562 (synopsis "Console based color-coded graphs of CPU load average")
564 "Show graphs for 1 minute, 5 minute, 15 minute load averages on the
566 ;; This package uses a modified version of the "ISC License".
567 (license (license:non-copyleft "file://LICENSE")))))
577 (url "https://github.com/htop-dev/htop")
580 (base32 "10lp6cbfvigzp6pq5nwj3s3l4vs7cv92krz2r08nwrz8vl6rqdzp"))
581 (file-name (git-file-name name version))))
582 (build-system gnu-build-system)
584 `(("ncurses" ,ncurses)))
586 `(("autoconf" ,autoconf)
587 ("automake" ,automake)))
588 (home-page "https://htop.dev")
589 (synopsis "Interactive process viewer")
591 "This is htop, an interactive process viewer. It is a text-mode
592 application (for console or X terminals) and requires ncurses.")
593 (license license:gpl2)))
595 (define-public bashtop
602 (url "https://github.com/aristocratos/bashtop")
603 (commit (string-append "v" version))))
604 (file-name (git-file-name name version))
607 "07nlr6vmyb7yihaxj1fp424lmhwkdjl6mls92v90f6gsvikpa13v"))))
608 (build-system gnu-build-system)
610 '(#:make-flags (list (string-append "PREFIX=" %output))
611 #:tests? #f ; bats test fails with loading load.bash
612 #:phases (modify-phases %standard-phases (delete 'configure))))
613 (home-page "https://github.com/aristocratos/bashtop")
614 (synopsis "Linux/OSX/FreeBSD resource monitor")
615 (description "Resource monitor that shows usage and stats for processor,
616 memory, disks, network and processes.")
617 (license license:asl2.0)))
619 (define-public bpytop
626 (uri (pypi-uri "bpytop" version))
629 "02d9gdnnx45lnhx0bgg4wz9bdrkg40mm6pi1443f5i3mcpz8yh4s"))))
630 (build-system python-build-system)
632 `(("python-psutil" ,python-psutil)))
635 (modify-phases %standard-phases
636 (add-after 'install 'install-themes
637 (lambda* (#:key outputs #:allow-other-keys)
638 (let ((themes (string-append (assoc-ref outputs "out")
640 ,(version-major+minor
641 (package-version python))
642 "/site-packages/bpytop-themes")))
644 (copy-recursively "bpytop-themes" themes)))))))
646 "https://github.com/aristocratos/bpytop")
647 (synopsis "Resource monitor")
648 (description "Resource monitor that shows usage and stats for processor,
649 memory, disks, network and processes. It's a Python port of
651 (license license:asl2.0)))
660 (uri (string-append "mirror://gnu/pies/pies-"
664 "11j168qljsinaj5dwmg7nkm2z1aghi6gc3d0wf0pikflnh2q2wqf"))))
665 (build-system gnu-build-system)
667 '(#:phases (modify-phases %standard-phases
668 (add-before 'build 'patch-/bin/sh
669 (lambda* (#:key inputs #:allow-other-keys)
670 ;; Use the right shell when executing user-provided
672 (let ((bash (assoc-ref inputs "bash")))
673 (substitute* '("src/progman.c" "src/comp.c")
675 (string-append "\"" bash "/bin/sh\"")))
677 (home-page "https://www.gnu.org.ua/software/pies/")
678 (synopsis "Program invocation and execution supervisor")
680 "GNU pies is a program that supervises the invocation and execution of
681 other programs. It reads the list of programs to be started from its
682 configuration file, executes them, and then monitors their status,
683 re-executing them as necessary.")
684 (license license:gpl3+)))
686 (define-public inetutils
692 (uri (string-append "mirror://gnu/inetutils/inetutils-"
694 (patches (search-patches "inetutils-hurd.patch"))
697 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
698 (build-system gnu-build-system)
700 `(#:configure-flags '("--localstatedir=/var"
702 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
703 ;; cross-compiling (by default it does not.)
704 ,@(if (%current-target-system)
705 '("--with-path-procnet-dev=/proc/net/dev")
718 ;; On some systems, 'libls.sh' may fail with an error such as:
719 ;; "Failed to tell switch -a apart from -A".
720 #:parallel-tests? #f))
721 (inputs `(("ncurses" ,ncurses)
722 ("readline" ,readline))) ;for 'ftp'
723 (native-inputs (if (member (%current-system)
724 (package-supported-systems net-tools))
725 `(("netstat" ,net-tools)) ;for tests
727 (home-page "https://www.gnu.org/software/inetutils/")
728 (synopsis "Basic networking utilities")
730 "Inetutils is a collection of common network programs, such as an ftp
731 client and server, a telnet client and server, an rsh client and server, and
733 (license license:gpl3+)))
735 (define-public shadow
742 "https://github.com/shadow-maint/shadow/releases/"
743 "download/" version "/shadow-" version ".tar.xz"))
744 (patches (search-patches "shadow-hurd-pctrl.patch"))
747 "0qmfq50sdhz6xilgxvinblll8j2iqfl7hwk45bq744y4plq4dbd3"))))
748 (build-system gnu-build-system)
750 `(;; Assume System V `setpgrp (void)', which is the default on GNU
751 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
753 '(,@(if (hurd-target?)
756 "ac_cv_func_setpgrp_void=yes")
759 (modify-phases %standard-phases
760 (add-before 'build 'set-nscd-file-name
761 (lambda* (#:key inputs #:allow-other-keys)
762 ;; Use the right file name for nscd.
763 (let ((libc (assoc-ref inputs
764 ,(if (%current-target-system)
767 (substitute* "lib/nscd.c"
769 (string-append libc "/sbin/nscd")))
771 (add-after 'install 'remove-groups
772 (lambda* (#:key outputs #:allow-other-keys)
773 ;; Remove `groups', which is already provided by Coreutils.
774 (let* ((out (assoc-ref outputs "out"))
775 (bin (string-append out "/bin"))
776 (man (string-append out "/share/man")))
777 (delete-file (string-append bin "/groups"))
778 (for-each delete-file (find-files man "^groups\\."))
782 `(,@(if (hurd-target?)
784 `(("linux-pam" ,linux-pam)))))
785 (home-page "https://github.com/shadow-maint/shadow")
786 (synopsis "Authentication-related tools such as passwd, su, and login")
788 "Shadow provides a number of authentication-related tools, including:
789 login, passwd, su, groupadd, and useradd.")
791 ;; The `vipw' program is GPLv2+.
792 ;; libmisc/salt.c is public domain.
793 (license license:bsd-3)))
795 (define-public mingetty
801 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
802 version "/mingetty-" version ".tar.gz"))
805 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
806 (build-system gnu-build-system)
809 (modify-phases %standard-phases
811 (lambda* (#:key inputs outputs target #:allow-other-keys)
812 (let* ((out (assoc-ref outputs "out"))
813 (man8 (string-append out "/share/man/man8"))
814 (sbin (string-append out "/sbin"))
815 (shadow (assoc-ref inputs "shadow"))
816 (login (string-append shadow "/bin/login")))
817 (substitute* "Makefile"
818 ,@(if (%current-target-system)
820 (string-append "CC=" target "-gcc\n")))
823 (string-append "SBINDIR = " out
826 (string-append "MANDIR = " out
827 "/share/man/man8\n")))
829 ;; Pick the right 'login' by default.
830 (substitute* "mingetty.c"
832 (string-append "\"" login "\"")))
837 #:tests? #f)) ; no tests
838 (inputs `(("shadow" ,shadow)))
840 (home-page "https://sourceforge.net/projects/mingetty")
841 (synopsis "Getty for the text console")
843 "Small console getty that is started on the Linux text console,
844 asks for a login name and then transfers over to @code{login}. It is extended
845 to allow automatic login and starting any app.")
846 (license license:gpl2+)))
848 (define-public net-base
855 "mirror://debian/pool/main/n/netbase/netbase_"
859 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
860 (build-system trivial-build-system)
862 `(#:modules ((guix build utils))
864 (use-modules (guix build utils)
867 (let* ((source (assoc-ref %build-inputs "source"))
868 (tar (assoc-ref %build-inputs "tar"))
869 (xz (assoc-ref %build-inputs "xz"))
870 (output (assoc-ref %outputs "out"))
871 (etc (string-append output "/etc")))
872 (setenv "PATH" (string-append xz "/bin"))
873 (invoke (string-append tar "/bin/tar") "xvf"
875 (chdir ,(string-append "netbase-" version))
878 '("etc-services" "etc-protocols" "etc-rpc")
879 (map (cut string-append etc "/" <>)
880 '("services" "protocols" "rpc")))
882 (native-inputs `(("tar" ,tar)
884 (synopsis "IANA protocol, port, and RPC number assignments")
886 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
887 files, which contain information about the IANA-assigned port, protocol, and
889 (home-page "https://packages.debian.org/sid/netbase")
890 (license license:gpl2)))
892 (define-public netcat
898 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
899 "/netcat-" version ".tar.bz2"))
902 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
903 (build-system gnu-build-system)
906 ;; By default, man and info pages are put in PREFIX/{man,info},
907 ;; but we want them in PREFIX/share/{man,info}.
908 (let ((out (assoc-ref %outputs "out")))
909 (list (string-append "--mandir=" out "/share/man")
910 (string-append "--infodir=" out "/share/info")))))
911 (home-page "http://netcat.sourceforge.net")
912 (synopsis "Read and write data over TCP/IP")
914 "Netcat is a featured networking utility which reads and writes data
915 across network connections, using the TCP/IP protocol. It is designed to be a
916 reliable \"back-end\" tool that can be used directly or easily driven by other
917 programs and scripts. At the same time, it is a feature-rich network debugging
918 and exploration tool, since it can create almost any kind of connection you
919 would need and has several interesting built-in capabilities.")
920 (license license:gpl2+)))
922 (define-public netcat-openbsd
924 (name "netcat-openbsd")
929 (url "https://salsa.debian.org/debian/netcat-openbsd.git")
930 (commit (string-append "debian/" version))))
931 (file-name (git-file-name name version))
934 "19sr52ix14w344pv13ppb0c1wyg5dxhic1fw2q0s3qfmx57b9hhp"))))
935 (build-system gnu-build-system)
937 `(#:tests? #f ; no test suite
939 (list (string-append "CC=" ,(cc-for-target)))
941 (modify-phases %standard-phases
943 (add-before 'build 'patch
945 (setenv "QUILT_PATCHES" "debian/patches")
946 (invoke "quilt" "push" "-a")
949 (lambda* (#:key outputs #:allow-other-keys)
950 (let* ((out (assoc-ref outputs "out"))
951 (bin (string-append out "/bin"))
952 (man (string-append out "/share/man/man1"))
953 (doc (string-append out "/share/doc/netcat-openbsd-" ,version))
954 (examples (string-append doc "/examples")))
955 (install-file "nc" bin)
956 (install-file "nc.1" man)
957 (install-file "debian/copyright" doc)
958 (copy-recursively "debian/examples" examples)
960 (inputs `(("libbsd" ,libbsd)))
961 (native-inputs `(("pkg-config" ,pkg-config)
963 (home-page "https://packages.debian.org/sid/netcat-openbsd")
964 (synopsis "Read and write data over TCP/IP")
966 "Netcat is a simple Unix utility which reads and writes data across
967 network connections using TCP or UDP protocol. It is designed to be a reliable
968 \"back-end\" tool that can be used directly or easily driven by other programs
969 and scripts. At the same time it is a feature-rich network debugging and
970 exploration tool, since it can create almost any kind of connection you would
971 need and has several interesting built-in capabilities.
973 This package contains the OpenBSD rewrite of netcat, including support for
974 IPv6, proxies, and Unix sockets.")
975 (license (list license:bsd-3
976 license:bsd-2)))) ; atomicio.*, socks.c
978 (define-public sipcalc
985 (uri (string-append "http://www.routemeister.net/projects"
986 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
989 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
990 (build-system gnu-build-system)
991 (home-page "https://www.routemeister.net/projects/sipcalc/")
992 (synopsis "Command-line IP subnet calculator")
994 "Sipcalc is an advanced command-line IP subnet calculator. It can take
995 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
996 of information about a given subnet.
1003 @item Retrieving of address information from interfaces.
1004 @item Classfull and CIDR output.
1005 @item Multiple address and netmask input and output formats (dotted quad, hex,
1007 @item Output of broadcast address, network class, Cisco wildcard,
1008 hosts/range, network range.
1009 @item The ability to split a network based on a smaller netmask, now also with
1010 recursive runs on the generated subnets. (also IPv6)
1014 @item Compressed and expanded input and output addresses.
1015 @item Standard IPv6 network output.
1016 @item v4 in v6 output.
1017 @item Reverse DNS address generation.
1020 (license license:bsd-3)))
1022 (define-public alive
1028 (uri (string-append "mirror://gnu/alive/alive-"
1032 "053hfp7s66lnilm1ii4jrjmy44wpa2cwwh6f0sl8cyz0mm813x4b"))))
1033 (build-system gnu-build-system)
1034 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
1035 (inputs `(("guile" ,guile-2.0)
1036 ("inetutils" ,inetutils)))
1037 (home-page "https://www.gnu.org/software/alive/")
1038 (synopsis "Autologin and keep-alive daemon")
1040 "GNU Alive sends periodic pings to a server, generally to keep a
1042 (license license:gpl3+)))
1044 (define-public isc-dhcp
1045 (let* ((bind-major-version "9")
1046 (bind-minor-version "11")
1047 (bind-patch-version "28")
1048 (bind-release-type "") ; for patch release, use "-P"
1049 (bind-release-version "") ; for patch release, e.g. "6"
1050 (bind-version (string-append bind-major-version
1056 bind-release-version)))
1062 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
1063 version "/dhcp-" version ".tar.gz"))
1066 "08a5003zdxgl41b29zjkxa92h2i40zyjgxg0npvnhpkfl5jcsz0s"))))
1067 (build-system gnu-build-system)
1069 `(#:parallel-build? #f
1070 #:configure-flags '("--with-randomdev=/dev/random")
1072 (modify-phases %standard-phases
1073 (add-after 'unpack 'replace-bundled-bind
1074 (lambda* (#:key inputs native-inputs #:allow-other-keys)
1075 (delete-file "bind/bind.tar.gz")
1076 (copy-file (assoc-ref inputs "bind-source-tarball")
1078 (chmod "bind/bind.tar.gz" #o644)
1079 (substitute* "bind/version.tmp"
1081 (format #f "MAJORVER=~a\n" ,bind-major-version))
1083 (format #f "MINORVER=~a\n" ,bind-minor-version))
1085 (format #f "PATCHVER=~a\n" ,bind-patch-version))
1086 (("^RELEASETYPE=.*")
1087 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
1089 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
1091 ,@(if (%current-target-system)
1092 '((add-before 'configure 'fix-bind-cross-compilation
1094 (substitute* "configure"
1096 "--host=$host_alias"))
1097 ;; BIND needs a native compiler because the DHCP
1098 ;; build system uses the built 'gen' executable.
1099 (setenv "BUILD_CC" "gcc")
1102 (add-after 'configure 'post-configure
1103 (lambda* (#:key outputs #:allow-other-keys)
1104 ;; Point to the right client script, which will be
1105 ;; installed in a later phase.
1106 (substitute* "includes/dhcpd.h"
1107 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
1108 (let ((out (assoc-ref outputs "out")))
1109 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
1110 out "/libexec/dhclient-script"
1113 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
1114 ;; we must patch shebangs in there and make sure the right
1116 (with-directory-excursion "bind"
1117 (substitute* "Makefile"
1119 (let ((sh (which "sh")))
1120 (string-append "./configure CONFIG_SHELL="
1121 sh " SHELL=" sh " "))))
1123 (let ((bind-directory (string-append "bind-" ,bind-version)))
1124 (invoke "tar" "xf" "bind.tar.gz")
1125 (for-each patch-shebang
1126 (find-files bind-directory ".*"))
1127 (substitute* (string-append bind-directory "/configure")
1130 (invoke "tar" "cf" "bind.tar.gz"
1132 ;; avoid non-determinism in the archive
1136 "--group=root:0")))))
1137 (add-after 'install 'post-install
1138 (lambda* (#:key inputs outputs #:allow-other-keys)
1139 ;; Install the dhclient script for GNU/Linux and make sure
1140 ;; if finds all the programs it needs.
1141 (let* ((out (assoc-ref outputs "out"))
1142 (libexec (string-append out "/libexec"))
1143 (coreutils (assoc-ref inputs "coreutils*"))
1144 (inetutils (assoc-ref inputs "inetutils"))
1145 (net-tools (assoc-ref inputs "net-tools"))
1146 (sed (assoc-ref inputs "sed*")))
1147 (substitute* "client/scripts/linux"
1149 (string-append (assoc-ref inputs "iproute")
1153 (copy-file "client/scripts/linux"
1154 (string-append libexec "/dhclient-script"))
1157 (string-append libexec "/dhclient-script")
1160 (string-append dir "/bin:"
1162 (list inetutils net-tools coreutils sed))))
1169 (inputs `(("inetutils" ,inetutils)
1170 ,@(if (hurd-target?) '()
1171 `(("net-tools" ,net-tools)
1172 ("iproute" ,iproute)))
1174 ;; isc-dhcp bundles a copy of BIND, which has proved vulnerable
1175 ;; in the past. Use a BIND-VERSION of our choosing instead.
1176 ("bind-source-tarball"
1179 (uri (string-append "https://ftp.isc.org/isc/bind9/"
1181 "/bind-" bind-version ".tar.gz"))
1184 "0x2yjy0d8p7i5mr2s5y65fdax0jjgvd8fn07s42c8dxsrbkcp40h"))))
1186 ("coreutils*" ,coreutils)
1189 (home-page "https://www.isc.org/products/DHCP/")
1190 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
1192 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
1193 reference implementation of all aspects of DHCP, through a suite of DHCP
1194 tools: server, client, and relay agent.")
1195 (license license:mpl2.0)
1196 (properties '((cpe-name . "dhcp"))))))
1198 (define-public libpcap
1204 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
1208 "153h1378diqyc27jjgz6gg5nxmb4ddk006d9xg69nqavgiikflk3"))))
1209 (build-system gnu-build-system)
1214 ;; There are some tests in testprogs/, but no automated test suite.
1216 (home-page "https://www.tcpdump.org")
1217 (synopsis "Network packet capture library")
1219 "libpcap is an interface for user-level packet capture. It provides a
1220 portable framework for low-level network monitoring. Applications include
1221 network statistics collection, security monitoring, network debugging, etc.")
1222 (license (list license:bsd-4 ; fad-*.c and several other source files
1223 license:bsd-3 ; pcap/, sockutils.* & others
1224 license:bsd-2)))) ; the rest
1226 (define-public tcpdump
1232 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
1236 "0434vdcnbqaia672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c"))))
1237 (build-system gnu-build-system)
1238 (inputs `(("libpcap" ,libpcap)
1239 ("openssl" ,openssl)))
1240 (native-inputs `(("perl" ,perl))) ; for tests
1241 (home-page "https://www.tcpdump.org/")
1242 (synopsis "Network packet analyzer")
1244 "Tcpdump is a command-line tool to analyze network traffic passing
1245 through the network interface controller.")
1246 (license license:bsd-3)))
1248 (define-public jnettop
1255 (string-append "https://web.archive.org/web/20161221100811/"
1256 "http://jnettop.kubs.info/dist/jnettop-"
1260 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
1261 (build-system gnu-build-system)
1263 `(("pkg-config" ,pkg-config)))
1266 ("ncurses" ,ncurses)
1267 ("libpcap" ,libpcap)))
1269 "https://web.archive.org/web/20160703195221/http://jnettop.kubs.info/wiki/")
1270 (synopsis "Visualize network traffic by bandwidth use")
1272 "Jnettop is a traffic visualiser, which captures traffic going
1273 through the host it is running from and displays streams sorted
1274 by bandwidth they use.")
1275 (license license:gpl2+)))
1277 (define-public clusterssh
1283 (uri (string-append "mirror://sourceforge/clusterssh/"
1284 "2.%20ClusterSSH%20Series%204/"
1285 "App-ClusterSSH-v" version ".tar.gz"))
1288 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
1289 (build-system perl-build-system)
1292 (modify-phases %standard-phases
1293 (add-after 'unpack 'refer-to-inputs
1294 (lambda* (#:key inputs #:allow-other-keys)
1295 (substitute* (list "lib/App/ClusterSSH/Config.pm"
1300 (add-before 'check 'delete-failing-tests
1302 ;; This checks whether all code is nicely formatted. The above
1303 ;; ‘refer-to-inputs’ phase breaks this pedantry, so disable it.
1304 (delete-file "t/perltidy.t")
1305 ;; Update the manifest so t/manifest.t happily passes.
1306 (substitute* "MANIFEST"
1307 (("t/perltidy.t\n") ""))
1309 (add-after 'install 'augment-library-path
1310 (lambda* (#:key inputs outputs #:allow-other-keys)
1311 (let* ((out (assoc-ref outputs "out"))
1312 (bin (string-append out "/bin")))
1313 (with-directory-excursion bin
1316 (wrap-program program
1317 `("PERL5LIB" ":" prefix
1318 ,(map (lambda (file-name)
1319 (string-append file-name
1320 "/lib/perl5/site_perl"))
1322 (map (lambda (input)
1323 (assoc-ref inputs input))
1324 ;; These may be propagated and hence
1325 ;; not explicitly listed as inputs.
1326 (list "perl-class-data-inheritable"
1327 "perl-devel-stacktrace"
1328 "perl-exception-class"
1332 "perl-x11-protocol-other")))))))
1333 (find-files "." ".*")))
1336 `(("perl-cpan-changes" ,perl-cpan-changes)
1337 ("perl-file-slurp" ,perl-file-slurp)
1338 ("perl-file-which" ,perl-file-which)
1339 ("perl-module-build" ,perl-module-build)
1340 ("perl-readonly" ,perl-readonly)
1341 ("perl-test-differences" ,perl-test-differences)
1342 ("perl-test-distmanifest" ,perl-test-distmanifest)
1343 ("perl-test-perltidy" ,perl-test-perltidy)
1344 ("perl-test-pod" ,perl-test-pod)
1345 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
1346 ("perl-test-trap" ,perl-test-trap)
1347 ("perltidy" ,perltidy)))
1349 `(("perl-exception-class" ,perl-exception-class)
1350 ("perl-sort-naturally" ,perl-sort-naturally)
1351 ("perl-tk" ,perl-tk)
1352 ("perl-try-tiny" ,perl-try-tiny)
1353 ("perl-x11-protocol" ,perl-x11-protocol)
1354 ("perl-x11-protocol-other" ,perl-x11-protocol-other)
1356 ;; The clusterssh.sourceforge.net address requires login to view
1357 (home-page "https://sourceforge.net/projects/clusterssh/")
1358 (synopsis "Secure concurrent multi-server terminal control")
1360 "ClusterSSH controls a number of xterm windows via a single graphical
1361 console window to allow commands to be interactively run on multiple servers
1362 over ssh connections.")
1363 (license license:gpl2+)))
1365 (define-public rename
1372 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
1376 "137m8s06r4n038ivlr5r1d9a7q9l7shmwpvnyx053r9ndhvbnkh5"))))
1377 (build-system perl-build-system)
1380 (modify-phases %standard-phases
1381 (add-after 'install 'find-itself
1382 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
1383 (lambda* (#:key outputs #:allow-other-keys)
1384 (let* ((out (assoc-ref outputs "out"))
1385 (bin (string-append out "/bin")))
1386 (with-directory-excursion bin
1389 (wrap-program program
1390 `("PERL5LIB" ":" prefix
1391 (,(string-append out "/lib/perl5/site_perl")))))
1392 (find-files "." ".*")))
1395 `(("perl-module-build" ,perl-module-build)
1396 ("perl-test-pod" ,perl-test-pod)
1397 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1398 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
1399 (synopsis "Perl extension for renaming multiple files")
1401 "This package provides a Perl interface (@code{Perl::Rename}) as well
1402 as a command-line utility (@command{rename}) that can rename multiple files
1403 at once based on a Perl regular expression.")
1404 (license license:perl-license)))
1406 (define-public rottlog
1412 (uri (string-append "mirror://gnu/rottlog/rottlog-"
1416 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
1417 (modules '((guix build utils)))
1420 (substitute* "Makefile.in"
1421 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
1422 ;; Don't try to chown root.
1424 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
1425 ;; Don't attempt to create /var/lib/rottlog.
1428 (build-system gnu-build-system)
1430 `(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
1431 "--localstatedir=/var")
1433 ;; Install example config files in OUT/etc.
1434 #:make-flags (list (string-append "ROTT_ETCDIR="
1435 (assoc-ref %outputs "out")
1438 #:phases (modify-phases %standard-phases
1439 (add-after 'unpack 'patch-paths
1440 (lambda* (#:key inputs #:allow-other-keys)
1441 (substitute* "rc/rc"
1442 (("/usr/sbin/sendmail")
1443 (string-append (assoc-ref inputs "mailutils")
1446 (add-after 'unpack 'fix-configure
1447 (lambda* (#:key inputs native-inputs #:allow-other-keys)
1448 ;; Replace outdated config.sub and config.guess:
1449 (for-each (lambda (file)
1453 (or native-inputs inputs) "automake")
1455 ,(version-major+minor
1456 (package-version automake))
1458 '("config.sub" "config.guess"))
1460 (add-after 'build 'set-packdir
1462 ;; Set a default location for archived logs.
1463 (substitute* "rc/rc"
1465 "packdir=\"/var/log\""))
1467 (add-before 'install 'tweak-rc-weekly
1468 (lambda* (#:key inputs #:allow-other-keys)
1469 (substitute* "rc/weekly"
1471 (string-append (assoc-ref inputs "coreutils*")
1474 ;; The file is called 'syslog.pid' (no 'd').
1477 (add-after 'install 'install-info
1479 (invoke "make" "install-info"))))))
1480 (native-inputs `(("texinfo" ,texinfo)
1481 ("automake" ,automake)
1482 ("util-linux" ,util-linux))) ; for 'cal'
1483 (inputs `(("coreutils*" ,coreutils)
1484 ("mailutils" ,mailutils)))
1485 (home-page "https://www.gnu.org/software/rottlog/")
1486 (synopsis "Log rotation and management")
1488 "GNU Rot[t]log is a program for managing log files. It is used to
1489 automatically rotate out log files when they have reached a given size or
1490 according to a given schedule. It can also be used to automatically compress
1491 and archive such logs. Rot[t]log will mail reports of its activity to the
1492 system administrator.")
1493 (license license:gpl3+)))
1502 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
1504 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1505 version ".tar.gz")))
1508 "0y093z4f3822rc88g9asdch12nljdamp817vjxk04mca7ks2x7jk"))
1509 (modules '((guix build utils)))
1512 (delete-file-recursively "lib/zlib")
1514 (build-system gnu-build-system)
1515 (outputs (list "out"))
1518 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1519 "/share/doc/" ,name "-" ,version)
1521 "--with-logpath=/var/log/sudo.log"
1522 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1523 "--with-vardir=/var/db/sudo"
1524 "--with-iologdir=/var/log/sudo-io"
1526 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1528 (string-append "CPPFLAGS=-D_PATH_MV='\""
1529 (assoc-ref %build-inputs "coreutils")
1532 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1533 #:parallel-build? #f
1536 (modify-phases %standard-phases
1537 (add-before 'configure 'pre-configure
1539 (substitute* "src/sudo_usage.h.in"
1540 ;; Do not capture 'configure' arguments since we would
1541 ;; unduly retain references, and also because the
1542 ;; CPPFLAGS above would close the string literal
1544 (("@CONFIGURE_ARGS@") "\"\""))
1545 (substitute* (find-files "." "Makefile\\.in")
1546 ;; Allow installation as non-root.
1547 (("-o [[:graph:]]+ -g [[:graph:]]+")
1549 ;; Don't try to create /etc/sudoers.
1550 (("^install: (.*)install-sudoers(.*)" _ before after)
1551 (string-append "install: " before after "\n"))
1552 ;; Don't try to create /run/sudo.
1553 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1555 ;; Install example sudo{,_logsrvd}.conf to the right place.
1556 (("\\$\\(DESTDIR\\)\\$\\(sysconfdir\\)")
1557 "$(DESTDIR)/$(docdir)/examples")
1558 ;; Don't try to create /var/db/sudo.
1559 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1562 ;; ‘Checking existing [/etc/]sudoers file for syntax errors’ is
1563 ;; not the task of the build system, and fails.
1564 (substitute* "plugins/sudoers/Makefile.in"
1565 (("^pre-install:" match)
1566 (string-append match "\ndisabled-" match)))
1569 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1570 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1573 ;; XXX TODO: Remove on next rebuild cycle.
1576 `(("groff" ,groff))))
1578 `(("coreutils" ,coreutils)
1579 ,@(if (hurd-target?)
1581 `(("linux-pam" ,linux-pam)))
1583 (home-page "https://www.sudo.ws/")
1584 (synopsis "Run commands as root")
1586 "Sudo (su \"do\") allows a system administrator to delegate authority to
1587 give certain users (or groups of users) the ability to run some (or all)
1588 commands as root or another user while providing an audit trail of the
1589 commands and their arguments.")
1591 ;; See <http://www.sudo.ws/sudo/license.html>.
1592 (license license:x11)))
1594 (define-public opendoas
1601 (url "https://github.com/Duncaen/OpenDoas")
1602 (commit (string-append "v" version))))
1603 (file-name (git-file-name name version))
1606 "0gfcssm21vdfg6kcrcc7hz1h4jmhy2zv29rfqyrrj3a6r9b5ah8p"))))
1607 (build-system gnu-build-system)
1610 (modify-phases %standard-phases
1612 ;; The configure script doesn't accept most of the default flags.
1613 (lambda* (#:key configure-flags #:allow-other-keys)
1614 ;; The configure script can be told which compiler to use only
1615 ;; through environment variables.
1616 (setenv "CC" ,(cc-for-target))
1617 (apply invoke "./configure" configure-flags)))
1618 (add-before 'install 'fix-makefile
1619 (lambda* (#:key outputs #:allow-other-keys)
1620 (substitute* "GNUmakefile"
1621 (("^\tchown.*$") ""))
1624 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
1626 ;; Compiler choice is not carried over from the configure script.
1628 (list (string-append "CC=" ,(cc-for-target)))
1629 #:tests? #f)) ; no test suite
1631 `(("bison" ,bison)))
1632 (home-page "https://github.com/Duncaen/OpenDoas")
1633 (synopsis "Portable version of OpenBSD's doas command")
1634 (description "Doas is a minimal replacement for the venerable sudo. It was
1635 initially written by Ted Unangst of the OpenBSD project to provide 95% of the
1636 features of sudo with a fraction of the codebase.")
1637 (license (list license:bsd-3 ; libbsd/*
1638 license:isc)))) ; everything else
1640 (define-public wpa-supplicant-minimal
1642 (name "wpa-supplicant-minimal")
1647 "https://w1.fi/releases/wpa_supplicant-"
1651 "05qzak1mssnxcgdrafifxh9w86a4ha69qabkg4bsigk499xyxggw"))
1652 (modules '((guix build utils)))
1655 (substitute* "wpa_supplicant/defconfig"
1656 ;; Disable D-Bus to save ~14MiB on the closure size.
1657 (("^CONFIG_CTRL_IFACE_DBUS" line _)
1658 (string-append "#" line)))
1660 (build-system gnu-build-system)
1663 (modify-phases %standard-phases
1666 (chdir "wpa_supplicant")
1667 (copy-file "defconfig" ".config")
1668 (let ((port (open-file ".config" "al")))
1670 CONFIG_DEBUG_SYSLOG=y
1674 CONFIG_DRIVER_NL80211=y
1675 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1677 CONFIG_READLINE=y\n" port)
1679 ;; Make sure we have a pkg-config when cross compiling
1680 (substitute* '(".config"
1685 (or (which "pkg-config")
1686 (which (string-append ,(%current-target-system)
1689 (add-after 'install 'install-documentation
1690 (lambda* (#:key outputs #:allow-other-keys)
1691 (let* ((out (assoc-ref outputs "out"))
1692 (doc (string-append out "/share/doc/wpa-supplicant"))
1693 (man (string-append out "/share/man"))
1694 (man5 (string-append man "/man5"))
1695 (man8 (string-append man "/man8")))
1696 (define (copy-man-page target)
1698 (install-file file target)))
1700 (mkdir-p man5) (mkdir man8)
1701 (for-each (copy-man-page man5)
1702 (find-files "doc/docbook" "\\.5"))
1703 (for-each (copy-man-page man8)
1704 (find-files "doc/docbook" "\\.8"))
1706 ;; wpa_supplicant.conf(5) does not explain all configuration
1707 ;; options but refers to the example config file, so install it
1708 ;; along with READMEs.
1709 (for-each (lambda (file)
1710 (install-file file doc))
1711 '("README" "README-DPP" "README-HS20"
1712 "README-P2P" "README-WPS"
1713 "wpa_supplicant.conf"))
1716 #:make-flags (list (string-append "CC=" ,(cc-for-target))
1717 (string-append "BINDIR=" (assoc-ref %outputs "out")
1719 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1723 `(("readline" ,readline)
1725 ("openssl" ,openssl)))
1727 `(("pkg-config" ,pkg-config)))
1728 (home-page "https://w1.fi/wpa_supplicant/")
1729 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1731 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1732 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1733 the client stations. It implements key negotiation with a WPA Authenticator
1734 and it controls the roaming and IEEE 802.11 authentication/association of the
1737 This package provides the @code{wpa_supplicant} daemon and the @code{wpa_cli}
1740 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1741 (license license:bsd-3)
1743 (properties `((cpe-name . "wpa_supplicant")))))
1745 (define-public wpa-supplicant
1746 (package (inherit wpa-supplicant-minimal)
1747 (name "wpa-supplicant")
1748 (inputs `(("dbus" ,dbus)
1749 ,@(package-inputs wpa-supplicant-minimal)))
1751 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1753 `(modify-phases ,phases
1754 (add-after 'configure 'configure-for-dbus
1756 (let ((port (open-file ".config" "al")))
1758 CONFIG_CTRL_IFACE_DBUS_NEW=y
1759 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1762 (add-after 'install-documentation 'install-dbus-conf
1763 (lambda* (#:key outputs #:allow-other-keys)
1764 (let* ((out (assoc-ref outputs "out"))
1765 (dir (string-append out "/etc/dbus-1/system.d")))
1767 (copy-file "dbus/dbus-wpa_supplicant.conf"
1768 (string-append dir "/wpa_supplicant.conf")))
1771 (define-public wpa-supplicant-gui
1773 (inherit wpa-supplicant)
1774 (name "wpa-supplicant-gui")
1775 (inputs `(("qtbase" ,qtbase)
1777 ,@(package-inputs wpa-supplicant)))
1780 `(("imagemagick" ,imagemagick)
1781 ("inkscape" ,inkscape)
1782 ,@(package-native-inputs wpa-supplicant)))
1784 `(#:phases (modify-phases %standard-phases
1785 (add-after 'unpack 'chdir
1787 (chdir "wpa_supplicant/wpa_gui-qt4")
1792 (invoke "qmake" "wpa_gui.pro")
1793 (invoke "make" "-j" (number->string (parallel-job-count)))
1794 (invoke "make" "-C" "icons")))
1796 (lambda* (#:key inputs outputs #:allow-other-keys)
1797 (let ((out (assoc-ref outputs "out"))
1798 (qt '("qtbase" "qtsvg")))
1799 (install-file "wpa_gui" (string-append out "/bin"))
1800 (install-file "wpa_gui.desktop"
1801 (string-append out "/share/applications"))
1802 (copy-recursively "icons/hicolor"
1803 (string-append out "/share/icons/hicolor"))
1804 (wrap-program (string-append out "/bin/wpa_gui")
1805 `("QT_PLUGIN_PATH" ":" prefix
1806 ,(map (lambda (label)
1807 (string-append (assoc-ref inputs label)
1808 "/lib/qt5/plugins/"))
1811 (synopsis "Graphical user interface for WPA supplicant")))
1813 (define-public hostapd
1819 (uri (string-append "https://w1.fi/releases/hostapd-" version
1823 "1mrbvg4v7vm7mknf0n29mf88k3s4a4qj6r4d51wq8hmjj1m7s7c8"))))
1824 (build-system gnu-build-system)
1827 (modify-phases %standard-phases
1830 ;; This is mostly copied from 'wpa-supplicant' above.
1832 (copy-file "defconfig" ".config")
1833 (let ((port (open-file ".config" "al")))
1838 CONFIG_IEEE80211AC=y\n" port)
1841 (add-after 'unpack 'patch-pkg-config
1843 (substitute* "src/drivers/drivers.mak"
1845 (or (which "pkg-config")
1846 (string-append ,(%current-target-system)
1849 (add-after 'install 'install-man-pages
1850 (lambda* (#:key outputs #:allow-other-keys)
1851 (let* ((out (assoc-ref outputs "out"))
1852 (man (string-append out "/share/man"))
1853 (man1 (string-append man "/man1"))
1854 (man8 (string-append man "/man8")))
1855 (define (copy-man-page target)
1857 (install-file file target)))
1859 (for-each (copy-man-page man1)
1860 (find-files "." "\\.1"))
1861 (for-each (copy-man-page man8)
1862 (find-files "." "\\.8"))
1865 #:make-flags (list (string-append "CC=" ,(cc-for-target))
1866 (string-append "BINDIR=" (assoc-ref %outputs "out")
1868 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1871 (native-inputs `(("pkg-config" ,pkg-config)))
1873 ;; There's an optional dependency on SQLite.
1874 (inputs `(("openssl" ,openssl)
1876 (home-page "https://w1.fi/hostapd/")
1877 (synopsis "Daemon for Wi-Fi access points and authentication servers")
1879 "hostapd is a user-space daemon for WiFi access points and authentication
1880 servers. It implements IEEE 802.11 access point management, IEEE
1881 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS
1882 authentication server.")
1884 ;; Same license as wpa_supplicant.
1885 (license license:bsd-3)))
1887 (define-public wakelan
1894 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1898 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1899 (build-system gnu-build-system)
1902 (modify-phases %standard-phases
1904 (lambda* (#:key outputs #:allow-other-keys)
1905 (let ((out (assoc-ref outputs "out")))
1906 (mkdir-p (string-append out "/bin"))
1907 (mkdir-p (string-append out "/share/man/man1"))
1909 ;; It's an old configure script that doesn't understand
1910 ;; the extra options we pass.
1911 (setenv "CONFIG_SHELL" (which "bash"))
1912 (invoke "./configure"
1913 (string-append "--prefix=" out)
1914 (string-append "--mandir=" out
1917 (home-page "https://www.kernel.org") ; really, no home page
1918 (synopsis "Send a wake-on-LAN packet")
1920 "WakeLan broadcasts a properly formatted UDP packet across the local area
1921 network, which causes enabled computers to power on.")
1922 (license license:gpl2+)))
1924 (define-public dmidecode
1931 (uri (string-append "mirror://savannah/dmidecode/dmidecode-"
1934 (base32 "0m8lzg9rf1qssasiix672bxk5qwms90561g8hfkkhk31h2kkgiw2"))))
1935 (build-system gnu-build-system)
1937 `(#:tests? #f ; no 'check' target
1939 (list (string-append "CC=" ,(cc-for-target))
1940 (string-append "prefix="
1941 (assoc-ref %outputs "out")))
1943 (modify-phases %standard-phases
1944 (delete 'configure)))) ; no configure script
1945 (home-page "https://www.nongnu.org/dmidecode/")
1946 (synopsis "Read hardware information from the BIOS")
1948 "Dmidecode reports information about your system's hardware as described
1949 in your system BIOS according to the SMBIOS/DMI standard. This typically
1950 includes system manufacturer, model name, serial number, BIOS version, asset
1951 tag as well as a lot of other details of varying level of interest and
1952 reliability depending on the manufacturer. This will often include usage
1953 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1954 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1955 (license license:gpl2+)))
1957 (define-public acpica
1960 (version "20210105")
1964 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1968 "1gi7qzfywg118g5nlqn5lawxk25pg2sz01gmbz40vvmikks4ri9r"))))
1969 (build-system gnu-build-system)
1970 (native-inputs `(("flex" ,flex)
1973 `(#:make-flags (list (string-append "PREFIX=" %output)
1974 (string-append "CC=" ,(cc-for-target))
1976 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1977 #:tests? #f ; no 'check' target
1978 #:phases (modify-phases %standard-phases (delete 'configure))))
1979 (home-page "https://acpica.org/")
1980 (synopsis "Tools for the development and debugging of ACPI tables")
1982 "The @acronym{ACPICA, ACPI Component Architecture} project provides an
1983 OS-independent reference implementation of the @acronym{ACPI, Advanced
1984 Configuration and Power Interface} specification. ACPICA code contains those
1985 portions of ACPI meant to be directly integrated into the host OS as a
1986 kernel-resident subsystem, and a small set of tools to assist in developing and
1987 debugging ACPI tables.
1989 This package contains only the user-space tools needed for ACPI table
1990 development, not the kernel implementation of ACPI.")
1991 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1993 (define-public s-tui
2000 (uri (pypi-uri "s-tui" version))
2002 (base32 "0xkfdaz5np21311ffdvhks58155qby8j8scbcixhvjd913pj66qx"))))
2003 (build-system python-build-system)
2005 `(("python-psutil" ,python-psutil)
2006 ("python-urwid" ,python-urwid)))
2007 (home-page "https://github.com/amanusk/s-tui")
2008 (synopsis "Interactive terminal stress test and monitoring tool")
2010 "The Stress Terminal UI displays graphs of the CPU frequency,
2011 utilization, temperature and power.")
2012 (license license:gpl2+)))
2014 (define-public stress
2020 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
2021 version ".orig.tar.gz"))
2024 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
2025 (build-system gnu-build-system)
2026 (home-page "https://packages.debian.org/sid/stress")
2027 (synopsis "Impose load on and stress test a computer system")
2029 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
2030 or disk stress on a POSIX-compliant operating system and reports any errors it
2033 Stress is not a benchmark. It is a tool used by system administrators to
2034 evaluate how well their systems will scale, by kernel programmers to evaluate
2035 perceived performance characteristics, and by systems programmers to expose
2036 the classes of bugs which only or more frequently manifest themselves when the
2037 system is under heavy load.")
2038 (license license:gpl2+)))
2040 (define-public detox
2047 (url "https://github.com/dharple/detox")
2048 (commit (string-append "v" version))))
2049 (file-name (git-file-name name version))
2052 "13mhs62m7bpff45liy65pajq5jg3i12jj90vwdkra94z9mlr2rlz"))))
2053 (build-system gnu-build-system)
2055 `(("autoconf" ,autoconf)
2056 ("automake" ,automake)
2059 `(#:tests? #f ;no 'check' target
2060 #:phases (modify-phases %standard-phases
2061 (add-after 'unpack 'delete-configure
2062 ;; The "configure" script is present, but otherwise the
2063 ;; project is not bootstrapped: missing install-sh and
2064 ;; Makefile.in, so delete it so the bootstrap phase will
2066 (lambda _ (delete-file "configure") #t)))))
2067 (home-page "https://github.com/dharple/detox")
2068 (synopsis "Clean up file names")
2070 "Detox is a program that renames files to make them easier to work with
2071 under Unix and related operating systems. Spaces and various other unsafe
2072 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
2073 characters can be replaced as well, as can UTF-8 characters.")
2074 (license license:bsd-3)))
2076 (define-public testdisk
2082 (uri (string-append "https://www.cgsecurity.org/testdisk-"
2083 version ".tar.bz2"))
2086 "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"))))
2087 (build-system gnu-build-system)
2089 `(("ntfs-3g" ,ntfs-3g)
2090 ("util-linux" ,util-linux "lib")
2091 ("openssl" ,openssl)
2092 ;; FIXME: add reiserfs.
2094 ("e2fsprogs" ,e2fsprogs)
2095 ("libjpeg" ,libjpeg-turbo)
2096 ("ncurses" ,ncurses)))
2097 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
2098 (synopsis "Data recovery tool")
2100 "TestDisk is a program for data recovery, primarily designed to help
2101 recover lost partitions and/or make non-booting disks bootable again.")
2102 (license license:gpl2+)))
2111 "http://mama.indstate.edu/users/ice/tree/src/tree-"
2114 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
2115 (build-system gnu-build-system)
2117 '(#:phases (modify-phases %standard-phases (delete 'configure))
2118 #:tests? #f ; no check target
2119 #:make-flags (let ((out (assoc-ref %outputs "out")))
2120 (list (string-append "prefix=" out)))))
2121 (synopsis "Recursively list the contents of a directory")
2123 "Tree is a recursive directory listing command that produces a depth
2124 indented listing of files, which is colorized ala dircolors if the LS_COLORS
2125 environment variable is set and output is to tty.")
2126 (home-page "http://mama.indstate.edu/users/ice/tree/")
2127 (license license:gpl2+)))
2129 (define-public direvent
2135 (uri (string-append "mirror://gnu/direvent/direvent-"
2139 "0m9vi01b1km0cpknflyzsjnknbava0s1n6393b2bpjwyvb6j5613"))
2140 (modules '((guix build utils)))
2142 (substitute* "tests/testsuite"
2143 (("#![[:blank:]]?/bin/sh")
2146 (build-system gnu-build-system)
2149 (modify-phases %standard-phases
2150 (add-before 'build 'patch-/bin/sh
2151 (lambda* (#:key inputs #:allow-other-keys)
2152 ;; Use the right shell when executing the watcher and
2153 ;; user-provided shell commands.
2154 (let ((bash (assoc-ref inputs "bash")))
2155 (substitute* '("src/direvent.c" "src/progman.c")
2157 (string-append "\"" bash "/bin/sh\"")))
2159 ;; Adjust the 'shell.at' test accordingly.
2160 (substitute* "tests/testsuite"
2162 (string-append "SHELL=" bash "/bin/sh")))
2165 (home-page "https://www.gnu.org.ua/software/direvent/")
2166 (synopsis "Daemon to monitor directories for events such as file removal")
2168 "A daemon that monitors directories for events, such as creating,
2169 deleting or modifying files. It can monitor different sets of directories for
2170 different events. When an event is detected, direvent calls a specified
2171 external program with information about the event, such as the location
2172 within the file system where it occurred. Thus, \"direvent\" provides an
2173 easy way to react immediately if given files undergo changes, for example, to
2174 track changes in important system configuration files.")
2175 (license license:gpl3+)))
2177 (define-public libcap-ng
2184 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
2188 "1sasp1n154aqy9fz0knlb966svm7xg1zjhg1vr4q839bgjvq7h2j"))))
2189 (build-system gnu-build-system)
2192 (list "--without-python")))
2193 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
2194 (synopsis "Library for more easily working with POSIX capabilities")
2196 "The libcap-ng library is intended to make programming with POSIX
2197 capabilities easier than the traditional libcap library. It includes
2198 utilities that can analyse all currently running applications and print out
2199 any capabilities and whether or not it has an open ended bounding set. The
2200 included utilities are designed to let admins and developers spot apps from
2201 various ways that may be running with too much privilege.")
2202 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
2203 (license (list license:lgpl2.1+ license:gpl2+))))
2205 (define-public smartmontools
2207 (name "smartmontools")
2212 "mirror://sourceforge/smartmontools/smartmontools/"
2213 version "/smartmontools-" version ".tar.gz"))
2216 "1mlc25sd5rgj5xmzcllci47inmfdw7cp185fday6hc9rwqkqmnaw"))))
2217 (build-system gnu-build-system)
2218 (inputs `(("libcap-ng" ,libcap-ng)))
2219 (home-page "https://www.smartmontools.org/")
2220 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
2222 "The smartmontools package contains utility programs to control and
2223 monitor storage systems using the Self-Monitoring, Analysis and Reporting
2224 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
2225 disks. In many cases, these utilities will provide advanced warning of disk
2226 degradation and failure.")
2227 (license license:gpl2+)))
2229 (define-public fdupes
2236 (uri (string-append "https://github.com/adrianlopezroche/fdupes/"
2237 "releases/download/v" version "/"
2238 "fdupes-" version ".tar.gz"))
2240 (base32 "1g9p50xhi2sp0hqxml4w2k0kq9jv988q2yxm347z5349dlxvap6d"))))
2241 (build-system gnu-build-system)
2243 `(("ncurses" ,ncurses)
2245 (home-page "https://github.com/adrianlopezroche/fdupes")
2246 (synopsis "Identify duplicate files")
2248 "fdupes is a program for identifying duplicate files residing within
2249 specified directories.")
2250 (license license:expat)))
2252 (define-public graphios
2259 (uri (pypi-uri "graphios" version))
2262 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
2263 (build-system python-build-system)
2265 ;; Be warned: Building with Python 3 succeeds, but the build process
2266 ;; throws a syntax error that is ignored.
2267 `(#:python ,python-2
2269 (modify-phases %standard-phases
2270 (add-before 'build 'fix-setup.py
2271 (lambda* (#:key outputs #:allow-other-keys)
2272 ;; Fix hardcoded, unprefixed file names.
2273 (let ((out (assoc-ref outputs "out")))
2274 (substitute* '("setup.py")
2275 (("/etc") (string-append out "/etc"))
2277 (("distro_ver = .*") "distro_ver = ''"))
2279 (home-page "https://github.com/shawn-sterling/graphios")
2280 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
2282 "Graphios is a script to emit nagios perfdata to various upstream metrics
2283 processing and time-series systems. It's currently compatible with Graphite,
2284 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
2285 of supported upstream metrics systems simultaneously.")
2286 (license license:gpl2+)))
2288 (define-public ansible
2295 (uri (pypi-uri "ansible" version))
2297 (base32 "0j1icfqff25zm9sq6j41ipl6gcj3i67mb5bqbjf2f2q1yx6rm8sk"))))
2298 (build-system python-build-system)
2300 `(("python-bcrypt" ,python-bcrypt)
2301 ("python-pynacl" ,python-pynacl)
2302 ("python-httplib2" ,python-httplib2)
2303 ("python-passlib" ,python-passlib)
2304 ("python-nose" ,python-nose)
2305 ("python-mock" ,python-mock)
2306 ("python-jinja2" ,python-jinja2)
2307 ("python-pyyaml" ,python-pyyaml)
2308 ("python-paramiko" ,python-paramiko)))
2310 `(("python-cryptography" ,python-cryptography)
2311 ("python-jinja2" ,python-jinja2)
2312 ("python-pyyaml" ,python-pyyaml)
2313 ("python-paramiko" ,python-paramiko)))
2316 (modify-phases %standard-phases
2317 ;; Several ansible commands (ansible-config, ansible-console, etc.)
2318 ;; are just symlinks to a single ansible executable. The ansible
2319 ;; executable behaves differently based on the value of
2320 ;; sys.argv[0]. This does not work well with our wrap phase, and
2321 ;; therefore the following two phases are required as a workaround.
2322 (add-after 'unpack 'hide-wrapping
2324 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
2325 (substitute* "bin/ansible"
2326 (("import traceback" all)
2327 (string-append all "
2329 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
2332 (add-after 'install 'replace-symlinks
2333 (lambda* (#:key outputs #:allow-other-keys)
2334 ;; Replace symlinks with duplicate copies of the ansible
2336 (let ((out (assoc-ref outputs "out")))
2338 (lambda (subprogram)
2339 (delete-file (string-append out "/bin/ansible-" subprogram))
2340 (copy-file (string-append out "/bin/ansible")
2341 (string-append out "/bin/ansible-" subprogram)))
2342 (list "config" "console" "doc" "galaxy"
2343 "inventory" "playbook" "pull" "vault")))
2345 (home-page "https://www.ansible.com/")
2346 (synopsis "Radically simple IT automation")
2347 (description "Ansible is a radically simple IT automation system. It
2348 handles configuration management, application deployment, cloud provisioning,
2349 ad hoc task execution, and multinode orchestration---including trivializing
2350 things like zero-downtime rolling updates with load balancers.")
2351 (license license:gpl3+)))
2353 (define-public debops
2361 (url "https://github.com/debops/debops")
2362 (commit (string-append "v" version))))
2363 (file-name (git-file-name name version))
2365 (base32 "052b2dykdn35pdpn9s4prawl6nl6yzih8nyf54hpvhpisvjrm1v5"))
2367 (search-patches "debops-constants-for-external-program-names.patch"
2368 "debops-debops-defaults-fall-back-to-less.patch"))))
2369 (build-system python-build-system)
2373 `(("ansible" ,ansible)
2376 ("util-linux" ,util-linux) ;; for umount
2377 ("findutils" ,findutils)
2381 `(("python-future" ,python-future)
2382 ("python-distro" ,python-distro)))
2386 (modify-phases %standard-phases
2387 (add-after 'unpack 'nuke-debops-update
2389 (chmod "bin/debops-update" #o755) ; FIXME work-around git-fetch issue
2390 (with-output-to-file "bin/debops-update"
2392 (format #t "#!/bin/sh
2393 echo 'debops is installed via guix. guix-update is useless in this case.
2394 Please use `guix package -u debops` instead.'")))
2396 ;; patch shebangs only in actuall scripts, not in files included in
2397 ;; roles (which are to be delivered to the targte systems)
2398 (delete `patch-generated-file-shebangs)
2399 (replace 'patch-source-shebangs
2401 (for-each patch-shebang
2404 ;; Filter out symlinks.
2405 (eq? 'regular (stat:type stat)))
2407 (add-after 'unpack 'fix-paths
2409 (define (substitute-program-names file)
2410 ;; e.g. ANSIBLE_PLAYBOOK = '/gnu/store/…/bin/ansible-playbook'
2413 (let ((varname (string-upcase
2415 (lambda (c) (if (char=? c #\-) #\_ c))
2418 (((string-append "^(" varname " = )'.*'") line prefix)
2419 (string-append prefix "'" (which name) "'")))))
2420 '("ansible-playbook" "encfs" "find" "fusermount"
2421 "umount" "gpg" "ansible" "which")))
2422 (for-each substitute-program-names
2424 "bin/debops-padlock"
2426 "debops/__init__.py"
2427 "debops/cmds/__init__.py"))
2429 (home-page "https://www.debops.org/")
2430 (synopsis "Collection of general-purpose Ansible roles")
2431 (description "The Ansible roles provided by that can be used to manage
2432 Debian or Ubuntu hosts. In addition, a default set of Ansible playbooks can
2433 be used to apply the provided roles in a controlled way, using Ansible
2436 The roles are written with a high customization in mind, which can be done
2437 using Ansible inventory. This way the role and playbook code can be shared
2438 between multiple environments, with different configuration in to each one.
2440 Services can be managed on a single host, or spread between multiple hosts.
2441 DebOps provides support for different SQL and NoSQL databases, web servers,
2442 programming languages and specialized applications useful in a data center
2443 environment or in a cluster. The project can also be used to deploy
2444 virtualization environments using KVM/libvirt, Docker or LXC technologies to
2445 manage virtual machines and/or containers.")
2446 (license license:gpl3+)))
2448 (define-public emacs-ansible-doc
2449 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
2451 (name "emacs-ansible-doc")
2452 (version (git-version "0.4" "1" commit))
2457 (url "https://github.com/lunaryorn/ansible-doc.el")
2459 (file-name (git-file-name name version))
2462 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
2463 (build-system emacs-build-system)
2464 ;; Unmaintained by upstream.
2465 (home-page "https://github.com/lunaryorn/ansible-doc.el")
2466 (synopsis "Ansible documentation for Emacs")
2468 "This package provides an Ansible documentation for GNU Emacs.
2470 @code{ansible-doc} allows you to view the documentation of an Ansible
2471 module and @code{ansible-doc-mode} minor mode adds documentation
2472 lookup to YAML Mode. You could enable the mode with @code{(add-hook
2473 'yaml-mode-hook #'ansible-doc-mode)}.")
2474 (license license:gpl3+))))
2476 (define-public cpulimit
2484 (url "https://github.com/opsengine/cpulimit")
2485 (commit (string-append "v" version))))
2486 (file-name (git-file-name name version))
2488 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
2489 (build-system gnu-build-system)
2491 `(#:phases (modify-phases %standard-phases
2494 (lambda* (#:key make-flags #:allow-other-keys)
2495 (apply invoke "make" "-Csrc" make-flags)))
2497 (lambda* (#:key tests? make-flags #:allow-other-keys)
2499 (apply invoke "make" "-Ctests" make-flags))
2502 (lambda* (#:key outputs #:allow-other-keys)
2503 (let* ((out (assoc-ref outputs "out"))
2504 (bin (string-append out "/bin")))
2505 (install-file "src/cpulimit" bin))
2507 #:make-flags (list (string-append "CC=" ,(cc-for-target)))))
2508 (home-page "https://github.com/opsengine/cpulimit")
2509 (synopsis "Limit CPU usage")
2511 "Cpulimit limits the CPU usage of a process. It does not change the nice
2512 value or other scheduling priority settings, but the real CPU usage, and is
2513 able to adapt itself dynamically to the overall system load. Children
2514 processes and threads of the specified process may optionally share the same
2516 (license license:gpl2+)))
2518 (define-public autojump
2526 (url "https://github.com/wting/autojump")
2527 (commit (string-append "release-v" version))))
2528 (file-name (git-file-name name version))
2530 (base32 "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws"))))
2531 (build-system gnu-build-system)
2532 (native-inputs ; for tests
2533 `(("python-mock" ,python-mock)
2534 ("python-pytest" ,python-pytest)))
2536 `(("python" ,python-wrapper)))
2539 (modify-phases %standard-phases
2540 (add-after 'unpack 'make-git-checkout-writable
2541 ;; ‘install.py’ modifies files before installing them.
2543 (for-each make-file-writable (find-files "."))
2549 (invoke "python" "tests/unit/autojump_utils_test.py")))
2551 (lambda* (#:key outputs #:allow-other-keys)
2552 (setenv "SHELL" (which "bash"))
2553 (invoke "python" "install.py"
2554 (string-append "--destdir="
2555 (assoc-ref outputs "out"))))))))
2556 (home-page "https://github.com/wting/autojump")
2557 (synopsis "Shell extension for file system navigation")
2559 "Autojump provides a faster way to navigate your file system, with a \"cd
2560 command that learns\". It works by maintaining a database of the directories
2561 you use the most from the command line and allows you to \"jump\" to
2562 frequently used directories by typing only a small pattern.")
2563 (license license:gpl3+)))
2572 (url "https://github.com/clvv/fasd")
2574 (file-name (git-file-name name version))
2577 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
2578 (build-system gnu-build-system)
2580 `(#:phases (modify-phases %standard-phases
2581 (delete 'configure)) ;no configuration
2582 #:tests? #f ;no tests
2583 #:make-flags (list (string-append "PREFIX=" %output))))
2584 (home-page "https://github.com/clvv/fasd")
2585 (synopsis "Quick access to files and directories for shells")
2587 "Fasd (pronounced similar to \"fast\") is a command-line productivity
2588 booster. Fasd offers quick access to files and directories for POSIX shells.
2589 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
2590 and directories you have accessed so that you can quickly reference them in
2592 (license license:x11)))
2594 (define-public iftop
2600 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
2601 "/iftop-" version ".tar.gz"))
2604 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
2605 (build-system gnu-build-system)
2607 `(("libpcap" ,libpcap)
2608 ("ncurses" ,ncurses)))
2609 (synopsis "Monitor network usage")
2610 (description "Iftop does for network usage what @command{top} does
2611 for CPU usage. It listens to network traffic on a named interface and
2612 displays a table of current bandwidth usage by pairs of hosts.")
2613 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
2614 (license license:gpl2+)))
2616 (define-public munge
2622 (uri (string-append "https://github.com/dun/munge/releases/"
2623 "download/munge-" version "/munge-"
2627 "0h06sghb4rqvv1ywyd6mzsmbcgh712v6ygrff0gzm440y4ca41k6"))
2628 (modules '((guix build utils)))
2631 ;; Don't insist on write access to /var.
2632 (substitute* "src/etc/Makefile.in"
2633 (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
2634 (string-append "-$(INSTALL)" middle "localstatedir"))
2635 (("\\$\\(MKDIR_P\\) .*(local|run)statedir.*")
2639 `(("openssl" ,openssl)
2640 ("libgcrypt" ,libgcrypt)))
2641 (build-system gnu-build-system)
2644 (list "--localstatedir=/var"
2645 (string-append "--with-pkgconfigdir="
2646 (assoc-ref %outputs "out") "/lib/pkgconfig"))
2648 (modify-phases %standard-phases
2649 ;; XXX Many test series fail. Some might be fixable, others do no-no
2650 ;; things like invoking ‘sudo’.
2651 (add-after 'unpack 'skip-failing-tests
2653 (for-each (lambda (test)
2654 (substitute* "t/Makefile.in"
2655 (((string-append test "\\.t ")) "")))
2656 (list "0100-munged-lock"
2658 "0011-munged-cmdline"
2659 "0012-munge-cmdline"
2660 "0013-unmunge-cmdline"
2661 "0101-munged-security-socket"
2662 "0102-munged-security-keyfile"
2663 "0103-munged-security-logfile"
2664 "0110-munged-origin-addr"))
2666 (home-page "https://dun.github.io/munge/")
2667 (synopsis "Cluster computing authentication service")
2669 "Munge is an authentication service for creating and validating
2670 credentials. It allows a process to authenticate the UID and GID of another
2671 local or remote process within a group of hosts having common users and
2672 groups. These hosts form a security realm that is defined by a shared
2673 cryptographic key. Clients within this security realm can create and validate
2674 credentials without the use of root privileges, reserved ports, or
2675 platform-specific methods.")
2676 (license license:gpl3+)))
2678 (define-public audit
2681 (home-page "https://people.redhat.com/sgrubb/audit/")
2685 (uri (string-append home-page "audit-" version ".tar.gz"))
2688 "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"))))
2689 (build-system gnu-build-system)
2691 `(#:configure-flags (list "--with-python=no"
2692 "--disable-static")))
2694 `(("openldap" ,openldap)
2696 ("sasl" ,cyrus-sasl)))
2697 (synopsis "User-space component to the Linux auditing system")
2699 "auditd is the user-space component to the Linux auditing system, which
2700 allows logging of system calls made by user-land processes. It's responsible
2701 for writing audit records to the disk. Viewing the logs is done with the
2702 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
2703 done with the @code{auditctl} utility.")
2704 (license license:gpl2+)))
2712 (uri (string-append "https://nmap.org/dist/nmap-" version
2716 "1aizfys6l9f9grm82bk878w56mg0zpkfns3spzj157h98875mypw"))
2717 (modules '((guix build utils)))
2720 (for-each delete-file-recursively
2721 ;; Remove bundled lua, pcap, and pcre libraries.
2722 ;; FIXME: Remove bundled liblinear once packaged.
2726 ;; Remove pre-compiled binares.
2729 (build-system gnu-build-system)
2731 `(("openssl" ,openssl)
2732 ("libpcap" ,libpcap)
2735 ("zlib" ,zlib) ;for NSE compression support
2738 ("python" ,python-2)))
2740 ;; TODO Add zenmap output.
2741 (outputs '("out" "ndiff"))
2743 `(#:configure-flags '("--without-zenmap")
2745 (modify-phases %standard-phases
2746 (add-after 'configure 'patch-Makefile
2748 (substitute* "Makefile"
2749 ;; Do not attempt to build lua.
2750 (("build-dnet build-lua") "build-dnet"))
2753 (lambda* (#:key outputs #:allow-other-keys)
2754 (define (make out . args)
2755 (apply invoke "make"
2756 (string-append "prefix=" out)
2758 (define (python-path dir)
2759 (string-append dir "/lib/python"
2760 ,(version-major+minor
2761 (package-version python))
2763 (let ((out (assoc-ref outputs "out"))
2764 (ndiff (assoc-ref outputs "ndiff")))
2765 (for-each mkdir-p (list out ndiff))
2771 (make ndiff "install-ndiff")
2772 (wrap-program (string-append ndiff "/bin/ndiff")
2773 `("PYTHONPATH" prefix
2774 (,(python-path ndiff)))))
2776 ;; These are the tests that do not require network access.
2778 (lambda _ (invoke "make"
2782 ;; Nmap can't cope with out-of-source building.
2783 #:out-of-source? #f))
2784 (home-page "https://nmap.org/")
2785 (synopsis "Network discovery and security auditing tool")
2787 "Nmap (\"Network Mapper\") is a network discovery and security auditing
2788 tool. It is also useful for tasks such as network inventory, managing service
2789 upgrade schedules, and monitoring host or service uptime. It also provides an
2790 advanced netcat implementation (ncat), a utility for comparing scan
2791 results (ndiff), and a packet generation and response analysis tool (nping).")
2792 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
2793 ;; both use a 3-clause BSD license.
2794 (license (list license:nmap license:bsd-3))))
2796 (define-public dstat
2804 (url "https://github.com/dstat-real/dstat")
2805 (commit (string-append "v" version))))
2806 (file-name (git-file-name "dstat" version))
2808 (base32 "1qnmkhqmjd1m3if05jj29dvr5hn6kayq9bkkkh881w472c0zhp8v"))
2809 (patches (search-patches "dstat-fix-crash-when-specifying-delay.patch"
2810 "dstat-skip-devices-without-io.patch"))))
2811 (build-system gnu-build-system)
2813 `(#:tests? #f ; no make check
2815 (list (string-append "prefix=" (assoc-ref %outputs "out")))
2817 (modify-phases %standard-phases
2818 (add-after 'unpack 'fix-python3-DeprecationWarning
2820 (substitute* "dstat"
2821 (("collections") "collections.abc"))
2823 (delete 'configure) ; no configure script
2824 (add-after 'install 'wrap
2825 (lambda* (#:key outputs #:allow-other-keys)
2826 (let ((out (assoc-ref outputs "out")))
2827 (wrap-program (string-append out "/bin/dstat")
2828 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2831 `(("python" ,python-wrapper)
2832 ("python-six" ,python-six)))
2833 (synopsis "Versatile resource statistics tool")
2834 (description "Dstat is a versatile replacement for @command{vmstat},
2835 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2836 some of their limitations and adds some extra features, more counters and
2837 flexibility. Dstat is handy for monitoring systems during performance tuning
2838 tests, benchmarks or troubleshooting.
2840 Dstat allows you to view all of your system resources in real-time, you can,
2841 e.g., compare disk utilization in combination with interrupts from your IDE
2842 controller, or compare the network bandwidth numbers directly with the disk
2843 throughput (in the same interval).")
2844 (home-page "http://dag.wiee.rs/home-made/dstat/")
2845 (license license:gpl2+)))
2847 (define-public thefuck
2855 (url "https://github.com/nvbn/thefuck")
2857 (file-name (git-file-name name version))
2859 (base32 "0fnf78956pwhb9cgv1jmgypnkma5xzflkivfrkfiadbgin848yfg"))
2860 (patches (search-patches "thefuck-test-environ.patch"))))
2861 (build-system python-build-system)
2864 (modify-phases %standard-phases
2866 (add-after 'install 'check
2867 (lambda* (#:key inputs outputs #:allow-other-keys)
2868 ;; Tests look for installed package
2869 (add-installed-pythonpath inputs outputs)
2870 ;; Some tests need write access to $HOME.
2871 (setenv "HOME" "/tmp")
2872 (invoke "py.test" "-v")
2875 `(("python-colorama" ,python-colorama)
2876 ("python-decorator" ,python-decorator)
2877 ("python-psutil" ,python-psutil)
2878 ("python-pyte" ,python-pyte)
2879 ("python-six" ,python-six)))
2882 ("python-mock" ,python-mock)
2883 ("python-pytest" ,python-pytest)
2884 ("python-pytest-mock" ,python-pytest-mock)))
2885 (home-page "https://github.com/nvbn/thefuck")
2886 (synopsis "Correct mistyped console command")
2888 "The Fuck tries to match a rule for a previous, mistyped command, creates
2889 a new command using the matched rule, and runs it.")
2890 (license license:x11)))
2895 (version "4.48.0.1")
2899 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2901 (base32 "0rxli3bcm6vlcfx2jminviv8aawwczrpp9kja5zniawy6528al30"))))
2902 (build-system gnu-build-system)
2904 `(#:tests? #f ; obscure test failures
2906 (modify-phases %standard-phases
2907 (delete 'configure) ; no configure script
2908 (add-before 'build 'setup-environment
2909 (lambda* (#:key outputs #:allow-other-keys)
2910 (setenv "CC" ,(cc-for-target))
2911 (setenv "prefix" (assoc-ref outputs "out"))
2913 #:make-flags (list "--environment-overrides")))
2914 (home-page "https://gentoo.com/di/")
2915 (synopsis "Advanced df like disk information utility")
2917 "@code{di} is a disk information utility, displaying everything that your
2918 @code{df} command does and more. It features the ability to display your disk
2919 usage in whatever format you prefer. It is designed to be highly portable and
2920 produce uniform output across heterogeneous networks.")
2921 (license license:zlib)))
2923 (define-public cbatticon
2931 (url "https://github.com/valr/cbatticon")
2934 (base32 "0ivm2dzhsa9ir25ry418r2qg2llby9j7a6m3arbvq5c3kaj8m9jr"))
2935 (file-name (git-file-name name version))))
2936 (build-system gnu-build-system)
2938 `(#:tests? #f ; no tests
2940 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2943 (modify-phases %standard-phases
2944 (delete 'configure)))) ; no configure script
2947 ("gettext" ,gettext-minimal)
2948 ("libnotify" ,libnotify)))
2950 `(("pkg-config" ,pkg-config)))
2951 (synopsis "Lightweight battery icon for the system tray")
2952 (description "cbatticon is a lightweight battery icon that displays
2953 the status of your battery in the system tray.")
2954 (home-page "https://github.com/valr/cbatticon")
2955 (license license:gpl2+)))
2957 (define-public interrobang
2958 (let ((revision "1")
2959 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2961 (name "interrobang")
2962 (version (git-version "0.0.0" revision commit))
2967 (url "https://github.com/TrilbyWhite/interrobang")
2969 (file-name (git-file-name name version))
2971 (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2972 (build-system gnu-build-system)
2974 `(#:tests? #f ; no tests
2976 (modify-phases %standard-phases
2977 (delete 'configure)) ; no configure script
2978 #:make-flags (list (string-append "PREFIX="
2979 (assoc-ref %outputs "out")))))
2981 `(("libx11" ,libx11)))
2983 `(("pkg-config" ,pkg-config)))
2984 (synopsis "Scriptable launcher menu")
2985 (description "Interrobang is a scriptable launcher menu with a customizable
2986 shortcut syntax and completion options.")
2987 (home-page "https://github.com/TrilbyWhite/interrobang")
2988 (license license:gpl3+))))
2990 (define-public pam-krb5
2997 (list (string-append
2998 "https://archives.eyrie.org/software/kerberos/"
2999 "pam-krb5-" version ".tar.xz")
3001 "https://archives.eyrie.org/software/ARCHIVE/"
3002 "pam-krb5/pam-krb5-" version ".tar.xz")))
3003 (patches (search-patches "pam-krb5-CVE-2020-10595.patch"))
3006 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
3007 (build-system gnu-build-system)
3010 (modify-phases %standard-phases
3011 (add-before 'configure 'disable-tests
3013 ;; The build container seems to interfere with some tests.
3014 (substitute* "tests/TESTS"
3015 (("module/basic\n") ""))
3016 (substitute* "tests/TESTS"
3017 (("pam-util/vector\n") ""))
3020 `(("linux-pam" ,linux-pam)
3021 ("mit-krb5" ,mit-krb5)))
3024 ("perl-test-pod" ,perl-test-pod))) ; required for tests
3025 (synopsis "Kerberos PAM module")
3027 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
3028 It supports ticket refreshing by screen savers, configurable
3029 authorization handling, authentication of non-local accounts for network
3030 services, password changing, and password expiration, as well as all the
3031 standard expected PAM features. It works correctly with OpenSSH, even
3032 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
3033 enabled, and supports extensive configuration either by PAM options or in
3034 krb5.conf or both. PKINIT is supported with recent versions of both MIT
3035 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
3036 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5/")
3037 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
3038 ;; However, the tarball does not contain a copy of the GPL, so unless
3039 ;; we put one in, we cannot distribute it under GPL without violating
3040 ;; clause requiring us to give all recipients a copy.
3041 (license license:gpl1+)))
3043 (define (sunxi-tools-source version)
3047 (url "https://github.com/linux-sunxi/sunxi-tools")
3048 (commit (string-append "v" version))))
3050 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
3052 (search-patches "sunxi-tools-remove-sys-io.patch"))
3053 (modules '((guix build utils)))
3055 ;; Remove binaries contained in the tarball which are only for the
3056 ;; target and can be regenerated anyway.
3058 (delete-file-recursively "bin")
3060 (file-name (git-file-name "sunxi-tools" version))))
3062 (define sunxi-target-tools
3064 (name "sunxi-target-tools")
3066 (build-system gnu-build-system)
3068 (sunxi-tools-source version))
3070 `(#:system "armhf-linux"
3072 #:make-flags (list (string-append "PREFIX="
3073 (assoc-ref %outputs "out"))
3074 (string-append "CROSS_COMPILE=")
3077 (modify-phases %standard-phases
3080 (lambda* (#:key make-flags #:allow-other-keys)
3081 (apply invoke "make" "target-tools" make-flags)))
3083 (lambda* (#:key make-flags #:allow-other-keys)
3084 (apply invoke "make" "install-target-tools"
3086 (home-page "https://github.com/linux-sunxi/sunxi-tools")
3087 (synopsis "Hardware management tools for Allwinner computers")
3088 (description "This package contains tools for Allwinner devices:
3090 @item @command{sunxi-meminfo}: Prints memory bus settings.
3092 (license license:gpl2+)))
3094 (define-public sunxi-tools
3096 (name "sunxi-tools")
3099 (sunxi-tools-source version))
3101 `(("sunxi-target-tools" ,sunxi-target-tools)
3102 ("pkg-config" ,pkg-config)))
3104 `(("libusb" ,libusb)))
3105 (build-system gnu-build-system)
3107 `(#:tests? #f ; no tests exist
3108 #:make-flags (list (string-append "PREFIX="
3109 (assoc-ref %outputs "out"))
3110 (string-append "CROSS_COMPILE=disabled")
3113 (modify-phases %standard-phases
3116 (lambda* (#:key make-flags #:allow-other-keys)
3117 (apply invoke "make" "tools" "misc" make-flags)))
3119 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
3120 ;; Those tools have been built for armhf but are part of the
3121 ;; installation in the upstream package. So do the same
3123 (copy-recursively (assoc-ref inputs "sunxi-target-tools")
3124 (assoc-ref outputs "out"))
3125 (apply invoke "make" "install-tools" "install-misc"
3127 (home-page "https://github.com/linux-sunxi/sunxi-tools")
3128 (synopsis "Hardware management tools for Allwinner computers")
3129 (description "This package contains tools for Allwinner devices:
3131 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
3132 a textual description of a board (.fex) to a binary representation (.bin).
3133 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
3134 makes it register as a special USB device (rather than USB host).
3135 You can then connect it to another computer and flash it from there.
3136 @item @command{sunxi-nand-part}: Partitions NAND flash.
3137 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
3138 bootloader) parameters.
3139 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
3140 in order to be able to find it.
3141 @item @command{sunxi-meminfo}: Prints memory bus settings.
3142 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
3144 (license license:gpl2+)))
3146 (define-public sedsed
3154 (url "https://github.com/aureliojargas/sedsed")
3155 (commit (string-append "v" version))))
3156 (file-name (git-file-name name version))
3158 (base32 "05cl35mwljdb9ynbbsfa8zx6ig8r0xncbg2cir9vwn5manndjj18"))))
3159 (build-system python-build-system)
3161 `(#:tests? #f ; no tests
3163 (modify-phases %standard-phases
3164 (add-after 'unpack 'patch-sed-in
3166 (substitute* "sedsed.py"
3168 (string-append "sedbin = '" (which "sed") "'")))
3172 (lambda* (#:key outputs #:allow-other-keys)
3173 (let* ((out (assoc-ref outputs "out"))
3174 (bin (string-append out "/bin")))
3175 ;; Just one file to copy around
3176 (install-file "sedsed.py" bin)
3178 (add-after 'wrap 'symlink
3179 ;; Create 'sedsed' symlink to "sedsed.py".
3180 (lambda* (#:key outputs #:allow-other-keys)
3181 (let* ((out (assoc-ref outputs "out"))
3182 (bin (string-append out "/bin"))
3183 (sed (string-append bin "/sedsed"))
3184 (sedpy (string-append bin "/sedsed.py")))
3187 (home-page "https://aurelio.net/projects/sedsed")
3188 (synopsis "Sed sed scripts")
3190 "@code{sedsed} can debug, indent, tokenize and HTMLize your @command{sed}
3193 In debug mode, it reads your script and adds extra commands to it. When
3194 executed you can see the data flow between the commands, revealing all the
3195 magic sed performs on its internal buffers.
3197 In indent mode, your script is reformatted with standard spacing.
3199 In tokenize mode, you can see the elements of every command you use.
3201 In HTMLize mode, your script is converted to a beautiful colored HTML file,
3202 with all the commands and parameters identified for your viewing pleasure.
3204 With sedsed you can master any sed script. No more secrets, no more hidden
3206 (license license:expat)))
3208 (define-public igt-gpu-tools
3210 (name "igt-gpu-tools")
3216 (url "https://gitlab.freedesktop.org/drm/igt-gpu-tools.git")
3217 (commit (string-append "igt-gpu-tools-" version))))
3218 (file-name (git-file-name name version))
3220 (base32 "1lvhkdhilw0fn4nzkpfwvrhiv8d92h811qs2v6ac3p5w7v86a9zm"))))
3221 (build-system meson-build-system)
3223 `(#:tests? #f)) ; many of the tests try to load kernel modules
3226 ("elfutils" ,elfutils) ; libdw
3230 ("libpciaccess" ,libpciaccess)
3231 ("libunwind" ,libunwind)
3232 ("procps" ,procps)))
3236 ("pkg-config" ,pkg-config)))
3237 (home-page "https://gitlab.freedesktop.org/drm/igt-gpu-tools")
3238 (synopsis "Tools for development and testing of the Intel DRM driver")
3239 (description "IGT GPU Tools is a collection of tools for development and
3240 testing of the Intel DRM driver. There are many macro-level test suites that
3241 get used against the driver, including xtest, rendercheck, piglit, and
3242 oglconform, but failures from those can be difficult to track down to kernel
3243 changes, and many require complicated build procedures or specific testing
3244 environments to get useful results. Therefore, IGT GPU Tools includes
3245 low-level tools and tests specifically for development and testing of the
3247 (supported-systems '("i686-linux" "x86_64-linux"))
3248 (license license:expat)))
3250 (define-public fabric
3257 (uri (pypi-uri "Fabric" version))
3260 "1a3ndlpdw6bhn8fcw1jgznl117a8pnr84az9rb5fwnrypf1ph2b6"))))
3261 (build-system python-build-system)
3263 `(#:python ,python-2 ; Python 2 only
3265 (modify-phases %standard-phases
3269 "nosetests" "-v" "tests/"
3270 ;; This test hangs indefinitely when run on a single core VM
3271 ;; (see GNU bug #26647 and Debian bug #850230).
3272 "--exclude=test_nested_execution_with_explicit_ports"
3273 ;; This test randomly fails in certain environments causing too
3274 ;; much noise to be useful (see Debian bug #854686).
3275 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
3277 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
3278 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
3279 ("python2-nose" ,python2-nose) ; Requires < 2.0
3280 ("python2-pynacl" ,python2-pynacl)
3281 ("python2-bcrypt" ,python2-bcrypt)))
3283 `(("python2-paramiko" ,python2-paramiko)))
3284 (home-page "https://www.fabfile.org/")
3285 (synopsis "Simple Pythonic remote execution and deployment tool")
3287 "Fabric is designed to upload files and run shell commands on a number of
3288 servers in parallel or serially. These commands are grouped in tasks (which
3289 are regular Python functions) and specified in a @dfn{fabfile}.
3291 It is similar to Capistrano, except it's implemented in Python and doesn't
3292 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
3293 tool for remote execution and deployment.")
3294 (license license:bsd-2)))
3296 (define-public neofetch
3303 (url "https://github.com/dylanaraps/neofetch")
3305 (file-name (git-file-name name version))
3308 "0i7wpisipwzk0j62pzaigbiq42y1mn4sbraz4my2jlz6ahwf00kv"))))
3309 (build-system gnu-build-system)
3311 `(#:tests? #f ; there are no tests
3313 (list (string-append "PREFIX=" %output))
3315 (modify-phases %standard-phases
3316 (delete 'configure)))) ; no configure script
3317 (home-page "https://github.com/dylanaraps/neofetch")
3318 (synopsis "System information script")
3319 (description "Neofetch is a command-line system information tool written in
3320 Bash. Neofetch displays information about your system next to an image, your OS
3321 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
3322 used in screenshots to show other users what operating system or distribution
3323 you are running, what theme or icon set you are using, etc.")
3324 (license license:expat)))
3326 (define-public screenfetch
3328 (name "screenfetch")
3333 (url "https://github.com/KittyKatt/screenFetch")
3334 (commit (string-append "v" version))))
3335 (file-name (git-file-name name version))
3338 "04l8aqr474pb115nagn9f6y48jw92n1qfszgw7dbhgl4mpn95lcr"))))
3339 (build-system trivial-build-system)
3341 `(#:modules ((guix build utils))
3344 (use-modules (guix build utils))
3345 (let ((source (assoc-ref %build-inputs "source"))
3346 (out (assoc-ref %outputs "out")))
3347 (mkdir-p (string-append out "/bin/"))
3348 (copy-file (string-append source "/screenfetch-dev")
3349 (string-append out "/bin/screenfetch"))
3350 (install-file (string-append source "/screenfetch.1")
3351 (string-append out "/man/man1/"))
3352 (install-file (string-append source "/COPYING")
3353 (string-append out "/share/doc/" ,name "-" ,version))
3354 (substitute* (string-append out "/bin/screenfetch")
3355 (("/usr/bin/env bash")
3356 (string-append (assoc-ref %build-inputs "bash")
3359 (string-append out "/bin/screenfetch")
3361 (,(string-append (assoc-ref %build-inputs "bc") "/bin:"
3362 (assoc-ref %build-inputs "scrot") "/bin:"
3363 (assoc-ref %build-inputs "xdpyinfo") "/bin"
3364 (assoc-ref %build-inputs "xprop") "/bin"))))
3365 (substitute* (string-append out "/bin/screenfetch")
3367 (string-append "#!" (assoc-ref %build-inputs "bash")
3373 ("xdpyinfo" ,xdpyinfo)
3375 (home-page "https://github.com/KittyKatt/screenFetch")
3376 (synopsis "System information script")
3377 (description "Bash screenshot information tool which can be used to
3378 generate those nifty terminal theme information and ASCII distribution logos in
3379 everyone's screenshots nowadays.")
3380 (license license:gpl3)))
3382 (define-public ufetch
3383 (let ((commit "98b622023e03fe24dbc137e9a68104dfe1fbd04a")
3387 (version (git-version "0.2" revision commit))
3391 (url "https://gitlab.com/jschx/ufetch.git")
3393 (file-name (git-file-name name version))
3396 "09c4zmikza16xpydinnqbi3hmcibfrrn10wij7j0j1wv1pj2sl2l"))))
3397 (build-system trivial-build-system)
3402 `(#:modules ((guix build utils))
3405 (use-modules (guix build utils))
3406 (let* ((source (assoc-ref %build-inputs "source"))
3407 (output (assoc-ref %outputs "out"))
3408 (bindir (string-append output "/bin"))
3409 (docdir (string-append output "/share/doc/ufetch-" ,version))
3410 (tput (string-append (assoc-ref %build-inputs "tput") "/bin/tput")))
3411 (install-file (string-append source "/LICENSE") docdir)
3412 (setenv "PATH" (string-append (assoc-ref %build-inputs "bash") "/bin"))
3414 (for-each (lambda (src)
3415 (let ((dst (string-append bindir "/" (basename src))))
3418 (substitute* dst (("tput") tput))))
3419 (find-files source "ufetch-[[:alpha:]]*$"))
3420 ;; Note: the `ufetch` we create below will only work if run under
3421 ;; the Guix System. I.e. a user trying to run `ufetch` on a
3422 ;; foreign distro will not get great results. The `screenfetch`
3423 ;; program does actual runtime detection of the operating system,
3424 ;; and would be a better choice in such a situation.
3425 (symlink "ufetch-guix" (string-append bindir "/ufetch"))))))
3426 (home-page "https://gitlab.com/jschx/ufetch")
3427 (synopsis "Tiny system info")
3428 (description "This package provides a tiny system info utility.")
3429 (license license:isc))))
3431 (define-public pfetch
3432 (let ((commit "e18a0959ab98b963744755ec4687e59dc11db3c5")
3436 (version (git-version "0.7.0" revision commit))
3440 (url "https://github.com/dylanaraps/pfetch")
3442 (file-name (git-file-name name version))
3445 "1md40av6i3xvvwig5jzhy4kf3s5sgxxk35r0vcyrjd8qyndk927l"))))
3446 (build-system trivial-build-system)
3447 (inputs `(("bash" ,bash)))
3449 `(#:modules ((guix build utils))
3452 (use-modules (guix build utils))
3453 (let* ((source (lambda (f)
3454 (string-append (assoc-ref %build-inputs "source") "/" f)))
3455 (output (assoc-ref %outputs "out"))
3456 (docdir (string-append output "/share/doc/pfetch-" ,version)))
3457 (install-file (source "LICENSE.md") docdir)
3458 (install-file (source "README.md") docdir)
3459 (install-file (source "pfetch") (string-append output "/bin"))
3461 (string-append output "/bin/pfetch")
3462 (list (string-append (assoc-ref %build-inputs "bash") "/bin")))
3464 (home-page "https://github.com/dylanaraps/pfetch")
3465 (synopsis "System information tool")
3466 (description "This package provides a simple, configurable system
3468 (license license:expat))))
3477 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
3478 version "/nnn-v" version ".tar.gz"))
3480 (base32 "1ww18vvfjkvi36rcamw8kpix4bhk71w5bw9kmnh158crah1x8dp6"))))
3481 (build-system gnu-build-system)
3483 `(("ncurses" ,ncurses)
3484 ("readline" ,readline)))
3486 `(("pkg-config" ,pkg-config)))
3488 `(#:tests? #f ; no tests
3490 (modify-phases %standard-phases
3491 (delete 'configure) ; no configure script
3492 (add-after 'unpack 'patch-pkg-config
3494 (substitute* "Makefile"
3496 (or (which "pkg-config")
3497 (string-append ,(%current-target-system)
3502 (string-append "PREFIX="
3503 (assoc-ref %outputs "out"))
3504 (string-append "CC=" ,(cc-for-target)))))
3505 (home-page "https://github.com/jarun/nnn")
3506 (synopsis "Terminal file browser")
3507 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
3508 lightweight terminal file browser with easy keyboard shortcuts for
3509 navigation, opening files and running tasks. There is no config file and
3510 mime associations are hard-coded. The incredible user-friendliness and speed
3511 make it a perfect utility on modern distros.")
3512 (license license:bsd-2)))
3514 (define-public thermald
3522 (url "https://github.com/intel/thermal_daemon")
3523 (commit (string-append "v" version))))
3524 (file-name (git-file-name name version))
3526 (base32 "0nzjfiis4d3ml765s65bywk5dhx5x2fb3hpiixpxzzrs50ajwasj"))))
3527 (build-system gnu-build-system)
3530 (let ((out (assoc-ref %outputs "out")))
3531 (list (string-append "--with-dbus-sys-dir="
3532 out "/etc/dbus-1/system.d")
3533 "--localstatedir=/var"))
3535 (list "V=1") ; log build commands
3537 (modify-phases %standard-phases
3538 (add-before 'bootstrap 'no-early-./configure
3540 (setenv "NO_CONFIGURE" "yet")
3541 ;; XXX thd_trip_point.h redefines "__STDC_LIMIT_MACROS" after
3542 ;; <xz>/include/lzma.h. ./configure forcibly appends -Werror
3543 ;; to CXXFLAGS, overriding any -Wno-error we'd add.
3544 (substitute* "configure.ac"
3548 `(("autoconf" ,autoconf)
3549 ("autoconf-archive" ,autoconf-archive)
3550 ("automake" ,automake)
3551 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3552 ("gtk-doc" ,gtk-doc)
3553 ("pkg-config" ,pkg-config)))
3555 `(("dbus-glib" ,dbus-glib)
3556 ("libevdev" ,libevdev)
3557 ("libxml2" ,libxml2)
3560 (home-page "https://01.org/linux-thermal-daemon/")
3561 (synopsis "CPU scaling for thermal management")
3562 (description "The Linux Thermal Daemon helps monitor and control temperature
3563 on systems running the Linux kernel.")
3564 ;; arm and aarch64 don't have cpuid.h.
3565 (supported-systems '("i686-linux" "x86_64-linux"))
3566 (license license:gpl2)))
3568 (define-public masscan
3576 (url "https://github.com/robertdavidgraham/masscan")
3578 (file-name (git-file-name name version))
3580 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
3581 (build-system gnu-build-system)
3583 `(("libpcap" ,libpcap)))
3585 `(#:test-target "regress"
3587 (list (string-append "CC=" ,(cc-for-target))
3588 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3590 (modify-phases %standard-phases
3591 (delete 'configure) ; no ./configure script
3592 (add-after 'unpack 'patch-path
3593 (lambda* (#:key outputs inputs #:allow-other-keys)
3594 (let* ((out (assoc-ref outputs "out"))
3595 (pcap (assoc-ref inputs "libpcap")))
3596 (substitute* "src/rawsock-pcap.c"
3597 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
3599 (synopsis "TCP port scanner")
3600 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
3601 open ports, and also complete the TCP connection and interact with the remote
3602 application, collecting the information received.")
3603 (home-page "https://github.com/robertdavidgraham/masscan")
3604 ;; 'src/siphash24.c' is the SipHash reference implementation, which
3605 ;; bears a CC0 Public Domain Dedication.
3606 (license license:agpl3+)))
3608 (define-public hungrycat
3614 (uri (string-append "https://github.com/jwilk/hungrycat/"
3615 "releases/download/" version "/"
3616 "hungrycat-" version ".tar.gz"))
3619 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
3620 (build-system gnu-build-system)
3623 `(("python" ,python-wrapper)
3624 ("python-nose" ,python-nose)))
3626 `(#:test-target "test"))
3627 (synopsis "A single tool that combines @command{cat} & @command{rm}")
3629 "hungrycat prints the contents of a file to standard output, while
3630 simultaneously freeing the disk space it occupied. It is useful if you need
3631 to process a large file, don't have enough space to store both the input and
3632 output files, and don't need the input file afterwards.
3633 While similar in principle to running @command{cat} immediately followed by
3634 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
3635 printed instead of after the entire file has been read, which is often too
3637 (home-page "https://jwilk.net/software/hungrycat")
3638 (license license:expat)))
3640 (define-public launchmon
3647 "https://github.com/LLNL/LaunchMON/releases/download/v"
3648 version "/launchmon-v" version ".tar.gz"))
3651 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))
3652 (modules '((guix build utils)))
3655 ;; Fix build failure with GCC 7 due to a conversion error.
3656 ;; Remove for versions > 1.0.2.
3657 (substitute* "launchmon/src/linux/lmon_api/lmon_coloc_spawner.cxx"
3658 ((" lmonpl = '\\\\0'")
3659 " *lmonpl = '\\0'"))
3661 (build-system gnu-build-system)
3667 ("libgcrypt" ,libgcrypt)
3668 ("libgpg-error" ,libgpg-error)))
3669 (synopsis "Infrastructue for large scale tool daemon launching")
3671 "LaunchMON is a software infrastructure that enables HPC run-time
3672 tools to co-locate tool daemons with a parallel job. Its API allows a
3673 tool to identify all the remote processes of a job and to scalably
3674 launch daemons into the relevant nodes.")
3675 (home-page "https://github.com/LLNL/LaunchMON")
3676 (supported-systems '("i686-linux" "x86_64-linux"))
3677 (license license:lgpl2.1)))
3679 (define-public spindle
3684 ;; We use git checkout to avoid github auto-generated tarballs
3687 (url "https://github.com/hpc/Spindle")
3688 (commit (string-append "v" version))))
3689 (file-name (git-file-name name version))
3692 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
3693 (build-system gnu-build-system)
3694 (arguments '(#:configure-flags '("--enable-sec-launchmon"
3695 "--enable-sec-munge"
3696 "--enable-sec-none")))
3700 ("launchmon" ,launchmon)
3701 ("libgcrypt" ,libgcrypt)))
3702 (synopsis "Scalable library loading in HPC environments")
3704 "Spindle is a tool for improving the performance of dynamic library and
3705 Python loading in HPC environments.")
3706 (home-page "https://github.com/hpc/Spindle")
3707 ;; This package supports x86_64 and PowerPC64
3708 (supported-systems '("x86_64-linux"))
3709 (license license:lgpl2.1)))
3711 (define-public inxi-minimal
3712 (let ((real-name "inxi"))
3714 (name "inxi-minimal")
3715 (version "3.2.02-2")
3720 (url "https://github.com/smxi/inxi")
3722 (file-name (git-file-name real-name version))
3724 (base32 "0fwx798v9kwiwkgbj97w6rjdanwf7ap65vvq1fqy7gd9x78xcxsq"))))
3725 (build-system trivial-build-system)
3727 `(("bash" ,bash-minimal)
3729 ("procps" ,procps)))
3739 (use-modules (guix build utils)
3742 (setenv "PATH" (string-append
3743 (assoc-ref %build-inputs "bash") "/bin" ":"
3744 (assoc-ref %build-inputs "gzip") "/bin" ":"
3745 (assoc-ref %build-inputs "perl") "/bin" ":"))
3746 (copy-recursively (assoc-ref %build-inputs "source")
3747 ,(string-append real-name "-" version))
3748 (with-directory-excursion ,(string-append real-name "-" version)
3749 (with-fluids ((%default-port-encoding #f))
3750 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
3751 (let ((bin (string-append %output "/bin")))
3752 (install-file "inxi" bin)
3753 (wrap-program (string-append bin "/inxi")
3756 ,@(map (lambda (input)
3760 (cut string-append store <>)))
3762 ((member name '("util-linux"))
3763 (string-append (store-append "/bin") ":"
3764 (store-append "/sbin")))
3765 ((member name '("dmidecode" "iproute2"))
3766 (store-append "/sbin"))
3767 (else (store-append "/bin")))))))
3773 (((? (cut string-prefix? "perl-" <>) name) . dir)
3774 (string-append dir "/lib/perl5/site_perl"))
3777 (invoke "gzip" "inxi.1")
3778 (install-file "inxi.1.gz"
3779 (string-append %output "/share/man/man1")))
3781 (home-page "https://smxi.org/docs/inxi.htm")
3782 (synopsis "Full-featured system information script")
3783 (description "Inxi is a system information script that can display
3784 various things about your hardware and software to users in an IRC chatroom or
3785 support forum. It runs with the @code{/exec} command in most IRC clients.")
3786 (license license:gpl3+))))
3790 (inherit inxi-minimal)
3793 `(("dmidecode" ,dmidecode)
3795 ("bind:utils" ,isc-bind "utils") ; dig
3797 ("iproute2" ,iproute) ; ip
3798 ("kmod" ,kmod) ; modinfo
3799 ("lm-sensors" ,lm-sensors)
3800 ("mesa-utils" ,mesa-utils)
3801 ("pciutils" ,pciutils)
3804 ("util-linux" ,util-linux) ; lsblk
3805 ("usbutils" ,usbutils) ; lsusb
3807 ("xdpyinfo" ,xdpyinfo)
3810 ("coreutils" ,coreutils) ; uptime
3811 ("inetutils" ,inetutils) ; ifconfig
3812 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
3813 ("perl-http-tiny" ,perl-http-tiny)
3814 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3815 ("perl-json-xs" ,perl-json-xs)
3816 ("perl-time-hires" ,perl-time-hires)
3817 ("lvm2" ,lvm2) ; lvs
3819 ;; TODO: Add more inputs:
3824 ,@(package-inputs inxi-minimal)))))
3826 (define-public pscircle
3834 (url "https://gitlab.com/mildlyparallel/pscircle.git")
3835 (commit (string-append "v" version))))
3836 (file-name (git-file-name name version))
3838 (base32 "1sm99423hh90kr4wdjqi9sdrrpk65j2vz2hzj65zcxfxyr6khjci"))))
3839 (build-system meson-build-system)
3841 `(("pkg-config" ,pkg-config)))
3845 ("libx11" ,libx11)))
3846 (home-page "https://gitlab.com/mildlyparallel/pscircle")
3847 (synopsis "Visualize Linux processes in a form of radial tree")
3849 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
3850 (license license:gpl2+)))
3852 (define-public python-pyudev
3854 (name "python-pyudev")
3859 (uri (pypi-uri "pyudev" version))
3862 "0xmj6l08iih2js9skjqpv4w7y0dhxyg91zmrs6v5aa65gbmipfv9"))))
3863 (build-system python-build-system)
3865 `(#:tests? #f ; Tests require /sys
3867 (modify-phases %standard-phases
3868 (add-after 'unpack 'patch-ctypes-udev
3869 (lambda* (#:key inputs outputs #:allow-other-keys)
3870 (let ((eudev (assoc-ref inputs "eudev")))
3871 (substitute* "src/pyudev/core.py"
3873 (string-append "'" eudev "/lib/libudev.so'")))
3874 (substitute* "src/pyudev/_ctypeslib/utils.py"
3875 ;; Use absolute paths instead of keys.
3876 (("= find_library") "= "))
3879 `(("eudev" ,eudev)))
3881 `(("python-six" ,python-six)))
3883 `(("python-docutils" ,python-docutils)
3884 ("python-hypothesis" ,python-hypothesis)
3885 ("python-mock" ,python-mock)
3886 ("python-pytest" ,python-pytest)
3887 ("python-sphinx" ,python-sphinx)))
3888 (home-page "https://pyudev.readthedocs.io/")
3889 (synopsis "Python udev binding")
3890 (description "This package provides @code{udev} bindings for Python.")
3891 (license license:lgpl2.1)))
3893 (define-public vmtouch
3901 (url "https://github.com/hoytech/vmtouch/")
3902 (commit (string-append "v" version))))
3903 (file-name (git-file-name name version))
3905 (base32 "08da6apzfkfjwasn4dxrlfxqfx7arl28apdzac5nvm0fhvws0dxk"))))
3906 (build-system gnu-build-system)
3910 `(#:tests? #f ; no tests
3913 (string-append "CC=" ,(cc-for-target))
3914 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3916 (modify-phases %standard-phases
3917 (delete 'configure))))
3918 (home-page "https://github.com/hoytech/vmtouch/")
3919 (synopsis "Portable file system cache diagnostics and control")
3921 "vmtouch is a tool for learning about and controlling the file system
3922 cache of unix and unix-like systems.")
3923 (license license:bsd-3)))
3925 (define-public solaar
3932 (url "https://github.com/pwr-Solaar/Solaar")
3934 (file-name (git-file-name name version))
3937 "15wzxxr2m5349kkvcs3k5clg1rsmvh6by2066qm4hlgvjwmigggy"))))
3938 (build-system python-build-system)
3941 (modify-phases %standard-phases
3942 (add-before 'build 'setenv-PATH
3944 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
3947 `(("python-pygobject" ,python-pygobject)
3948 ("python-pyudev" ,python-pyudev)
3951 ("python-pyyaml" ,python-pyyaml)
3952 ("python-psutil" ,python-psutil)
3953 ("python-xlib" ,python-xlib)
3955 ("python-pygobject" ,python-pygobject)))
3956 (home-page "https://smxi.org/docs/inxi.htm")
3957 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
3958 (description "This package provides tools to manage clients of the
3959 Logitech Unifying Receiver.")
3960 (license license:gpl2)))
3962 (define-public lynis
3965 ;; Also update the ‘lynis-sdk’ input to the commit matching this release.
3971 (url "https://github.com/CISOfy/lynis")
3973 (file-name (git-file-name name version))
3975 (base32 "0sdjh2f1563qalp740vkaaxdxl56ny98h168cggpm10h2yq366gr"))
3976 (modules '((guix build utils)))
3979 ;; Remove proprietary plugins. As of now, all plugins supplied with
3980 ;; lynis are proprietary. In the future, if free plugins are
3981 ;; provided, whitelist them from deletion.
3982 (for-each delete-file (find-files "plugins"))
3984 (build-system gnu-build-system)
3991 (url "https://github.com/CISOfy/lynis-sdk")
3992 (commit "ea7a39774fbd71113a1955cf1a4937b489935174")))
3993 (file-name (git-file-name "lynis-sdk" version))
3995 (base32 "0q5j2myshjkz9qwvcg8n7c33yw2cp80yvzhckd60qmzabv4g4qb5"))))))
3998 (modify-phases %standard-phases
4000 (lambda* (#:key inputs outputs #:allow-other-keys)
4001 (substitute* "lynis"
4002 (("/usr/share/lynis")
4003 (string-append (assoc-ref outputs "out") "/share/lynis")))
4004 (substitute* "include/functions"
4005 (("/usr/local/etc/lynis")
4006 (string-append (assoc-ref outputs "out") "/etc/lynis")))
4010 (lambda* (#:key outputs #:allow-other-keys)
4011 (let ((out (assoc-ref outputs "out")))
4012 (install-file "lynis" (string-append out "/bin/"))
4013 (install-file "default.prf" (string-append out "/etc/lynis"))
4016 (copy-recursively dir (string-append out "/share/lynis/" dir)))
4017 (list "db" "include" "plugins"))
4018 (install-file "lynis.8" (string-append out "/share/man/man8"))
4021 (lambda* (#:key inputs #:allow-other-keys)
4022 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
4023 (setenv "LANG" "en_US.UTF-8")
4024 (let ((lynis-dir (getcwd)))
4025 (with-directory-excursion "../lynis-sdk"
4026 (substitute* "config"
4027 (("\\.\\./lynis") lynis-dir))
4028 (substitute* "unit-tests/tests-language-translations.sh"
4029 (("\\.\\./lynis") lynis-dir))
4030 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
4031 (home-page "https://cisofy.com/lynis/")
4032 (synopsis "Security auditing tool")
4033 (description "Lynis is a security auditing tool. It performs an in-depth
4034 security scan and runs on the system itself. The primary goal is to test
4035 security defenses and provide tips for further system hardening. It will also
4036 scan for general system information, vulnerable software packages, and
4037 possible configuration issues.")
4038 (license license:gpl3+)))
4040 (define-public ngrep
4048 (url "https://github.com/jpr5/ngrep/")
4049 (commit (string-append "V" (string-replace-substring version "." "_")))))
4050 (file-name (git-file-name name version))
4053 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
4054 (build-system gnu-build-system)
4056 `(("libpcap" ,libpcap)))
4058 `(#:tests? #f ;; No tests.
4059 #:configure-flags (list (string-append "--with-pcap-includes="
4060 (assoc-ref %build-inputs "libpcap")
4062 (home-page "https://github.com/jpr5/ngrep/")
4063 (synopsis "Grep-like utility to search for network packets on an interface")
4064 (description "@command{ngrep} is like GNU grep applied to the network
4065 layer. It's a PCAP-based tool that allows you to specify an extended regular
4066 or hexadecimal expression to match against data payloads of packets. It
4067 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
4068 IGMP and Raw, across a wide variety of interface types, and understands BPF
4069 filter logic in the same fashion as more common packet sniffing tools, such as
4070 tcpdump and snoop.")
4071 (license license:bsd-3)))
4073 (define-public pam-mount
4080 (uri (string-append "mirror://sourceforge/pam-mount/pam_mount/"
4081 "pam_mount-" version ".tar.xz"))
4083 (base32 "1q2n6a2ah6nghdn8i6ad2wj247njwb5nx48cggxknaa6lqxylidy"))))
4084 (build-system gnu-build-system)
4087 ("pkg-config" ,pkg-config)))
4089 `(("cryptsetup" ,cryptsetup)
4091 ("libxml2" ,libxml2)
4092 ("linux-pam" ,linux-pam)
4094 ("openssl" ,openssl)
4096 ("libmount" ,util-linux "lib")
4097 ("util-linux" ,util-linux)))
4100 (list (string-append "--with-slibdir=" %output "/lib")
4101 (string-append "--with-ssbindir=" %output "/sbin"))
4103 (modify-phases %standard-phases
4104 (add-after 'unpack 'fix-program-paths
4105 (lambda* (#:key inputs outputs #:allow-other-keys)
4106 (let ((util-linux (assoc-ref inputs "util-linux"))
4107 (out (assoc-ref outputs "out")))
4108 (substitute* "src/mtcrypt.c"
4110 (string-append "\"" util-linux "/bin/mount\";"))
4112 (string-append "\"" util-linux "/bin/umount\";"))
4114 (string-append "\"" util-linux "/sbin/fsck\",")))
4115 (substitute* "src/rdconf1.c"
4117 (string-append "\"" util-linux "/bin/mount\", \""))
4119 (string-append "\"" util-linux "/bin/umount\", \""))
4121 (string-append "\"" util-linux "/sbin/fsck\", \""))
4122 (("\"pmvarrun\", \"")
4123 (string-append "\"" out "/sbin/pmvarrun\", \""))))
4125 (home-page "http://pam-mount.sourceforge.net")
4126 (synopsis "PAM module to mount volumes for a user session")
4128 "Pam-mount is a PAM module that can mount volumes when a user logs in.
4129 It supports mounting local filesystems of any kind the normal mount utility
4130 supports. It can also mount encrypted LUKS volumes using the password
4131 supplied by the user when logging in.")
4132 (license (list license:gpl2+ license:lgpl2.1+))))
4140 ;; The PyPI tarball lacks the test suite.
4143 (url "https://github.com/kellyjonbrazil/jc")
4144 (commit (string-append "v" version))))
4145 (file-name (git-file-name name version))
4147 (base32 "0rwvyyrdnw43pixp8h51rncq2inc9pbbj1j2191y5si00pjw34zr"))))
4148 (build-system python-build-system)
4150 `(("python-pygments" ,python-pygments)
4151 ("python-ruamel.yaml" ,python-ruamel.yaml)
4152 ("python-xmltodict" ,python-xmltodict)))
4153 (home-page "https://github.com/kellyjonbrazil/jc")
4154 (synopsis "Convert the output of command-line tools to JSON")
4155 (description "@code{jc} JSONifies the output of many CLI tools and
4156 file-types for easier parsing in scripts.")
4157 (license license:expat)))
4166 (url "https://github.com/kellyjonbrazil/jtbl")
4167 (commit (string-append "v" version))))
4168 (file-name (git-file-name name version))
4171 "1zzd7rd63xva50f22d1rfja4r302aizrafarhwm67vv181swvdya"))))
4172 (build-system python-build-system)
4174 `(("python-tabulate" ,python-tabulate)))
4175 (home-page "https://github.com/kellyjonbrazil/jtbl")
4176 (synopsis "Command-line tool to print JSON data as a table in the terminal")
4177 (description "@code{jtbl} accepts piped JSON data from stdin and outputs a
4178 text table representation to stdout.")
4179 (license license:expat)))
4181 (define-public hosts
4188 (url "https://github.com/xwmx/hosts")
4190 (file-name (git-file-name name version))
4193 "1ni4z89kxzgwm26hhx908g04f2h0fypy7lgfa0rvsz8d0wslgcsn"))))
4194 (build-system trivial-build-system)
4196 `(("bats" ,bats) ;for test
4199 ("coreutils" ,coreutils)
4200 ("diffutils" ,diffutils)
4202 ("ncurses" ,ncurses) ;tput
4205 `(#:modules ((guix build utils))
4208 (use-modules (guix build utils))
4210 (copy-recursively (assoc-ref %build-inputs "source") ".")
4211 ;; patch-shebang phase
4213 (string-append (assoc-ref %build-inputs "bash") "/bin"
4214 ":" (assoc-ref %build-inputs "awk") "/bin"
4215 ":" (assoc-ref %build-inputs "coreutils") "/bin"
4216 ":" (assoc-ref %build-inputs "diffutils") "/bin"
4217 ":" (assoc-ref %build-inputs "grep") "/bin"
4218 ":" (assoc-ref %build-inputs "ncurses") "/bin"
4219 ":" (assoc-ref %build-inputs "sed") "/bin"
4220 ":" "/run/setuid-programs"
4221 ":" (getenv "PATH")))
4222 (substitute* "hosts"
4223 (("#!/usr/bin/env bash")
4224 (string-append "#!" (which "bash")
4225 "\nPATH=" (getenv "PATH"))))
4227 (setenv "TERM" "linux") ;set to tty for test
4228 (invoke (string-append (assoc-ref %build-inputs "bats") "/bin/bats")
4231 (install-file "hosts" (string-append %output "/bin"))
4232 (let ((bash-completion
4233 (string-append %output "/etc/bash_completion.d")))
4234 (mkdir-p bash-completion)
4235 (copy-file "etc/hosts-completion.bash"
4236 (string-append bash-completion "/hosts")))
4237 (let ((zsh-completion
4238 (string-append %output "/share/zsh/site-functions")))
4239 (mkdir-p zsh-completion)
4240 (copy-file "etc/hosts-completion.zsh"
4241 (string-append zsh-completion "/_hosts")))
4242 (let ((doc (string-append %output "/share/doc/" ,name "-" ,version)))
4244 (install-file "LICENSE" doc)
4245 (install-file "README.md" doc))
4247 (home-page "https://github.com/xwmx/hosts/")
4248 (synopsis "Script for editing a foreign distro's @file{/etc/hosts} file")
4249 (description "Hosts is a command line program for managing
4250 @file{/etc/hosts} entries. On Guix System, @file{/etc/hosts} is managed from
4251 the system configuration; hosts only works when using the Guix package manager
4252 on a foreign distro. @command{hosts} works with existing hosts files and
4253 entries, providing commands to add, remove, comment, and search.")
4254 (license license:expat)))
4256 (define-public nmrpflash
4265 (url "https://github.com/jclehner/nmrpflash")
4266 (commit (string-append "v" version))))
4268 (base32 "1fdjrxhjs96rdclbkld57xarf592slhkp79h46z833npxpn12ck1"))
4269 (file-name (git-file-name name version))))
4270 (build-system gnu-build-system)
4272 `(("pkg-config" ,pkg-config)))
4275 ("libpcap" ,libpcap)))
4277 `(#:tests? #f ; None exist
4279 (list (string-append "CC=" ,(cc-for-target))
4280 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4282 (modify-phases %standard-phases
4284 (add-before 'install 'prepare-install
4285 (lambda* (#:key outputs #:allow-other-keys)
4286 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4288 (home-page "https://github.com/jclehner/nmrpflash")
4289 (synopsis "Netgear unbrick utility")
4290 (description "This package provides a utility to flash a new firmware
4291 image to a Netgear device. It has been tested on Netgear EX2700, EX6120,
4292 EX6150v2, DNG3700v2, R6100, R6220, R7000, D7000, WNR3500, R6400, R6800,
4293 R8000, R8500, WNDR3800, but is likely to be compatible with many other
4295 (license license:gpl3+)))
4303 (uri (string-append "https://www.atoptool.nl/download/atop-"
4307 "0crzz4i2nabyh7d6xg7fvl65qls87nbca5ihidp3nijhrrbi14ab"))))
4308 (build-system gnu-build-system)
4310 `(#:tests? #f ; no test suite
4312 (list (string-append "CC=" ,(cc-for-target))
4313 ;; The installer requires a choice between systemd or SysV.
4315 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
4316 (string-append "BINPATH=/bin")
4317 (string-append "SBINPATH=/sbin")
4318 (string-append "SYSDPATH=/etc/systemd/system")
4319 (string-append "PMPATHD=/etc/systemd/system-sleep")
4320 (string-append "MAN1PATH=/share/man/man1")
4321 (string-append "MAN5PATH=/share/man/man5")
4322 (string-append "MAN8PATH=/share/man/man8")
4323 ;; Or else it tries to create /var/log/atop...
4324 (string-append "LOGPATH="))
4326 (modify-phases %standard-phases
4327 (delete 'configure) ; No ./configure script
4328 (add-before 'build 'patch-build
4329 (lambda* (#:key outputs #:allow-other-keys)
4330 (substitute* "Makefile"
4331 ;; We don't need to chown things in the build environment.
4333 ;; We can't toggle the setuid bit in the build environment.
4334 (("chmod 04711") "chmod 0711")
4335 ;; Otherwise, it creates a blank configuration file as a "default".
4336 (("touch.*DEFPATH)/atop") "")
4337 (("chmod.*DEFPATH)/atop") ""))
4340 `(("ncurses" ,ncurses)
4341 ("python" ,python-wrapper) ; for `atopgpud`
4343 (home-page "https://www.atoptool.nl/")
4344 (synopsis "Linux performance monitoring console")
4345 (description "Atop is an ASCII full-screen performance monitor for Linux
4346 that is capable of reporting the activity of all processes (even processes have
4347 finished during the monitoring interval), daily logging of system and process
4348 activity for long-term analysis, highlighting overloaded system resources by
4349 using colors, etc. At regular intervals, it shows system-level activity related
4350 to the CPU, memory, swap, disks (including LVM) and network layers, and for
4351 every process (and thread) it shows e.g. the CPU utilization, memory growth,
4352 disk utilization, priority, username, state, and exit code.")
4353 (license license:gpl2+)))
4355 ;; TODO: Unvendor u-root (pkg: forth, golang, testutil).
4363 (url "https://github.com/linuxboot/fiano.git")
4364 (commit (string-append "v" version))))
4365 (file-name (string-append name "-" version "-checkout"))
4368 "03ihdwwhb7g6bihx141cn0924sjs5ps6q3ps58pk1cg0g0srrr9h"))
4369 (modules '((guix build utils)))
4372 (delete-file-recursively "vendor/golang.org")
4373 (delete-file-recursively "vendor/github.com")
4375 (build-system go-build-system)
4377 `(#:import-path "github.com/linuxboot/fiano"
4378 #:unpack-path "github.com/linuxboot/fiano"))
4382 `(("go-golang-org-x-text" ,go-golang-org-x-text)
4383 ("go-github.com-ulikunitz-xz" ,go-github.com-ulikunitz-xz)))
4384 (synopsis "UEFI image editor")
4385 (description "This package provides a command-line UEFI image editor.")
4386 (home-page "https://github.com/linuxboot/fiano")
4387 (license license:bsd-3)))
4389 (define-public fiano-utk
4394 `(#:import-path "github.com/linuxboot/fiano/cmds/utk"
4395 #:unpack-path "github.com/linuxboot/fiano"))))
4397 (define-public fiano-fmap
4402 `(#:import-path "github.com/linuxboot/fiano/cmds/fmap"
4403 #:unpack-path "github.com/linuxboot/fiano"))))
4405 (define-public novena-eeprom
4407 (name "novena-eeprom")
4412 (url "https://github.com/xobs/novena-eeprom.git")
4413 (commit (string-append "v" version))))
4414 (file-name (string-append name "-" version "-checkout"))
4417 "00pd71mg0g20v0820ggp3ghf9nyj5s4wavaz9mkmrmsr91hcnf7i"))))
4418 (build-system gnu-build-system)
4420 `(#:tests? #f ; No tests exist
4422 (list (string-append "CC=" ,(cc-for-target)))
4424 (modify-phases %standard-phases
4427 (lambda* (#:key outputs #:allow-other-keys)
4428 (let* ((out (assoc-ref outputs "out"))
4429 (out-bin (string-append out "/bin"))
4430 (out-share-man (string-append out "/share/man/man8")))
4431 (install-file "novena-eeprom" out-bin)
4432 (install-file "novena-eeprom.8" out-share-man)))))))
4434 `(("i2c-tools" ,i2c-tools)))
4435 (synopsis "Novena EEPROM editor")
4436 (description "This package provides an editor for the Novena EEPROM.
4437 Novena boards contain a device-dependent descriptive EEPROM that defines
4438 various parameters such as serial number, MAC address, and featureset.
4439 This program allows you to view and manipulate this EEPROM list.")
4440 (home-page "https://github.com/xobs/novena-eeprom/")
4441 (supported-systems '("armhf-linux"))
4442 (license license:bsd-3)))
4444 (define-public lrzsz
4450 (uri (string-append "https://www.ohse.de/uwe/releases/lrzsz-"
4454 "1wcgfa9fsigf1gri74gq0pa7pyajk12m4z69x7ci9c6x9fqkd2y2"))))
4455 (build-system gnu-build-system)
4458 (modify-phases %standard-phases
4460 (lambda* (#:key outputs #:allow-other-keys)
4461 (setenv "CONFIG_SHELL" (which "bash"))
4462 (invoke "./configure"
4463 (string-append "--prefix="
4464 (assoc-ref outputs "out"))))))))
4465 (synopsis "Implementation of XMODEM/YMODEM/ZMODEM transfer protocols")
4466 (description "This package provides programs that transfer files using
4467 the XMODEM/YMODEM/ZMODEM file transfer protocols.")
4468 (home-page "https://ohse.de/uwe/software/lrzsz.html")
4469 (license license:gpl2+)))
4479 (url "https://github.com/leahneukirchen/nq")
4480 (commit (string-append "v" version))))
4481 (file-name (git-file-name name version))
4483 (base32 "1db96ykz35r273jyhf7cdknqk4p2jj9l8gbz7pjy1hq4pb6ffk99"))))
4484 (build-system gnu-build-system)
4488 `(#:make-flags (list (string-append "CC=" ,(cc-for-target))
4489 (string-append "PREFIX=" (assoc-ref %outputs "out")))
4491 (modify-phases %standard-phases
4492 (delete 'configure))))
4493 (synopsis "Unix command line queue utility")
4495 "@code{nq} can create very lightweight job queue systems which require no
4496 setup, maintenance, supervision, or any long-running processes.")
4497 (home-page "https://github.com/leahneukirchen/nq")
4498 (license license:public-domain)))