gnu: gpgme: Update to 1.14.0.
[jackhill/guix/guix.git] / gnu / packages / admin.scm
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 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
11 ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
13 ;;; Copyright © 2016 Peter Feigl <peter.feigl@nexoid.at>
14 ;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
15 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
16 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
18 ;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
19 ;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
20 ;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
21 ;;; Copyright © 2017, 2018, 2020 Marius Bakke <mbakke@fastmail.com>
22 ;;; Copyright © 2018, 2019 Arun Isaac <arunisaac@systemreboot.net>
23 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
24 ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
25 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
26 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
27 ;;; Copyright © 2019,2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
28 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.org>
29 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
30 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
31 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
32 ;;; Copyright © 2019, 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 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 ;;;
39 ;;; This file is part of GNU Guix.
40 ;;;
41 ;;; GNU Guix is free software; you can redistribute it and/or modify it
42 ;;; under the terms of the GNU General Public License as published by
43 ;;; the Free Software Foundation; either version 3 of the License, or (at
44 ;;; your option) any later version.
45 ;;;
46 ;;; GNU Guix is distributed in the hope that it will be useful, but
47 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
48 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49 ;;; GNU General Public License for more details.
50 ;;;
51 ;;; You should have received a copy of the GNU General Public License
52 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
53
54 (define-module (gnu packages admin)
55 #:use-module (guix build-system cmake)
56 #:use-module (guix build-system emacs)
57 #:use-module (guix build-system glib-or-gtk)
58 #:use-module (guix build-system gnu)
59 #:use-module (guix build-system meson)
60 #:use-module (guix build-system perl)
61 #:use-module (guix build-system python)
62 #:use-module (guix build-system ruby)
63 #:use-module (guix build-system trivial)
64 #:use-module (guix download)
65 #:use-module (guix git-download)
66 #:use-module ((guix licenses) #:prefix license:)
67 #:use-module (guix packages)
68 #:use-module (guix utils)
69 #:use-module (gnu packages)
70 #:use-module (gnu packages algebra)
71 #:use-module (gnu packages autogen)
72 #:use-module (gnu packages autotools)
73 #:use-module (gnu packages base)
74 #:use-module (gnu packages bash)
75 #:use-module (gnu packages bison)
76 #:use-module (gnu packages boost)
77 #:use-module (gnu packages c)
78 #:use-module (gnu packages check)
79 #:use-module (gnu packages compression)
80 #:use-module (gnu packages cross-base)
81 #:use-module (gnu packages crypto)
82 #:use-module (gnu packages cryptsetup)
83 #:use-module (gnu packages cyrus-sasl)
84 #:use-module (gnu packages dns)
85 #:use-module (gnu packages elf)
86 #:use-module (gnu packages file)
87 #:use-module (gnu packages flex)
88 #:use-module (gnu packages gawk)
89 #:use-module (gnu packages gettext)
90 #:use-module (gnu packages gl)
91 #:use-module (gnu packages glib)
92 #:use-module (gnu packages gnome)
93 #:use-module (gnu packages gnupg)
94 #:use-module (gnu packages golang)
95 #:use-module (gnu packages groff)
96 #:use-module (gnu packages gtk)
97 #:use-module (gnu packages guile)
98 #:use-module (gnu packages hurd)
99 #:use-module (gnu packages image)
100 #:use-module (gnu packages imagemagick)
101 #:use-module (gnu packages inkscape)
102 #:use-module (gnu packages kerberos)
103 #:use-module (gnu packages libbsd)
104 #:use-module (gnu packages libftdi)
105 #:use-module (gnu packages libunwind)
106 #:use-module (gnu packages libusb)
107 #:use-module (gnu packages linux)
108 #:use-module (gnu packages lua)
109 #:use-module (gnu packages man)
110 #:use-module (gnu packages mcrypt)
111 #:use-module (gnu packages mpi)
112 #:use-module (gnu packages ncurses)
113 #:use-module (gnu packages openldap)
114 #:use-module (gnu packages patchutils)
115 #:use-module (gnu packages pciutils)
116 #:use-module (gnu packages pcre)
117 #:use-module (gnu packages perl)
118 #:use-module (gnu packages perl-check)
119 #:use-module (gnu packages pkg-config)
120 #:use-module (gnu packages popt)
121 #:use-module (gnu packages python)
122 #:use-module (gnu packages python-crypto)
123 #:use-module (gnu packages python-web)
124 #:use-module (gnu packages python-xyz)
125 #:use-module (gnu packages qt)
126 #:use-module (gnu packages readline)
127 #:use-module (gnu packages ruby)
128 #:use-module (gnu packages serialization)
129 #:use-module (gnu packages sphinx)
130 #:use-module (gnu packages tcl)
131 #:use-module (gnu packages terminals)
132 #:use-module (gnu packages texinfo)
133 #:use-module (gnu packages tls)
134 #:use-module (gnu packages version-control)
135 #:use-module (gnu packages web)
136 #:use-module (gnu packages xdisorg)
137 #:use-module (gnu packages xml)
138 #:use-module (gnu packages xorg))
139
140 ;; This package uses su instead of sudo (because of SpaceFM).
141 (define-public ktsuss
142 (package
143 (name "ktsuss")
144 (version "2.1")
145 (source
146 (origin
147 (method git-fetch)
148 (uri
149 (git-reference
150 (url "https://github.com/nomius/ktsuss")
151 (commit version)))
152 (sha256
153 (base32 "0q9931f9hp47v1n8scli4bdg2rkjpf5jf8v7jj2gdn83aia1r2hz"))
154 (file-name (git-file-name name version))))
155 (build-system glib-or-gtk-build-system)
156 (arguments
157 `(#:phases
158 (modify-phases %standard-phases
159 (add-after 'unpack 'patch-file-names
160 (lambda _
161 (substitute* "configure.ac"
162 (("supath=`which su 2>/dev/null`")
163 "supath=/run/setuid-programs/su"))
164 #t)))))
165 (native-inputs
166 `(("autoconf" ,autoconf)
167 ("automake" ,automake)
168 ("libtool" ,libtool)
169 ("pkg-config" ,pkg-config)))
170 (inputs
171 `(("glib" ,glib)
172 ("gtk+" ,gtk+-2)))
173 (synopsis "Graphical front end for @command{su}")
174 (description
175 "Ktsuss stands for ``Keep the @command{su} simple, stupid''.
176 It is a graphical version of @command{su} written in C and GTK+ 2, with
177 simplicity in mind.")
178 (home-page "https://github.com/nomius/ktsuss")
179 (license license:bsd-3)))
180
181 (define-public aide
182 (package
183 (name "aide")
184 (version "0.16.2")
185 (source
186 (origin
187 (method url-fetch)
188 (uri (string-append "https://github.com/aide/aide/releases/download/v"
189 version "/aide-" version ".tar.gz"))
190 (sha256
191 (base32 "15xp47sz7kk1ciffw3f5xw2jg2mb2lqrbr3q6p4bkbz5dap9iy8p"))))
192 (build-system gnu-build-system)
193 (native-inputs
194 `(("bison" ,bison)
195 ("flex" ,flex)))
196 (inputs
197 `(("libgcrypt" ,libgcrypt)
198 ("libgpg-error" ,libgpg-error)
199 ("libmhash" ,libmhash)
200 ("pcre:static" ,pcre "static")
201 ("pcre" ,pcre)
202 ("zlib:static" ,zlib "static")
203 ("zlib" ,zlib)))
204 (synopsis "File and directory integrity checker")
205 (description
206 "AIDE (Advanced Intrusion Detection Environment) is a file and directory
207 integrity checker. It creates a database from the regular expression rules
208 that it finds from its configuration files. Once this database is initialized
209 it can be used to verify the integrity of the files. It has several message
210 digest algorithms that are used to check the integrity of files. All of the
211 usual file attributes can be checked for inconsistencies.")
212 (home-page "https://aide.github.io/")
213 (license license:gpl2+)))
214
215 (define-public progress
216 (package
217 (name "progress")
218 (version "0.15")
219 (source
220 (origin
221 (method git-fetch)
222 (uri (git-reference
223 (url "https://github.com/Xfennec/progress")
224 (commit (string-append "v" version))))
225 (sha256
226 (base32 "1cnb4ixlhshn139mj5sr42k5m6gjjbyqvkn1324c47niwrgp7dqm"))
227 (file-name (git-file-name name version))))
228 (build-system gnu-build-system)
229 (native-inputs
230 `(("pkg-config" ,pkg-config)
231 ("which" ,which)))
232 (inputs
233 `(("ncurses" ,ncurses)))
234 (arguments
235 `(#:tests? #f ; no test suite
236 #:make-flags
237 (let ((target ,(%current-target-system)))
238 (list ,(string-append "CC=" (cc-for-target))
239 (string-append "PKG_CONFIG="
240 (if target
241 (string-append target "-pkg-config")
242 "pkg-config"))
243 (string-append "PREFIX=" (assoc-ref %outputs "out"))))
244 #:phases
245 (modify-phases %standard-phases
246 (delete 'configure)))) ; no configure script
247 (home-page "https://github.com/Xfennec/progress")
248 (synopsis "Program to view the progress of the coreutils commands")
249 (description "A program that looks for coreutils basic commands (cp, mv,
250 dd, tar, gzip/gunzip, cat, etc.) currently running on your system and displays
251 the percentage of copied data. It can also show estimated time and throughput,
252 and provides a \"top-like\" mode (monitoring).")
253 (license license:gpl3+)))
254
255 (define-public shepherd
256 (package
257 (name "shepherd")
258 (version "0.8.1")
259 (source (origin
260 (method url-fetch)
261 (uri (string-append "mirror://gnu/shepherd/shepherd-"
262 version ".tar.gz"))
263 (sha256
264 (base32
265 "0x9zr0x3xvk4qkb6jnda451d5iyrl06cz1bjzjsm0lxvjj3fabyk"))))
266 (build-system gnu-build-system)
267 (arguments
268 '(#:configure-flags '("--localstatedir=/var")))
269 (native-inputs
270 `(("pkg-config" ,pkg-config)
271
272 ;; This is the Guile we use as a cross-compiler...
273 ("guile" ,guile-3.0)))
274 (inputs
275 ;; ... and this is the one that appears in shebangs when cross-compiling.
276 `(("guile" ,guile-3.0)
277
278 ;; The 'shepherd' command uses Readline when used interactively. It's
279 ;; an unusual use case though, so we don't propagate it.
280 ("guile-readline" ,guile-readline)))
281 (synopsis "System service manager")
282 (description
283 "The GNU Shepherd is a daemon-managing daemon, meaning that it supervises
284 the execution of system services, replacing similar functionality found in
285 typical init systems. It provides dependency-handling through a convenient
286 interface and is based on GNU Guile.")
287 (license license:gpl3+)
288 (home-page "https://www.gnu.org/software/shepherd/")))
289
290 (define-public guile2.2-shepherd
291 (package
292 (inherit shepherd)
293 (name "guile2.2-shepherd")
294 (native-inputs
295 `(("pkg-config" ,pkg-config)
296 ("guile" ,guile-2.2)))
297 (inputs
298 `(("guile" ,guile-2.2)))))
299
300 (define-public guile3.0-shepherd
301 (deprecated-package "guile3.0-shepherd" shepherd))
302
303 (define-public guile2.0-shepherd
304 (package
305 (inherit shepherd)
306 (name "guile2.0-shepherd")
307 (native-inputs
308 `(("pkg-config" ,pkg-config)
309 ("guile" ,guile-2.0)))
310 (inputs
311 `(("guile" ,guile-2.0)))))
312
313 (define-public cloud-utils
314 (package
315 (name "cloud-utils")
316 (version "0.31")
317 (source
318 (origin
319 (method url-fetch)
320 (uri (string-append
321 "https://launchpad.net/cloud-utils/trunk/"
322 version "/+download/cloud-utils-" version ".tar.gz"))
323 (sha256
324 (base32
325 "07fl3dlqwdzw4xx7mcxhpkks6dnmaxha80zgs9f6wmibgzni8z0r"))))
326 (build-system gnu-build-system)
327 (arguments
328 '(#:make-flags
329 (let ((out (assoc-ref %outputs "out")))
330 (list (string-append "BINDIR=" out "/bin")
331 (string-append "MANDIR=" out "/share/man/man1")
332 (string-append "DOCDIR=" out "/share/doc")))
333 #:phases
334 (modify-phases %standard-phases
335 (delete 'configure)
336 (delete 'check)
337 (add-after 'install 'wrap
338 (lambda* (#:key outputs inputs #:allow-other-keys)
339 (let ((growpart (string-append (assoc-ref outputs "out")
340 "/bin/growpart")))
341 (wrap-program growpart
342 `("PATH" ":" prefix (,(dirname (which "sfdisk"))
343 ,(dirname (which "readlink"))))))
344 #t)))))
345 (inputs
346 `(("python" ,python)
347 ("util-linux" ,util-linux))) ; contains sfdisk for growpart
348 (home-page "https://launchpad.net/cloud-utils")
349 (synopsis "Set of utilities for cloud computing environments")
350 (description
351 "This package contains a set of utilities for cloud computing
352 environments:
353
354 @itemize @bullet
355 @item @command{cloud-localds} Create a disk for cloud-init to utilize nocloud
356 @item @command{cloud-publish-image} Wrapper for cloud image publishing
357 @item @command{cloud-publish-tarball} Wrapper for publishing cloud tarballs
358 @item @command{cloud-publish-ubuntu} Import a Ubuntu cloud image
359 @item @command{ec2metadata} Query and display @acronym{EC2,Amazon Elastic
360 Compute Cloud} metadata
361 @item @command{growpart} Grow a partition to fill the device
362 @item @command{mount-image-callback} Mount a file and run a command
363 @item @command{resize-part-image} Resize a partition image to a new size
364 @item @command{ubuntu-cloudimg-query} Get the latest Ubuntu
365 @acronym{AMI,Amazon Machine Image}
366 @item @command{ubuntu-ec2-run} Run a @acronym{EC2,Amazon Elastic Compute
367 Cloud} instance using Ubuntu
368 @item @command{vcs-run} Obtain a repository, and run a command
369 @item @command{write-mime-multipart} Handle multipart
370 @acronym{MIME,Multipurpose Internet Mail Extensions} messages
371 @end itemize")
372 (license license:gpl3)))
373
374 (define-public daemontools
375 (package
376 (name "daemontools")
377 (version "0.76")
378 (source (origin
379 (method url-fetch)
380 (uri (string-append
381 "https://cr.yp.to/daemontools/"
382 "daemontools-" version ".tar.gz"))
383 (sha256
384 (base32
385 "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5"))))
386 (build-system gnu-build-system)
387 (arguments
388 `(#:tests? #f ;; No tests as far as I can tell.
389 #:phases
390 (modify-phases %standard-phases
391 (add-after 'unpack 'chdir
392 (lambda _
393 (chdir ,(string-append "daemontools-" version))
394 #t))
395 (delete 'configure)
396 (add-before 'build 'patch
397 (lambda _
398 (substitute* "src/error.h"
399 (("extern int errno;")
400 "#include <errno.h>"))
401 #t))
402 (replace 'build
403 (lambda _
404 (invoke "package/compile")))
405 (replace 'install
406 (lambda* (#:key outputs #:allow-other-keys)
407 (let* ((out (assoc-ref outputs "out"))
408 (bin (string-append out "/bin")))
409 (for-each (lambda (file)
410 (install-file file bin))
411 (find-files "command")))
412 #t)))))
413 (synopsis "Tools for managing UNIX style services")
414 (description
415 "@code{daemontools} is a collection of tools for managing UNIX
416 services.")
417 (license license:public-domain)
418 (home-page "https://cr.yp.to/daemontools.html")))
419
420 (define-public dfc
421 (package
422 (name "dfc")
423 (version "3.1.1")
424 (source
425 (origin
426 (method url-fetch)
427 (uri (string-append
428 "https://projects.gw-computing.net/attachments/download/615/dfc-"
429 version ".tar.gz"))
430 (sha256
431 (base32
432 "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n"))))
433 (build-system cmake-build-system)
434 (arguments '(#:tests? #f)) ; There are no tests.
435 (native-inputs `(("gettext" ,gettext-minimal)))
436 (home-page "https://projects.gw-computing.net/projects/dfc")
437 (synopsis "Display file system space usage using graphs and colors")
438 (description
439 "dfc (df color) is a modern version of df. It uses colors, draws pretty
440 graphs and can export its output to different formats.")
441 (license license:bsd-3)))
442
443 (define-public facter
444 (package
445 (name "facter")
446 (version "4.0.34")
447 (source (origin
448 (method git-fetch)
449 (uri (git-reference
450 (url "https://github.com/puppetlabs/facter")
451 (commit version)))
452 (file-name (git-file-name name version))
453 (sha256
454 (base32
455 "19lcmmcnxkbirvh5bn5xa9a99z48zmb1b8845cp5r598y019gxqp"))))
456 (build-system ruby-build-system)
457 (arguments
458 `(#:phases
459 (modify-phases %standard-phases
460 (add-after 'unpack 'delete-facter-ng-gemspec
461 (lambda _
462 ;; XXX: ruby-build-system incorrectly finds
463 ;; facter-ng.gemspec from this directory and tries to
464 ;; build that instead of the proper facter.gemspec.
465 ;; Just delete it as a workaround, as it appears to
466 ;; only exist for backwards-compatibility after the
467 ;; facter-ng->facter rename.
468 (delete-file "agent/facter-ng.gemspec")
469 #t))
470 (add-after 'unpack 'embed-absolute-references
471 ;; Refer to absolute executable file names to avoid propagation.
472 (lambda* (#:key inputs #:allow-other-keys)
473 (substitute* (find-files "lib/facter/resolvers" "\\.rb$")
474 (("execute\\('(which |)([^ ']+)" _ _ name)
475 (string-append "execute('" (or (which name)
476 name))))
477 #t))
478 (delete 'check)
479 (add-after 'wrap 'check
480 (lambda* (#:key tests? outputs #:allow-other-keys)
481 ;; XXX: The test suite wants to run Bundler and
482 ;; complains that the gemspec is invalid. For now
483 ;; just make sure that we can run the wrapped
484 ;; executable directly.
485 (if tests?
486 (invoke (string-append (assoc-ref outputs "out")
487 "/bin/facter")
488 ;; Many facts depend on /sys, /etc/os-release,
489 ;; etc, so we only run a small sample.
490 "facterversion" "architecture"
491 "kernel" "kernelversion")
492 (format #t "tests disabled~%"))
493 #t)))))
494 (inputs
495 `(("ruby-hocon" ,ruby-hocon)
496 ("ruby-sys-filesystem" ,ruby-sys-filesystem)
497 ("ruby-thor" ,ruby-thor)
498
499 ;; For ‘embed-absolute-references’.
500 ("dmidecode" ,dmidecode)
501 ("inetutils" ,inetutils) ; for ‘hostname’
502 ("iproute" ,iproute)
503 ("pciutils" ,pciutils)
504 ("util-linux" ,util-linux)))
505 (synopsis "Collect and display system facts")
506 (description
507 "Facter is a tool that gathers basic facts about nodes (systems) such
508 as hardware details, network settings, OS type and version, and more. These
509 facts can be collected on the command line with the @command{facter} command
510 or via the @code{facter} Ruby library.")
511 (home-page "https://github.com/puppetlabs/facter-ng")
512 (license license:expat)))
513
514 (define-public htop
515 (package
516 (name "htop")
517 (version "2.2.0")
518 (source (origin
519 (method url-fetch)
520 (uri (string-append "http://hisham.hm/htop/releases/"
521 version "/htop-" version ".tar.gz"))
522 (sha256
523 (base32
524 "0mrwpb3cpn3ai7ar33m31yklj64c3pp576vh1naqff6f21pq5mnr"))))
525 (build-system gnu-build-system)
526 (inputs
527 `(("ncurses" ,ncurses)))
528 (native-inputs
529 `(("python" ,python-wrapper))) ;for scripts/MakeHeader.py
530 (home-page "https://hisham.hm/htop/")
531 (synopsis "Interactive process viewer")
532 (description
533 "This is htop, an interactive process viewer. It is a text-mode
534 application (for console or X terminals) and requires ncurses.")
535 (license license:gpl2)))
536
537 (define-public bashtop
538 (package
539 (name "bashtop")
540 (version "0.9.25")
541 (source (origin
542 (method git-fetch)
543 (uri (git-reference
544 (url "https://github.com/aristocratos/bashtop")
545 (commit (string-append "v" version))))
546 (file-name (git-file-name name version))
547 (sha256
548 (base32
549 "07nlr6vmyb7yihaxj1fp424lmhwkdjl6mls92v90f6gsvikpa13v"))))
550 (build-system gnu-build-system)
551 (arguments
552 '(#:make-flags (list (string-append "PREFIX=" %output))
553 #:tests? #f ; bats test fails with loading load.bash
554 #:phases (modify-phases %standard-phases (delete 'configure))))
555 (home-page "https://github.com/aristocratos/bashtop")
556 (synopsis "Linux/OSX/FreeBSD resource monitor")
557 (description "Resource monitor that shows usage and stats for processor,
558 memory, disks, network and processes.")
559 (license license:asl2.0)))
560
561 (define-public pies
562 (package
563 (name "pies")
564 (version "1.4")
565 (source
566 (origin
567 (method url-fetch)
568 (uri (string-append "mirror://gnu/pies/pies-"
569 version ".tar.bz2"))
570 (sha256
571 (base32
572 "14jb4pa4zs26d5j2skxbaypnwhsx2lw8jgj1irrgs03c2dnf7gp6"))))
573 (build-system gnu-build-system)
574 (arguments
575 '(#:phases (modify-phases %standard-phases
576 (add-before 'build 'patch-/bin/sh
577 (lambda* (#:key inputs #:allow-other-keys)
578 ;; Use the right shell when executing user-provided
579 ;; shell commands.
580 (let ((bash (assoc-ref inputs "bash")))
581 (substitute* '("src/progman.c" "src/comp.c")
582 (("\"/bin/sh\"")
583 (string-append "\"" bash "/bin/sh\"")))
584 #t))))))
585 (home-page "https://www.gnu.org.ua/software/pies/")
586 (synopsis "Program invocation and execution supervisor")
587 (description
588 "GNU pies is a program that supervises the invocation and execution of
589 other programs. It reads the list of programs to be started from its
590 configuration file, executes them, and then monitors their status,
591 re-executing them as necessary.")
592 (license license:gpl3+)))
593
594 (define-public inetutils
595 (package
596 (name "inetutils")
597 (version "1.9.4")
598 (source (origin
599 (method url-fetch)
600 (uri (string-append "mirror://gnu/inetutils/inetutils-"
601 version ".tar.gz"))
602 (patches (search-patches "inetutils-hurd.patch"))
603 (sha256
604 (base32
605 "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
606 (build-system gnu-build-system)
607 (arguments
608 `(#:configure-flags '("--localstatedir=/var"
609
610 ;; Make sure 'PATH_PROCNET_DEV' gets defined when
611 ;; cross-compiling (by default it does not.)
612 ,@(if (%current-target-system)
613 '("--with-path-procnet-dev=/proc/net/dev")
614 '())
615 ,@(if (hurd-target?)
616 '("--disable-rcp"
617 "--disable-rexec"
618 "--disable-rexecd"
619 "--disable-rlogin"
620 "--disable-rlogind"
621 "--disable-rsh"
622 "--disable-rshd"
623 "--disable-uucpd"
624 "--disable-whois")
625 '()))
626 ;; On some systems, 'libls.sh' may fail with an error such as:
627 ;; "Failed to tell switch -a apart from -A".
628 #:parallel-tests? #f))
629 (inputs `(("ncurses" ,ncurses)
630 ("readline" ,readline))) ;for 'ftp'
631 (native-inputs (if (member (%current-system)
632 (package-supported-systems net-tools))
633 `(("netstat" ,net-tools)) ;for tests
634 '()))
635 (home-page "https://www.gnu.org/software/inetutils/")
636 (synopsis "Basic networking utilities")
637 (description
638 "Inetutils is a collection of common network programs, such as an ftp
639 client and server, a telnet client and server, an rsh client and server, and
640 hostname.")
641 (license license:gpl3+)))
642
643 (define-public shadow
644 (package
645 (name "shadow")
646 (version "4.8.1")
647 (source (origin
648 (method url-fetch)
649 (uri (string-append
650 "https://github.com/shadow-maint/shadow/releases/"
651 "download/" version "/shadow-" version ".tar.xz"))
652 (patches (search-patches "shadow-hurd-pctrl.patch"))
653 (sha256
654 (base32
655 "0qmfq50sdhz6xilgxvinblll8j2iqfl7hwk45bq744y4plq4dbd3"))))
656 (build-system gnu-build-system)
657 (arguments
658 `(;; Assume System V `setpgrp (void)', which is the default on GNU
659 ;; variants (`AC_FUNC_SETPGRP' is not cross-compilation capable.)
660 #:configure-flags
661 '("--with-libpam" "ac_cv_func_setpgrp_void=yes")
662
663 #:phases
664 (modify-phases %standard-phases
665 (add-before 'build 'set-nscd-file-name
666 (lambda* (#:key inputs #:allow-other-keys)
667 ;; Use the right file name for nscd.
668 (let ((libc (assoc-ref inputs
669 ,(if (%current-target-system)
670 "cross-libc"
671 "libc"))))
672 (substitute* "lib/nscd.c"
673 (("/usr/sbin/nscd")
674 (string-append libc "/sbin/nscd")))
675 #t)))
676 (add-after 'install 'remove-groups
677 (lambda* (#:key outputs #:allow-other-keys)
678 ;; Remove `groups', which is already provided by Coreutils.
679 (let* ((out (assoc-ref outputs "out"))
680 (bin (string-append out "/bin"))
681 (man (string-append out "/share/man")))
682 (delete-file (string-append bin "/groups"))
683 (for-each delete-file (find-files man "^groups\\."))
684 #t))))))
685
686 (inputs `(("linux-pam" ,linux-pam)))
687 (home-page "https://github.com/shadow-maint/shadow")
688 (synopsis "Authentication-related tools such as passwd, su, and login")
689 (description
690 "Shadow provides a number of authentication-related tools, including:
691 login, passwd, su, groupadd, and useradd.")
692
693 ;; The `vipw' program is GPLv2+.
694 ;; libmisc/salt.c is public domain.
695 (license license:bsd-3)))
696
697 (define-public mingetty
698 (package
699 (name "mingetty")
700 (version "1.08")
701 (source (origin
702 (method url-fetch)
703 (uri (string-append "mirror://sourceforge/mingetty/mingetty/"
704 version "/mingetty-" version ".tar.gz"))
705 (sha256
706 (base32
707 "05yxrp44ky2kg6qknk1ih0kvwkgbn9fbz77r3vci7agslh5wjm8g"))))
708 (build-system gnu-build-system)
709 (arguments
710 `(#:phases
711 (modify-phases %standard-phases
712 (replace 'configure
713 (lambda* (#:key inputs outputs target #:allow-other-keys)
714 (let* ((out (assoc-ref outputs "out"))
715 (man8 (string-append out "/share/man/man8"))
716 (sbin (string-append out "/sbin"))
717 (shadow (assoc-ref inputs "shadow"))
718 (login (string-append shadow "/bin/login")))
719 (substitute* "Makefile"
720 ,@(if (%current-target-system)
721 '((("CC=.*$")
722 (string-append "CC=" target "-gcc\n")))
723 '())
724 (("^SBINDIR.*")
725 (string-append "SBINDIR = " out
726 "/sbin\n"))
727 (("^MANDIR.*")
728 (string-append "MANDIR = " out
729 "/share/man/man8\n")))
730
731 ;; Pick the right 'login' by default.
732 (substitute* "mingetty.c"
733 (("\"/bin/login\"")
734 (string-append "\"" login "\"")))
735
736 (mkdir-p sbin)
737 (mkdir-p man8))
738 #t)))
739 #:tests? #f)) ; no tests
740 (inputs `(("shadow" ,shadow)))
741
742 (home-page "https://sourceforge.net/projects/mingetty")
743 (synopsis "Getty for the text console")
744 (description
745 "Small console getty that is started on the Linux text console,
746 asks for a login name and then transfers over to @code{login}. It is extended
747 to allow automatic login and starting any app.")
748 (license license:gpl2+)))
749
750 (define-public net-base
751 (package
752 (name "net-base")
753 (version "5.3")
754 (source (origin
755 (method url-fetch)
756 (uri (string-append
757 "mirror://debian/pool/main/n/netbase/netbase_"
758 version ".tar.xz"))
759 (sha256
760 (base32
761 "12xqjwg3p4rzmmh2iib6sigm9l29y3dgk74mmnw64k84jnbwdxl1"))))
762 (build-system trivial-build-system)
763 (arguments
764 `(#:modules ((guix build utils))
765 #:builder (begin
766 (use-modules (guix build utils)
767 (srfi srfi-26))
768
769 (let* ((source (assoc-ref %build-inputs "source"))
770 (tar (assoc-ref %build-inputs "tar"))
771 (xz (assoc-ref %build-inputs "xz"))
772 (output (assoc-ref %outputs "out"))
773 (etc (string-append output "/etc")))
774 (setenv "PATH" (string-append xz "/bin"))
775 (invoke (string-append tar "/bin/tar") "xvf"
776 source)
777 (chdir ,(string-append "netbase-" version))
778 (mkdir-p etc)
779 (for-each copy-file
780 '("etc-services" "etc-protocols" "etc-rpc")
781 (map (cut string-append etc "/" <>)
782 '("services" "protocols" "rpc")))
783 #t))))
784 (native-inputs `(("tar" ,tar)
785 ("xz" ,xz)))
786 (synopsis "IANA protocol, port, and RPC number assignments")
787 (description
788 "This package provides the /etc/services, /etc/protocols, and /etc/rpc
789 files, which contain information about the IANA-assigned port, protocol, and
790 ONC RPC numbers.")
791 (home-page "https://packages.debian.org/sid/netbase")
792 (license license:gpl2)))
793
794 (define-public netcat
795 (package
796 (name "netcat")
797 (version "0.7.1")
798 (source (origin
799 (method url-fetch)
800 (uri (string-append "mirror://sourceforge/netcat/netcat/" version
801 "/netcat-" version ".tar.bz2"))
802 (sha256
803 (base32
804 "1frjcdkhkpzk0f84hx6hmw5l0ynpmji8vcbaxg8h5k2svyxz0nmm"))))
805 (build-system gnu-build-system)
806 (arguments
807 `(#:configure-flags
808 ;; By default, man and info pages are put in PREFIX/{man,info},
809 ;; but we want them in PREFIX/share/{man,info}.
810 (let ((out (assoc-ref %outputs "out")))
811 (list (string-append "--mandir=" out "/share/man")
812 (string-append "--infodir=" out "/share/info")))))
813 (home-page "http://netcat.sourceforge.net")
814 (synopsis "Read and write data over TCP/IP")
815 (description
816 "Netcat is a featured networking utility which reads and writes data
817 across network connections, using the TCP/IP protocol. It is designed to be a
818 reliable \"back-end\" tool that can be used directly or easily driven by other
819 programs and scripts. At the same time, it is a feature-rich network debugging
820 and exploration tool, since it can create almost any kind of connection you
821 would need and has several interesting built-in capabilities.")
822 (license license:gpl2+)))
823
824 (define-public netcat-openbsd
825 (package
826 (name "netcat-openbsd")
827 (version "1.217-1")
828 (source (origin
829 (method git-fetch)
830 (uri (git-reference
831 (url "https://salsa.debian.org/debian/netcat-openbsd.git")
832 (commit (string-append "debian/" version))))
833 (file-name (git-file-name name version))
834 (sha256
835 (base32
836 "0kcvi3pav2fdx5c22psjv5dggk4cmrqiaq2cklhqngsk4a7vrjan"))))
837 (build-system gnu-build-system)
838 (arguments
839 `(#:tests? #f ; no test suite
840 #:make-flags
841 (list "CC=gcc")
842 #:phases
843 (modify-phases %standard-phases
844 (delete 'configure)
845 (add-before 'build 'patch
846 (lambda _
847 (setenv "QUILT_PATCHES" "debian/patches")
848 (invoke "quilt" "push" "-a")
849 #t))
850 (replace 'install
851 (lambda* (#:key outputs #:allow-other-keys)
852 (let* ((out (assoc-ref outputs "out"))
853 (bin (string-append out "/bin"))
854 (man (string-append out "/share/man/man1"))
855 (doc (string-append out "/share/doc/netcat-openbsd-" ,version))
856 (examples (string-append doc "/examples")))
857 (install-file "nc" bin)
858 (install-file "nc.1" man)
859 (install-file "debian/copyright" doc)
860 (copy-recursively "debian/examples" examples)
861 #t))))))
862 (inputs `(("libbsd" ,libbsd)))
863 (native-inputs `(("pkg-config" ,pkg-config)
864 ("quilt" ,quilt)))
865 (home-page "https://packages.debian.org/sid/netcat-openbsd")
866 (synopsis "Read and write data over TCP/IP")
867 (description
868 "Netcat is a simple Unix utility which reads and writes data across
869 network connections using TCP or UDP protocol. It is designed to be a reliable
870 \"back-end\" tool that can be used directly or easily driven by other programs
871 and scripts. At the same time it is a feature-rich network debugging and
872 exploration tool, since it can create almost any kind of connection you would
873 need and has several interesting built-in capabilities.
874
875 This package contains the OpenBSD rewrite of netcat, including support for
876 IPv6, proxies, and Unix sockets.")
877 (license (list license:bsd-3
878 license:bsd-2)))) ; atomicio.*, socks.c
879
880 (define-public sipcalc
881 (package
882 (name "sipcalc")
883 (version "1.1.6")
884 (source
885 (origin
886 (method url-fetch)
887 (uri (string-append "http://www.routemeister.net/projects"
888 "/sipcalc/files/sipcalc" "-" version ".tar.gz"))
889 (sha256
890 (base32
891 "0mv3wndj4z2bsshh2k8d5sy3j8wxzgf8mzmmkvj1k8gpcz37dm6g"))))
892 (build-system gnu-build-system)
893 (home-page "https://www.routemeister.net/projects/sipcalc/")
894 (synopsis "Command-line IP subnet calculator")
895 (description
896 "Sipcalc is an advanced command-line IP subnet calculator. It can take
897 multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude
898 of information about a given subnet.
899
900 Features include:
901
902 @itemize @bullet
903 @item IPv4
904 @itemize
905 @item Retrieving of address information from interfaces.
906 @item Classfull and CIDR output.
907 @item Multiple address and netmask input and output formats (dotted quad, hex,
908 number of bits).
909 @item Output of broadcast address, network class, Cisco wildcard,
910 hosts/range, network range.
911 @item The ability to split a network based on a smaller netmask, now also with
912 recursive runs on the generated subnets. (also IPv6)
913 @end itemize
914 @item IPv6
915 @itemize
916 @item Compressed and expanded input and output addresses.
917 @item Standard IPv6 network output.
918 @item v4 in v6 output.
919 @item Reverse DNS address generation.
920 @end itemize
921 @end itemize\n")
922 (license license:bsd-3)))
923
924 (define-public alive
925 (package
926 (name "alive")
927 (version "2.0.2")
928 (source (origin
929 (method url-fetch)
930 (uri (string-append "mirror://gnu/alive/alive-"
931 version ".tar.xz"))
932 (sha256
933 (base32
934 "1vrzg51ai68x9yld7vbgl58sxaw5qpx8rbakwcxn4cqq6vpxj38j"))))
935 (build-system gnu-build-system)
936 (arguments '(#:configure-flags '("alive_cv_nice_ping=yes")))
937 (inputs `(("guile" ,guile-2.0)
938 ("inetutils" ,inetutils)))
939 (home-page "https://www.gnu.org/software/alive/")
940 (synopsis "Autologin and keep-alive daemon")
941 (description
942 "GNU Alive sends periodic pings to a server, generally to keep a
943 connection alive.")
944 (license license:gpl3+)))
945
946 (define-public isc-dhcp
947 (let* ((bind-major-version "9")
948 (bind-minor-version "11")
949 (bind-patch-version "22")
950 (bind-release-type "") ; for patch release, use "-P"
951 (bind-release-version "") ; for patch release, e.g. "6"
952 (bind-version (string-append bind-major-version
953 "."
954 bind-minor-version
955 "."
956 bind-patch-version
957 bind-release-type
958 bind-release-version)))
959 (package
960 (name "isc-dhcp")
961 (version "4.4.2")
962 (source (origin
963 (method url-fetch)
964 (uri (string-append "https://ftp.isc.org/isc/dhcp/"
965 version "/dhcp-" version ".tar.gz"))
966 (sha256
967 (base32
968 "08a5003zdxgl41b29zjkxa92h2i40zyjgxg0npvnhpkfl5jcsz0s"))))
969 (build-system gnu-build-system)
970 (arguments
971 `(#:parallel-build? #f
972 #:configure-flags '("--with-randomdev=/dev/random")
973 #:phases
974 (modify-phases %standard-phases
975 (add-after 'unpack 'replace-bundled-bind
976 (lambda* (#:key inputs native-inputs #:allow-other-keys)
977 (delete-file "bind/bind.tar.gz")
978 (copy-file (assoc-ref inputs "bind-source-tarball")
979 "bind/bind.tar.gz")
980 (chmod "bind/bind.tar.gz" #o644)
981 (substitute* "bind/version.tmp"
982 (("^MAJORVER=.*")
983 (format #f "MAJORVER=~a\n" ,bind-major-version))
984 (("^MINORVER=.*")
985 (format #f "MINORVER=~a\n" ,bind-minor-version))
986 (("^PATCHVER=.*")
987 (format #f "PATCHVER=~a\n" ,bind-patch-version))
988 (("^RELEASETYPE=.*")
989 (format #f "RELEASETYPE=~a\n" ,bind-release-type))
990 (("^RELEASEVER=.*")
991 (format #f "RELEASEVER=~a\n" ,bind-release-version)))
992 #t))
993 ,@(if (%current-target-system)
994 '((add-before 'configure 'fix-bind-cross-compilation
995 (lambda _
996 (substitute* "configure"
997 (("--host=\\$host")
998 "--host=$host_alias"))
999 ;; BIND needs a native compiler because the DHCP
1000 ;; build system uses the built 'gen' executable.
1001 (setenv "BUILD_CC" "gcc")
1002 #t)))
1003 '())
1004 (add-after 'configure 'post-configure
1005 (lambda* (#:key outputs #:allow-other-keys)
1006 ;; Point to the right client script, which will be
1007 ;; installed in a later phase.
1008 (substitute* "includes/dhcpd.h"
1009 (("#define[[:blank:]]+_PATH_DHCLIENT_SCRIPT.*")
1010 (let ((out (assoc-ref outputs "out")))
1011 (string-append "#define _PATH_DHCLIENT_SCRIPT \""
1012 out "/libexec/dhclient-script"
1013 "\"\n"))))
1014
1015 ;; During the 'build' phase, 'bind.tar.gz' is extracted, so
1016 ;; we must patch shebangs in there and make sure the right
1017 ;; shell is used.
1018 (with-directory-excursion "bind"
1019 (substitute* "Makefile"
1020 (("\\./configure ")
1021 (let ((sh (which "sh")))
1022 (string-append "./configure CONFIG_SHELL="
1023 sh " SHELL=" sh " "))))
1024
1025 (let ((bind-directory (string-append "bind-" ,bind-version)))
1026 (invoke "tar" "xf" "bind.tar.gz")
1027 (for-each patch-shebang
1028 (find-files bind-directory ".*"))
1029 (substitute* (string-append bind-directory "/configure")
1030 (("/usr/bin/file")
1031 (which "file")))
1032 (invoke "tar" "cf" "bind.tar.gz"
1033 bind-directory
1034 ;; avoid non-determinism in the archive
1035 "--sort=name"
1036 "--mtime=@0"
1037 "--owner=root:0"
1038 "--group=root:0")))))
1039 (add-after 'install 'post-install
1040 (lambda* (#:key inputs outputs #:allow-other-keys)
1041 ;; Install the dhclient script for GNU/Linux and make sure
1042 ;; if finds all the programs it needs.
1043 (let* ((out (assoc-ref outputs "out"))
1044 (libexec (string-append out "/libexec"))
1045 (coreutils (assoc-ref inputs "coreutils*"))
1046 (inetutils (assoc-ref inputs "inetutils"))
1047 (net-tools (assoc-ref inputs "net-tools"))
1048 (sed (assoc-ref inputs "sed*")))
1049 (substitute* "client/scripts/linux"
1050 (("/sbin/ip")
1051 (string-append (assoc-ref inputs "iproute")
1052 "/sbin/ip")))
1053
1054 (mkdir-p libexec)
1055 (copy-file "client/scripts/linux"
1056 (string-append libexec "/dhclient-script"))
1057
1058 (wrap-program
1059 (string-append libexec "/dhclient-script")
1060 `("PATH" ":" prefix
1061 ,(map (lambda (dir)
1062 (string-append dir "/bin:"
1063 dir "/sbin"))
1064 (list inetutils net-tools coreutils sed))))
1065 #t))))))
1066
1067 (native-inputs
1068 `(("perl" ,perl)
1069 ("file" ,file)))
1070
1071 (inputs `(("inetutils" ,inetutils)
1072 ,@(if (hurd-target?) '()
1073 `(("net-tools" ,net-tools)
1074 ("iproute" ,iproute)))
1075
1076 ;; isc-dhcp bundles a copy of BIND, which has proved vulnerable
1077 ;; in the past. Use a BIND-VERSION of our choosing instead.
1078 ("bind-source-tarball"
1079 ,(origin
1080 (method url-fetch)
1081 (uri (string-append "https://ftp.isc.org/isc/bind9/"
1082 bind-version
1083 "/bind-" bind-version ".tar.gz"))
1084 (sha256
1085 (base32
1086 "1j9a4r83a77mp8k1y8z524c9rzdqgd8rzwczd6zwmw86a00xiimg"))))
1087
1088 ("coreutils*" ,coreutils)
1089 ("sed*" ,sed)))
1090
1091 (home-page "https://www.isc.org/products/DHCP/")
1092 (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")
1093 (description
1094 "ISC's Dynamic Host Configuration Protocol (DHCP) distribution provides a
1095 reference implementation of all aspects of DHCP, through a suite of DHCP
1096 tools: server, client, and relay agent.")
1097 (license license:mpl2.0)
1098 (properties '((cpe-name . "dhcp"))))))
1099
1100 (define-public libpcap
1101 (package
1102 (name "libpcap")
1103 (version "1.9.1")
1104 (source (origin
1105 (method url-fetch)
1106 (uri (string-append "https://www.tcpdump.org/release/libpcap-"
1107 version ".tar.gz"))
1108 (sha256
1109 (base32
1110 "153h1378diqyc27jjgz6gg5nxmb4ddk006d9xg69nqavgiikflk3"))))
1111 (build-system gnu-build-system)
1112 (native-inputs
1113 `(("bison" ,bison)
1114 ("flex" ,flex)))
1115 (arguments
1116 ;; There are some tests in testprogs/, but no automated test suite.
1117 '(#:tests? #f))
1118 (home-page "https://www.tcpdump.org")
1119 (synopsis "Network packet capture library")
1120 (description
1121 "libpcap is an interface for user-level packet capture. It provides a
1122 portable framework for low-level network monitoring. Applications include
1123 network statistics collection, security monitoring, network debugging, etc.")
1124 (license (list license:bsd-4 ; fad-*.c and several other source files
1125 license:bsd-3 ; pcap/, sockutils.* & others
1126 license:bsd-2)))) ; the rest
1127
1128 (define-public tcpdump
1129 (package
1130 (name "tcpdump")
1131 (version "4.9.3")
1132 (source (origin
1133 (method url-fetch)
1134 (uri (string-append "https://www.tcpdump.org/release/tcpdump-"
1135 version ".tar.gz"))
1136 (sha256
1137 (base32
1138 "0434vdcnbqaia672rggjzdn4bb8p8dchz559yiszzdk0sjrprm1c"))))
1139 (build-system gnu-build-system)
1140 (inputs `(("libpcap" ,libpcap)
1141 ("openssl" ,openssl)))
1142 (native-inputs `(("perl" ,perl))) ; for tests
1143 (home-page "https://www.tcpdump.org/")
1144 (synopsis "Network packet analyzer")
1145 (description
1146 "Tcpdump is a command-line tool to analyze network traffic passing
1147 through the network interface controller.")
1148 (license license:bsd-3)))
1149
1150 (define-public jnettop
1151 (package
1152 (name "jnettop")
1153 (version "0.13.0")
1154 (source (origin
1155 (method url-fetch)
1156 (uri
1157 (string-append "https://web.archive.org/web/20161221100811/"
1158 "http://jnettop.kubs.info/dist/jnettop-"
1159 version ".tar.gz"))
1160 (sha256
1161 (base32
1162 "1855np7c4b0bqzhf1l1dyzxb90fpnvrirdisajhci5am6als31z9"))))
1163 (build-system gnu-build-system)
1164 (native-inputs
1165 `(("pkg-config" ,pkg-config)))
1166 (inputs
1167 `(("glib" ,glib)
1168 ("ncurses" ,ncurses)
1169 ("libpcap" ,libpcap)))
1170 (home-page
1171 "https://web.archive.org/web/20160703195221/http://jnettop.kubs.info/wiki/")
1172 (synopsis "Visualize network traffic by bandwidth use")
1173 (description
1174 "Jnettop is a traffic visualiser, which captures traffic going
1175 through the host it is running from and displays streams sorted
1176 by bandwidth they use.")
1177 (license license:gpl2+)))
1178
1179 (define-public clusterssh
1180 (package
1181 (name "clusterssh")
1182 (version "4.13.2")
1183 (source (origin
1184 (method url-fetch)
1185 (uri (string-append "mirror://sourceforge/clusterssh/"
1186 "2.%20ClusterSSH%20Series%204/"
1187 "App-ClusterSSH-v" version ".tar.gz"))
1188 (sha256
1189 (base32
1190 "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
1191 (build-system perl-build-system)
1192 (arguments
1193 `(#:phases
1194 (modify-phases %standard-phases
1195 (add-after 'unpack 'refer-to-inputs
1196 (lambda* (#:key inputs #:allow-other-keys)
1197 (substitute* (list "lib/App/ClusterSSH/Config.pm"
1198 "t/15config.t")
1199 (("xterm")
1200 (which "xterm")))
1201 #t))
1202 (add-before 'check 'delete-failing-tests
1203 (lambda _
1204 ;; This checks whether all code is nicely formatted. The above
1205 ;; ‘refer-to-inputs’ phase breaks this pedantry, so disable it.
1206 (delete-file "t/perltidy.t")
1207 ;; Update the manifest so t/manifest.t happily passes.
1208 (substitute* "MANIFEST"
1209 (("t/perltidy.t\n") ""))
1210 #t))
1211 (add-after 'install 'augment-library-path
1212 (lambda* (#:key inputs outputs #:allow-other-keys)
1213 (let* ((out (assoc-ref outputs "out"))
1214 (bin (string-append out "/bin")))
1215 (with-directory-excursion bin
1216 (for-each
1217 (lambda (program)
1218 (wrap-program program
1219 `("PERL5LIB" ":" prefix
1220 ,(map (lambda (file-name)
1221 (string-append file-name
1222 "/lib/perl5/site_perl"))
1223 (cons out
1224 (map (lambda (input)
1225 (assoc-ref inputs input))
1226 ;; These may be propagated and hence
1227 ;; not explicitly listed as inputs.
1228 (list "perl-class-data-inheritable"
1229 "perl-devel-stacktrace"
1230 "perl-exception-class"
1231 "perl-tk"
1232 "perl-try-tiny"
1233 "perl-x11-protocol"
1234 "perl-x11-protocol-other")))))))
1235 (find-files "." ".*")))
1236 #t))))))
1237 (native-inputs
1238 `(("perl-cpan-changes" ,perl-cpan-changes)
1239 ("perl-file-slurp" ,perl-file-slurp)
1240 ("perl-file-which" ,perl-file-which)
1241 ("perl-module-build" ,perl-module-build)
1242 ("perl-readonly" ,perl-readonly)
1243 ("perl-test-differences" ,perl-test-differences)
1244 ("perl-test-distmanifest" ,perl-test-distmanifest)
1245 ("perl-test-perltidy" ,perl-test-perltidy)
1246 ("perl-test-pod" ,perl-test-pod)
1247 ("perl-test-pod-coverage" ,perl-test-pod-coverage)
1248 ("perl-test-trap" ,perl-test-trap)
1249 ("perltidy" ,perltidy)))
1250 (inputs
1251 `(("perl-exception-class" ,perl-exception-class)
1252 ("perl-sort-naturally" ,perl-sort-naturally)
1253 ("perl-tk" ,perl-tk)
1254 ("perl-try-tiny" ,perl-try-tiny)
1255 ("perl-x11-protocol" ,perl-x11-protocol)
1256 ("perl-x11-protocol-other" ,perl-x11-protocol-other)
1257 ("xterm" ,xterm)))
1258 ;; The clusterssh.sourceforge.net address requires login to view
1259 (home-page "https://sourceforge.net/projects/clusterssh/")
1260 (synopsis "Secure concurrent multi-server terminal control")
1261 (description
1262 "ClusterSSH controls a number of xterm windows via a single graphical
1263 console window to allow commands to be interactively run on multiple servers
1264 over ssh connections.")
1265 (license license:gpl2+)))
1266
1267 (define-public rename
1268 (package
1269 (name "rename")
1270 (version "1.10")
1271 (source (origin
1272 (method url-fetch)
1273 (uri (string-append
1274 "mirror://cpan/authors/id/R/RM/RMBARKER/File-Rename-"
1275 version ".tar.gz"))
1276 (sha256
1277 (base32
1278 "137m8s06r4n038ivlr5r1d9a7q9l7shmwpvnyx053r9ndhvbnkh5"))))
1279 (build-system perl-build-system)
1280 (arguments
1281 `(#:phases
1282 (modify-phases %standard-phases
1283 (add-after 'install 'find-itself
1284 ;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
1285 (lambda* (#:key outputs #:allow-other-keys)
1286 (let* ((out (assoc-ref outputs "out"))
1287 (bin (string-append out "/bin")))
1288 (with-directory-excursion bin
1289 (for-each
1290 (lambda (program)
1291 (wrap-program program
1292 `("PERL5LIB" ":" prefix
1293 (,(string-append out "/lib/perl5/site_perl")))))
1294 (find-files "." ".*")))
1295 #t))))))
1296 (native-inputs
1297 `(("perl-module-build" ,perl-module-build)
1298 ("perl-test-pod" ,perl-test-pod)
1299 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1300 (home-page "https://metacpan.org/pod/distribution/File-Rename/rename.PL")
1301 (synopsis "Perl extension for renaming multiple files")
1302 (description
1303 "This package provides a Perl interface (@code{Perl::Rename}) as well
1304 as a command-line utility (@command{rename}) that can rename multiple files
1305 at once based on a Perl regular expression.")
1306 (license license:perl-license)))
1307
1308 (define-public rottlog
1309 (package
1310 (name "rottlog")
1311 (version "0.72.2")
1312 (source (origin
1313 (method url-fetch)
1314 (uri (string-append "mirror://gnu/rottlog/rottlog-"
1315 version ".tar.gz"))
1316 (sha256
1317 (base32
1318 "0751mb9l2f0jrk3vj6q8ilanifd121dliwk0c34g8k0dlzsv3kd7"))
1319 (modules '((guix build utils)))
1320 (snippet
1321 '(begin
1322 (substitute* "Makefile.in"
1323 (("-o \\$\\{LOG_OWN\\} -g \\$\\{LOG_GROUP\\}")
1324 ;; Don't try to chown root.
1325 "")
1326 (("mkdir -p \\$\\(ROTT_STATDIR\\)")
1327 ;; Don't attempt to create /var/lib/rottlog.
1328 "true"))
1329 #t))))
1330 (build-system gnu-build-system)
1331 (arguments
1332 `(#:configure-flags (list "ROTT_ETCDIR=/etc/rottlog" ;rc file location
1333 "--localstatedir=/var")
1334
1335 ;; Install example config files in OUT/etc.
1336 #:make-flags (list (string-append "ROTT_ETCDIR="
1337 (assoc-ref %outputs "out")
1338 "/etc"))
1339
1340 #:phases (modify-phases %standard-phases
1341 (add-after 'unpack 'patch-paths
1342 (lambda _
1343 (substitute* "rc/rc"
1344 (("/usr/sbin/sendmail") "sendmail"))
1345 #t))
1346 (add-after 'unpack 'fix-configure
1347 (lambda* (#:key inputs native-inputs #:allow-other-keys)
1348 ;; Replace outdated config.sub and config.guess:
1349 (for-each (lambda (file)
1350 (install-file
1351 (string-append
1352 (assoc-ref
1353 (or native-inputs inputs) "automake")
1354 "/share/automake-"
1355 ,(version-major+minor
1356 (package-version automake))
1357 "/" file) "."))
1358 '("config.sub" "config.guess"))
1359 #t))
1360 (add-after 'build 'set-packdir
1361 (lambda _
1362 ;; Set a default location for archived logs.
1363 (substitute* "rc/rc"
1364 (("packdir=\"\"")
1365 "packdir=\"/var/log\""))
1366 #t))
1367 (add-before 'install 'tweak-rc-weekly
1368 (lambda _
1369 (substitute* "rc/weekly"
1370 (("/bin/kill")
1371 (which "kill"))
1372 (("syslogd\\.pid")
1373 ;; The file is called 'syslog.pid' (no 'd').
1374 "syslog.pid"))
1375 #t))
1376 (add-after 'install 'install-info
1377 (lambda _
1378 (invoke "make" "install-info"))))))
1379 (native-inputs `(("texinfo" ,texinfo)
1380 ("automake" ,automake)
1381 ("util-linux" ,util-linux))) ; for 'cal'
1382 (home-page "https://www.gnu.org/software/rottlog/")
1383 (synopsis "Log rotation and management")
1384 (description
1385 "GNU Rot[t]log is a program for managing log files. It is used to
1386 automatically rotate out log files when they have reached a given size or
1387 according to a given schedule. It can also be used to automatically compress
1388 and archive such logs. Rot[t]log will mail reports of its activity to the
1389 system administrator.")
1390 (license license:gpl3+)))
1391
1392 (define-public sudo
1393 (package
1394 (name "sudo")
1395 (version "1.9.2")
1396 (source (origin
1397 (method url-fetch)
1398 (uri
1399 (list (string-append "https://www.sudo.ws/sudo/dist/sudo-"
1400 version ".tar.gz")
1401 (string-append "ftp://ftp.sudo.ws/pub/sudo/OLD/sudo-"
1402 version ".tar.gz")))
1403 (sha256
1404 (base32
1405 "05432672iilb7s52j9l9xzrlambb1wg3k7qvf5973i41y40x563w"))
1406 (modules '((guix build utils)))
1407 (snippet
1408 '(begin
1409 (delete-file-recursively "lib/zlib")
1410 #t))))
1411 (build-system gnu-build-system)
1412 (outputs (list "out" "python"))
1413 (arguments
1414 `(#:configure-flags
1415 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1416 "/share/doc/" ,name "-" ,version)
1417
1418 ;; XXX: Disable Python support when cross-compiling because
1419 ;; 'configure' tries to run 'python', which fails.
1420 ,(if (%current-target-system)
1421 "--disable-python"
1422 "--enable-python") ; for plug-ins written in ~
1423
1424 "--with-logpath=/var/log/sudo.log"
1425 "--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
1426 "--with-vardir=/var/db/sudo"
1427 "--with-iologdir=/var/log/sudo-io"
1428
1429 ;; 'visudo.c' expects _PATH_MV to be defined, but glibc doesn't
1430 ;; provide it.
1431 (string-append "CPPFLAGS=-D_PATH_MV='\""
1432 (assoc-ref %build-inputs "coreutils")
1433 "/bin/mv\"'"))
1434
1435 ;; Avoid non-determinism; see <http://bugs.gnu.org/21918>.
1436 #:parallel-build? #f
1437
1438 #:phases
1439 (modify-phases %standard-phases
1440 (add-before 'configure 'pre-configure
1441 (lambda _
1442 (substitute* "src/sudo_usage.h.in"
1443 ;; Do not capture 'configure' arguments since we would
1444 ;; unduly retain references, and also because the
1445 ;; CPPFLAGS above would close the string literal
1446 ;; prematurely.
1447 (("@CONFIGURE_ARGS@") "\"\""))
1448 (substitute* (find-files "." "Makefile\\.in")
1449 ;; Allow installation as non-root.
1450 (("-o [[:graph:]]+ -g [[:graph:]]+")
1451 "")
1452 ;; Don't try to create /etc/sudoers.
1453 (("^install: (.*)install-sudoers(.*)" _ before after)
1454 (string-append "install: " before after "\n"))
1455 ;; Don't try to create /run/sudo.
1456 (("\\$\\(DESTDIR\\)\\$\\(rundir\\)")
1457 "$(TMPDIR)/dummy")
1458 ;; Install example sudo{,_logsrvd}.conf to the right place.
1459 (("\\$\\(DESTDIR\\)\\$\\(sysconfdir\\)")
1460 "$(DESTDIR)/$(docdir)/examples")
1461 ;; Don't try to create /var/db/sudo.
1462 (("\\$\\(DESTDIR\\)\\$\\(vardir\\)")
1463 "$(TMPDIR)/dummy"))
1464
1465 ;; ‘Checking existing [/etc/]sudoers file for syntax errors’ is
1466 ;; not the task of the build system, and fails.
1467 (substitute* "plugins/sudoers/Makefile.in"
1468 (("^pre-install:" match)
1469 (string-append match "\ndisabled-" match)))
1470 #t))
1471 (add-after 'install 'separate-python-output
1472 (lambda* (#:key target outputs #:allow-other-keys)
1473 (let ((out (assoc-ref outputs "out"))
1474 (out:python (assoc-ref outputs "python")))
1475 (if target
1476 (mkdir-p (string-append out:python "/empty"))
1477 (for-each
1478 (lambda (file)
1479 (let ((old (string-append out "/" file))
1480 (new (string-append out:python "/" file)))
1481 (mkdir-p (dirname new))
1482 (rename-file old new)))
1483 (list "libexec/sudo/python_plugin.so"
1484 "libexec/sudo/python_plugin.la")))
1485 #t))))
1486
1487 ;; XXX: The 'testsudoers' test series expects user 'root' to exist, but
1488 ;; the chroot's /etc/passwd doesn't have it. Turn off the tests.
1489 #:tests? #f))
1490 (native-inputs
1491 `(("groff" ,groff)))
1492 (inputs
1493 `(("coreutils" ,coreutils)
1494 ("linux-pam" ,linux-pam)
1495 ,@(if (%current-target-system)
1496 '()
1497 `(("python" ,python)))
1498 ("zlib" ,zlib)))
1499 (home-page "https://www.sudo.ws/")
1500 (synopsis "Run commands as root")
1501 (description
1502 "Sudo (su \"do\") allows a system administrator to delegate authority to
1503 give certain users (or groups of users) the ability to run some (or all)
1504 commands as root or another user while providing an audit trail of the
1505 commands and their arguments.")
1506
1507 ;; See <http://www.sudo.ws/sudo/license.html>.
1508 (license license:x11)))
1509
1510 (define-public opendoas
1511 (package
1512 (name "opendoas")
1513 (version "6.6.1")
1514 (source (origin
1515 (method git-fetch)
1516 (uri (git-reference
1517 (url "https://github.com/Duncaen/OpenDoas")
1518 (commit (string-append "v" version))))
1519 (file-name (git-file-name name version))
1520 (sha256
1521 (base32
1522 "07kkc5729p654jrgfsc8zyhiwicgmq38yacmwfvay2b3gmy728zn"))))
1523 (build-system gnu-build-system)
1524 (arguments
1525 `(#:phases
1526 (modify-phases %standard-phases
1527 (replace 'configure
1528 ;; The configure script doesn't accept most of the default flags.
1529 (lambda* (#:key configure-flags #:allow-other-keys)
1530 ;; The configure script can only be told which compiler to use
1531 ;; through environment variables.
1532 (setenv "CC" ,(cc-for-target))
1533 (apply invoke "./configure" configure-flags)))
1534 (add-before 'install 'fix-makefile
1535 (lambda* (#:key outputs #:allow-other-keys)
1536 (substitute* "bsd.prog.mk"
1537 (("^\tchown.*$") ""))
1538 #t)))
1539 #:configure-flags
1540 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
1541 ;; Nothing is done with this value (yet?) but it's supported.
1542 ;; (string-append "--target=" (or ,(%current-target-system) ""))
1543 "--with-timestamp")
1544 ;; Compiler choice is not carried over from the configure script.
1545 #:make-flags
1546 (list (string-append "CC=" ,(cc-for-target)))
1547 #:tests? #f)) ; no test suite
1548 (native-inputs
1549 `(("bison" ,bison)))
1550 (home-page "https://github.com/Duncaen/OpenDoas")
1551 (synopsis "Portable version of OpenBSD's doas command")
1552 (description "Doas is a minimal replacement for the venerable sudo. It was
1553 initially written by Ted Unangst of the OpenBSD project to provide 95% of the
1554 features of sudo with a fraction of the codebase.")
1555 (license (list license:bsd-3 ; libbsd/*
1556 license:isc)))) ; everything else
1557
1558 (define-public wpa-supplicant-minimal
1559 (package
1560 (name "wpa-supplicant-minimal")
1561 (version "2.9")
1562 (source (origin
1563 (method url-fetch)
1564 (uri (string-append
1565 "https://w1.fi/releases/wpa_supplicant-"
1566 version ".tar.gz"))
1567 (sha256
1568 (base32
1569 "05qzak1mssnxcgdrafifxh9w86a4ha69qabkg4bsigk499xyxggw"))
1570 (modules '((guix build utils)))
1571 (snippet
1572 '(begin
1573 (substitute* "wpa_supplicant/defconfig"
1574 ;; Disable D-Bus to save ~14MiB on the closure size.
1575 (("^CONFIG_CTRL_IFACE_DBUS" line _)
1576 (string-append "#" line)))
1577 #t))))
1578 (build-system gnu-build-system)
1579 (arguments
1580 '(#:phases
1581 (modify-phases %standard-phases
1582 (replace 'configure
1583 (lambda* (#:key outputs #:allow-other-keys)
1584 (chdir "wpa_supplicant")
1585 (copy-file "defconfig" ".config")
1586 (let ((port (open-file ".config" "al")))
1587 (display "
1588 CONFIG_DEBUG_SYSLOG=y
1589
1590 CONFIG_TLS=openssl
1591
1592 CONFIG_DRIVER_NL80211=y
1593 CFLAGS += $(shell pkg-config libnl-3.0 --cflags)
1594 CONFIG_LIBNL32=y
1595 CONFIG_READLINE=y\n" port)
1596 (close-port port))
1597 #t))
1598 (add-after 'install 'install-documentation
1599 (lambda* (#:key outputs #:allow-other-keys)
1600 (let* ((out (assoc-ref outputs "out"))
1601 (doc (string-append out "/share/doc/wpa-supplicant"))
1602 (man (string-append out "/share/man"))
1603 (man5 (string-append man "/man5"))
1604 (man8 (string-append man "/man8")))
1605 (define (copy-man-page target)
1606 (lambda (file)
1607 (install-file file target)))
1608
1609 (mkdir-p man5) (mkdir man8)
1610 (for-each (copy-man-page man5)
1611 (find-files "doc/docbook" "\\.5"))
1612 (for-each (copy-man-page man8)
1613 (find-files "doc/docbook" "\\.8"))
1614
1615 ;; wpa_supplicant.conf(5) does not explain all configuration
1616 ;; options but refers to the example config file, so install it
1617 ;; along with READMEs.
1618 (for-each (lambda (file)
1619 (install-file file doc))
1620 '("README" "README-DPP" "README-HS20"
1621 "README-P2P" "README-WPS"
1622 "wpa_supplicant.conf"))
1623 #t))))
1624
1625 #:make-flags (list "CC=gcc"
1626 (string-append "BINDIR=" (assoc-ref %outputs "out")
1627 "/sbin")
1628 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1629 "/lib"))
1630 #:tests? #f))
1631 (inputs
1632 `(("readline" ,readline)
1633 ("libnl" ,libnl)
1634 ("openssl" ,openssl)))
1635 (native-inputs
1636 `(("pkg-config" ,pkg-config)))
1637 (home-page "https://w1.fi/wpa_supplicant/")
1638 (synopsis "Connecting to WPA and WPA2-protected wireless networks")
1639 (description
1640 "wpa_supplicant is a WPA Supplicant with support for WPA and WPA2 (IEEE
1641 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA component that is used in
1642 the client stations. It implements key negotiation with a WPA Authenticator
1643 and it controls the roaming and IEEE 802.11 authentication/association of the
1644 WLAN driver.
1645
1646 This package provides the @code{wpa_supplicant} daemon and the @code{wpa_cli}
1647 command.")
1648
1649 ;; In practice, this is linked against Readline, which makes it GPLv3+.
1650 (license license:bsd-3)
1651
1652 (properties `((cpe-name . "wpa_supplicant")))))
1653
1654 (define-public wpa-supplicant
1655 (package (inherit wpa-supplicant-minimal)
1656 (name "wpa-supplicant")
1657 (inputs `(("dbus" ,dbus)
1658 ,@(package-inputs wpa-supplicant-minimal)))
1659 (arguments
1660 (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal)
1661 ((#:phases phases)
1662 `(modify-phases ,phases
1663 (add-after 'configure 'configure-for-dbus
1664 (lambda _
1665 (let ((port (open-file ".config" "al")))
1666 (display "
1667 CONFIG_CTRL_IFACE_DBUS_NEW=y
1668 CONFIG_CTRL_IFACE_DBUS_INTRO=y\n" port)
1669 (close-port port))
1670 #t))
1671 (add-after 'install-documentation 'install-dbus-conf
1672 (lambda* (#:key outputs #:allow-other-keys)
1673 (let* ((out (assoc-ref outputs "out"))
1674 (dir (string-append out "/etc/dbus-1/system.d")))
1675 (mkdir-p dir)
1676 (copy-file "dbus/dbus-wpa_supplicant.conf"
1677 (string-append dir "/wpa_supplicant.conf")))
1678 #t))))))))
1679
1680 (define-public wpa-supplicant-gui
1681 (package
1682 (inherit wpa-supplicant)
1683 (name "wpa-supplicant-gui")
1684 (inputs `(("qtbase" ,qtbase)
1685 ("qtsvg" ,qtsvg)
1686 ,@(package-inputs wpa-supplicant)))
1687 (native-inputs
1688 ;; For icons.
1689 `(("imagemagick" ,imagemagick)
1690 ("inkscape" ,inkscape)
1691 ,@(package-native-inputs wpa-supplicant)))
1692 (arguments
1693 `(#:phases (modify-phases %standard-phases
1694 (add-after 'unpack 'chdir
1695 (lambda _
1696 (chdir "wpa_supplicant/wpa_gui-qt4")
1697 #t))
1698 (delete 'configure)
1699 (replace 'build
1700 (lambda _
1701 (invoke "qmake" "wpa_gui.pro")
1702 (invoke "make" "-j" (number->string (parallel-job-count)))
1703 (invoke "make" "-C" "icons")))
1704 (replace 'install
1705 (lambda* (#:key inputs outputs #:allow-other-keys)
1706 (let ((out (assoc-ref outputs "out"))
1707 (qt '("qtbase" "qtsvg")))
1708 (install-file "wpa_gui" (string-append out "/bin"))
1709 (install-file "wpa_gui.desktop"
1710 (string-append out "/share/applications"))
1711 (copy-recursively "icons/hicolor"
1712 (string-append out "/share/icons/hicolor"))
1713 (wrap-program (string-append out "/bin/wpa_gui")
1714 `("QT_PLUGIN_PATH" ":" prefix
1715 ,(map (lambda (label)
1716 (string-append (assoc-ref inputs label)
1717 "/lib/qt5/plugins/"))
1718 qt)))
1719 #t))))))
1720 (synopsis "Graphical user interface for WPA supplicant")))
1721
1722 (define-public hostapd
1723 (package
1724 (name "hostapd")
1725 (version "2.9")
1726 (source (origin
1727 (method url-fetch)
1728 (uri (string-append "https://w1.fi/releases/hostapd-" version
1729 ".tar.gz"))
1730 (sha256
1731 (base32
1732 "1mrbvg4v7vm7mknf0n29mf88k3s4a4qj6r4d51wq8hmjj1m7s7c8"))))
1733 (build-system gnu-build-system)
1734 (arguments
1735 '(#:phases
1736 (modify-phases %standard-phases
1737 (replace 'configure
1738 (lambda* (#:key outputs #:allow-other-keys)
1739 ;; This is mostly copied from 'wpa-supplicant' above.
1740 (chdir "hostapd")
1741 (copy-file "defconfig" ".config")
1742 (let ((port (open-file ".config" "al")))
1743 (display "
1744 CONFIG_LIBNL32=y
1745 CONFIG_IEEE80211R=y
1746 CONFIG_IEEE80211N=y
1747 CONFIG_IEEE80211AC=y\n" port)
1748 (close-port port))
1749 #t))
1750 (add-after 'install 'install-man-pages
1751 (lambda* (#:key outputs #:allow-other-keys)
1752 (let* ((out (assoc-ref outputs "out"))
1753 (man (string-append out "/share/man"))
1754 (man1 (string-append man "/man1"))
1755 (man8 (string-append man "/man8")))
1756 (define (copy-man-page target)
1757 (lambda (file)
1758 (install-file file target)))
1759
1760 (for-each (copy-man-page man1)
1761 (find-files "." "\\.1"))
1762 (for-each (copy-man-page man8)
1763 (find-files "." "\\.8"))
1764 #t))))
1765
1766 #:make-flags (list "CC=gcc"
1767 (string-append "BINDIR=" (assoc-ref %outputs "out")
1768 "/sbin")
1769 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1770 "/lib"))
1771 #:tests? #f))
1772 (native-inputs `(("pkg-config" ,pkg-config)))
1773
1774 ;; There's an optional dependency on SQLite.
1775 (inputs `(("openssl" ,openssl)
1776 ("libnl" ,libnl)))
1777 (home-page "https://w1.fi/hostapd/")
1778 (synopsis "Daemon for Wi-Fi access points and authentication servers")
1779 (description
1780 "hostapd is a user-space daemon for WiFi access points and authentication
1781 servers. It implements IEEE 802.11 access point management, IEEE
1782 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS
1783 authentication server.")
1784
1785 ;; Same license as wpa_supplicant.
1786 (license license:bsd-3)))
1787
1788 (define-public wakelan
1789 (package
1790 (name "wakelan")
1791 (version "1.1")
1792 (source (origin
1793 (method url-fetch)
1794 (uri (string-append
1795 "ftp://ftp.gwdg.de/pub/linux/metalab/system/network/misc/wakelan-"
1796 version ".tar.gz"))
1797 (sha256
1798 (base32
1799 "0vydqpf44146ir6k87gmqaq6xy66xhc1gkr3nsd7jj3nhy7ypx9x"))))
1800 (build-system gnu-build-system)
1801 (arguments
1802 '(#:phases
1803 (modify-phases %standard-phases
1804 (replace 'configure
1805 (lambda* (#:key outputs #:allow-other-keys)
1806 (let ((out (assoc-ref outputs "out")))
1807 (mkdir-p (string-append out "/bin"))
1808 (mkdir-p (string-append out "/share/man/man1"))
1809
1810 ;; It's an old configure script that doesn't understand
1811 ;; the extra options we pass.
1812 (setenv "CONFIG_SHELL" (which "bash"))
1813 (invoke "./configure"
1814 (string-append "--prefix=" out)
1815 (string-append "--mandir=" out
1816 "/share/man"))))))
1817 #:tests? #f))
1818 (home-page "https://www.kernel.org") ; really, no home page
1819 (synopsis "Send a wake-on-LAN packet")
1820 (description
1821 "WakeLan broadcasts a properly formatted UDP packet across the local area
1822 network, which causes enabled computers to power on.")
1823 (license license:gpl2+)))
1824
1825 (define-public dmidecode
1826 (package
1827 (name "dmidecode")
1828 (version "3.2")
1829 (source (origin
1830 (method url-fetch)
1831 (uri (string-append
1832 "mirror://savannah/dmidecode/dmidecode-"
1833 version ".tar.xz"))
1834 (sha256
1835 (base32
1836 "1pcfhcgs2ifdjwp7amnsr3lq95pgxpr150bjhdinvl505px0cw07"))))
1837 (build-system gnu-build-system)
1838 (arguments
1839 '(#:phases (modify-phases %standard-phases (delete 'configure))
1840 #:tests? #f ; no 'check' target
1841 #:make-flags (list (string-append "prefix="
1842 (assoc-ref %outputs "out")))))
1843 (home-page "https://www.nongnu.org/dmidecode/")
1844 (synopsis "Read hardware information from the BIOS")
1845 (description
1846 "Dmidecode reports information about your system's hardware as described
1847 in your system BIOS according to the SMBIOS/DMI standard. This typically
1848 includes system manufacturer, model name, serial number, BIOS version, asset
1849 tag as well as a lot of other details of varying level of interest and
1850 reliability depending on the manufacturer. This will often include usage
1851 status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory
1852 module slots, and the list of I/O ports (e.g. serial, parallel, USB).")
1853 (license license:gpl2+)))
1854
1855 (define-public acpica
1856 (package
1857 (name "acpica")
1858 (version "20200717")
1859 (source (origin
1860 (method url-fetch)
1861 (uri (string-append
1862 "https://acpica.org/sites/acpica/files/acpica-unix2-"
1863 version ".tar.gz"))
1864 (sha256
1865 (base32
1866 "0jyy71szjr40c8v40qqw6yh3gfk8d6sl3nay69zrn5d88i3r0jca"))))
1867 (build-system gnu-build-system)
1868 (native-inputs `(("flex" ,flex)
1869 ("bison" ,bison)))
1870 (arguments
1871 '(#:make-flags (list (string-append "PREFIX=" %output)
1872 "CC=gcc"
1873 "HOST=_LINUX"
1874 "OPT_CFLAGS=-Wall -fno-strict-aliasing")
1875 #:tests? #f ; no 'check' target
1876 #:phases (modify-phases %standard-phases (delete 'configure))))
1877 (home-page "https://acpica.org/")
1878 (synopsis "Tools for the development and debugging of ACPI tables")
1879 (description
1880 "The @acronym{ACPICA, ACPI Component Architecture} project provides an
1881 OS-independent reference implementation of the @acronym{ACPI, Advanced
1882 Configuration and Power Interface} specification. ACPICA code contains those
1883 portions of ACPI meant to be directly integrated into the host OS as a
1884 kernel-resident subsystem, and a small set of tools to assist in developing and
1885 debugging ACPI tables.
1886
1887 This package contains only the user-space tools needed for ACPI table
1888 development, not the kernel implementation of ACPI.")
1889 (license license:gpl2))) ; dual GPLv2/ACPICA Licence
1890
1891 (define-public s-tui
1892 (package
1893 (name "s-tui")
1894 (version "1.0.2")
1895 (source
1896 (origin
1897 (method url-fetch)
1898 (uri (pypi-uri "s-tui" version))
1899 (sha256
1900 (base32 "0xkfdaz5np21311ffdvhks58155qby8j8scbcixhvjd913pj66qx"))))
1901 (build-system python-build-system)
1902 (inputs
1903 `(("python-psutil" ,python-psutil)
1904 ("python-urwid" ,python-urwid)))
1905 (home-page "https://github.com/amanusk/s-tui")
1906 (synopsis "Interactive terminal stress test and monitoring tool")
1907 (description
1908 "The Stress Terminal UI displays graphs of the CPU frequency,
1909 utilization, temperature and power.")
1910 (license license:gpl2+)))
1911
1912 (define-public stress
1913 (package
1914 (name "stress")
1915 (version "1.0.4")
1916 (source (origin
1917 (method url-fetch)
1918 (uri (string-append "mirror://debian/pool/main/s/stress/stress_"
1919 version ".orig.tar.gz"))
1920 (sha256
1921 (base32
1922 "0nw210jajk38m3y7h8s130ps2qsbz7j75wab07hi2r3hlz14yzh5"))))
1923 (build-system gnu-build-system)
1924 (home-page "https://packages.debian.org/sid/stress")
1925 (synopsis "Impose load on and stress test a computer system")
1926 (description
1927 "Stress is a tool that imposes a configurable amount of CPU, memory, I/O,
1928 or disk stress on a POSIX-compliant operating system and reports any errors it
1929 detects.
1930
1931 Stress is not a benchmark. It is a tool used by system administrators to
1932 evaluate how well their systems will scale, by kernel programmers to evaluate
1933 perceived performance characteristics, and by systems programmers to expose
1934 the classes of bugs which only or more frequently manifest themselves when the
1935 system is under heavy load.")
1936 (license license:gpl2+)))
1937
1938 (define-public detox
1939 (package
1940 (name "detox")
1941 (version "1.3.0")
1942 (source (origin
1943 (method git-fetch)
1944 (uri (git-reference
1945 (url "https://github.com/dharple/detox")
1946 (commit (string-append "v" version))))
1947 (file-name (git-file-name name version))
1948 (sha256
1949 (base32
1950 "1dd608c7g65s5lj02cddvani3q9kzirddgkjqa22ap9d4f8b9xgr"))))
1951 (build-system gnu-build-system)
1952 (native-inputs
1953 `(("autoconf" ,autoconf)
1954 ("automake" ,automake)
1955 ("flex" ,flex)))
1956 (arguments
1957 `(#:tests? #f ;no 'check' target
1958 #:phases (modify-phases %standard-phases
1959 (add-after 'unpack 'delete-configure
1960 ;; The "configure" script is present, but otherwise the
1961 ;; project is not bootstrapped: missing install-sh and
1962 ;; Makefile.in, so delete it so the bootstrap phase will
1963 ;; take over.
1964 (lambda _ (delete-file "configure") #t)))))
1965 (home-page "https://github.com/dharple/detox")
1966 (synopsis "Clean up file names")
1967 (description
1968 "Detox is a program that renames files to make them easier to work with
1969 under Unix and related operating systems. Spaces and various other unsafe
1970 characters (such as \"$\") get replaced with \"_\". ISO 8859-1 (Latin-1)
1971 characters can be replaced as well, as can UTF-8 characters.")
1972 (license license:bsd-3)))
1973
1974 (define-public testdisk
1975 (package
1976 (name "testdisk")
1977 (version "7.1")
1978 (source (origin
1979 (method url-fetch)
1980 (uri (string-append "https://www.cgsecurity.org/testdisk-"
1981 version ".tar.bz2"))
1982 (sha256
1983 (base32
1984 "1zlh44w67py416hkvw6nrfmjickc2d43v51vcli5p374d5sw84ql"))))
1985 (build-system gnu-build-system)
1986 (inputs
1987 `(("ntfs-3g" ,ntfs-3g)
1988 ("util-linux" ,util-linux "lib")
1989 ("openssl" ,openssl)
1990 ;; FIXME: add reiserfs.
1991 ("zlib" ,zlib)
1992 ("e2fsprogs" ,e2fsprogs)
1993 ("libjpeg" ,libjpeg-turbo)
1994 ("ncurses" ,ncurses)))
1995 (home-page "https://www.cgsecurity.org/wiki/TestDisk")
1996 (synopsis "Data recovery tool")
1997 (description
1998 "TestDisk is a program for data recovery, primarily designed to help
1999 recover lost partitions and/or make non-booting disks bootable again.")
2000 (license license:gpl2+)))
2001
2002 (define-public tree
2003 (package
2004 (name "tree")
2005 (version "1.8.0")
2006 (source (origin
2007 (method url-fetch)
2008 (uri (string-append
2009 "http://mama.indstate.edu/users/ice/tree/src/tree-"
2010 version ".tgz"))
2011 (sha256
2012 (base32 "1hmpz6k0mr6salv0nprvm1g0rdjva1kx03bdf1scw8a38d5mspbi"))))
2013 (build-system gnu-build-system)
2014 (arguments
2015 '(#:phases (modify-phases %standard-phases (delete 'configure))
2016 #:tests? #f ; no check target
2017 #:make-flags (let ((out (assoc-ref %outputs "out")))
2018 (list (string-append "prefix=" out)))))
2019 (synopsis "Recursively list the contents of a directory")
2020 (description
2021 "Tree is a recursive directory listing command that produces a depth
2022 indented listing of files, which is colorized ala dircolors if the LS_COLORS
2023 environment variable is set and output is to tty.")
2024 (home-page "http://mama.indstate.edu/users/ice/tree/")
2025 (license license:gpl2+)))
2026
2027 (define-public direvent
2028 (package
2029 (name "direvent")
2030 (version "5.2")
2031 (source (origin
2032 (method url-fetch)
2033 (uri (string-append "mirror://gnu/direvent/direvent-"
2034 version ".tar.gz"))
2035 (sha256
2036 (base32
2037 "0m9vi01b1km0cpknflyzsjnknbava0s1n6393b2bpjwyvb6j5613"))
2038 (modules '((guix build utils)))
2039 (snippet '(begin
2040 (substitute* "tests/testsuite"
2041 (("#![[:blank:]]?/bin/sh")
2042 "#!$SHELL"))
2043 #t))))
2044 (build-system gnu-build-system)
2045 (arguments
2046 '(#:phases
2047 (modify-phases %standard-phases
2048 (add-before 'build 'patch-/bin/sh
2049 (lambda* (#:key inputs #:allow-other-keys)
2050 ;; Use the right shell when executing the watcher and
2051 ;; user-provided shell commands.
2052 (let ((bash (assoc-ref inputs "bash")))
2053 (substitute* '("src/direvent.c" "src/progman.c")
2054 (("\"/bin/sh\"")
2055 (string-append "\"" bash "/bin/sh\"")))
2056
2057 ;; Adjust the 'shell.at' test accordingly.
2058 (substitute* "tests/testsuite"
2059 (("SHELL=/bin/sh")
2060 (string-append "SHELL=" bash "/bin/sh")))
2061
2062 #t))))))
2063 (home-page "https://www.gnu.org.ua/software/direvent/")
2064 (synopsis "Daemon to monitor directories for events such as file removal")
2065 (description
2066 "A daemon that monitors directories for events, such as creating,
2067 deleting or modifying files. It can monitor different sets of directories for
2068 different events. When an event is detected, direvent calls a specified
2069 external program with information about the event, such as the location
2070 within the file system where it occurred. Thus, \"direvent\" provides an
2071 easy way to react immediately if given files undergo changes, for example, to
2072 track changes in important system configuration files.")
2073 (license license:gpl3+)))
2074
2075 (define-public libcap-ng
2076 (package
2077 (name "libcap-ng")
2078 (version "0.7.11")
2079 (source (origin
2080 (method url-fetch)
2081 (uri (string-append
2082 "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-"
2083 version ".tar.gz"))
2084 (sha256
2085 (base32
2086 "1s8akhnnazk0b5c6z5i3x54rjb26p8pz2wdl1m21ml3231qmr0c5"))))
2087 (build-system gnu-build-system)
2088 (arguments
2089 `(#:configure-flags
2090 (list "--without-python")))
2091 (home-page "https://people.redhat.com/sgrubb/libcap-ng/")
2092 (synopsis "Library for more easily working with POSIX capabilities")
2093 (description
2094 "The libcap-ng library is intended to make programming with POSIX
2095 capabilities easier than the traditional libcap library. It includes
2096 utilities that can analyse all currently running applications and print out
2097 any capabilities and whether or not it has an open ended bounding set. The
2098 included utilities are designed to let admins and developers spot apps from
2099 various ways that may be running with too much privilege.")
2100 ;; The library is lgpl2.1+, but also ships some utils which are gpl2+.
2101 (license (list license:lgpl2.1+ license:gpl2+))))
2102
2103 (define-public smartmontools
2104 (package
2105 (name "smartmontools")
2106 (version "7.1")
2107 (source (origin
2108 (method url-fetch)
2109 (uri (string-append
2110 "mirror://sourceforge/smartmontools/smartmontools/"
2111 version "/smartmontools-" version ".tar.gz"))
2112 (sha256
2113 (base32
2114 "0imqb7ka4ia5573w8rnpck571pjjc9698pdjcapy9cfyk4n4swrz"))))
2115 (build-system gnu-build-system)
2116 (inputs `(("libcap-ng" ,libcap-ng)))
2117 (home-page "https://www.smartmontools.org/")
2118 (synopsis "S.M.A.R.T. harddisk control and monitoring tools")
2119 (description
2120 "The smartmontools package contains utility programs to control and
2121 monitor storage systems using the Self-Monitoring, Analysis and Reporting
2122 Technology System (@dfn{S.M.A.R.T.}) built into most modern ATA and SCSI hard
2123 disks. In many cases, these utilities will provide advanced warning of disk
2124 degradation and failure.")
2125 (license license:gpl2+)))
2126
2127 (define-public fdupes
2128 (package
2129 (name "fdupes")
2130 (version "1.6.1")
2131 (source
2132 (origin
2133 (method git-fetch)
2134 (uri (git-reference
2135 (url "https://github.com/adrianlopezroche/fdupes")
2136 (commit (string-append "v" version))))
2137 (file-name (git-file-name name version))
2138 (sha256
2139 (base32 "19b6vqblddaw8ccw4sn0qsqzbswlhrz8ia6n4m3hymvcxn8skpz9"))))
2140 (build-system gnu-build-system)
2141 (arguments
2142 '(#:phases (modify-phases %standard-phases
2143 (delete 'configure))
2144 #:tests? #f ; no 'check' target
2145 #:make-flags (list "CC=gcc"
2146 (string-append "PREFIX="
2147 (assoc-ref %outputs "out")))))
2148 (home-page "https://github.com/adrianlopezroche/fdupes")
2149 (synopsis "Identify duplicate files")
2150 (description
2151 "fdupes is a program for identifying duplicate files residing within
2152 specified directories.")
2153 (license license:expat)))
2154
2155 (define-public graphios
2156 (package
2157 (name "graphios")
2158 (version "2.0.3")
2159 (source
2160 (origin
2161 (method url-fetch)
2162 (uri (pypi-uri "graphios" version))
2163 (sha256
2164 (base32
2165 "1h87hvc315wg6lklbf4l7csd3n5pgljwrfli1p3nasdi0izgn66i"))))
2166 (build-system python-build-system)
2167 (arguments
2168 ;; Be warned: Building with Python 3 succeeds, but the build process
2169 ;; throws a syntax error that is ignored.
2170 `(#:python ,python-2
2171 #:phases
2172 (modify-phases %standard-phases
2173 (add-before 'build 'fix-setup.py
2174 (lambda* (#:key outputs #:allow-other-keys)
2175 ;; Fix hardcoded, unprefixed file names.
2176 (let ((out (assoc-ref outputs "out")))
2177 (substitute* '("setup.py")
2178 (("/etc") (string-append out "/etc"))
2179 (("/usr") out)
2180 (("distro_ver = .*") "distro_ver = ''"))
2181 #t))))))
2182 (home-page "https://github.com/shawn-sterling/graphios")
2183 (synopsis "Emit Nagios metrics to Graphite, Statsd, and Librato")
2184 (description
2185 "Graphios is a script to emit nagios perfdata to various upstream metrics
2186 processing and time-series systems. It's currently compatible with Graphite,
2187 Statsd, Librato and InfluxDB. Graphios can emit Nagios metrics to any number
2188 of supported upstream metrics systems simultaneously.")
2189 (license license:gpl2+)))
2190
2191 (define-public ansible
2192 (package
2193 (name "ansible")
2194 (version "2.9.11")
2195 (source
2196 (origin
2197 (method url-fetch)
2198 (uri (pypi-uri "ansible" version))
2199 (sha256
2200 (base32 "1c9ayh61qwasgncmlw7rjx5r4g5n2cpg1d5blgn53zg7xhrx1yc8"))))
2201 (build-system python-build-system)
2202 (native-inputs
2203 `(("python-bcrypt" ,python-bcrypt)
2204 ("python-pynacl" ,python-pynacl)
2205 ("python-httplib2" ,python-httplib2)
2206 ("python-passlib" ,python-passlib)
2207 ("python-nose" ,python-nose)
2208 ("python-mock" ,python-mock)
2209 ("python-jinja2" ,python-jinja2)
2210 ("python-pyyaml" ,python-pyyaml)
2211 ("python-paramiko" ,python-paramiko)))
2212 (inputs
2213 `(("python-cryptography" ,python-cryptography)
2214 ("python-jinja2" ,python-jinja2)
2215 ("python-pyyaml" ,python-pyyaml)
2216 ("python-paramiko" ,python-paramiko)))
2217 (arguments
2218 `(#:phases
2219 (modify-phases %standard-phases
2220 ;; Several ansible commands (ansible-config, ansible-console, etc.)
2221 ;; are just symlinks to a single ansible executable. The ansible
2222 ;; executable behaves differently based on the value of
2223 ;; sys.argv[0]. This does not work well with our wrap phase, and
2224 ;; therefore the following two phases are required as a workaround.
2225 (add-after 'unpack 'hide-wrapping
2226 (lambda _
2227 ;; Overwrite sys.argv[0] to hide the wrapper script from it.
2228 (substitute* "bin/ansible"
2229 (("import traceback" all)
2230 (string-append all "
2231 import re
2232 sys.argv[0] = re.sub(r'\\.([^/]*)-real$', r'\\1', sys.argv[0])
2233 ")))
2234 #t))
2235 (add-after 'install 'replace-symlinks
2236 (lambda* (#:key outputs #:allow-other-keys)
2237 ;; Replace symlinks with duplicate copies of the ansible
2238 ;; executable.
2239 (let ((out (assoc-ref outputs "out")))
2240 (for-each
2241 (lambda (subprogram)
2242 (delete-file (string-append out "/bin/ansible-" subprogram))
2243 (copy-file (string-append out "/bin/ansible")
2244 (string-append out "/bin/ansible-" subprogram)))
2245 (list "config" "console" "doc" "galaxy"
2246 "inventory" "playbook" "pull" "vault")))
2247 #t)))))
2248 (home-page "https://www.ansible.com/")
2249 (synopsis "Radically simple IT automation")
2250 (description "Ansible is a radically simple IT automation system. It
2251 handles configuration management, application deployment, cloud provisioning,
2252 ad hoc task execution, and multinode orchestration---including trivializing
2253 things like zero-downtime rolling updates with load balancers.")
2254 (license license:gpl3+)))
2255
2256 (define-public debops
2257 (package
2258 (name "debops")
2259 (version "1.1.0")
2260 (source
2261 (origin
2262 (method git-fetch)
2263 (uri (git-reference
2264 (url "https://github.com/debops/debops")
2265 (commit (string-append "v" version))))
2266 (file-name (git-file-name name version))
2267 (sha256
2268 (base32 "052b2dykdn35pdpn9s4prawl6nl6yzih8nyf54hpvhpisvjrm1v5"))
2269 (patches
2270 (search-patches "debops-constants-for-external-program-names.patch"
2271 "debops-debops-defaults-fall-back-to-less.patch"))))
2272 (build-system python-build-system)
2273 (native-inputs
2274 `(("git" ,git)))
2275 (inputs
2276 `(("ansible" ,ansible)
2277 ("encfs" ,encfs)
2278 ("fuse" ,fuse)
2279 ("util-linux" ,util-linux) ;; for umount
2280 ("findutils" ,findutils)
2281 ("gnupg" ,gnupg)
2282 ("which" ,which)))
2283 (propagated-inputs
2284 `(("python-future" ,python-future)
2285 ("python-distro" ,python-distro)))
2286 (arguments
2287 `(#:tests? #f
2288 #:phases
2289 (modify-phases %standard-phases
2290 (add-after 'unpack 'nuke-debops-update
2291 (lambda _
2292 (chmod "bin/debops-update" #o755) ; FIXME work-around git-fetch issue
2293 (with-output-to-file "bin/debops-update"
2294 (lambda ()
2295 (format #t "#!/bin/sh
2296 echo 'debops is installed via guix. guix-update is useless in this case.
2297 Please use `guix package -u debops` instead.'")))
2298 #t))
2299 ;; patch shebangs only in actuall scripts, not in files included in
2300 ;; roles (which are to be delivered to the targte systems)
2301 (delete `patch-generated-file-shebangs)
2302 (replace 'patch-source-shebangs
2303 (lambda _
2304 (for-each patch-shebang
2305 (find-files "bin"
2306 (lambda (file stat)
2307 ;; Filter out symlinks.
2308 (eq? 'regular (stat:type stat)))
2309 #:stat lstat))))
2310 (add-after 'unpack 'fix-paths
2311 (lambda _
2312 (define (substitute-program-names file)
2313 ;; e.g. ANSIBLE_PLAYBOOK = '/gnu/store/…/bin/ansible-playbook'
2314 (for-each
2315 (lambda (name)
2316 (let ((varname (string-upcase
2317 (string-map
2318 (lambda (c) (if (char=? c #\-) #\_ c))
2319 name))))
2320 (substitute* file
2321 (((string-append "^(" varname " = )'.*'") line prefix)
2322 (string-append prefix "'" (which name) "'")))))
2323 '("ansible-playbook" "encfs" "find" "fusermount"
2324 "umount" "gpg" "ansible" "which")))
2325 (for-each substitute-program-names
2326 '("bin/debops"
2327 "bin/debops-padlock"
2328 "bin/debops-task"
2329 "debops/__init__.py"
2330 "debops/cmds/__init__.py"))
2331 #t)))))
2332 (home-page "https://www.debops.org/")
2333 (synopsis "Collection of general-purpose Ansible roles")
2334 (description "The Ansible roles provided by that can be used to manage
2335 Debian or Ubuntu hosts. In addition, a default set of Ansible playbooks can
2336 be used to apply the provided roles in a controlled way, using Ansible
2337 inventory groups.
2338
2339 The roles are written with a high customization in mind, which can be done
2340 using Ansible inventory. This way the role and playbook code can be shared
2341 between multiple environments, with different configuration in to each one.
2342
2343 Services can be managed on a single host, or spread between multiple hosts.
2344 DebOps provides support for different SQL and NoSQL databases, web servers,
2345 programming languages and specialized applications useful in a data center
2346 environment or in a cluster. The project can also be used to deploy
2347 virtualization environments using KVM/libvirt, Docker or LXC technologies to
2348 manage virtual machines and/or containers.")
2349 (license license:gpl3+)))
2350
2351 (define-public emacs-ansible-doc
2352 (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
2353 (package
2354 (name "emacs-ansible-doc")
2355 (version (git-version "0.4" "1" commit))
2356 (source
2357 (origin
2358 (method git-fetch)
2359 (uri (git-reference
2360 (url "https://github.com/lunaryorn/ansible-doc.el")
2361 (commit commit)))
2362 (file-name (git-file-name name version))
2363 (sha256
2364 (base32
2365 "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
2366 (build-system emacs-build-system)
2367 ;; Unmaintained by upstream.
2368 (home-page "https://github.com/lunaryorn/ansible-doc.el")
2369 (synopsis "Ansible documentation for Emacs")
2370 (description
2371 "This package provides an Ansible documentation for GNU Emacs.
2372
2373 @code{ansible-doc} allows you to view the documentation of an Ansible
2374 module and @code{ansible-doc-mode} minor mode adds documentation
2375 lookup to YAML Mode. You could enable the mode with @code{(add-hook
2376 'yaml-mode-hook #'ansible-doc-mode)}.")
2377 (license license:gpl3+))))
2378
2379 (define-public cpulimit
2380 (package
2381 (name "cpulimit")
2382 (version "0.2")
2383 (source
2384 (origin
2385 (method git-fetch)
2386 (uri (git-reference
2387 (url "https://github.com/opsengine/cpulimit")
2388 (commit (string-append "v" version))))
2389 (file-name (git-file-name name version))
2390 (sha256
2391 (base32 "1dz045yhcsw1rdamzpz4bk8mw888in7fyqk1q1b3m1yk4pd1ahkh"))))
2392 (build-system gnu-build-system)
2393 (arguments
2394 `(#:phases (modify-phases %standard-phases
2395 (delete 'configure)
2396 (replace 'build
2397 (lambda _
2398 (invoke "make" "CC=gcc" "-Csrc")))
2399 (replace 'check
2400 (lambda _
2401 (invoke "make" "CC=gcc" "-Ctests")))
2402 (replace 'install
2403 (lambda* (#:key outputs #:allow-other-keys)
2404 (let* ((out (assoc-ref outputs "out"))
2405 (bin (string-append out "/bin")))
2406 (install-file "src/cpulimit" bin))
2407 #t)))))
2408 (home-page "https://github.com/opsengine/cpulimit")
2409 (synopsis "Limit CPU usage")
2410 (description
2411 "Cpulimit limits the CPU usage of a process. It does not change the nice
2412 value or other scheduling priority settings, but the real CPU usage, and is
2413 able to adapt itself dynamically to the overall system load. Children
2414 processes and threads of the specified process may optionally share the same
2415 limits.")
2416 (license license:gpl2+)))
2417
2418 (define-public autojump
2419 (package
2420 (name "autojump")
2421 (version "22.5.3")
2422 (source
2423 (origin
2424 (method git-fetch)
2425 (uri (git-reference
2426 (url "https://github.com/wting/autojump")
2427 (commit (string-append "release-v" version))))
2428 (file-name (git-file-name name version))
2429 (sha256
2430 (base32 "1rgpsh70manr2dydna9da4x7p8ahii7dgdgwir5fka340n1wrcws"))))
2431 (build-system gnu-build-system)
2432 (native-inputs ; for tests
2433 `(("python-mock" ,python-mock)
2434 ("python-pytest" ,python-pytest)))
2435 (inputs
2436 `(("python" ,python-wrapper)))
2437 (arguments
2438 `(#:phases
2439 (modify-phases %standard-phases
2440 (add-after 'unpack 'make-git-checkout-writable
2441 ;; ‘install.py’ modifies files before installing them.
2442 (lambda _
2443 (for-each make-file-writable (find-files "."))
2444 #t))
2445 (delete 'configure)
2446 (delete 'build)
2447 (replace 'check
2448 (lambda _
2449 (invoke "python" "tests/unit/autojump_utils_test.py")))
2450 (replace 'install
2451 (lambda* (#:key outputs #:allow-other-keys)
2452 (setenv "SHELL" (which "bash"))
2453 (invoke "python" "install.py"
2454 (string-append "--destdir="
2455 (assoc-ref outputs "out"))))))))
2456 (home-page "https://github.com/wting/autojump")
2457 (synopsis "Shell extension for file system navigation")
2458 (description
2459 "Autojump provides a faster way to navigate your file system, with a \"cd
2460 command that learns\". It works by maintaining a database of the directories
2461 you use the most from the command line and allows you to \"jump\" to
2462 frequently used directories by typing only a small pattern.")
2463 (license license:gpl3+)))
2464
2465 (define-public fasd
2466 (package
2467 (name "fasd")
2468 (version "1.0.1")
2469 (source (origin
2470 (method git-fetch)
2471 (uri (git-reference
2472 (url "https://github.com/clvv/fasd")
2473 (commit version)))
2474 (file-name (git-file-name name version))
2475 (sha256
2476 (base32
2477 "1awi71jdv3mhjrmar2d4z1i90kn7apd7aq1w31sh6w4yibz9kiyj"))))
2478 (build-system gnu-build-system)
2479 (arguments
2480 `(#:phases (modify-phases %standard-phases
2481 (delete 'configure)) ;no configuration
2482 #:tests? #f ;no tests
2483 #:make-flags (list (string-append "PREFIX=" %output))))
2484 (home-page "https://github.com/clvv/fasd")
2485 (synopsis "Quick access to files and directories for shells")
2486 (description
2487 "Fasd (pronounced similar to \"fast\") is a command-line productivity
2488 booster. Fasd offers quick access to files and directories for POSIX shells.
2489 It is inspired by tools like autojump, z, and v. Fasd keeps track of files
2490 and directories you have accessed so that you can quickly reference them in
2491 the command line.")
2492 (license license:x11)))
2493
2494 (define-public iftop
2495 (package
2496 (name "iftop")
2497 (version "1.0pre4")
2498 (source (origin
2499 (method url-fetch)
2500 (uri (string-append "http://www.ex-parrot.com/~pdw/iftop/download"
2501 "/iftop-" version ".tar.gz"))
2502 (sha256
2503 (base32
2504 "15sgkdyijb7vbxpxjavh5qm5nvyii3fqcg9mzvw7fx8s6zmfwczp"))))
2505 (build-system gnu-build-system)
2506 (inputs
2507 `(("libpcap" ,libpcap)
2508 ("ncurses" ,ncurses)))
2509 (synopsis "Monitor network usage")
2510 (description "Iftop does for network usage what @command{top} does
2511 for CPU usage. It listens to network traffic on a named interface and
2512 displays a table of current bandwidth usage by pairs of hosts.")
2513 (home-page "http://www.ex-parrot.com/~pdw/iftop/")
2514 (license license:gpl2+)))
2515
2516 (define-public munge
2517 (package
2518 (name "munge")
2519 (version "0.5.14")
2520 (source (origin
2521 (method url-fetch)
2522 (uri (string-append "https://github.com/dun/munge/releases/"
2523 "download/munge-" version "/munge-"
2524 version ".tar.xz"))
2525 (sha256
2526 (base32
2527 "0h06sghb4rqvv1ywyd6mzsmbcgh712v6ygrff0gzm440y4ca41k6"))
2528 (modules '((guix build utils)))
2529 (snippet
2530 '(begin
2531 ;; Don't insist on write access to /var.
2532 (substitute* "src/etc/Makefile.in"
2533 (("\\$\\(INSTALL\\)(.*)localstatedir" _ middle)
2534 (string-append "-$(INSTALL)" middle "localstatedir"))
2535 (("\\$\\(MKDIR_P\\) .*(local|run)statedir.*")
2536 ""))
2537 #t))))
2538 (inputs
2539 `(("openssl" ,openssl)
2540 ("libgcrypt" ,libgcrypt)))
2541 (build-system gnu-build-system)
2542 (arguments
2543 '(#:configure-flags
2544 (list "--localstatedir=/var"
2545 (string-append "--with-pkgconfigdir="
2546 (assoc-ref %outputs "out") "/lib/pkgconfig"))
2547 #:phases
2548 (modify-phases %standard-phases
2549 ;; XXX Many test series fail. Some might be fixable, others do no-no
2550 ;; things like invoking ‘sudo’.
2551 (add-after 'unpack 'skip-failing-tests
2552 (lambda _
2553 (for-each (lambda (test)
2554 (substitute* "t/Makefile.in"
2555 (((string-append test "\\.t ")) "")))
2556 (list "0100-munged-lock"
2557 "0010-basic"
2558 "0011-munged-cmdline"
2559 "0012-munge-cmdline"
2560 "0013-unmunge-cmdline"
2561 "0101-munged-security-socket"
2562 "0102-munged-security-keyfile"
2563 "0103-munged-security-logfile"
2564 "0110-munged-origin-addr"))
2565 #t)))))
2566 (home-page "https://dun.github.io/munge/")
2567 (synopsis "Cluster computing authentication service")
2568 (description
2569 "Munge is an authentication service for creating and validating
2570 credentials. It allows a process to authenticate the UID and GID of another
2571 local or remote process within a group of hosts having common users and
2572 groups. These hosts form a security realm that is defined by a shared
2573 cryptographic key. Clients within this security realm can create and validate
2574 credentials without the use of root privileges, reserved ports, or
2575 platform-specific methods.")
2576 (license license:gpl3+)))
2577
2578 (define-public audit
2579 (package
2580 (name "audit")
2581 (home-page "https://people.redhat.com/sgrubb/audit/")
2582 (version "2.8.5")
2583 (source (origin
2584 (method url-fetch)
2585 (uri (string-append home-page "audit-" version ".tar.gz"))
2586 (sha256
2587 (base32
2588 "1dzcwb2q78q7x41shcachn7f4aksxbxd470yk38zh03fch1l2p8f"))))
2589 (build-system gnu-build-system)
2590 (arguments
2591 `(#:configure-flags (list "--with-python=no"
2592 "--disable-static")))
2593 (inputs
2594 `(("openldap" ,openldap)
2595 ("gnutls" ,gnutls)
2596 ("sasl" ,cyrus-sasl)))
2597 (synopsis "User-space component to the Linux auditing system")
2598 (description
2599 "auditd is the user-space component to the Linux auditing system, which
2600 allows logging of system calls made by user-land processes. It's responsible
2601 for writing audit records to the disk. Viewing the logs is done with the
2602 @code{ausearch} or @code{aureport} utilities. Configuring the audit rules is
2603 done with the @code{auditctl} utility.")
2604 (license license:gpl2+)))
2605
2606 (define-public nmap
2607 (package
2608 (name "nmap")
2609 (version "7.80")
2610 (source (origin
2611 (method url-fetch)
2612 (uri (string-append "https://nmap.org/dist/nmap-" version
2613 ".tar.bz2"))
2614 (sha256
2615 (base32
2616 "1aizfys6l9f9grm82bk878w56mg0zpkfns3spzj157h98875mypw"))
2617 (modules '((guix build utils)))
2618 (snippet
2619 '(begin
2620 (for-each delete-file-recursively
2621 ;; Remove bundled lua, pcap, and pcre libraries.
2622 ;; FIXME: Remove bundled liblinear once packaged.
2623 '("liblua"
2624 "libpcap"
2625 "libpcre"
2626 ;; Remove pre-compiled binares.
2627 "mswin32"))
2628 #t))))
2629 (build-system gnu-build-system)
2630 (inputs
2631 `(("openssl" ,openssl)
2632 ("libpcap" ,libpcap)
2633 ("pcre" ,pcre)
2634 ("lua" ,lua)
2635 ("zlib" ,zlib) ;for NSE compression support
2636
2637 ;; For 'ndiff'.
2638 ("python" ,python-2)))
2639
2640 ;; TODO Add zenmap output.
2641 (outputs '("out" "ndiff"))
2642 (arguments
2643 `(#:configure-flags '("--without-zenmap")
2644 #:phases
2645 (modify-phases %standard-phases
2646 (add-after 'configure 'patch-Makefile
2647 (lambda _
2648 (substitute* "Makefile"
2649 ;; Do not attempt to build lua.
2650 (("build-dnet build-lua") "build-dnet"))
2651 #t))
2652 (replace 'install
2653 (lambda* (#:key outputs #:allow-other-keys)
2654 (define (make out . args)
2655 (apply invoke "make"
2656 (string-append "prefix=" out)
2657 args))
2658 (define (python-path dir)
2659 (string-append dir "/lib/python"
2660 ,(version-major+minor
2661 (package-version python))
2662 "/site-packages"))
2663 (let ((out (assoc-ref outputs "out"))
2664 (ndiff (assoc-ref outputs "ndiff")))
2665 (for-each mkdir-p (list out ndiff))
2666 (make out
2667 "install-nmap"
2668 "install-nse"
2669 "install-ncat"
2670 "install-nping")
2671 (make ndiff "install-ndiff")
2672 (wrap-program (string-append ndiff "/bin/ndiff")
2673 `("PYTHONPATH" prefix
2674 (,(python-path ndiff)))))
2675 #t))
2676 ;; These are the tests that do not require network access.
2677 (replace 'check
2678 (lambda _ (invoke "make"
2679 "check-nse"
2680 "check-ndiff"
2681 "check-dns"))))
2682 ;; Nmap can't cope with out-of-source building.
2683 #:out-of-source? #f))
2684 (home-page "https://nmap.org/")
2685 (synopsis "Network discovery and security auditing tool")
2686 (description
2687 "Nmap (\"Network Mapper\") is a network discovery and security auditing
2688 tool. It is also useful for tasks such as network inventory, managing service
2689 upgrade schedules, and monitoring host or service uptime. It also provides an
2690 advanced netcat implementation (ncat), a utility for comparing scan
2691 results (ndiff), and a packet generation and response analysis tool (nping).")
2692 ;; This package uses nmap's bundled versions of libdnet and liblinear, which
2693 ;; both use a 3-clause BSD license.
2694 (license (list license:nmap license:bsd-3))))
2695
2696 (define-public dstat
2697 (package
2698 (name "dstat")
2699 (version "0.7.4")
2700 (source
2701 (origin
2702 (method git-fetch)
2703 (uri (git-reference
2704 (url "https://github.com/dagwieers/dstat")
2705 (commit (string-append "v" version))))
2706 (file-name (git-file-name "dstat" version))
2707 (sha256
2708 (base32 "1qnmkhqmjd1m3if05jj29dvr5hn6kayq9bkkkh881w472c0zhp8v"))
2709 (patches (search-patches "dstat-fix-crash-when-specifying-delay.patch"
2710 "dstat-skip-devices-without-io.patch"))))
2711 (build-system gnu-build-system)
2712 (arguments
2713 `(#:tests? #f ; no make check
2714 #:make-flags (let ((out (assoc-ref %outputs "out")))
2715 (list (string-append "DESTDIR=" out)
2716 "prefix=/"))
2717 #:phases
2718 (modify-phases %standard-phases
2719 (add-after 'unpack 'fix-python3-DeprecationWarning
2720 (lambda _
2721 (substitute* "dstat"
2722 (("collections") "collections.abc"))
2723 #t))
2724 (delete 'configure) ; no configure script
2725 (add-after 'install 'wrap
2726 (lambda* (#:key outputs #:allow-other-keys)
2727 (let ((out (assoc-ref outputs "out")))
2728 (wrap-program (string-append out "/bin/dstat")
2729 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2730 #t))))))
2731 (inputs
2732 `(("python" ,python-wrapper)
2733 ("python-six" ,python-six)))
2734 (synopsis "Versatile resource statistics tool")
2735 (description "Dstat is a versatile replacement for @command{vmstat},
2736 @command{iostat}, @command{netstat}, and @command{ifstat}. Dstat overcomes
2737 some of their limitations and adds some extra features, more counters and
2738 flexibility. Dstat is handy for monitoring systems during performance tuning
2739 tests, benchmarks or troubleshooting.
2740
2741 Dstat allows you to view all of your system resources in real-time, you can,
2742 e.g., compare disk utilization in combination with interrupts from your IDE
2743 controller, or compare the network bandwidth numbers directly with the disk
2744 throughput (in the same interval).")
2745 (home-page "http://dag.wiee.rs/home-made/dstat/")
2746 (license license:gpl2+)))
2747
2748 (define-public thefuck
2749 (package
2750 (name "thefuck")
2751 (version "3.30")
2752 (source
2753 (origin
2754 (method git-fetch)
2755 (uri (git-reference
2756 (url "https://github.com/nvbn/thefuck")
2757 (commit version)))
2758 (file-name (git-file-name name version))
2759 (sha256
2760 (base32 "0fnf78956pwhb9cgv1jmgypnkma5xzflkivfrkfiadbgin848yfg"))
2761 (patches (search-patches "thefuck-test-environ.patch"))))
2762 (build-system python-build-system)
2763 (arguments
2764 '(#:phases
2765 (modify-phases %standard-phases
2766 (delete 'check)
2767 (add-after 'install 'check
2768 (lambda* (#:key inputs outputs #:allow-other-keys)
2769 ;; Tests look for installed package
2770 (add-installed-pythonpath inputs outputs)
2771 ;; Some tests need write access to $HOME.
2772 (setenv "HOME" "/tmp")
2773 (invoke "py.test" "-v")
2774 #t)))))
2775 (propagated-inputs
2776 `(("python-colorama" ,python-colorama)
2777 ("python-decorator" ,python-decorator)
2778 ("python-psutil" ,python-psutil)
2779 ("python-pyte" ,python-pyte)
2780 ("python-six" ,python-six)))
2781 (native-inputs
2782 `(("go" ,go)
2783 ("python-mock" ,python-mock)
2784 ("python-pytest" ,python-pytest)
2785 ("python-pytest-mock" ,python-pytest-mock)))
2786 (home-page "https://github.com/nvbn/thefuck")
2787 (synopsis "Correct mistyped console command")
2788 (description
2789 "The Fuck tries to match a rule for a previous, mistyped command, creates
2790 a new command using the matched rule, and runs it.")
2791 (license license:x11)))
2792
2793 (define-public di
2794 (package
2795 (name "di")
2796 (version "4.48")
2797 (source
2798 (origin
2799 (method url-fetch)
2800 (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
2801 (sha256
2802 (base32 "0crvvfsxh8ryc0j19a2x52i9zacvggm8zi6j3kzygkcwnpz4km8r"))))
2803 (build-system gnu-build-system)
2804 (arguments
2805 `(#:tests? #f ; obscure test failures
2806 #:phases
2807 (modify-phases %standard-phases
2808 (delete 'configure) ; no configure script
2809 (add-before 'build 'setup-environment
2810 (lambda* (#:key outputs #:allow-other-keys)
2811 (setenv "CC" ,(cc-for-target))
2812 (setenv "prefix" (assoc-ref outputs "out"))
2813 #t)))
2814 #:make-flags (list "--environment-overrides")))
2815 (home-page "https://gentoo.com/di/")
2816 (synopsis "Advanced df like disk information utility")
2817 (description
2818 "@code{di} is a disk information utility, displaying everything that your
2819 @code{df} command does and more. It features the ability to display your disk
2820 usage in whatever format you prefer. It is designed to be highly portable and
2821 produce uniform output across heterogeneous networks.")
2822 (license license:zlib)))
2823
2824 (define-public cbatticon
2825 (package
2826 (name "cbatticon")
2827 (version "1.6.10")
2828 (source
2829 (origin
2830 (method git-fetch)
2831 (uri (git-reference
2832 (url "https://github.com/valr/cbatticon")
2833 (commit version)))
2834 (sha256
2835 (base32 "0ivm2dzhsa9ir25ry418r2qg2llby9j7a6m3arbvq5c3kaj8m9jr"))
2836 (file-name (git-file-name name version))))
2837 (build-system gnu-build-system)
2838 (arguments
2839 `(#:tests? #f ; no tests
2840 #:make-flags
2841 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2842 "CC=gcc")
2843 #:phases
2844 (modify-phases %standard-phases
2845 (delete 'configure)))) ; no configure script
2846 (inputs
2847 `(("gtk+" ,gtk+)
2848 ("gettext" ,gettext-minimal)
2849 ("libnotify" ,libnotify)))
2850 (native-inputs
2851 `(("pkg-config" ,pkg-config)))
2852 (synopsis "Lightweight battery icon for the system tray")
2853 (description "cbatticon is a lightweight battery icon that displays
2854 the status of your battery in the system tray.")
2855 (home-page "https://github.com/valr/cbatticon")
2856 (license license:gpl2+)))
2857
2858 (define-public interrobang
2859 (let ((revision "1")
2860 (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
2861 (package
2862 (name "interrobang")
2863 (version (git-version "0.0.0" revision commit))
2864 (source
2865 (origin
2866 (method git-fetch)
2867 (uri (git-reference
2868 (url "https://github.com/TrilbyWhite/interrobang")
2869 (commit commit)))
2870 (file-name (git-file-name name version))
2871 (sha256
2872 (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
2873 (build-system gnu-build-system)
2874 (arguments
2875 `(#:tests? #f ; no tests
2876 #:phases
2877 (modify-phases %standard-phases
2878 (delete 'configure)) ; no configure script
2879 #:make-flags (list (string-append "PREFIX="
2880 (assoc-ref %outputs "out")))))
2881 (inputs
2882 `(("libx11" ,libx11)))
2883 (native-inputs
2884 `(("pkg-config" ,pkg-config)))
2885 (synopsis "Scriptable launcher menu")
2886 (description "Interrobang is a scriptable launcher menu with a customizable
2887 shortcut syntax and completion options.")
2888 (home-page "https://github.com/TrilbyWhite/interrobang")
2889 (license license:gpl3+))))
2890
2891 (define-public pam-krb5
2892 (package
2893 (name "pam-krb5")
2894 (version "4.8")
2895 (source (origin
2896 (method url-fetch)
2897 (uri (string-append
2898 "https://archives.eyrie.org/software/kerberos/"
2899 "pam-krb5-" version ".tar.xz"))
2900 (patches (search-patches "pam-krb5-CVE-2020-10595.patch"))
2901 (sha256
2902 (base32
2903 "1qjp8i1s9bz7g6kiqrkzzkxn5pfspa4sy53b6z40fqmdf9przdfb"))))
2904 (build-system gnu-build-system)
2905 (arguments
2906 `(#:phases
2907 (modify-phases %standard-phases
2908 (add-before 'configure 'disable-tests
2909 (lambda _
2910 ;; The build container seems to interfere with some tests.
2911 (substitute* "tests/TESTS"
2912 (("module/basic\n") ""))
2913 (substitute* "tests/TESTS"
2914 (("pam-util/vector\n") ""))
2915 #t)))))
2916 (inputs
2917 `(("linux-pam" ,linux-pam)
2918 ("mit-krb5" ,mit-krb5)))
2919 (native-inputs
2920 `(("perl" ,perl)
2921 ("perl-test-pod" ,perl-test-pod))) ; required for tests
2922 (synopsis "Kerberos PAM module")
2923 (description
2924 "Pam-krb5 is a Kerberos PAM module for either MIT Kerberos or Heimdal.
2925 It supports ticket refreshing by screen savers, configurable
2926 authorization handling, authentication of non-local accounts for network
2927 services, password changing, and password expiration, as well as all the
2928 standard expected PAM features. It works correctly with OpenSSH, even
2929 with @code{ChallengeResponseAuthentication} and @code{PrivilegeSeparation}
2930 enabled, and supports extensive configuration either by PAM options or in
2931 krb5.conf or both. PKINIT is supported with recent versions of both MIT
2932 Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
2933 (home-page "https://www.eyrie.org/~eagle/software/pam-krb5")
2934 ;; Dual licenced under a homebrew non-copyleft OR GPL (any version)
2935 ;; However, the tarball does not contain a copy of the GPL, so unless
2936 ;; we put one in, we cannot distribute it under GPL without violating
2937 ;; clause requiring us to give all recipients a copy.
2938 (license license:gpl1+)))
2939
2940 (define (sunxi-tools-source version)
2941 (origin
2942 (method git-fetch)
2943 (uri (git-reference
2944 (url "https://github.com/linux-sunxi/sunxi-tools")
2945 (commit (string-append "v" version))))
2946 (sha256
2947 (base32 "04f3jqg8ww4jxsf9c6ddcdgy2xbhkyp0b3l5f1hvvbv94p81rjxd"))
2948 (modules '((guix build utils)))
2949 (snippet
2950 ;; Remove binaries contained in the tarball which are only for the
2951 ;; target and can be regenerated anyway.
2952 '(begin
2953 (delete-file-recursively "bin")
2954 #t))
2955 (file-name (git-file-name "sunxi-tools" version))))
2956
2957 (define sunxi-target-tools
2958 (package
2959 (name "sunxi-target-tools")
2960 (version "1.4.2")
2961 (build-system gnu-build-system)
2962 (source
2963 (sunxi-tools-source version))
2964 (arguments
2965 `(#:system "armhf-linux"
2966 #:tests? #f
2967 #:make-flags (list (string-append "PREFIX="
2968 (assoc-ref %outputs "out"))
2969 (string-append "CROSS_COMPILE=")
2970 "CC=gcc")
2971 #:phases
2972 (modify-phases %standard-phases
2973 (delete 'configure)
2974 (replace 'build
2975 (lambda* (#:key make-flags #:allow-other-keys)
2976 (apply invoke "make" "target-tools" make-flags)))
2977 (replace 'install
2978 (lambda* (#:key make-flags #:allow-other-keys)
2979 (apply invoke "make" "install-target-tools"
2980 make-flags))))))
2981 (home-page "https://github.com/linux-sunxi/sunxi-tools")
2982 (synopsis "Hardware management tools for Allwinner computers")
2983 (description "This package contains tools for Allwinner devices:
2984 @enumerate
2985 @item @command{sunxi-meminfo}: Prints memory bus settings.
2986 @end enumerate")
2987 (license license:gpl2+)))
2988
2989 (define-public sunxi-tools
2990 (package
2991 (name "sunxi-tools")
2992 (version "1.4.2")
2993 (source
2994 (sunxi-tools-source version))
2995 (native-inputs
2996 `(("sunxi-target-tools" ,sunxi-target-tools)
2997 ("pkg-config" ,pkg-config)))
2998 (inputs
2999 `(("libusb" ,libusb)))
3000 (build-system gnu-build-system)
3001 (arguments
3002 `(#:tests? #f ; no tests exist
3003 #:make-flags (list (string-append "PREFIX="
3004 (assoc-ref %outputs "out"))
3005 (string-append "CROSS_COMPILE=disabled")
3006 "CC=gcc")
3007 #:phases
3008 (modify-phases %standard-phases
3009 (delete 'configure)
3010 (replace 'build
3011 (lambda* (#:key make-flags #:allow-other-keys)
3012 (apply invoke "make" "tools" "misc" make-flags)))
3013 (replace 'install
3014 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
3015 ;; Those tools have been built for armhf but are part of the
3016 ;; installation in the upstream package. So do the same
3017 ;; here.
3018 (copy-recursively (assoc-ref inputs "sunxi-target-tools")
3019 (assoc-ref outputs "out"))
3020 (apply invoke "make" "install-tools" "install-misc"
3021 make-flags))))))
3022 (home-page "https://github.com/linux-sunxi/sunxi-tools")
3023 (synopsis "Hardware management tools for Allwinner computers")
3024 (description "This package contains tools for Allwinner devices:
3025 @enumerate
3026 @item @command{sunxi-fexc}, @command{bin2fex}, @command{fex2bin}: Compile
3027 a textual description of a board (.fex) to a binary representation (.bin).
3028 @item @command{sunxi-fel}: Puts an Allwinner device into FEL mode which
3029 makes it register as a special USB device (rather than USB host).
3030 You can then connect it to another computer and flash it from there.
3031 @item @command{sunxi-nand-part}: Partitions NAND flash.
3032 @item @command{sunxi-bootinfo}: Reads out boot0 and boot1 (Allwinner
3033 bootloader) parameters.
3034 @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
3035 in order to be able to find it.
3036 @item @command{sunxi-meminfo}: Prints memory bus settings.
3037 @item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
3038 @end enumerate")
3039 (license license:gpl2+)))
3040
3041 (define-public sedsed
3042 (package
3043 (name "sedsed")
3044 (version "1.1")
3045 (source
3046 (origin
3047 (method git-fetch)
3048 (uri (git-reference
3049 (url "https://github.com/aureliojargas/sedsed")
3050 (commit (string-append "v" version))))
3051 (file-name (git-file-name name version))
3052 (sha256
3053 (base32 "05cl35mwljdb9ynbbsfa8zx6ig8r0xncbg2cir9vwn5manndjj18"))))
3054 (build-system python-build-system)
3055 (arguments
3056 `(#:tests? #f ; no tests
3057 #:phases
3058 (modify-phases %standard-phases
3059 (add-after 'unpack 'patch-sed-in
3060 (lambda _
3061 (substitute* "sedsed.py"
3062 (("sedbin = 'sed'")
3063 (string-append "sedbin = '" (which "sed") "'")))
3064 #t))
3065 (delete 'build)
3066 (replace 'install
3067 (lambda* (#:key outputs #:allow-other-keys)
3068 (let* ((out (assoc-ref outputs "out"))
3069 (bin (string-append out "/bin")))
3070 ;; Just one file to copy around
3071 (install-file "sedsed.py" bin)
3072 #t)))
3073 (add-after 'wrap 'symlink
3074 ;; Create 'sedsed' symlink to "sedsed.py".
3075 (lambda* (#:key outputs #:allow-other-keys)
3076 (let* ((out (assoc-ref outputs "out"))
3077 (bin (string-append out "/bin"))
3078 (sed (string-append bin "/sedsed"))
3079 (sedpy (string-append bin "/sedsed.py")))
3080 (symlink sedpy sed)
3081 #t))))))
3082 (home-page "https://aurelio.net/projects/sedsed")
3083 (synopsis "Sed sed scripts")
3084 (description
3085 "@code{sedsed} can debug, indent, tokenize and HTMLize your @command{sed}
3086 script.
3087
3088 In debug mode, it reads your script and adds extra commands to it. When
3089 executed you can see the data flow between the commands, revealing all the
3090 magic sed performs on its internal buffers.
3091
3092 In indent mode, your script is reformatted with standard spacing.
3093
3094 In tokenize mode, you can see the elements of every command you use.
3095
3096 In HTMLize mode, your script is converted to a beautiful colored HTML file,
3097 with all the commands and parameters identified for your viewing pleasure.
3098
3099 With sedsed you can master any sed script. No more secrets, no more hidden
3100 buffers.")
3101 (license license:expat)))
3102
3103 (define-public igt-gpu-tools
3104 (package
3105 (name "igt-gpu-tools")
3106 (version "1.24")
3107 (source
3108 (origin
3109 (method git-fetch)
3110 (uri (git-reference
3111 (url "https://gitlab.freedesktop.org/drm/igt-gpu-tools.git")
3112 (commit (string-append "igt-gpu-tools-" version))))
3113 (file-name (git-file-name name version))
3114 (sha256
3115 (base32 "1gpdjs5aj6vsnzwcjvw5bb120lgffvvshi4202phr0bzw3b92ky8"))))
3116 (build-system gnu-build-system)
3117 (arguments
3118 `(#:tests? #f)) ; many of the tests try to load kernel modules
3119 (inputs
3120 `(("cairo" ,cairo)
3121 ("elfutils" ,elfutils) ; libdw
3122 ("eudev" ,eudev)
3123 ("glib" ,glib)
3124 ("kmod" ,kmod)
3125 ("libdrm" ,libdrm)
3126 ("libpciaccess" ,libpciaccess)
3127 ("libunwind" ,libunwind)
3128 ("libxrandr" ,libxrandr)
3129 ("openssl" ,openssl)
3130 ("procps" ,procps)
3131 ("util-macros" ,util-macros)))
3132 (native-inputs
3133 `(("autoconf" ,autoconf)
3134 ("automake" ,automake)
3135 ("libtool" ,libtool)
3136 ("pkg-config" ,pkg-config)))
3137 (home-page "https://gitlab.freedesktop.org/drm/igt-gpu-tools")
3138 (synopsis "Tools for development and testing of the Intel DRM driver")
3139 (description "IGT GPU Tools is a collection of tools for development and
3140 testing of the Intel DRM driver. There are many macro-level test suites that
3141 get used against the driver, including xtest, rendercheck, piglit, and
3142 oglconform, but failures from those can be difficult to track down to kernel
3143 changes, and many require complicated build procedures or specific testing
3144 environments to get useful results. Therefore, IGT GPU Tools includes
3145 low-level tools and tests specifically for development and testing of the
3146 Intel DRM Driver.")
3147 (supported-systems '("i686-linux" "x86_64-linux"))
3148 (license license:expat)))
3149
3150 (define-public fabric
3151 (package
3152 (name "fabric")
3153 (version "1.14.1")
3154 (source
3155 (origin
3156 (method url-fetch)
3157 (uri (pypi-uri "Fabric" version))
3158 (sha256
3159 (base32
3160 "1a3ndlpdw6bhn8fcw1jgznl117a8pnr84az9rb5fwnrypf1ph2b6"))))
3161 (build-system python-build-system)
3162 (arguments
3163 `(#:python ,python-2 ; Python 2 only
3164 #:phases
3165 (modify-phases %standard-phases
3166 (replace 'check
3167 (lambda _
3168 (invoke
3169 "nosetests" "-v" "tests/"
3170 ;; This test hangs indefinitely when run on a single core VM
3171 ;; (see GNU bug #26647 and Debian bug #850230).
3172 "--exclude=test_nested_execution_with_explicit_ports"
3173 ;; This test randomly fails in certain environments causing too
3174 ;; much noise to be useful (see Debian bug #854686).
3175 "--exclude=test_should_use_sentinel_for_tasks_that_errored"))))))
3176 (native-inputs
3177 `(("python2-fudge" ,python2-fudge) ; Requires < 1.0
3178 ("python2-jinja2" ,python2-jinja2) ; Requires < 3.0
3179 ("python2-nose" ,python2-nose) ; Requires < 2.0
3180 ("python2-pynacl" ,python2-pynacl)
3181 ("python2-bcrypt" ,python2-bcrypt)))
3182 (propagated-inputs
3183 `(("python2-paramiko" ,python2-paramiko)))
3184 (home-page "https://www.fabfile.org/")
3185 (synopsis "Simple Pythonic remote execution and deployment tool")
3186 (description
3187 "Fabric is designed to upload files and run shell commands on a number of
3188 servers in parallel or serially. These commands are grouped in tasks (which
3189 are regular Python functions) and specified in a @dfn{fabfile}.
3190
3191 It is similar to Capistrano, except it's implemented in Python and doesn't
3192 expect you to be deploying Rails applications. Fabric is a simple, Pythonic
3193 tool for remote execution and deployment.")
3194 (license license:bsd-2)))
3195
3196 (define-public neofetch
3197 (package
3198 (name "neofetch")
3199 (version "7.1.0")
3200 (source (origin
3201 (method git-fetch)
3202 (uri (git-reference
3203 (url "https://github.com/dylanaraps/neofetch")
3204 (commit version)))
3205 (file-name (git-file-name name version))
3206 (sha256
3207 (base32
3208 "0i7wpisipwzk0j62pzaigbiq42y1mn4sbraz4my2jlz6ahwf00kv"))))
3209 (build-system gnu-build-system)
3210 (arguments
3211 `(#:tests? #f ; there are no tests
3212 #:make-flags
3213 (list (string-append "PREFIX=" %output))
3214 #:phases
3215 (modify-phases %standard-phases
3216 (delete 'configure)))) ; no configure script
3217 (home-page "https://github.com/dylanaraps/neofetch")
3218 (synopsis "System information script")
3219 (description "Neofetch is a command-line system information tool written in
3220 Bash. Neofetch displays information about your system next to an image, your OS
3221 logo, or any ASCII file of your choice. The main purpose of Neofetch is to be
3222 used in screenshots to show other users what operating system or distribution
3223 you are running, what theme or icon set you are using, etc.")
3224 (license license:expat)))
3225
3226 (define-public screenfetch
3227 (package
3228 (name "screenfetch")
3229 (version "3.9.1")
3230 (source (origin
3231 (method git-fetch)
3232 (uri (git-reference
3233 (url "https://github.com/KittyKatt/screenFetch")
3234 (commit (string-append "v" version))))
3235 (file-name (git-file-name name version))
3236 (sha256
3237 (base32
3238 "04l8aqr474pb115nagn9f6y48jw92n1qfszgw7dbhgl4mpn95lcr"))))
3239 (build-system trivial-build-system)
3240 (arguments
3241 `(#:modules ((guix build utils))
3242 #:builder
3243 (begin
3244 (use-modules (guix build utils))
3245 (let ((source (assoc-ref %build-inputs "source"))
3246 (out (assoc-ref %outputs "out")))
3247 (mkdir-p (string-append out "/bin/"))
3248 (copy-file (string-append source "/screenfetch-dev")
3249 (string-append out "/bin/screenfetch"))
3250 (install-file (string-append source "/screenfetch.1")
3251 (string-append out "/man/man1/"))
3252 (install-file (string-append source "/COPYING")
3253 (string-append out "/share/doc/" ,name "-" ,version))
3254 (substitute* (string-append out "/bin/screenfetch")
3255 (("/usr/bin/env bash")
3256 (string-append (assoc-ref %build-inputs "bash")
3257 "/bin/bash")))
3258 (wrap-program
3259 (string-append out "/bin/screenfetch")
3260 `("PATH" ":" prefix
3261 (,(string-append (assoc-ref %build-inputs "bc") "/bin:"
3262 (assoc-ref %build-inputs "scrot") "/bin:"
3263 (assoc-ref %build-inputs "xdpyinfo") "/bin"
3264 (assoc-ref %build-inputs "xprop") "/bin"))))
3265 (substitute* (string-append out "/bin/screenfetch")
3266 (("#!#f")
3267 (string-append "#!" (assoc-ref %build-inputs "bash")
3268 "/bin/bash")))))))
3269 (inputs
3270 `(("bash" ,bash)
3271 ("bc" ,bc)
3272 ("scrot" ,scrot)
3273 ("xdpyinfo" ,xdpyinfo)
3274 ("xprop" ,xprop)))
3275 (home-page "https://github.com/KittyKatt/screenFetch")
3276 (synopsis "System information script")
3277 (description "Bash screenshot information tool which can be used to
3278 generate those nifty terminal theme information and ASCII distribution logos in
3279 everyone's screenshots nowadays.")
3280 (license license:gpl3)))
3281
3282 (define-public ufetch
3283 (let ((commit "98b622023e03fe24dbc137e9a68104dfe1fbd04a")
3284 (revision "1"))
3285 (package
3286 (name "ufetch")
3287 (version (git-version "0.2" revision commit))
3288 (source (origin
3289 (method git-fetch)
3290 (uri (git-reference
3291 (url "https://gitlab.com/jschx/ufetch.git")
3292 (commit commit)))
3293 (file-name (git-file-name name version))
3294 (sha256
3295 (base32
3296 "09c4zmikza16xpydinnqbi3hmcibfrrn10wij7j0j1wv1pj2sl2l"))))
3297 (build-system trivial-build-system)
3298 (inputs
3299 `(("bash" ,bash)
3300 ("tput" ,ncurses)))
3301 (arguments
3302 `(#:modules ((guix build utils))
3303 #:builder
3304 (begin
3305 (use-modules (guix build utils))
3306 (let* ((source (assoc-ref %build-inputs "source"))
3307 (output (assoc-ref %outputs "out"))
3308 (bindir (string-append output "/bin"))
3309 (docdir (string-append output "/share/doc/ufetch-" ,version))
3310 (tput (string-append (assoc-ref %build-inputs "tput") "/bin/tput")))
3311 (install-file (string-append source "/LICENSE") docdir)
3312 (setenv "PATH" (string-append (assoc-ref %build-inputs "bash") "/bin"))
3313 (mkdir-p bindir)
3314 (for-each (lambda (src)
3315 (let ((dst (string-append bindir "/" (basename src))))
3316 (copy-file src dst)
3317 (patch-shebang dst)
3318 (substitute* dst (("tput") tput))))
3319 (find-files source "ufetch-[[:alpha:]]*$"))
3320 ;; Note: the `ufetch` we create below will only work if run under
3321 ;; the Guix System. I.e. a user trying to run `ufetch` on a
3322 ;; foreign distro will not get great results. The `screenfetch`
3323 ;; program does actual runtime detection of the operating system,
3324 ;; and would be a better choice in such a situation.
3325 (symlink "ufetch-guix" (string-append bindir "/ufetch"))))))
3326 (home-page "https://gitlab.com/jschx/ufetch")
3327 (synopsis "Tiny system info")
3328 (description "This package provides a tiny system info utility.")
3329 (license license:isc))))
3330
3331 (define-public pfetch
3332 (let ((commit "e18a0959ab98b963744755ec4687e59dc11db3c5")
3333 (revision "0"))
3334 (package
3335 (name "pfetch")
3336 (version (git-version "0.7.0" revision commit))
3337 (source (origin
3338 (method git-fetch)
3339 (uri (git-reference
3340 (url "https://github.com/dylanaraps/pfetch")
3341 (commit commit)))
3342 (file-name (git-file-name name version))
3343 (sha256
3344 (base32
3345 "1md40av6i3xvvwig5jzhy4kf3s5sgxxk35r0vcyrjd8qyndk927l"))))
3346 (build-system trivial-build-system)
3347 (inputs `(("bash" ,bash)))
3348 (arguments
3349 `(#:modules ((guix build utils))
3350 #:builder
3351 (begin
3352 (use-modules (guix build utils))
3353 (let* ((source (lambda (f)
3354 (string-append (assoc-ref %build-inputs "source") "/" f)))
3355 (output (assoc-ref %outputs "out"))
3356 (docdir (string-append output "/share/doc/pfetch-" ,version)))
3357 (install-file (source "LICENSE.md") docdir)
3358 (install-file (source "README.md") docdir)
3359 (install-file (source "pfetch") (string-append output "/bin"))
3360 (patch-shebang
3361 (string-append output "/bin/pfetch")
3362 (list (string-append (assoc-ref %build-inputs "bash") "/bin")))
3363 #t))))
3364 (home-page "https://github.com/dylanaraps/pfetch")
3365 (synopsis "System information tool")
3366 (description "This package provides a simple, configurable system
3367 information tool.")
3368 (license license:expat))))
3369
3370 (define-public nnn
3371 (package
3372 (name "nnn")
3373 (version "3.4")
3374 (source
3375 (origin
3376 (method url-fetch)
3377 (uri (string-append "https://github.com/jarun/nnn/releases/download/v"
3378 version "/nnn-v" version ".tar.gz"))
3379 (sha256
3380 (base32 "189h950m1jjrnhvgcvzk6nj89l58rkxim7bxa0441ssajxpaw0vq"))))
3381 (build-system gnu-build-system)
3382 (inputs
3383 `(("ncurses" ,ncurses)
3384 ("readline" ,readline)))
3385 (native-inputs
3386 `(("pkg-config" ,pkg-config)))
3387 (arguments
3388 '(#:tests? #f ; no tests
3389 #:phases
3390 (modify-phases %standard-phases
3391 (delete 'configure)) ; no configure script
3392 #:make-flags
3393 (list
3394 (string-append "PREFIX="
3395 (assoc-ref %outputs "out"))
3396 "CC=gcc")))
3397 (home-page "https://github.com/jarun/nnn")
3398 (synopsis "Terminal file browser")
3399 (description "@command{nnn} is a fork of @command{noice}, a blazing-fast
3400 lightweight terminal file browser with easy keyboard shortcuts for
3401 navigation, opening files and running tasks. There is no config file and
3402 mime associations are hard-coded. The incredible user-friendliness and speed
3403 make it a perfect utility on modern distros.")
3404 (license license:bsd-2)))
3405
3406 (define-public thermald
3407 (package
3408 (name "thermald")
3409 (version "1.9.1")
3410 (source
3411 (origin
3412 (method git-fetch)
3413 (uri (git-reference
3414 (url "https://github.com/01org/thermal_daemon")
3415 (commit (string-append "v" version))))
3416 (file-name (git-file-name name version))
3417 (sha256
3418 (base32 "0iagc3jqpnh6q2fa1gx4wx6r8qg0556j60xr159zqg95djr4dv99"))))
3419 (build-system gnu-build-system)
3420 (arguments
3421 `(#:configure-flags
3422 (let ((out (assoc-ref %outputs "out")))
3423 (list (string-append "--sysconfdir="
3424 out "/etc")
3425 (string-append "--with-dbus-sys-dir="
3426 out "/etc/dbus-1/system.d")
3427 "--localstatedir=/var"))))
3428 (native-inputs
3429 `(("autoconf" ,autoconf)
3430 ("automake" ,automake)
3431 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
3432 ("pkg-config" ,pkg-config)))
3433 (inputs
3434 `(("dbus-glib" ,dbus-glib)
3435 ("libxml2" ,libxml2)))
3436 (home-page "https://01.org/linux-thermal-daemon/")
3437 (synopsis "CPU scaling for thermal management")
3438 (description "The Linux Thermal Daemon helps monitor and control temperature
3439 on systems running the Linux kernel.")
3440 ;; arm and aarch64 don't have cpuid.h.
3441 (supported-systems '("i686-linux" "x86_64-linux"))
3442 (license license:gpl2+)))
3443
3444 (define-public masscan
3445 (package
3446 (name "masscan")
3447 (version "1.0.5")
3448 (source
3449 (origin
3450 (method git-fetch)
3451 (uri (git-reference
3452 (url "https://github.com/robertdavidgraham/masscan")
3453 (commit version)))
3454 (file-name (git-file-name name version))
3455 (sha256
3456 (base32 "0q0c7bsf0pbl8napry1qyg0gl4pd8wn872h4mz9b56dx4rx90vqg"))))
3457 (build-system gnu-build-system)
3458 (inputs
3459 `(("libpcap" ,libpcap)))
3460 (arguments
3461 '(#:test-target "regress"
3462 #:make-flags
3463 (list "CC=gcc"
3464 (string-append "PREFIX=" (assoc-ref %outputs "out")))
3465 #:phases
3466 (modify-phases %standard-phases
3467 (delete 'configure) ; no ./configure script
3468 (add-after 'unpack 'patch-path
3469 (lambda* (#:key outputs inputs #:allow-other-keys)
3470 (let* ((out (assoc-ref outputs "out"))
3471 (pcap (assoc-ref inputs "libpcap")))
3472 (substitute* "src/rawsock-pcap.c"
3473 (("libpcap.so") (string-append pcap "/lib/libpcap.so")))
3474 #t))))))
3475 (synopsis "TCP port scanner")
3476 (description "MASSCAN is an asynchronous TCP port scanner. It can detect
3477 open ports, and also complete the TCP connection and interact with the remote
3478 application, collecting the information received.")
3479 (home-page "https://github.com/robertdavidgraham/masscan")
3480 ;; 'src/siphash24.c' is the SipHash reference implementation, which
3481 ;; bears a CC0 Public Domain Dedication.
3482 (license license:agpl3+)))
3483
3484 (define-public hungrycat
3485 (package
3486 (name "hungrycat")
3487 (version "0.4.1")
3488 (source (origin
3489 (method url-fetch)
3490 (uri (string-append "https://github.com/jwilk/hungrycat/"
3491 "releases/download/" version "/"
3492 "hungrycat-" version ".tar.gz"))
3493 (sha256
3494 (base32
3495 "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
3496 (build-system gnu-build-system)
3497 (native-inputs
3498 ;; For tests.
3499 `(("python" ,python-wrapper)
3500 ("python-nose" ,python-nose)))
3501 (arguments
3502 `(#:test-target "test"))
3503 (synopsis "A single tool that combines @command{cat} & @command{rm}")
3504 (description
3505 "hungrycat prints the contents of a file to standard output, while
3506 simultaneously freeing the disk space it occupied. It is useful if you need
3507 to process a large file, don't have enough space to store both the input and
3508 output files, and don't need the input file afterwards.
3509 While similar in principle to running @command{cat} immediately followed by
3510 @command{rm}, @command{hungrycat} actually frees blocks as soon as they are
3511 printed instead of after the entire file has been read, which is often too
3512 late.")
3513 (home-page "https://jwilk.net/software/hungrycat")
3514 (license license:expat)))
3515
3516 (define-public launchmon
3517 (package
3518 (name "launchmon")
3519 (version "1.0.2")
3520 (source (origin
3521 (method url-fetch)
3522 (uri (string-append
3523 "https://github.com/LLNL/LaunchMON/releases/download/v"
3524 version "/launchmon-v" version ".tar.gz"))
3525 (sha256
3526 (base32
3527 "0fm3nd9mydm9v2bf7bh01dbgrfnpwkapxa3dsvy3x1z0rz61qc0x"))
3528 (modules '((guix build utils)))
3529 (snippet
3530 '(begin
3531 ;; Fix build failure with GCC 7 due to a conversion error.
3532 ;; Remove for versions > 1.0.2.
3533 (substitute* "launchmon/src/linux/lmon_api/lmon_coloc_spawner.cxx"
3534 ((" lmonpl = '\\\\0'")
3535 " *lmonpl = '\\0'"))
3536 #t))))
3537 (build-system gnu-build-system)
3538 (inputs
3539 `(("mpi" ,openmpi)
3540 ("munge" ,munge)
3541 ("boost" ,boost)
3542 ("libelf" ,libelf)
3543 ("libgcrypt" ,libgcrypt)
3544 ("libgpg-error" ,libgpg-error)))
3545 (synopsis "Infrastructue for large scale tool daemon launching")
3546 (description
3547 "LaunchMON is a software infrastructure that enables HPC run-time
3548 tools to co-locate tool daemons with a parallel job. Its API allows a
3549 tool to identify all the remote processes of a job and to scalably
3550 launch daemons into the relevant nodes.")
3551 (home-page "https://github.com/LLNL/LaunchMON")
3552 (supported-systems '("i686-linux" "x86_64-linux"))
3553 (license license:lgpl2.1)))
3554
3555 (define-public spindle
3556 (package
3557 (name "spindle")
3558 (version "0.10")
3559 (source (origin
3560 ;; We use git checkout to avoid github auto-generated tarballs
3561 (method git-fetch)
3562 (uri (git-reference
3563 (url "https://github.com/hpc/Spindle")
3564 (commit (string-append "v" version))))
3565 (file-name (git-file-name name version))
3566 (sha256
3567 (base32
3568 "15n3ay0qq81r5v7fif61q1vdjcq44pp2nynkh3fvbzc9fj3c39wd"))))
3569 (build-system gnu-build-system)
3570 (arguments '(#:configure-flags '("--enable-sec-launchmon"
3571 "--enable-sec-munge"
3572 "--enable-sec-none")))
3573 (inputs
3574 `(("mpi" ,openmpi)
3575 ("munge" ,munge)
3576 ("launchmon" ,launchmon)
3577 ("libgcrypt" ,libgcrypt)))
3578 (synopsis "Scalable library loading in HPC environments")
3579 (description
3580 "Spindle is a tool for improving the performance of dynamic library and
3581 Python loading in HPC environments.")
3582 (home-page "https://github.com/hpc/Spindle")
3583 ;; This package supports x86_64 and PowerPC64
3584 (supported-systems '("x86_64-linux"))
3585 (license license:lgpl2.1)))
3586
3587 (define-public inxi-minimal
3588 (let ((real-name "inxi"))
3589 (package
3590 (name "inxi-minimal")
3591 (version "3.1.05-2")
3592 (source
3593 (origin
3594 (method git-fetch)
3595 (uri (git-reference
3596 (url "https://github.com/smxi/inxi")
3597 (commit version)))
3598 (file-name (git-file-name real-name version))
3599 (sha256
3600 (base32 "1a7nl2wk49yz5hcrph692xh5phv1mdg1m5cbvgv3ya12c6r32pa2"))))
3601 (build-system trivial-build-system)
3602 (inputs
3603 `(("bash" ,bash-minimal)
3604 ("perl" ,perl)
3605 ("procps" ,procps)))
3606 (native-inputs
3607 `(("gzip" ,gzip)))
3608 (arguments
3609 `(#:modules
3610 ((guix build utils)
3611 (ice-9 match)
3612 (srfi srfi-26))
3613 #:builder
3614 (begin
3615 (use-modules (guix build utils)
3616 (ice-9 match)
3617 (srfi srfi-26))
3618 (setenv "PATH" (string-append
3619 (assoc-ref %build-inputs "bash") "/bin" ":"
3620 (assoc-ref %build-inputs "gzip") "/bin" ":"
3621 (assoc-ref %build-inputs "perl") "/bin" ":"))
3622 (copy-recursively (assoc-ref %build-inputs "source")
3623 ,(string-append real-name "-" version))
3624 (with-directory-excursion ,(string-append real-name "-" version)
3625 (with-fluids ((%default-port-encoding #f))
3626 (substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
3627 (let ((bin (string-append %output "/bin")))
3628 (install-file "inxi" bin)
3629 (wrap-program (string-append bin "/inxi")
3630 `("PATH" ":" =
3631 ("$PATH"
3632 ,@(map (lambda (input)
3633 (match input
3634 ((name . store)
3635 (let ((store-append
3636 (cut string-append store <>)))
3637 (cond
3638 ((member name '("util-linux"))
3639 (string-append (store-append "/bin") ":"
3640 (store-append "/sbin")))
3641 ((member name '("dmidecode" "iproute2"))
3642 (store-append "/sbin"))
3643 (else (store-append "/bin")))))))
3644 %build-inputs)))
3645 `("PERL5LIB" ":" =
3646 ,(delete
3647 ""
3648 (map (match-lambda
3649 (((? (cut string-prefix? "perl-" <>) name) . dir)
3650 (string-append dir "/lib/perl5/site_perl"))
3651 (_ ""))
3652 %build-inputs)))))
3653 (invoke "gzip" "inxi.1")
3654 (install-file "inxi.1.gz"
3655 (string-append %output "/share/man/man1")))
3656 #t)))
3657 (home-page "https://smxi.org/docs/inxi.htm")
3658 (synopsis "Full-featured system information script")
3659 (description "Inxi is a system information script that can display
3660 various things about your hardware and software to users in an IRC chatroom or
3661 support forum. It runs with the @code{/exec} command in most IRC clients.")
3662 (license license:gpl3+))))
3663
3664 (define-public inxi
3665 (package
3666 (inherit inxi-minimal)
3667 (name "inxi")
3668 (inputs
3669 `(("dmidecode" ,dmidecode)
3670 ("file" ,file)
3671 ("bind:utils" ,isc-bind "utils") ; dig
3672 ("gzip" ,gzip)
3673 ("iproute2" ,iproute) ; ip
3674 ("kmod" ,kmod) ; modinfo
3675 ("lm-sensors" ,lm-sensors)
3676 ("mesa-utils" ,mesa-utils)
3677 ("pciutils" ,pciutils)
3678 ("tar" ,tar)
3679 ("tree" ,tree)
3680 ("util-linux" ,util-linux) ; lsblk
3681 ("usbutils" ,usbutils) ; lsusb
3682 ("wmctrl" ,wmctrl)
3683 ("xdpyinfo" ,xdpyinfo)
3684 ("xprop" ,xprop)
3685 ("xrandr" ,xrandr)
3686 ("coreutils" ,coreutils) ; uptime
3687 ("inetutils" ,inetutils) ; ifconfig
3688 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
3689 ("perl-http-tiny" ,perl-http-tiny)
3690 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3691 ("perl-json-xs" ,perl-json-xs)
3692 ("perl-time-hires" ,perl-time-hires)
3693 ;; TODO: Add more inputs:
3694 ;; ipmi-sensors
3695 ;; hddtemp
3696 ;; perl-xml-dumper
3697 ;; ipmitool
3698 ,@(package-inputs inxi-minimal)))))
3699
3700 (define-public pscircle
3701 (package
3702 (name "pscircle")
3703 (version "1.3.1")
3704 (source
3705 (origin
3706 (method git-fetch)
3707 (uri (git-reference
3708 (url "https://gitlab.com/mildlyparallel/pscircle.git")
3709 (commit (string-append "v" version))))
3710 (file-name (git-file-name name version))
3711 (sha256
3712 (base32 "1sm99423hh90kr4wdjqi9sdrrpk65j2vz2hzj65zcxfxyr6khjci"))))
3713 (build-system meson-build-system)
3714 (native-inputs
3715 `(("pkg-config" ,pkg-config)))
3716 (inputs
3717 `(("cairo" ,cairo)
3718 ("libpng" ,libpng)
3719 ("libx11" ,libx11)))
3720 (home-page "https://gitlab.com/mildlyparallel/pscircle")
3721 (synopsis "Visualize Linux processes in a form of radial tree")
3722 (description
3723 "@code{pscircle} visualizes Linux processes in the form of a radial tree.")
3724 (license license:gpl2+)))
3725
3726 (define-public python-pyudev
3727 (package
3728 (name "python-pyudev")
3729 (version "0.22.0")
3730 (source
3731 (origin
3732 (method url-fetch)
3733 (uri (pypi-uri "pyudev" version))
3734 (sha256
3735 (base32
3736 "0xmj6l08iih2js9skjqpv4w7y0dhxyg91zmrs6v5aa65gbmipfv9"))))
3737 (build-system python-build-system)
3738 (arguments
3739 `(#:tests? #f ; Tests require /sys
3740 #:phases
3741 (modify-phases %standard-phases
3742 (add-after 'unpack 'patch-ctypes-udev
3743 (lambda* (#:key inputs outputs #:allow-other-keys)
3744 (let ((eudev (assoc-ref inputs "eudev")))
3745 (substitute* "src/pyudev/core.py"
3746 (("'udev'")
3747 (string-append "'" eudev "/lib/libudev.so'")))
3748 (substitute* "src/pyudev/_ctypeslib/utils.py"
3749 ;; Use absolute paths instead of keys.
3750 (("= find_library") "= "))
3751 #t))))))
3752 (inputs
3753 `(("eudev" ,eudev)))
3754 (propagated-inputs
3755 `(("python-six" ,python-six)))
3756 (native-inputs
3757 `(("python-docutils" ,python-docutils)
3758 ("python-hypothesis" ,python-hypothesis)
3759 ("python-mock" ,python-mock)
3760 ("python-pytest" ,python-pytest)
3761 ("python-sphinx" ,python-sphinx)))
3762 (home-page "https://pyudev.readthedocs.io/")
3763 (synopsis "Python udev binding")
3764 (description "This package provides @code{udev} bindings for Python.")
3765 (license license:lgpl2.1)))
3766
3767 (define-public solaar
3768 (package
3769 (name "solaar")
3770 (version "0.9.2")
3771 (source (origin
3772 (method git-fetch)
3773 (uri (git-reference
3774 (url "https://github.com/pwr/Solaar")
3775 (commit version)))
3776 (file-name (git-file-name name version))
3777 (sha256
3778 (base32
3779 "085mfa13dap3wqik1dqlad0d7kff4rv7j4ljh99c7l8nhczkqgwm"))))
3780 (build-system python-build-system)
3781 (arguments
3782 `(#:phases
3783 (modify-phases %standard-phases
3784 (add-after 'unpack 'fix-prefix-detection
3785 (lambda _
3786 (substitute* "setup.py"
3787 (("'--prefix' in sys\\.argv")
3788 "len([x.startswith('--prefix=') for x in sys.argv]) > 0"))
3789 #t))
3790 (add-before 'build 'setenv-PATH
3791 (lambda _
3792 (setenv "PYTHONPATH" (string-append "lib:" (getenv "PYTHONPATH")))
3793 #t)))))
3794 (propagated-inputs
3795 `(("python-pygobject" ,python-pygobject)
3796 ("python-pyudev" ,python-pyudev)))
3797 (home-page "https://smxi.org/docs/inxi.htm")
3798 (synopsis "Linux devices manager for the Logitech Unifying Receiver")
3799 (description "This package provides tools to manage clients of the
3800 Logitech Unifying Receiver.")
3801 (license license:gpl2)))
3802
3803 (define-public lynis
3804 (package
3805 (name "lynis")
3806 ;; Also update the ‘lynis-sdk’ input to the commit matching this release.
3807 (version "2.7.5")
3808 (source
3809 (origin
3810 (method git-fetch)
3811 (uri (git-reference
3812 (url "https://github.com/CISOfy/lynis")
3813 (commit version)))
3814 (file-name (git-file-name name version))
3815 (sha256
3816 (base32 "1lkkbvxm0rgrrlx0szaxmf8ghc3d26wal96sgqk84m37mvs1f7p0"))
3817 (modules '((guix build utils)))
3818 (snippet
3819 '(begin
3820 ;; Remove proprietary plugins. As of now, all plugins supplied with
3821 ;; lynis are proprietary. In the future, if free plugins are
3822 ;; provided, whitelist them from deletion.
3823 (for-each delete-file (find-files "plugins"))
3824 #t))))
3825 (build-system gnu-build-system)
3826 (native-inputs
3827 `(;; For tests
3828 ("lynis-sdk"
3829 ,(origin
3830 (method git-fetch)
3831 (uri (git-reference
3832 (url "https://github.com/CISOfy/lynis-sdk")
3833 (commit "bf1c1d95121da9ca79a9eac5a15ed8d81e34094d")))
3834 (file-name (git-file-name "lynis-sdk" version))
3835 (sha256
3836 (base32 "1ndz5v0039dqa87cva2dk55a8hkw0fibsw8hh2ddmny9qkr4l3dp"))))))
3837 (arguments
3838 `(#:phases
3839 (modify-phases %standard-phases
3840 (replace 'configure
3841 (lambda* (#:key inputs outputs #:allow-other-keys)
3842 (substitute* "lynis"
3843 (("/usr/share/lynis")
3844 (string-append (assoc-ref outputs "out") "/share/lynis")))
3845 (substitute* "include/functions"
3846 (("/usr/local/etc/lynis")
3847 (string-append (assoc-ref outputs "out") "/etc/lynis")))
3848 #t))
3849 (delete 'build)
3850 (replace 'install
3851 (lambda* (#:key outputs #:allow-other-keys)
3852 (let ((out (assoc-ref outputs "out")))
3853 (install-file "lynis" (string-append out "/bin/"))
3854 (install-file "default.prf" (string-append out "/etc/lynis"))
3855 (for-each
3856 (lambda (dir)
3857 (copy-recursively dir (string-append out "/share/lynis/" dir)))
3858 (list "db" "include" "plugins"))
3859 (install-file "lynis.8" (string-append out "/share/man/man8"))
3860 #t)))
3861 (replace 'check
3862 (lambda* (#:key inputs #:allow-other-keys)
3863 (copy-recursively (assoc-ref inputs "lynis-sdk") "../lynis-sdk")
3864 (setenv "LANG" "en_US.UTF-8")
3865 (let ((lynis-dir (getcwd)))
3866 (with-directory-excursion "../lynis-sdk"
3867 (substitute* "config"
3868 (("\\.\\./lynis") lynis-dir))
3869 (substitute* "unit-tests/tests-language-translations.sh"
3870 (("\\.\\./lynis") lynis-dir))
3871 (invoke "sh" "lynis-devkit" "run" "unit-tests"))))))))
3872 (home-page "https://cisofy.com/lynis/")
3873 (synopsis "Security auditing tool")
3874 (description "Lynis is a security auditing tool. It performs an in-depth
3875 security scan and runs on the system itself. The primary goal is to test
3876 security defenses and provide tips for further system hardening. It will also
3877 scan for general system information, vulnerable software packages, and
3878 possible configuration issues.")
3879 (license license:gpl3+)))
3880
3881 (define-public ngrep
3882 (package
3883 (name "ngrep")
3884 (version "1.47")
3885 (source
3886 (origin
3887 (method git-fetch)
3888 (uri (git-reference
3889 (url "https://github.com/jpr5/ngrep/")
3890 (commit (string-append "V" (string-replace-substring version "." "_")))))
3891 (file-name (git-file-name name version))
3892 (sha256
3893 (base32
3894 "1x2fyd7wdqlj1r76ilal06cl2wmbz0ws6i3ys204sbjh1cj6dcl7"))))
3895 (build-system gnu-build-system)
3896 (inputs
3897 `(("libpcap" ,libpcap)))
3898 (arguments
3899 `(#:tests? #f ;; No tests.
3900 #:configure-flags (list (string-append "--with-pcap-includes="
3901 (assoc-ref %build-inputs "libpcap")
3902 "/include/pcap"))))
3903 (home-page "https://github.com/jpr5/ngrep/")
3904 (synopsis "Grep-like utility to search for network packets on an interface")
3905 (description "@command{ngrep} is like GNU grep applied to the network
3906 layer. It's a PCAP-based tool that allows you to specify an extended regular
3907 or hexadecimal expression to match against data payloads of packets. It
3908 understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6,
3909 IGMP and Raw, across a wide variety of interface types, and understands BPF
3910 filter logic in the same fashion as more common packet sniffing tools, such as
3911 tcpdump and snoop.")
3912 (license license:bsd-3)))
3913
3914 (define-public pam-mount
3915 (package
3916 (name "pam-mount")
3917 (version "2.16")
3918 (source
3919 (origin
3920 (method url-fetch)
3921 (uri (string-append "mirror://sourceforge/pam-mount/pam_mount/"
3922 version "/pam_mount-" version ".tar.xz"))
3923 (sha256
3924 (base32
3925 "1rvi4irb7ylsbhvx1cr6islm2xxw1a4b19q6z4a9864ndkm0f0mf"))
3926 (patches
3927 ;; Patch adding support for encrypted volumes in LUKS2 format.
3928 ;; It comes from the Gentoo package definition for sys-auth/pam_mount.
3929 (search-patches "pam-mount-luks2-support.patch"))))
3930 (build-system gnu-build-system)
3931 (native-inputs
3932 `(("perl" ,perl)
3933 ("pkg-config" ,pkg-config)))
3934 (inputs
3935 `(("cryptsetup" ,cryptsetup)
3936 ("libhx" ,libhx)
3937 ("libxml2" ,libxml2)
3938 ("linux-pam" ,linux-pam)
3939 ("lvm2" ,lvm2)
3940 ("openssl" ,openssl)
3941 ("pcre" ,pcre)
3942 ("libmount" ,util-linux "lib")
3943 ("util-linux" ,util-linux)))
3944 (arguments
3945 `(#:configure-flags
3946 (list (string-append "--with-slibdir=" %output "/lib")
3947 (string-append "--with-ssbindir=" %output "/sbin"))
3948 #:phases
3949 (modify-phases %standard-phases
3950 (add-after 'unpack 'fix-program-paths
3951 (lambda* (#:key inputs outputs #:allow-other-keys)
3952 (let ((util-linux (assoc-ref inputs "util-linux"))
3953 (out (assoc-ref outputs "out")))
3954 (substitute* "src/mtcrypt.c"
3955 (("\"mount\";")
3956 (string-append "\"" util-linux "/bin/mount\";"))
3957 (("\"umount\";")
3958 (string-append "\"" util-linux "/bin/umount\";"))
3959 (("\"fsck\",")
3960 (string-append "\"" util-linux "/sbin/fsck\",")))
3961 (substitute* "src/rdconf1.c"
3962 (("\"mount\", \"")
3963 (string-append "\"" util-linux "/bin/mount\", \""))
3964 (("\"umount\", \"")
3965 (string-append "\"" util-linux "/bin/umount\", \""))
3966 (("\"fsck\", \"")
3967 (string-append "\"" util-linux "/sbin/fsck\", \""))
3968 (("\"pmvarrun\", \"")
3969 (string-append "\"" out "/sbin/pmvarrun\", \""))))
3970 #t)))))
3971 (home-page "http://pam-mount.sourceforge.net")
3972 (synopsis "PAM module to mount volumes for a user session")
3973 (description
3974 "Pam-mount is a PAM module that can mount volumes when a user logs in.
3975 It supports mounting local filesystems of any kind the normal mount utility
3976 supports. It can also mount encrypted LUKS volumes using the password
3977 supplied by the user when logging in.")
3978 (license (list license:gpl2+ license:lgpl2.1+))))
3979
3980 (define-public jc
3981 (package
3982 (name "jc")
3983 (version "1.13.4")
3984 (source
3985 (origin
3986 ;; The PyPI tarball lacks the test suite.
3987 (method git-fetch)
3988 (uri (git-reference
3989 (url "https://github.com/kellyjonbrazil/jc")
3990 (commit (string-append "v" version))))
3991 (file-name (git-file-name name version))
3992 (sha256
3993 (base32 "0rwvyyrdnw43pixp8h51rncq2inc9pbbj1j2191y5si00pjw34zr"))))
3994 (build-system python-build-system)
3995 (propagated-inputs
3996 `(("python-pygments" ,python-pygments)
3997 ("python-ruamel.yaml" ,python-ruamel.yaml)
3998 ("python-xmltodict" ,python-xmltodict)))
3999 (home-page "https://github.com/kellyjonbrazil/jc")
4000 (synopsis "Convert the output of command-line tools to JSON")
4001 (description "@code{jc} JSONifies the output of many CLI tools and
4002 file-types for easier parsing in scripts.")
4003 (license license:expat)))
4004
4005 (define-public jtbl
4006 (package
4007 (name "jtbl")
4008 (version "1.1.6")
4009 (source (origin
4010 (method git-fetch)
4011 (uri (git-reference
4012 (url "https://github.com/kellyjonbrazil/jtbl")
4013 (commit (string-append "v" version))))
4014 (file-name (git-file-name name version))
4015 (sha256
4016 (base32
4017 "1zzd7rd63xva50f22d1rfja4r302aizrafarhwm67vv181swvdya"))))
4018 (build-system python-build-system)
4019 (inputs
4020 `(("python-tabulate" ,python-tabulate)))
4021 (home-page "https://github.com/kellyjonbrazil/jtbl")
4022 (synopsis "Command-line tool to print JSON data as a table in the terminal")
4023 (description "@code{jtbl} accepts piped JSON data from stdin and outputs a
4024 text table representation to stdout.")
4025 (license license:expat)))
4026
4027 (define-public hosts
4028 (package
4029 (name "hosts")
4030 (version "3.6.3")
4031 (source (origin
4032 (method git-fetch)
4033 (uri (git-reference
4034 (url "https://github.com/xwmx/hosts")
4035 (commit version)))
4036 (file-name (git-file-name name version))
4037 (sha256
4038 (base32
4039 "1ni4z89kxzgwm26hhx908g04f2h0fypy7lgfa0rvsz8d0wslgcsn"))))
4040 (build-system trivial-build-system)
4041 (inputs
4042 `(("bats" ,bats) ;for test
4043 ("awk" ,gawk)
4044 ("bash" ,bash)
4045 ("coreutils" ,coreutils)
4046 ("diffutils" ,diffutils)
4047 ("grep" ,grep)
4048 ("ncurses" ,ncurses) ;tput
4049 ("sed" ,sed)))
4050 (arguments
4051 `(#:modules ((guix build utils))
4052 #:builder
4053 (begin
4054 (use-modules (guix build utils))
4055 ;; copy source
4056 (copy-recursively (assoc-ref %build-inputs "source") ".")
4057 ;; patch-shebang phase
4058 (setenv "PATH"
4059 (string-append (assoc-ref %build-inputs "bash") "/bin"
4060 ":" (assoc-ref %build-inputs "awk") "/bin"
4061 ":" (assoc-ref %build-inputs "coreutils") "/bin"
4062 ":" (assoc-ref %build-inputs "diffutils") "/bin"
4063 ":" (assoc-ref %build-inputs "grep") "/bin"
4064 ":" (assoc-ref %build-inputs "ncurses") "/bin"
4065 ":" (assoc-ref %build-inputs "sed") "/bin"
4066 ":" "/run/setuid-programs"
4067 ":" (getenv "PATH")))
4068 (substitute* "hosts"
4069 (("#!/usr/bin/env bash")
4070 (string-append "#!" (which "bash")
4071 "\nPATH=" (getenv "PATH"))))
4072 ;; check phase
4073 (setenv "TERM" "linux") ;set to tty for test
4074 (invoke (string-append (assoc-ref %build-inputs "bats") "/bin/bats")
4075 "test")
4076 ;; install phase
4077 (install-file "hosts" (string-append %output "/bin"))
4078 (let ((bash-completion
4079 (string-append %output "/etc/bash_completion.d")))
4080 (mkdir-p bash-completion)
4081 (copy-file "etc/hosts-completion.bash"
4082 (string-append bash-completion "/hosts")))
4083 (let ((zsh-completion
4084 (string-append %output "/share/zsh/site-functions")))
4085 (mkdir-p zsh-completion)
4086 (copy-file "etc/hosts-completion.zsh"
4087 (string-append zsh-completion "/_hosts")))
4088 (let ((doc (string-append %output "/share/doc/" ,name "-" ,version)))
4089 (mkdir-p doc)
4090 (install-file "LICENSE" doc)
4091 (install-file "README.md" doc))
4092 #t)))
4093 (home-page "https://github.com/xwmx/hosts/")
4094 (synopsis "Script for editing a foreign distro's @file{/etc/hosts} file")
4095 (description "Hosts is a command line program for managing
4096 @file{/etc/hosts} entries. On Guix System, @file{/etc/hosts} is managed from
4097 the system configuration; hosts only works when using the Guix package manager
4098 on a foreign distro. @command{hosts} works with existing hosts files and
4099 entries, providing commands to add, remove, comment, and search.")
4100 (license license:expat)))